content
stringlengths 23
1.05M
|
|---|
-----------------------------------------------------------------------
-- mat-readers-sockets -- Reader for TCP/IP sockets
-- Copyright (C) 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 Ada.Finalization;
with Ada.Containers.Doubly_Linked_Lists;
with Util.Streams.Sockets;
with GNAT.Sockets;
package MAT.Readers.Streams.Sockets is
type Socket_Listener_Type is new Ada.Finalization.Limited_Controlled with private;
-- Initialize the socket listener.
overriding
procedure Initialize (Listener : in out Socket_Listener_Type);
-- Destroy the socket listener.
overriding
procedure Finalize (Listener : in out Socket_Listener_Type);
-- Open the socket to accept connections and start the listener task.
procedure Start (Listener : in out Socket_Listener_Type;
List : in MAT.Events.Probes.Reader_List_Type_Access;
Address : in GNAT.Sockets.Sock_Addr_Type);
-- Stop the listener socket.
procedure Stop (Listener : in out Socket_Listener_Type);
-- Create a target instance for the new client.
procedure Create_Target (Listener : in out Socket_Listener_Type;
Client : in GNAT.Sockets.Socket_Type;
Address : in GNAT.Sockets.Sock_Addr_Type);
type Socket_Reader_Type is new MAT.Readers.Streams.Stream_Reader_Type with private;
type Socket_Reader_Type_Access is access all Socket_Reader_Type'Class;
procedure Close (Reader : in out Socket_Reader_Type);
private
type Socket_Listener_Type_Access is access all Socket_Listener_Type;
task type Socket_Listener_Task is
entry Start (Listener : in Socket_Listener_Type_Access;
Address : in GNAT.Sockets.Sock_Addr_Type);
end Socket_Listener_Task;
task type Socket_Reader_Task is
entry Start (Reader : in Socket_Reader_Type_Access;
Client : in GNAT.Sockets.Socket_Type);
end Socket_Reader_Task;
type Socket_Reader_Type is new MAT.Readers.Streams.Stream_Reader_Type with record
Socket : aliased Util.Streams.Sockets.Socket_Stream;
Server : Socket_Reader_Task;
Client : GNAT.Sockets.Socket_Type;
Stop : Boolean := False;
end record;
package Socket_Client_Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Socket_Reader_Type_Access);
type Socket_Listener_Type is new Ada.Finalization.Limited_Controlled with record
List : MAT.Events.Probes.Reader_List_Type_Access;
Accept_Selector : aliased GNAT.Sockets.Selector_Type;
Listener : Socket_Listener_Task;
Clients : Socket_Client_Lists.List;
end record;
end MAT.Readers.Streams.Sockets;
|
-- This spec has been automatically generated from cm0.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Cortex_M_SVD is
pragma Preelaborate;
--------------------
-- Base addresses --
--------------------
NVIC_Base : constant System.Address :=
System'To_Address (16#E000E100#);
SCB_Base : constant System.Address :=
System'To_Address (16#E000ED00#);
SysTick_Base : constant System.Address :=
System'To_Address (16#E000E010#);
Debug_Base : constant System.Address :=
System'To_Address (16#E000ED00#);
DWT_Base : constant System.Address :=
System'To_Address (16#E0001000#);
end Cortex_M_SVD;
|
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
private package Natools.Static_Hash_Maps.S_Expressions.Command_Maps is
function To_Package_Command (Key : String) return Package_Command;
function To_Map_Command (Key : String) return Map_Command;
private
Map_1_Key_0 : aliased constant String := "extra-declarations";
Map_1_Key_1 : aliased constant String := "extra-decl";
Map_1_Key_2 : aliased constant String := "private";
Map_1_Key_3 : aliased constant String := "public";
Map_1_Key_4 : aliased constant String := "pure";
Map_1_Key_5 : aliased constant String := "preelaborate";
Map_1_Key_6 : aliased constant String := "test-function";
Map_1_Keys : constant array (0 .. 6) of access constant String
:= (Map_1_Key_0'Access,
Map_1_Key_1'Access,
Map_1_Key_2'Access,
Map_1_Key_3'Access,
Map_1_Key_4'Access,
Map_1_Key_5'Access,
Map_1_Key_6'Access);
Map_1_Elements : constant array (0 .. 6) of Package_Command
:= (Extra_Declarations,
Extra_Declarations,
Private_Child,
Public_Child,
Pure_Package,
Preelaborate_Package,
Test_Function);
Map_2_Key_0 : aliased constant String := "definite";
Map_2_Key_1 : aliased constant String := "definite-elements";
Map_2_Key_2 : aliased constant String := "indefinite";
Map_2_Key_3 : aliased constant String := "indefinite-elements";
Map_2_Key_4 : aliased constant String := "hash-package";
Map_2_Key_5 : aliased constant String := "nodes";
Map_2_Key_6 : aliased constant String := "function";
Map_2_Key_7 : aliased constant String := "not-found";
Map_2_Keys : constant array (0 .. 7) of access constant String
:= (Map_2_Key_0'Access,
Map_2_Key_1'Access,
Map_2_Key_2'Access,
Map_2_Key_3'Access,
Map_2_Key_4'Access,
Map_2_Key_5'Access,
Map_2_Key_6'Access,
Map_2_Key_7'Access);
Map_2_Elements : constant array (0 .. 7) of Map_Command
:= (Definite_Elements,
Definite_Elements,
Indefinite_Elements,
Indefinite_Elements,
Hash_Package,
Nodes,
Function_Name,
Not_Found);
end Natools.Static_Hash_Maps.S_Expressions.Command_Maps;
|
-- This spec has been automatically generated from cm7.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Cache maintenance operations
package Cortex_M_SVD.Cache is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DCISW_Set_Field is HAL.UInt9;
subtype DCISW_Way_Field is HAL.UInt2;
-- Data cache invalidate by set/way
type DCISW_Register is record
-- unspecified
Reserved_0_4 : HAL.UInt5 := 16#0#;
-- Write-only. Set/index that operation applies to. The number of
-- indices in a cache depends on the configured cache size. When this is
-- less than the maximum, use the LSB of this field.
Set : DCISW_Set_Field := 16#0#;
-- unspecified
Reserved_14_29 : HAL.UInt16 := 16#0#;
-- Write-only. Way that operation applies to. For the data cache, values
-- 0, 1, 2 and 3 are supported..
Way : DCISW_Way_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DCISW_Register use record
Reserved_0_4 at 0 range 0 .. 4;
Set at 0 range 5 .. 13;
Reserved_14_29 at 0 range 14 .. 29;
Way at 0 range 30 .. 31;
end record;
subtype DCCSW_Set_Field is HAL.UInt9;
subtype DCCSW_Way_Field is HAL.UInt2;
-- Data cache clean by set/way
type DCCSW_Register is record
-- unspecified
Reserved_0_4 : HAL.UInt5 := 16#0#;
-- Write-only. Set/index that operation applies to. The number of
-- indices in a cache depends on the configured cache size. When this is
-- less than the maximum, use the LSB of this field.
Set : DCCSW_Set_Field := 16#0#;
-- unspecified
Reserved_14_29 : HAL.UInt16 := 16#0#;
-- Write-only. Way that operation applies to. For the data cache, values
-- 0, 1, 2 and 3 are supported..
Way : DCCSW_Way_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DCCSW_Register use record
Reserved_0_4 at 0 range 0 .. 4;
Set at 0 range 5 .. 13;
Reserved_14_29 at 0 range 14 .. 29;
Way at 0 range 30 .. 31;
end record;
subtype DCCISW_Set_Field is HAL.UInt9;
subtype DCCISW_Way_Field is HAL.UInt2;
-- Data cache clean and invalidate by set/way
type DCCISW_Register is record
-- unspecified
Reserved_0_4 : HAL.UInt5 := 16#0#;
-- Write-only. Set/index that operation applies to. The number of
-- indices in a cache depends on the configured cache size. When this is
-- less than the maximum, use the LSB of this field.
Set : DCCISW_Set_Field := 16#0#;
-- unspecified
Reserved_14_29 : HAL.UInt16 := 16#0#;
-- Write-only. Way that operation applies to. For the data cache, values
-- 0, 1, 2 and 3 are supported..
Way : DCCISW_Way_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DCCISW_Register use record
Reserved_0_4 at 0 range 0 .. 4;
Set at 0 range 5 .. 13;
Reserved_14_29 at 0 range 14 .. 29;
Way at 0 range 30 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Cache maintenance operations
type Cache_Peripheral is record
-- Instruction cache invalidate all to the PoU
ICIALLU : aliased HAL.UInt32;
-- Instruction cache invalidate by address to the PoU
ICIMVAU : aliased HAL.UInt32;
-- Data cache invalidate by address to the PoC
DCIMVAC : aliased HAL.UInt32;
-- Data cache invalidate by set/way
DCISW : aliased DCISW_Register;
-- Data cache clean by address to the PoU
DCCMVAU : aliased HAL.UInt32;
-- Data cache clean by address to the PoC
DCCMVAC : aliased HAL.UInt32;
-- Data cache clean by set/way
DCCSW : aliased DCCSW_Register;
-- Data cache clean and invalidate by address to the PoC
DCCIMVAC : aliased HAL.UInt32;
-- Data cache clean and invalidate by set/way
DCCISW : aliased DCCISW_Register;
end record
with Volatile;
for Cache_Peripheral use record
ICIALLU at 16#0# range 0 .. 31;
ICIMVAU at 16#8# range 0 .. 31;
DCIMVAC at 16#C# range 0 .. 31;
DCISW at 16#10# range 0 .. 31;
DCCMVAU at 16#14# range 0 .. 31;
DCCMVAC at 16#18# range 0 .. 31;
DCCSW at 16#1C# range 0 .. 31;
DCCIMVAC at 16#20# range 0 .. 31;
DCCISW at 16#24# range 0 .. 31;
end record;
-- Cache maintenance operations
Cache_Periph : aliased Cache_Peripheral
with Import, Address => Cache_Base;
end Cortex_M_SVD.Cache;
|
with STM32_SVD; use STM32_SVD;
with STM32_SVD.USART; use STM32_SVD.USART;
with STM32GD.USART; use STM32GD.USART;
with STM32GD.Board;
with Peripherals;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Interrupts;
with Ada.Interrupts.Names;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
package body Serial is
task Serial_Task with Storage_Size => 512;
----------------------------------------------------------------------------
protected body Input is
entry Read (Data : out Serial_Data) when Ready is
begin
Data.Data := Buffer.Data;
Data.Length := Buffer.Length - 1;
Ready := False;
end Read;
function Is_Ready return Boolean is
begin
return Ready;
end Is_Ready;
procedure Set_Ready (Line : Serial_Data) is
begin
Buffer := Line;
Ready := True;
end Set_Ready;
end Input;
package body Output is
procedure Write (Data : in USART_Data; Length : in Natural) is
begin
Write (16#10#);
Write (16#02#);
for I in Natural range Data'First .. Data'First + Length loop
Write (Data (I));
if Data (I) = 16#10# then
Write (Data (I));
end if;
end loop;
Write (16#10#);
Write (16#03#);
end Write;
procedure Write (Character : in Byte) is
begin
STM32GD.Board.USART.Transmit (Character);
end Write;
end Output;
----------------------------------------------------------------------------
task body Serial_Task is
Buffer : Serial_Data;
procedure Wait_For_Packet is
C1 : Byte;
C2 : Byte;
begin
loop
C1 := STM32GD.Board.USART.DMA_Receive;
C2 := STM32GD.Board.USART.DMA_Receive;
exit when C1 = 16#10# and C2 = 16#02#;
end loop;
end Wait_For_Packet;
procedure Read_Packet is
C : Byte;
begin
loop
C := STM32GD.Board.USART.DMA_Receive;
if C /= 16#10# then
Buffer.Data (Buffer.Length) := C;
Buffer.Length := Buffer.Length + 1;
else
C := STM32GD.Board.USART.DMA_Receive;
if C = 16#10# then
Buffer.Data (Buffer.Length) := C;
Buffer.Length := Buffer.Length + 1;
else
exit when C = 16#03#;
end if;
end if;
end loop;
end Read_Packet;
begin
loop
Buffer.Length := Buffer.Data'First;
Wait_For_Packet;
Read_Packet;
Input.Set_Ready (Buffer);
end loop;
end Serial_Task;
end Serial;
|
with Text_IO;
procedure Main
with SPARK_Mode
is
-- The function below is intended to determine whether a given triangle
-- (specified by the lengths of its three sides) is a right-angle triangle.
-- The postcondition and the code have been made simpler by making a
-- precondition on the caller that the longest side is given first.
-- (Note that the function could have been implemented as a simple
-- expression function.)
function Is_Right_Angle_Triangle (Long_Side : Natural;
Side_2 : Natural;
Side_3 : Natural) return Boolean
with
Pre => Long_Side * Long_Side in Natural
and then (Side_2 * Side_2) + (Side_3 * Side_3) in Natural,
Post => (if Long_Side * Long_Side =
(Side_2 * Side_2) + (Side_3 * Side_3)
then Is_Right_Angle_Triangle'Result = True)
is
begin
-- Note that this function has multiple return statements. In SPARK 2005
-- this was not permitted due to flow analysis restrictions, but these
-- restrictions have been lifted in SPARK 2014.
if Long_Side * Long_Side = (Side_2 * Side_2) + (Side_3 * Side_3) then
return True;
else
return False;
end if;
end Is_Right_Angle_Triangle;
begin -- Main Program
if Is_Right_Angle_Triangle (Natural'Last, Natural'Last, Natural'Last) then
Text_IO.Put_Line ("Yes");
else
Text_IO.Put_Line ("False");
end if;
end Main;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with ewok.tasks; use ewok.tasks;
with ewok.tasks_shared; use ewok.tasks_shared;
with ewok.devices_shared; use ewok.devices_shared;
with ewok.exported.devices; use ewok.exported.devices;
with ewok.devices;
with ewok.sanitize;
with ewok.dma;
with ewok.syscalls.dma;
with ewok.mpu;
with ewok.perm;
with ewok.sched;
with ewok.debug;
package body ewok.syscalls.init
with spark_mode => off
is
package TSK renames ewok.tasks;
procedure init_do_reg_devaccess
(caller_id : in ewok.tasks_shared.t_task_id;
params : in t_parameters;
mode : in ewok.tasks_shared.t_task_mode)
is
udev : aliased ewok.exported.devices.t_user_device
with import, address => to_address (params(1));
-- Device descriptor transmitted to userspace
descriptor : unsigned_8 range 0 .. ewok.tasks.MAX_DEVS_PER_TASK
with address => to_address (params(2));
dev_id : ewok.devices_shared.t_device_id;
ok : boolean;
begin
-- Forbidden after end of task initialization
if TSK.is_init_done (caller_id) then
goto ret_denied;
end if;
-- NOTE
-- The kernel might register some devices using this syscall
-- for user tasks. The device_t structure may be stored in
-- RAM (.data section) or in flash (.rodata section)
if TSK.is_real_user (caller_id) and then
(not ewok.sanitize.is_range_in_data_slot
(to_system_address (udev'address),
udev'size/8,
caller_id,
mode)
and
not ewok.sanitize.is_range_in_txt_slot
(to_system_address (udev'address),
udev'size/8,
caller_id))
then
pragma DEBUG (debug.log (debug.ERROR,
"init_do_reg_devaccess(): udev not in task's memory space"));
goto ret_denied;
end if;
if TSK.is_real_user (caller_id) and then
not ewok.sanitize.is_word_in_data_slot
(to_system_address (descriptor'address), caller_id, mode)
then
pragma DEBUG (debug.log (debug.ERROR,
"init_do_reg_devaccess(): descriptor not in task's memory space"));
goto ret_denied;
end if;
-- Ada based sanitization
if not udev'valid_scalars
then
pragma DEBUG (debug.log (debug.ERROR, "init_do_reg_devaccess(): invalid udev scalars"));
goto ret_inval;
end if;
if TSK.is_real_user (caller_id) and then
not ewok.devices.sanitize_user_defined_device
(udev'unchecked_access, caller_id)
then
pragma DEBUG (debug.log (debug.ERROR, "init_do_reg_devaccess(): invalid udev"));
goto ret_inval;
end if;
if TSK.tasks_list(caller_id).num_devs = TSK.MAX_DEVS_PER_TASK then
pragma DEBUG (debug.log (debug.ERROR,
"init_do_reg_devaccess(): no space left to register the device"));
goto ret_busy;
end if;
if udev.size > 0 and
udev.map_mode = DEV_MAP_AUTO and
TSK.tasks_list(caller_id).num_devs_mounted = ewok.mpu.MAX_DEVICE_REGIONS
then
pragma DEBUG (debug.log (debug.ERROR,
"init_do_reg_devaccess(): no free region left to map the device"));
goto ret_busy;
end if;
--
-- Registering the device
--
ewok.devices.register_device (caller_id, udev'unchecked_access, dev_id, ok);
if not ok then
pragma DEBUG (debug.log (debug.ERROR,
"init_do_reg_devaccess(): failed to register the device"));
goto ret_denied;
end if;
--
-- Recording registered devices in the task record
--
TSK.append_device
(caller_id, dev_id, descriptor, ok);
if not ok then
raise program_error; -- Should never happen here
end if;
-- Mount DEV_MAP_AUTO devices in memory
if udev.size > 0 and udev.map_mode = DEV_MAP_AUTO then
TSK.mount_device (caller_id, dev_id, ok);
if not ok then
raise program_error; -- Should never happen here
end if;
end if;
set_return_value (caller_id, mode, SYS_E_DONE);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
<<ret_busy>>
set_return_value (caller_id, mode, SYS_E_BUSY);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
<<ret_inval>>
set_return_value (caller_id, mode, SYS_E_INVAL);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
<<ret_denied>>
set_return_value (caller_id, mode, SYS_E_DENIED);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
end init_do_reg_devaccess;
procedure init_do_done
(caller_id : in ewok.tasks_shared.t_task_id;
mode : in ewok.tasks_shared.t_task_mode)
is
ok : boolean;
udev : ewok.devices.t_checked_user_device_access;
begin
-- Forbidden after end of task initialization
if TSK.is_init_done (caller_id) then
goto ret_denied;
end if;
-- We enable auto mapped devices (MAP_AUTO)
for i in TSK.tasks_list(caller_id).device_id'range loop
if TSK.tasks_list(caller_id).device_id(i) /= ID_DEV_UNUSED then
udev := ewok.devices.get_user_device
(TSK.tasks_list(caller_id).device_id(i));
if udev.all.map_mode = DEV_MAP_AUTO then
-- FIXME - Create new syscalls for enabling/disabling devices?
ewok.devices.enable_device
(TSK.tasks_list(caller_id).device_id(i), ok);
if not ok then
goto ret_denied;
end if;
end if;
end if;
end loop;
#if CONFIG_KERNEL_DMA_ENABLE
for i in 1 .. TSK.tasks_list(caller_id).num_dma_id loop
ewok.dma.enable_dma_irq (TSK.tasks_list(caller_id).dma_id(i));
end loop;
#end if;
TSK.tasks_list(caller_id).init_done := true;
set_return_value (caller_id, mode, SYS_E_DONE);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
-- Request a schedule to ensure that the task has its devices mapped
-- afterward
-- FIXME - has to be changed when device mapping will be synchronously done
ewok.sched.request_schedule;
return;
<<ret_denied>>
set_return_value (caller_id, mode, SYS_E_DENIED);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
end init_do_done;
procedure init_do_get_taskid
(caller_id : in ewok.tasks_shared.t_task_id;
params : in t_parameters;
mode : in ewok.tasks_shared.t_task_mode)
is
target_name : TSK.t_task_name
with address => to_address (params(1));
target_id : ewok.tasks_shared.t_task_id
with address => to_address (params(2));
tmp_id : ewok.tasks_shared.t_task_id;
begin
-- Forbidden after end of task initialization
if TSK.is_init_done (caller_id) then
goto ret_denied;
end if;
-- Does &target_id is in the caller address space ?
if not ewok.sanitize.is_word_in_data_slot
(to_system_address (target_id'address), caller_id, mode)
then
goto ret_denied;
end if;
-- We retrieve the 'id' related to the target name. Before updating the
-- parameter passed by the user, we must check that the 2 tasked are
-- allowed to communicate
tmp_id := TSK.get_task_id (target_name);
if tmp_id = ID_UNUSED then
goto ret_inval;
end if;
#if CONFIG_KERNEL_DOMAIN
if TSK.get_domain (tmp_id) /= TSK.get_domain (caller_id) then
goto ret_inval;
end if;
#end if;
-- Are tasks allowed to communicate through IPCs or DMA_SHM ?
if not ewok.perm.ipc_is_granted (caller_id, tmp_id) and
not ewok.perm.dmashm_is_granted (caller_id, tmp_id)
then
goto ret_inval;
end if;
-- We may update the target_id
target_id := tmp_id;
set_return_value (caller_id, mode, SYS_E_DONE);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
<<ret_inval>>
set_return_value (caller_id, mode, SYS_E_INVAL);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
<<ret_denied>>
set_return_value (caller_id, mode, SYS_E_DENIED);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
end init_do_get_taskid;
procedure sys_init
(caller_id : in ewok.tasks_shared.t_task_id;
params : in out t_parameters;
mode : in ewok.tasks_shared.t_task_mode)
is
syscall : t_syscalls_init
with import, address => params(0)'address;
begin
if not syscall'valid then
set_return_value (caller_id, mode, SYS_E_INVAL);
ewok.tasks.set_state (caller_id, mode, TASK_STATE_RUNNABLE);
return;
end if;
case syscall is
when INIT_DEVACCESS => init_do_reg_devaccess
(caller_id, params, mode);
#if CONFIG_KERNEL_DMA_ENABLE
when INIT_DMA => ewok.syscalls.dma.init_do_reg_dma
(caller_id, params, mode);
when INIT_DMA_SHM => ewok.syscalls.dma.init_do_reg_dma_shm
(caller_id, params, mode);
#end if;
when INIT_GETTASKID => init_do_get_taskid (caller_id, params, mode);
when INIT_DONE => init_do_done (caller_id, mode);
end case;
end sys_init;
end ewok.syscalls.init;
|
-- Copyright (c) 2017-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.JSON.Values;
separate (WebDriver.Remote)
package body Drivers is
function "+"
(Text : Wide_Wide_String) return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Capabilities_Key : constant Wide_Wide_String := "desiredCapabilities";
type Session_Access is access all Sessions.Session;
-----------------
-- New_Session --
-----------------
overriding function New_Session
(Self : access Driver;
Capabilities : League.JSON.Values.JSON_Value :=
League.JSON.Values.Empty_JSON_Value)
return WebDriver.Sessions.Session_Access
is
Result : constant not null Session_Access := new Sessions.Session;
Command : WebDriver.Remote.Command;
Response : WebDriver.Remote.Response;
begin
Command.Method := Post;
Command.Path.Append ("/session");
Command.Parameters.Insert (+Capabilities_Key, Capabilities);
Response := Self.Executor.Execute (Command);
Result.Session_Id := Response.Value (+"sessionId").To_String;
Result.Executor := Self.Executor'Unchecked_Access;
return WebDriver.Sessions.Session_Access (Result);
end New_Session;
end Drivers;
|
-----------------------------------------------------------------------
-- EL.Methods.Func_1 -- Function Bindings with 1 argument
-- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with EL.Expressions;
with EL.Contexts;
with Util.Beans.Methods;
with Util.Beans.Basic;
generic
type Param1_Type (<>) is limited private;
type Return_Type (<>) is private;
package EL.Methods.Func_1 is
use Util.Beans.Methods;
-- Returns True if the method is a valid method which accepts the arguments
-- defined by the package instantiation.
function Is_Valid (Method : in EL.Expressions.Method_Info) return Boolean;
-- Execute the method describe by the method expression
-- and with the given context. The method signature is:
--
-- function F (Obj : <Bean>; Param : Param1_Type) return Return_Type;
--
-- where <Bean> inherits from <b>Readonly_Bean</b>
-- (See <b>Bind</b> package)
--
-- Raises <b>Invalid_Method</b> if the method referenced by
-- the method expression does not exist or does not match
-- the signature.
function Execute (Method : in EL.Expressions.Method_Expression'Class;
Param : in Param1_Type;
Context : in EL.Contexts.ELContext'Class) return Return_Type;
-- Function access to the proxy.
type Proxy_Access is
access function (O : in Util.Beans.Basic.Readonly_Bean'Class;
P : in Param1_Type) return Return_Type;
-- The binding record which links the method name
-- to the proxy function.
type Binding is new Method_Binding with record
Method : Proxy_Access;
end record;
type Binding_Access is access constant Binding;
-- Proxy for the binding.
-- The proxy declares the binding definition that links
-- the name to the function and it implements the necessary
-- object conversion to translate the <b>Readonly_Bean</b>
-- object to the target object type.
generic
-- Name of the method (as exposed in the EL expression)
Name : String;
-- The bean type
type Bean is new Util.Beans.Basic.Readonly_Bean with private;
-- The bean method to invoke
with function Method (O : in Bean;
P1 : in Param1_Type) return Return_Type;
package Bind is
-- Method that <b>Execute</b> will invoke.
function Method_Access (O : in Util.Beans.Basic.Readonly_Bean'Class;
P1 : in Param1_Type) return Return_Type;
F_NAME : aliased constant String := Name;
-- The proxy binding that can be exposed through
-- the <b>Method_Bean</b> interface.
Proxy : aliased constant Binding
:= Binding '(Name => F_NAME'Access,
Method => Method_Access'Access);
end Bind;
end EL.Methods.Func_1;
|
package MD5 is
type Int32 is mod 2 ** 32;
type MD5_Hash is array (1 .. 4) of Int32;
function MD5 (Input : String) return MD5_Hash;
-- 32 hexadecimal characters + '0x' prefix
subtype MD5_String is String (1 .. 34);
function To_String (Item : MD5_Hash) return MD5_String;
end MD5;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . A T O M I C _ C O U N T E R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2011, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides atomic counter on platforms where it is supported:
-- - all Alpha platforms
-- - all ia64 platforms
-- - all PowerPC platforms
-- - all SPARC V9 platforms
-- - all x86 platforms
-- - all x86_64 platforms
-- Why isn't this package available to application programs???
package System.Atomic_Counters is
pragma Preelaborate;
type Atomic_Counter is limited private;
-- Type for atomic counter objects. Note, initial value of the counter is
-- one. This allows using an atomic counter as member of record types when
-- object of these types are created at library level in preelaborable
-- compilation units.
--
-- Atomic_Counter is declared as private limited type to provide highest
-- level of protection from unexpected use. All available operations are
-- declared below, and this set should be as small as possible.
procedure Increment (Item : in out Atomic_Counter);
pragma Inline_Always (Increment);
-- Increments value of atomic counter.
function Decrement (Item : in out Atomic_Counter) return Boolean;
pragma Inline_Always (Decrement);
-- Decrements value of atomic counter, returns True when value reach zero.
function Is_One (Item : Atomic_Counter) return Boolean;
pragma Inline_Always (Is_One);
-- Returns True when value of the atomic counter is one.
private
type Unsigned_32 is mod 2 ** 32;
type Atomic_Counter is limited record
Value : aliased Unsigned_32 := 1;
pragma Atomic (Value);
end record;
end System.Atomic_Counters;
|
package Memory.DRAM is
type DRAM_Type is new Memory_Type with private;
type DRAM_Pointer is access all DRAM_Type'Class;
function Create_DRAM(cas_cycles : Time_Type; -- CAS latency
rcd_cycles : Time_Type; -- RCD latency
rp_cycles : Time_Type; -- Precharge latency
wb_cycles : Time_Type; -- Write-back latency
multiplier : Time_Type; -- Clock multiplier
word_size : Positive; -- Word size in bytes
page_size : Positive; -- Page size in bytes
page_count : Positive; -- Pages per bank
width : Positive; -- Channel width in bytes
burst_size : Positive; -- Burst size
open_page_mode : Boolean) -- Open or closed page
return DRAM_Pointer;
overriding
function Clone(mem : DRAM_Type) return Memory_Pointer;
overriding
procedure Reset(mem : in out DRAM_Type;
context : in Natural);
overriding
procedure Read(mem : in out DRAM_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Write(mem : in out DRAM_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Idle(mem : in out DRAM_Type;
cycles : in Time_Type);
overriding
function To_String(mem : DRAM_Type) return Unbounded_String;
overriding
function Get_Cost(mem : DRAM_Type) return Cost_Type;
overriding
function Get_Writes(mem : DRAM_Type) return Long_Integer;
overriding
function Get_Word_Size(mem : DRAM_Type) return Positive;
overriding
function Get_Ports(mem : DRAM_Type) return Port_Vector_Type;
overriding
procedure Generate(mem : in DRAM_Type;
sigs : in out Unbounded_String;
code : in out Unbounded_String);
private
type Bank_Type is record
page : Address_Type := Address_Type'Last;
dirty : Boolean := False;
pending : Time_Type := 0;
end record;
package Bank_Vectors is new Vectors(Natural, Bank_Type);
type DRAM_Type is new Memory_Type with record
banks : Bank_Vectors.Vector;
bank_size : Positive;
cas_cycles : Time_Type;
rcd_cycles : Time_Type;
rp_cycles : Time_Type;
wb_cycles : Time_Type;
access_cycles : Time_Type;
multiplier : Time_Type;
word_size : Positive;
page_size : Positive;
page_count : Positive;
width : Positive;
burst_size : Positive;
open_page_mode : Boolean;
writes : Long_Integer := 0;
end record;
end Memory.DRAM;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . C O N T A I N E R S . F O R M A L _ V E C T O R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2015, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
------------------------------------------------------------------------------
-- This spec is derived from package Ada.Containers.Bounded_Vectors in the Ada
-- 2012 RM. The modifications are meant to facilitate formal proofs by making
-- it easier to express properties, and by making the specification of this
-- unit compatible with SPARK 2014. Note that the API of this unit may be
-- subject to incompatible changes as SPARK 2014 evolves.
generic
type Index_Type is range <>;
type Element_Type is private;
with function "=" (Left, Right : Element_Type) return Boolean is <>;
Bounded : Boolean := True;
-- If True, the containers are bounded; the initial capacity is the maximum
-- size, and heap allocation will be avoided. If False, the containers can
-- grow via heap allocation.
package Ada.Containers.Formal_Vectors with
SPARK_Mode
is
pragma Annotate (GNATprove, External_Axiomatization);
pragma Annotate (CodePeer, Skip_Analysis);
subtype Extended_Index is Index_Type'Base
range Index_Type'First - 1 ..
Index_Type'Min (Index_Type'Base'Last - 1, Index_Type'Last) + 1;
No_Index : constant Extended_Index := Extended_Index'First;
subtype Capacity_Range is
Count_Type range 0 .. Count_Type (Index_Type'Last - Index_Type'First + 1);
type Vector (Capacity : Capacity_Range) is limited private with
Default_Initial_Condition => Is_Empty (Vector);
-- In the bounded case, Capacity is the capacity of the container, which
-- never changes. In the unbounded case, Capacity is the initial capacity
-- of the container, and operations such as Reserve_Capacity and Append can
-- increase the capacity. The capacity never shrinks, except in the case of
-- Clear.
--
-- Note that all objects of type Vector are constrained, including in the
-- unbounded case; you can't assign from one object to another if the
-- Capacity is different.
function Empty_Vector return Vector;
function "=" (Left, Right : Vector) return Boolean with
Global => null;
function To_Vector
(New_Item : Element_Type;
Length : Capacity_Range) return Vector
with
Global => null;
function Capacity (Container : Vector) return Capacity_Range with
Global => null,
Post => Capacity'Result >= Container.Capacity;
procedure Reserve_Capacity
(Container : in out Vector;
Capacity : Capacity_Range)
with
Global => null,
Pre => (if Bounded then Capacity <= Container.Capacity);
function Length (Container : Vector) return Capacity_Range with
Global => null;
function Is_Empty (Container : Vector) return Boolean with
Global => null;
procedure Clear (Container : in out Vector) with
Global => null;
-- Note that this reclaims storage in the unbounded case. You need to call
-- this before a container goes out of scope in order to avoid storage
-- leaks. In addition, "X := ..." can leak unless you Clear(X) first.
procedure Assign (Target : in out Vector; Source : Vector) with
Global => null,
Pre => (if Bounded then Length (Source) <= Target.Capacity);
function Copy
(Source : Vector;
Capacity : Capacity_Range := 0) return Vector
with
Global => null,
Pre => (if Bounded then (Capacity = 0 or Length (Source) <= Capacity));
function Element
(Container : Vector;
Index : Index_Type) return Element_Type
with
Global => null,
Pre => Index in First_Index (Container) .. Last_Index (Container);
procedure Replace_Element
(Container : in out Vector;
Index : Index_Type;
New_Item : Element_Type)
with
Global => null,
Pre => Index in First_Index (Container) .. Last_Index (Container);
procedure Append
(Container : in out Vector;
New_Item : Vector)
with
Global => null,
Pre => (if Bounded then
Length (Container) + Length (New_Item) <= Container.Capacity);
procedure Append
(Container : in out Vector;
New_Item : Element_Type)
with
Global => null,
Pre => (if Bounded then
Length (Container) < Container.Capacity);
procedure Delete_Last
(Container : in out Vector)
with
Global => null;
procedure Reverse_Elements (Container : in out Vector) with
Global => null;
procedure Swap (Container : in out Vector; I, J : Index_Type) with
Global => null,
Pre => I in First_Index (Container) .. Last_Index (Container)
and then J in First_Index (Container) .. Last_Index (Container);
function First_Index (Container : Vector) return Index_Type with
Global => null;
function First_Element (Container : Vector) return Element_Type with
Global => null,
Pre => not Is_Empty (Container);
function Last_Index (Container : Vector) return Extended_Index with
Global => null;
function Last_Element (Container : Vector) return Element_Type with
Global => null,
Pre => not Is_Empty (Container);
function Find_Index
(Container : Vector;
Item : Element_Type;
Index : Index_Type := Index_Type'First) return Extended_Index
with
Global => null;
function Reverse_Find_Index
(Container : Vector;
Item : Element_Type;
Index : Index_Type := Index_Type'Last) return Extended_Index
with
Global => null;
function Contains
(Container : Vector;
Item : Element_Type) return Boolean
with
Global => null;
function Has_Element
(Container : Vector;
Position : Extended_Index) return Boolean
with
Global => null;
generic
with function "<" (Left, Right : Element_Type) return Boolean is <>;
package Generic_Sorting with SPARK_Mode is
function Is_Sorted (Container : Vector) return Boolean with
Global => null;
procedure Sort (Container : in out Vector) with
Global => null;
end Generic_Sorting;
function First_To_Previous
(Container : Vector;
Current : Index_Type) return Vector
with
Ghost,
Global => null,
Pre => Current in First_Index (Container) .. Last_Index (Container);
function Current_To_Last
(Container : Vector;
Current : Index_Type) return Vector
with
Ghost,
Global => null,
Pre => Current in First_Index (Container) .. Last_Index (Container);
-- First_To_Previous returns a container containing all elements preceding
-- Current (excluded) in Container. Current_To_Last returns a container
-- containing all elements following Current (included) in Container.
-- These two new functions can be used to express invariant properties in
-- loops which iterate over containers. First_To_Previous returns the part
-- of the container already scanned and Current_To_Last the part not
-- scanned yet.
private
pragma SPARK_Mode (Off);
pragma Inline (First_Index);
pragma Inline (Last_Index);
pragma Inline (Element);
pragma Inline (First_Element);
pragma Inline (Last_Element);
pragma Inline (Replace_Element);
pragma Inline (Contains);
subtype Array_Index is Capacity_Range range 1 .. Capacity_Range'Last;
type Elements_Array is array (Array_Index range <>) of Element_Type;
function "=" (L, R : Elements_Array) return Boolean is abstract;
type Elements_Array_Ptr is access all Elements_Array;
type Vector (Capacity : Capacity_Range) is limited record
-- In the bounded case, the elements are stored in Elements. In the
-- unbounded case, the elements are initially stored in Elements, until
-- we run out of room, then we switch to Elements_Ptr.
Last : Extended_Index := No_Index;
Elements_Ptr : Elements_Array_Ptr := null;
Elements : aliased Elements_Array (1 .. Capacity);
end record;
-- The primary reason Vector is limited is that in the unbounded case, once
-- Elements_Ptr is in use, assignment statements won't work. "X := Y;" will
-- cause X and Y to share state; that is, X.Elements_Ptr = Y.Elements_Ptr,
-- so for example "Append (X, ...);" will modify BOTH X and Y. That would
-- allow SPARK to "prove" things that are false. We could fix that by
-- making Vector a controlled type, and override Adjust to make a deep
-- copy, but finalization is not allowed in SPARK.
--
-- Note that (unfortunately) this means that 'Old and 'Loop_Entry are not
-- allowed on Vectors.
function Empty_Vector return Vector is
((Capacity => 0, others => <>));
end Ada.Containers.Formal_Vectors;
|
with Ada.Text_IO;
with Ada.Containers.Vectors;
with Ada.Numerics.Discrete_Random;
procedure Bulls_Player is
-- package for In-/Output of natural numbers
package Nat_IO is new Ada.Text_IO.Integer_IO (Natural);
-- for comparing length of the vectors
use type Ada.Containers.Count_Type;
-- number of digits
Guessing_Length : constant := 4;
-- digit has to be from 1 to 9
type Digit is range 1 .. 9;
-- a sequence has specified length of digits
type Sequence is array (1 .. Guessing_Length) of Digit;
-- data structure to store the possible answers
package Sequence_Vectors is new Ada.Containers.Vectors
(Element_Type => Sequence,
Index_Type => Positive);
-- check if sequence contains each digit only once
function Is_Valid (S : Sequence) return Boolean is
Appeared : array (Digit) of Boolean := (others => False);
begin
for I in S'Range loop
if Appeared (S (I)) then
return False;
end if;
Appeared (S (I)) := True;
end loop;
return True;
end Is_Valid;
-- calculate all possible sequences and store them in the vector
procedure Fill_Pool (Pool : in out Sequence_Vectors.Vector) is
Finished : exception;
-- count the sequence up by one
function Next (S : Sequence) return Sequence is
Result : Sequence := S;
Index : Positive := S'Last;
begin
loop
-- overflow at a position causes next position to increase
if Result (Index) = Digit'Last then
Result (Index) := Digit'First;
-- overflow at maximum position
-- we have processed all possible values
if Index = Result'First then
raise Finished;
end if;
Index := Index - 1;
else
Result (Index) := Result (Index) + 1;
return Result;
end if;
end loop;
end Next;
X : Sequence := (others => 1);
begin
loop
-- append all valid values
if Is_Valid (X) then
Pool.Append (X);
end if;
X := Next (X);
end loop;
exception
when Finished =>
-- the exception tells us that we have added all possible values
-- simply return and do nothing.
null;
end Fill_Pool;
-- generate a random index from the pool
function Random_Index (Pool : Sequence_Vectors.Vector) return Positive is
subtype Possible_Indexes is Positive range
Pool.First_Index .. Pool.Last_Index;
package Index_Random is new Ada.Numerics.Discrete_Random
(Possible_Indexes);
Index_Gen : Index_Random.Generator;
begin
Index_Random.Reset (Index_Gen);
return Index_Random.Random (Index_Gen);
end Random_Index;
-- get the answer from the player, simple validity tests
procedure Get_Answer (S : Sequence; Bulls, Cows : out Natural) is
Valid : Boolean := False;
begin
Bulls := 0;
Cows := 0;
while not Valid loop
-- output the sequence
Ada.Text_IO.Put ("How is the score for:");
for I in S'Range loop
Ada.Text_IO.Put (Digit'Image (S (I)));
end loop;
Ada.Text_IO.New_Line;
begin
Ada.Text_IO.Put ("Bulls:");
Nat_IO.Get (Bulls);
Ada.Text_IO.Put ("Cows:");
Nat_IO.Get (Cows);
if Bulls + Cows <= Guessing_Length then
Valid := True;
else
Ada.Text_IO.Put_Line ("Invalid answer, try again.");
end if;
exception
when others =>
null;
end;
end loop;
end Get_Answer;
-- remove all sequences that wouldn't give an equivalent score
procedure Strip
(V : in out Sequence_Vectors.Vector;
S : Sequence;
Bulls, Cows : Natural)
is
function Has_To_Be_Removed (Position : Positive) return Boolean is
Testant : constant Sequence := V.Element (Position);
Bull_Score : Natural := 0;
Cows_Score : Natural := 0;
begin
for I in Testant'Range loop
for J in S'Range loop
if Testant (I) = S (J) then
-- same digit at same position: Bull!
if I = J then
Bull_Score := Bull_Score + 1;
else
Cow_Score := Cow_Score + 1;
end if;
end if;
end loop;
end loop;
return Cow_Score /= Cows or else Bull_Score /= Bulls;
end Has_To_Be_Removed;
begin
for Index in reverse V.First_Index .. V.Last_Index loop
if Has_To_Be_Removed (Index) then
V.Delete (Index);
end if;
end loop;
end Strip;
-- main routine
procedure Solve is
All_Sequences : Sequence_Vectors.Vector;
Test_Index : Positive;
Test_Sequence : Sequence;
Bulls, Cows : Natural;
begin
-- generate all possible sequences
Fill_Pool (All_Sequences);
loop
-- pick at random
Test_Index := Random_Index (All_Sequences);
Test_Sequence := All_Sequences.Element (Test_Index);
-- ask player
Get_Answer (Test_Sequence, Bulls, Cows);
-- hooray, we have it!
exit when Bulls = 4;
All_Sequences.Delete (Test_Index);
Strip (All_Sequences, Test_Sequence, Bulls, Cows);
exit when All_Sequences.Length <= 1;
end loop;
if All_Sequences.Length = 0 then
-- oops, shouldn't happen
Ada.Text_IO.Put_Line
("I give up, there has to be a bug in" &
"your scoring or in my algorithm.");
else
if All_Sequences.Length = 1 then
Ada.Text_IO.Put ("The sequence you thought has to be:");
Test_Sequence := All_Sequences.First_Element;
else
Ada.Text_IO.Put ("The sequence you thought of was:");
end if;
for I in Test_Sequence'Range loop
Ada.Text_IO.Put (Digit'Image (Test_Sequence (I)));
end loop;
end if;
end Solve;
begin
-- output blah blah
Ada.Text_IO.Put_Line ("Bulls and Cows, Your turn!");
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Think of a sequence of" &
Integer'Image (Guessing_Length) &
" different digits.");
Ada.Text_IO.Put_Line ("I will try to guess it. For each correctly placed");
Ada.Text_IO.Put_Line ("digit I score 1 Bull. For each digit that is on");
Ada.Text_IO.Put_Line ("the wrong place I score 1 Cow. After each guess");
Ada.Text_IO.Put_Line ("you tell me my score.");
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line ("Let's start.");
Ada.Text_IO.New_Line;
-- solve the puzzle
Solve;
end Bulls_Player;
|
-- -*- Mode: Ada -*-
-- Filename : crash.ads
-- Description : Provides access to the multiboot information from GRUB
-- Legacy and GRUB 2.
-- Author : Luke A. Guest
-- Created On : Thur Nov 17 16:52:05 2016
-- Licence : See LICENCE in the root directory.
with System;
procedure Crash (Source_Location : System.Address; Line : Integer) with
Export => True,
Convention => Ada;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package avx512vlbwintrin_h is
-- Copyright (C) 2014-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 _mm256_mask_mov_epi8
-- skipped func _mm256_maskz_mov_epi8
-- skipped func _mm_mask_mov_epi8
-- skipped func _mm_maskz_mov_epi8
-- skipped func _mm256_mask_storeu_epi8
-- skipped func _mm_mask_storeu_epi8
-- skipped func _mm256_mask_loadu_epi16
-- skipped func _mm256_maskz_loadu_epi16
-- skipped func _mm_mask_loadu_epi16
-- skipped func _mm_maskz_loadu_epi16
-- skipped func _mm256_mask_mov_epi16
-- skipped func _mm256_maskz_mov_epi16
-- skipped func _mm_mask_mov_epi16
-- skipped func _mm_maskz_mov_epi16
-- skipped func _mm256_mask_loadu_epi8
-- skipped func _mm256_maskz_loadu_epi8
-- skipped func _mm_mask_loadu_epi8
-- skipped func _mm_maskz_loadu_epi8
-- skipped func _mm256_cvtepi16_epi8
-- skipped func _mm256_mask_cvtepi16_epi8
-- skipped func _mm256_maskz_cvtepi16_epi8
-- skipped func _mm_cvtsepi16_epi8
-- skipped func _mm_mask_cvtsepi16_epi8
-- skipped func _mm_maskz_cvtsepi16_epi8
-- skipped func _mm256_cvtsepi16_epi8
-- skipped func _mm256_mask_cvtsepi16_epi8
-- skipped func _mm256_maskz_cvtsepi16_epi8
-- skipped func _mm_cvtusepi16_epi8
-- skipped func _mm_mask_cvtusepi16_epi8
-- skipped func _mm_maskz_cvtusepi16_epi8
-- skipped func _mm256_cvtusepi16_epi8
-- skipped func _mm256_mask_cvtusepi16_epi8
-- skipped func _mm256_maskz_cvtusepi16_epi8
-- skipped func _mm256_mask_broadcastb_epi8
-- skipped func _mm256_maskz_broadcastb_epi8
-- skipped func _mm256_mask_set1_epi8
-- skipped func _mm256_maskz_set1_epi8
-- skipped func _mm_mask_broadcastb_epi8
-- skipped func _mm_maskz_broadcastb_epi8
-- skipped func _mm_mask_set1_epi8
-- skipped func _mm_maskz_set1_epi8
-- skipped func _mm256_mask_broadcastw_epi16
-- skipped func _mm256_maskz_broadcastw_epi16
-- skipped func _mm256_mask_set1_epi16
-- skipped func _mm256_maskz_set1_epi16
-- skipped func _mm_mask_broadcastw_epi16
-- skipped func _mm_maskz_broadcastw_epi16
-- skipped func _mm_mask_set1_epi16
-- skipped func _mm_maskz_set1_epi16
-- skipped func _mm256_permutexvar_epi16
-- skipped func _mm256_maskz_permutexvar_epi16
-- skipped func _mm256_mask_permutexvar_epi16
-- skipped func _mm_permutexvar_epi16
-- skipped func _mm_maskz_permutexvar_epi16
-- skipped func _mm_mask_permutexvar_epi16
-- skipped func _mm256_permutex2var_epi16
-- idx
-- skipped func _mm256_mask_permutex2var_epi16
-- idx
-- skipped func _mm256_mask2_permutex2var_epi16
-- idx
-- skipped func _mm256_maskz_permutex2var_epi16
-- idx
-- skipped func _mm_permutex2var_epi16
-- idx
-- skipped func _mm_mask_permutex2var_epi16
-- idx
-- skipped func _mm_mask2_permutex2var_epi16
-- idx
-- skipped func _mm_maskz_permutex2var_epi16
-- idx
-- skipped func _mm256_mask_maddubs_epi16
-- skipped func _mm256_maskz_maddubs_epi16
-- skipped func _mm_mask_maddubs_epi16
-- skipped func _mm_maskz_maddubs_epi16
-- skipped func _mm256_mask_madd_epi16
-- skipped func _mm256_maskz_madd_epi16
-- skipped func _mm_mask_madd_epi16
-- skipped func _mm_maskz_madd_epi16
-- skipped func _mm_movepi8_mask
-- skipped func _mm256_movepi8_mask
-- skipped func _mm_movepi16_mask
-- skipped func _mm256_movepi16_mask
-- skipped func _mm_movm_epi8
-- skipped func _mm256_movm_epi8
-- skipped func _mm_movm_epi16
-- skipped func _mm256_movm_epi16
-- skipped func _mm_test_epi8_mask
-- skipped func _mm_mask_test_epi8_mask
-- skipped func _mm256_test_epi8_mask
-- skipped func _mm256_mask_test_epi8_mask
-- skipped func _mm_test_epi16_mask
-- skipped func _mm_mask_test_epi16_mask
-- skipped func _mm256_test_epi16_mask
-- skipped func _mm256_mask_test_epi16_mask
-- skipped func _mm256_maskz_min_epu16
-- skipped func _mm256_mask_min_epu16
-- skipped func _mm_maskz_min_epu16
-- skipped func _mm_mask_min_epu16
-- skipped func _mm256_maskz_min_epi16
-- skipped func _mm256_mask_min_epi16
-- skipped func _mm256_maskz_max_epu8
-- skipped func _mm256_mask_max_epu8
-- skipped func _mm_maskz_max_epu8
-- skipped func _mm_mask_max_epu8
-- skipped func _mm256_maskz_max_epi8
-- skipped func _mm256_mask_max_epi8
-- skipped func _mm_maskz_max_epi8
-- skipped func _mm_mask_max_epi8
-- skipped func _mm256_maskz_min_epu8
-- skipped func _mm256_mask_min_epu8
-- skipped func _mm_maskz_min_epu8
-- skipped func _mm_mask_min_epu8
-- skipped func _mm256_maskz_min_epi8
-- skipped func _mm256_mask_min_epi8
-- skipped func _mm_maskz_min_epi8
-- skipped func _mm_mask_min_epi8
-- skipped func _mm256_maskz_max_epi16
-- skipped func _mm256_mask_max_epi16
-- skipped func _mm_maskz_max_epi16
-- skipped func _mm_mask_max_epi16
-- skipped func _mm256_maskz_max_epu16
-- skipped func _mm256_mask_max_epu16
-- skipped func _mm_maskz_max_epu16
-- skipped func _mm_mask_max_epu16
-- skipped func _mm_maskz_min_epi16
-- skipped func _mm_mask_min_epi16
-- skipped func _mm256_cmpneq_epi8_mask
-- skipped func _mm256_cmplt_epi8_mask
-- skipped func _mm256_cmpge_epi8_mask
-- skipped func _mm256_cmple_epi8_mask
-- skipped func _mm256_cmpneq_epi16_mask
-- skipped func _mm256_cmplt_epi16_mask
-- skipped func _mm256_cmpge_epi16_mask
-- skipped func _mm256_cmple_epi16_mask
-- skipped func _mm_cmpneq_epu8_mask
-- skipped func _mm_cmplt_epu8_mask
-- skipped func _mm_cmpge_epu8_mask
-- skipped func _mm_cmple_epu8_mask
-- skipped func _mm_cmpneq_epu16_mask
-- skipped func _mm_cmplt_epu16_mask
-- skipped func _mm_cmpge_epu16_mask
-- skipped func _mm_cmple_epu16_mask
-- skipped func _mm_cmpneq_epi8_mask
-- skipped func _mm_cmplt_epi8_mask
-- skipped func _mm_cmpge_epi8_mask
-- skipped func _mm_cmple_epi8_mask
-- skipped func _mm_cmpneq_epi16_mask
-- skipped func _mm_cmplt_epi16_mask
-- skipped func _mm_cmpge_epi16_mask
-- skipped func _mm_cmple_epi16_mask
-- skipped func _mm256_mask_mulhrs_epi16
-- skipped func _mm256_maskz_mulhrs_epi16
-- skipped func _mm256_mask_mulhi_epu16
-- skipped func _mm256_maskz_mulhi_epu16
-- skipped func _mm256_mask_mulhi_epi16
-- skipped func _mm256_maskz_mulhi_epi16
-- skipped func _mm_mask_mulhi_epi16
-- skipped func _mm_maskz_mulhi_epi16
-- skipped func _mm_mask_mulhi_epu16
-- skipped func _mm_maskz_mulhi_epu16
-- skipped func _mm_mask_mulhrs_epi16
-- skipped func _mm_maskz_mulhrs_epi16
-- skipped func _mm256_mask_mullo_epi16
-- skipped func _mm256_maskz_mullo_epi16
-- skipped func _mm_mask_mullo_epi16
-- skipped func _mm_maskz_mullo_epi16
-- skipped func _mm256_mask_cvtepi8_epi16
-- skipped func _mm256_maskz_cvtepi8_epi16
-- skipped func _mm_mask_cvtepi8_epi16
-- skipped func _mm_maskz_cvtepi8_epi16
-- skipped func _mm256_mask_cvtepu8_epi16
-- skipped func _mm256_maskz_cvtepu8_epi16
-- skipped func _mm_mask_cvtepu8_epi16
-- skipped func _mm_maskz_cvtepu8_epi16
-- skipped func _mm256_mask_avg_epu8
-- skipped func _mm256_maskz_avg_epu8
-- skipped func _mm_mask_avg_epu8
-- skipped func _mm_maskz_avg_epu8
-- skipped func _mm256_mask_avg_epu16
-- skipped func _mm256_maskz_avg_epu16
-- skipped func _mm_mask_avg_epu16
-- skipped func _mm_maskz_avg_epu16
-- skipped func _mm256_mask_add_epi8
-- skipped func _mm256_maskz_add_epi8
-- skipped func _mm256_mask_add_epi16
-- skipped func _mm256_maskz_add_epi16
-- skipped func _mm256_mask_adds_epi8
-- skipped func _mm256_maskz_adds_epi8
-- skipped func _mm256_mask_adds_epi16
-- skipped func _mm256_maskz_adds_epi16
-- skipped func _mm256_mask_adds_epu8
-- skipped func _mm256_maskz_adds_epu8
-- skipped func _mm256_mask_adds_epu16
-- skipped func _mm256_maskz_adds_epu16
-- skipped func _mm256_mask_sub_epi8
-- skipped func _mm256_maskz_sub_epi8
-- skipped func _mm256_mask_sub_epi16
-- skipped func _mm256_maskz_sub_epi16
-- skipped func _mm256_mask_subs_epi8
-- skipped func _mm256_maskz_subs_epi8
-- skipped func _mm256_mask_subs_epi16
-- skipped func _mm256_maskz_subs_epi16
-- skipped func _mm256_mask_subs_epu8
-- skipped func _mm256_maskz_subs_epu8
-- skipped func _mm256_mask_subs_epu16
-- skipped func _mm256_maskz_subs_epu16
-- skipped func _mm_mask_add_epi8
-- skipped func _mm_maskz_add_epi8
-- skipped func _mm_mask_add_epi16
-- skipped func _mm_maskz_add_epi16
-- skipped func _mm256_mask_unpackhi_epi8
-- skipped func _mm256_maskz_unpackhi_epi8
-- skipped func _mm_mask_unpackhi_epi8
-- skipped func _mm_maskz_unpackhi_epi8
-- skipped func _mm256_mask_unpackhi_epi16
-- skipped func _mm256_maskz_unpackhi_epi16
-- skipped func _mm_mask_unpackhi_epi16
-- skipped func _mm_maskz_unpackhi_epi16
-- skipped func _mm256_mask_unpacklo_epi8
-- skipped func _mm256_maskz_unpacklo_epi8
-- skipped func _mm_mask_unpacklo_epi8
-- skipped func _mm_maskz_unpacklo_epi8
-- skipped func _mm256_mask_unpacklo_epi16
-- skipped func _mm256_maskz_unpacklo_epi16
-- skipped func _mm_mask_unpacklo_epi16
-- skipped func _mm_maskz_unpacklo_epi16
-- skipped func _mm_cmpeq_epi8_mask
-- skipped func _mm_cmpeq_epu8_mask
-- skipped func _mm_mask_cmpeq_epu8_mask
-- skipped func _mm_mask_cmpeq_epi8_mask
-- skipped func _mm256_cmpeq_epu8_mask
-- skipped func _mm256_cmpeq_epi8_mask
-- skipped func _mm256_mask_cmpeq_epu8_mask
-- skipped func _mm256_mask_cmpeq_epi8_mask
-- skipped func _mm_cmpeq_epu16_mask
-- skipped func _mm_cmpeq_epi16_mask
-- skipped func _mm_mask_cmpeq_epu16_mask
-- skipped func _mm_mask_cmpeq_epi16_mask
-- skipped func _mm256_cmpeq_epu16_mask
-- skipped func _mm256_cmpeq_epi16_mask
-- skipped func _mm256_mask_cmpeq_epu16_mask
-- skipped func _mm256_mask_cmpeq_epi16_mask
-- skipped func _mm_cmpgt_epu8_mask
-- skipped func _mm_cmpgt_epi8_mask
-- skipped func _mm_mask_cmpgt_epu8_mask
-- skipped func _mm_mask_cmpgt_epi8_mask
-- skipped func _mm256_cmpgt_epu8_mask
-- skipped func _mm256_cmpgt_epi8_mask
-- skipped func _mm256_mask_cmpgt_epu8_mask
-- skipped func _mm256_mask_cmpgt_epi8_mask
-- skipped func _mm_cmpgt_epu16_mask
-- skipped func _mm_cmpgt_epi16_mask
-- skipped func _mm_mask_cmpgt_epu16_mask
-- skipped func _mm_mask_cmpgt_epi16_mask
-- skipped func _mm256_cmpgt_epu16_mask
-- skipped func _mm256_cmpgt_epi16_mask
-- skipped func _mm256_mask_cmpgt_epu16_mask
-- skipped func _mm256_mask_cmpgt_epi16_mask
-- skipped func _mm_testn_epi8_mask
-- skipped func _mm_mask_testn_epi8_mask
-- skipped func _mm256_testn_epi8_mask
-- skipped func _mm256_mask_testn_epi8_mask
-- skipped func _mm_testn_epi16_mask
-- skipped func _mm_mask_testn_epi16_mask
-- skipped func _mm256_testn_epi16_mask
-- skipped func _mm256_mask_testn_epi16_mask
-- skipped func _mm256_mask_shuffle_epi8
-- skipped func _mm256_maskz_shuffle_epi8
-- skipped func _mm_mask_shuffle_epi8
-- skipped func _mm_maskz_shuffle_epi8
-- skipped func _mm256_maskz_packs_epi16
-- skipped func _mm256_mask_packs_epi16
-- skipped func _mm_maskz_packs_epi16
-- skipped func _mm_mask_packs_epi16
-- skipped func _mm256_maskz_packus_epi16
-- skipped func _mm256_mask_packus_epi16
-- skipped func _mm_maskz_packus_epi16
-- skipped func _mm_mask_packus_epi16
-- skipped func _mm256_mask_abs_epi8
-- skipped func _mm256_maskz_abs_epi8
-- skipped func _mm_mask_abs_epi8
-- skipped func _mm_maskz_abs_epi8
-- skipped func _mm256_mask_abs_epi16
-- skipped func _mm256_maskz_abs_epi16
-- skipped func _mm_mask_abs_epi16
-- skipped func _mm_maskz_abs_epi16
-- skipped func _mm256_cmpneq_epu8_mask
-- skipped func _mm256_cmplt_epu8_mask
-- skipped func _mm256_cmpge_epu8_mask
-- skipped func _mm256_cmple_epu8_mask
-- skipped func _mm256_cmpneq_epu16_mask
-- skipped func _mm256_cmplt_epu16_mask
-- skipped func _mm256_cmpge_epu16_mask
-- skipped func _mm256_cmple_epu16_mask
-- skipped func _mm256_mask_storeu_epi16
-- skipped func _mm_mask_storeu_epi16
-- skipped func _mm_mask_adds_epi16
-- skipped func _mm_mask_subs_epi8
-- skipped func _mm_maskz_subs_epi8
-- skipped func _mm_mask_subs_epi16
-- skipped func _mm_maskz_subs_epi16
-- skipped func _mm_mask_subs_epu8
-- skipped func _mm_maskz_subs_epu8
-- skipped func _mm_mask_subs_epu16
-- skipped func _mm_maskz_subs_epu16
-- skipped func _mm256_mask_srl_epi16
-- skipped func _mm256_maskz_srl_epi16
-- skipped func _mm_mask_srl_epi16
-- skipped func _mm_maskz_srl_epi16
-- skipped func _mm256_mask_sra_epi16
-- skipped func _mm256_maskz_sra_epi16
-- skipped func _mm_mask_sra_epi16
-- skipped func _mm_maskz_sra_epi16
-- skipped func _mm_maskz_adds_epi16
-- skipped func _mm_mask_adds_epu8
-- skipped func _mm_maskz_adds_epu8
-- skipped func _mm_mask_adds_epu16
-- skipped func _mm_maskz_adds_epu16
-- skipped func _mm_mask_sub_epi8
-- skipped func _mm_maskz_sub_epi8
-- skipped func _mm_mask_sub_epi16
-- skipped func _mm_maskz_sub_epi16
-- skipped func _mm_mask_adds_epi8
-- skipped func _mm_maskz_adds_epi8
-- skipped func _mm_cvtepi16_epi8
-- skipped func _mm_mask_cvtepi16_epi8
-- skipped func _mm_maskz_cvtepi16_epi8
-- skipped func _mm256_srav_epi16
-- skipped func _mm256_mask_srav_epi16
-- skipped func _mm256_maskz_srav_epi16
-- skipped func _mm_srav_epi16
-- skipped func _mm_mask_srav_epi16
-- skipped func _mm_maskz_srav_epi16
-- skipped func _mm256_srlv_epi16
-- skipped func _mm256_mask_srlv_epi16
-- skipped func _mm256_maskz_srlv_epi16
-- skipped func _mm_srlv_epi16
-- skipped func _mm_mask_srlv_epi16
-- skipped func _mm_maskz_srlv_epi16
-- skipped func _mm256_sllv_epi16
-- skipped func _mm256_mask_sllv_epi16
-- skipped func _mm256_maskz_sllv_epi16
-- skipped func _mm_sllv_epi16
-- skipped func _mm_mask_sllv_epi16
-- skipped func _mm_maskz_sllv_epi16
-- skipped func _mm_mask_sll_epi16
-- skipped func _mm_maskz_sll_epi16
-- skipped func _mm256_mask_sll_epi16
-- skipped func _mm256_maskz_sll_epi16
-- skipped func _mm256_maskz_packus_epi32
-- skipped func _mm256_mask_packus_epi32
-- skipped func _mm_maskz_packus_epi32
-- skipped func _mm_mask_packus_epi32
-- skipped func _mm256_maskz_packs_epi32
-- skipped func _mm256_mask_packs_epi32
-- skipped func _mm_maskz_packs_epi32
-- skipped func _mm_mask_packs_epi32
-- skipped func _mm_mask_cmpneq_epu8_mask
-- skipped func _mm_mask_cmplt_epu8_mask
-- skipped func _mm_mask_cmpge_epu8_mask
-- skipped func _mm_mask_cmple_epu8_mask
-- skipped func _mm_mask_cmpneq_epu16_mask
-- skipped func _mm_mask_cmplt_epu16_mask
-- skipped func _mm_mask_cmpge_epu16_mask
-- skipped func _mm_mask_cmple_epu16_mask
-- skipped func _mm_mask_cmpneq_epi8_mask
-- skipped func _mm_mask_cmplt_epi8_mask
-- skipped func _mm_mask_cmpge_epi8_mask
-- skipped func _mm_mask_cmple_epi8_mask
-- skipped func _mm_mask_cmpneq_epi16_mask
-- skipped func _mm_mask_cmplt_epi16_mask
-- skipped func _mm_mask_cmpge_epi16_mask
-- skipped func _mm_mask_cmple_epi16_mask
-- skipped func _mm256_mask_cmpneq_epu8_mask
-- skipped func _mm256_mask_cmplt_epu8_mask
-- skipped func _mm256_mask_cmpge_epu8_mask
-- skipped func _mm256_mask_cmple_epu8_mask
-- skipped func _mm256_mask_cmpneq_epu16_mask
-- skipped func _mm256_mask_cmplt_epu16_mask
-- skipped func _mm256_mask_cmpge_epu16_mask
-- skipped func _mm256_mask_cmple_epu16_mask
-- skipped func _mm256_mask_cmpneq_epi8_mask
-- skipped func _mm256_mask_cmplt_epi8_mask
-- skipped func _mm256_mask_cmpge_epi8_mask
-- skipped func _mm256_mask_cmple_epi8_mask
-- skipped func _mm256_mask_cmpneq_epi16_mask
-- skipped func _mm256_mask_cmplt_epi16_mask
-- skipped func _mm256_mask_cmpge_epi16_mask
-- skipped func _mm256_mask_cmple_epi16_mask
end avx512vlbwintrin_h;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package x86_64_linux_gnu_asm_ptrace_h is
-- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
-- For
-- this struct defines the way the registers are stored on the
-- stack during a system call.
-- * C ABI says these regs are callee-preserved. They aren't saved on kernel entry
-- * unless syscall needs a complete, fully filled "struct pt_regs".
--
type pt_regs is record
r15 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:46
r14 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:47
r13 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:48
r12 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:49
rbp : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:50
rbx : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:51
r11 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:53
r10 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:54
r9 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:55
r8 : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:56
rax : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:57
rcx : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:58
rdx : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:59
rsi : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:60
rdi : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:61
orig_rax : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:66
rip : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:68
cs : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:69
eflags : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:70
rsp : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:71
ss : aliased unsigned_long; -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:72
end record;
pragma Convention (C_Pass_By_Copy, pt_regs); -- /usr/include/x86_64-linux-gnu/asm/ptrace.h:41
-- These regs are callee-clobbered. Always saved on kernel entry.
-- * On syscall entry, this is syscall#. On CPU exception, this is error code.
-- * On hw interrupt, it's IRQ number:
--
-- Return frame for iretq
-- top of stack page
end x86_64_linux_gnu_asm_ptrace_h;
|
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
with Ada.Wide_Wide_Text_IO;
with AWS.Client;
with AWS.Headers;
with AWS.Messages;
with AWS.Response;
with League.String_Vectors;
with League.JSON.Documents;
with League.JSON.Arrays;
with League.JSON.Objects;
with League.JSON.Values;
package body Photo_Files is
function "+"
(Item : Wide_Wide_String) return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
procedure Read_Albums (Self : in out Context);
procedure Read_Album
(Self : in out Context;
Name : League.Strings.Universal_String);
procedure Read_File
(Self : in out Context;
Base_URL : League.Strings.Universal_String);
-------------
-- GetAttr --
-------------
function GetAttr
(Path : in String; St_Buf : access Photos.System.Stat_Type)
return Photos.System.Error_Type
is
use type Photos.System.St_Mode_Type;
Context : constant Context_Access := Photos.General.Get_User_Data;
List : constant League.String_Vectors.Universal_String_Vector :=
League.Strings.From_UTF_8_String (Path).Split
('/', League.Strings.Skip_Empty);
begin
if Context.Albums.Is_Empty then
Read_Albums (Context.all);
end if;
if Path = "/" then
St_Buf.St_Mode := Photos.System.S_IFDIR or 8#755#;
St_Buf.St_Nlink := 2;
elsif List.Length = 1 and then
Context.Albums.Contains (List (1))
then
St_Buf.St_Mode := Photos.System.S_IFDIR or 8#755#;
St_Buf.St_Nlink := 3;
elsif List.Length = 2 and then
Context.Albums.Contains (List (1))
then
if Context.Albums (List (1)).Files.Is_Empty then
Read_Album (Context.all, List (1));
end if;
if Context.Albums (List (1)).Files.Contains (List (2)) then
St_Buf.St_Mode := Photos.System.S_IFREG or 8#444#;
St_Buf.St_Nlink := 1;
St_Buf.St_Size := 10_000_000;
else
return Photos.System.ENOENT;
end if;
else
return Photos.System.ENOENT;
end if;
return Photos.System.EXIT_SUCCESS;
end GetAttr;
----------
-- Open --
----------
function Open
(Path : in String;
Fi : access Photos.System.File_Info_Type)
return Photos.System.Error_Type
is
use type Photos.System.RW_Type;
Context : constant Context_Access := Photos.General.Get_User_Data;
List : constant League.String_Vectors.Universal_String_Vector :=
League.Strings.From_UTF_8_String (Path).Split
('/', League.Strings.Skip_Empty);
begin
if List.Length = 2 and then
Context.Albums.Contains (List (1))
then
if Context.Albums (List (1)).Files.Is_Empty then
Read_Album (Context.all, List (1));
end if;
if Context.Albums (List (1)).Files.Contains (List (2)) then
if Fi.all.Flags.RW /= Photos.System.O_RDONLY then
return Photos.System.EACCES;
else
return Photos.System.EXIT_SUCCESS;
end if;
end if;
end if;
return Photos.System.ENOENT;
end Open;
function Read
(Path : in String;
Buffer : access Photos.Buffer_Type;
Size : in out Natural;
Offset : in Natural;
Fi : access Photos.System.File_Info_Type)
return Photos.System.Error_Type
is
pragma Unreferenced (Fi);
use type League.Strings.Universal_String;
Context : constant Context_Access := Photos.General.Get_User_Data;
Value : constant League.Strings.Universal_String :=
League.Strings.From_UTF_8_String (Path);
List : constant League.String_Vectors.Universal_String_Vector :=
Value.Split ('/', League.Strings.Skip_Empty);
Length : Natural;
begin
if List.Length = 2 and then
Context.Albums.Contains (List (1))
then
if Context.Albums (List (1)).Files.Is_Empty then
Read_Album (Context.all, List (1));
end if;
if Context.Albums (List (1)).Files.Contains (List (2)) then
if Context.Cached_File /= Value then
Read_File
(Context.all,
Context.Albums (List (1)).Files (List (2)).Base_URL);
Context.Cached_File := Value;
end if;
Length := Natural (Context.Cached_Data.Length);
Ada.Wide_Wide_Text_IO.Put_Line
("Offset=" & Natural'Wide_Wide_Image (Offset)
& " Size=" & Natural'Wide_Wide_Image (Size));
if Offset <= Length then
if Offset + Size > Length then
Size := Length - Offset;
end if;
for J in 1 .. Size loop
Buffer (J) := Context.Cached_Data.Element
(Ada.Streams.Stream_Element_Offset (Offset + J));
end loop;
else
Size := 0;
end if;
Ada.Wide_Wide_Text_IO.Put_Line
("Length=" & Natural'Wide_Wide_Image (Length)
& " Size=" & Natural'Wide_Wide_Image (Size));
return Photos.System.EXIT_SUCCESS;
end if;
end if;
return Photos.System.ENOENT;
end Read;
----------------
-- Read_Album --
----------------
procedure Read_Album
(Self : in out Context;
Name : League.Strings.Universal_String)
is
Id : constant League.Strings.Universal_String :=
Self.Albums (Name).Id;
Request : League.JSON.Objects.JSON_Object;
Result : AWS.Response.Data;
Headers : AWS.Headers.List;
begin
Request.Insert (+"albumId", League.JSON.Values.To_JSON_Value (Id));
AWS.Headers.Add
(Headers,
"Authorization",
"Bearer " & Self.Access_Token.To_UTF_8_String);
Result := AWS.Client.Post
("https://photoslibrary.googleapis.com/v1/mediaItems:search",
Headers => Headers,
Data => Request.To_JSON_Document.To_JSON.To_Stream_Element_Array,
Content_Type => "application/json");
if AWS.Response.Status_Code (Result) not in AWS.Messages.Success then
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Messages.Status_Code'Wide_Wide_Image
(AWS.Response.Status_Code (Result)));
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Response.Content_Length_Type'Wide_Wide_Image
(AWS.Response.Content_Length (Result)));
Ada.Text_IO.Put_Line (AWS.Response.Content_Type (Result));
Ada.Text_IO.Put_Line (AWS.Response.Message_Body (Result));
raise Program_Error with "Unexpected response";
end if;
declare
Files : File_Maps.Map renames Self.Albums (Name).Files;
Document : constant League.JSON.Documents.JSON_Document :=
League.JSON.Documents.From_JSON
(AWS.Response.Message_Body (Result));
Items : League.JSON.Arrays.JSON_Array;
begin
Items := Document.To_JSON_Object.Value (+"mediaItems").To_Array;
for J in 1 .. Items.Length loop
declare
Item : constant League.JSON.Objects.JSON_Object :=
Items.Element (J).To_Object;
Id : League.Strings.Universal_String;
Filename : League.Strings.Universal_String;
baseUrl : League.Strings.Universal_String;
begin
Id := Item.Value (+"id").To_String;
Filename := Item.Value (+"filename").To_String;
baseUrl := Item.Value (+"baseUrl").To_String;
Files.Include (Filename, (Id, baseUrl));
Ada.Wide_Wide_Text_IO.Put_Line (baseUrl.To_Wide_Wide_String);
Ada.Wide_Wide_Text_IO.Put_Line (Filename.To_Wide_Wide_String);
end;
end loop;
end;
end Read_Album;
-----------------
-- Read_Albums --
-----------------
procedure Read_Albums (Self : in out Context) is
Result : AWS.Response.Data;
Headers : AWS.Headers.List;
begin
AWS.Headers.Add
(Headers,
"Authorization",
"Bearer " & Self.Access_Token.To_UTF_8_String);
Result := AWS.Client.Get
(URL => "https://photoslibrary.googleapis.com/v1/sharedAlbums",
Headers => Headers);
if AWS.Response.Status_Code (Result) not in AWS.Messages.Success then
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Messages.Status_Code'Wide_Wide_Image
(AWS.Response.Status_Code (Result)));
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Response.Content_Length_Type'Wide_Wide_Image
(AWS.Response.Content_Length (Result)));
Ada.Text_IO.Put_Line (AWS.Response.Content_Type (Result));
Ada.Text_IO.Put_Line (AWS.Response.Message_Body (Result));
raise Program_Error with "Unexpected response";
end if;
declare
Document : constant League.JSON.Documents.JSON_Document :=
League.JSON.Documents.From_JSON
(AWS.Response.Message_Body (Result));
Albums : League.JSON.Arrays.JSON_Array;
begin
Albums :=
Document.To_JSON_Object.Value (+"sharedAlbums").To_Array;
for J in 1 .. Albums.Length loop
declare
Album : constant League.JSON.Objects.JSON_Object :=
Albums.Element (J).To_Object;
Id : League.Strings.Universal_String;
Title : League.Strings.Universal_String;
begin
Id := Album.Value (+"id").To_String;
Title := Album.Value (+"title").To_String;
Ada.Wide_Wide_Text_IO.Put_Line (Id.To_Wide_Wide_String);
Ada.Wide_Wide_Text_IO.Put_Line (Title.To_Wide_Wide_String);
if Title.Is_Empty then
Title := Id;
end if;
Self.Albums.Include (Title, (Id, File_Maps.Empty_Map));
end;
end loop;
end;
end Read_Albums;
---------------
-- Read_File --
---------------
procedure Read_File
(Self : in out Context;
Base_URL : League.Strings.Universal_String)
is
Result : AWS.Response.Data;
begin
Result := AWS.Client.Get
(URL => Base_URL.To_UTF_8_String & "=w1920-h1080");
if AWS.Response.Status_Code (Result) not in AWS.Messages.Success then
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Messages.Status_Code'Wide_Wide_Image
(AWS.Response.Status_Code (Result)));
Ada.Wide_Wide_Text_IO.Put_Line
(AWS.Response.Content_Length_Type'Wide_Wide_Image
(AWS.Response.Content_Length (Result)));
Ada.Text_IO.Put_Line (AWS.Response.Content_Type (Result));
Ada.Text_IO.Put_Line (AWS.Response.Message_Body (Result));
raise Program_Error with "Unexpected response";
end if;
Self.Cached_Data.Clear;
Self.Cached_Data.Append (AWS.Response.Message_Body (Result));
Ada.Wide_Wide_Text_IO.Put_Line
(Self.Cached_File.To_Wide_Wide_String
& " => "
& Ada.Streams.Stream_Element_Offset'Wide_Wide_Image
(Self.Cached_Data.Length));
end Read_File;
-------------
-- ReadDir --
-------------
function ReadDir
(Path : in String;
Filler : access procedure
(Name : String; St_Buf : Photos.System.Stat_Access; Offset : Natural);
Offset : in Natural; Fi : access Photos.System.File_Info_Type)
return Photos.System.Error_Type
is
pragma Unreferenced (Fi, Offset);
Context : constant Context_Access := Photos.General.Get_User_Data;
List : constant League.String_Vectors.Universal_String_Vector :=
League.Strings.From_UTF_8_String (Path).Split
('/', League.Strings.Skip_Empty);
begin
if Context.Albums.Is_Empty then
Read_Albums (Context.all);
end if;
if Path = "/" then
Filler (".", null, 0);
Filler ("..", null, 0);
for Cursor in Context.Albums.Iterate loop
Filler (Album_Maps.Key (Cursor).To_UTF_8_String, null, 0);
end loop;
return Photos.System.EXIT_SUCCESS;
elsif List.Length = 1 and then
Context.Albums.Contains (List (1))
then
if Context.Albums (List (1)).Files.Is_Empty then
Read_Album (Context.all, List (1));
end if;
Filler (".", null, 0);
Filler ("..", null, 0);
for Cursor in Context.Albums (List (1)).Files.Iterate loop
Filler (File_Maps.Key (Cursor).To_UTF_8_String, null, 0);
end loop;
return Photos.System.EXIT_SUCCESS;
end if;
return Photos.System.ENOENT;
end ReadDir;
end Photo_Files;
|
with text_io; use text_io;
procedure main is
begin
put_line("It works!");
end main;
|
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- 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.
--//////////////////////////////////////////////////////////
--//////////////////////////////////////////////////////////
--/ @summary
--/ Network module
--/
--/ @description
--/ Socket-based communication, utilities and higher-level
--/ network protocols (HTTP, FTP).
package Sf.Network is
type sfFtpDirectoryResponse is null record;
type sfFtpDirectoryResponse_Ptr is access all sfFtpDirectoryResponse;
type sfFtpListingResponse is null record;
type sfFtpListingResponse_Ptr is access all sfFtpListingResponse;
type sfFtpResponse is null record;
type sfFtpResponse_Ptr is access all sfFtpResponse;
type sfFtp is null record;
type sfFtp_Ptr is access all sfFtp;
type sfHttpRequest is null record;
type sfHttpRequest_Ptr is access all sfHttpRequest;
type sfHttpResponse is null record;
type sfHttpResponse_Ptr is access all sfHttpResponse;
type sfHttp is null record;
type sfHttp_Ptr is access all sfHttp;
type sfPacket is null record;
type sfPacket_Ptr is access all sfPacket;
type sfSocketSelector is null record;
type sfSocketSelector_Ptr is access all sfSocketSelector;
type sfTcpListener is null record;
type sfTcpListener_Ptr is access all sfTcpListener;
type sfTcpSocket is null record;
type sfTcpSocket_Ptr is access all sfTcpSocket;
type sfUdpSocket is null record;
type sfUdpSocket_Ptr is access all sfUdpSocket;
private
pragma Convention (C, sfFtpDirectoryResponse);
pragma Convention (C, sfFtpDirectoryResponse_Ptr);
pragma Convention (C, sfFtpListingResponse);
pragma Convention (C, sfFtpListingResponse_Ptr);
pragma Convention (C, sfFtpResponse);
pragma Convention (C, sfFtpResponse_Ptr);
pragma Convention (C, sfFtp);
pragma Convention (C, sfFtp_Ptr);
pragma Convention (C, sfHttpRequest);
pragma Convention (C, sfHttpRequest_Ptr);
pragma Convention (C, sfHttpResponse);
pragma Convention (C, sfHttpResponse_Ptr);
pragma Convention (C, sfHttp);
pragma Convention (C, sfHttp_Ptr);
pragma Convention (C, sfPacket);
pragma Convention (C, sfPacket_Ptr);
pragma Convention (C, sfSocketSelector);
pragma Convention (C, sfSocketSelector_Ptr);
pragma Convention (C, sfTcpSocket);
pragma Convention (C, sfTcpSocket_Ptr);
pragma Convention (C, sfUdpSocket);
pragma Convention (C, sfUdpSocket_Ptr);
end Sf.Network;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Assertions; use Ada.Assertions;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Calendar; use Ada.Calendar;
with Ada.Directories; use Ada.Directories;
procedure Scramble_With_Harness is
-------------------------- Main Subprograms ---------------------------
procedure getFilename(File_Name : out String; Len : out Integer);
function processText(File_Name : String) return Integer;
procedure scrambleWord(Str : in out String);
function randomInt(A : Integer; B : Integer) return Integer;
function isWord(Str : String) return Boolean;
-----------------------------------------------------------------------
-- Verifies a filename and returns it to main
procedure getFilename(File_Name : out String; Len : out Integer) is
begin
File_Name_Check: loop
-- Prompt user for filename
Put("Please enter a filename, or 'test/sample.txt': ");
Get_Line(File_Name, Len);
-- Filename testing. Assumed to ask again if loop doesn't break
if (File_Name(File_Name'First .. Len) = "" or else
File_Name(File_Name'First .. File_Name'First) = "." or else
File_Name(File_Name'First .. File_Name'First) = "/" or else
exists(File_Name(File_Name'First .. Len)) = False) then
Put_Line("Could not open file! Re-try.");
New_Line;
-- Loop will break and function will exit assuming all tests pass
else exit File_Name_Check;
end if;
end loop File_Name_Check;
end getFilename;
-- Processes the words within a file
function processText(File_Name : String) return Integer is
Word_Count : Integer := 0;
Fp : Ada.Text_IO.File_Type;
begin
-- Open the file for playback
Open(File => Fp,
Mode => In_File,
Name => File_Name);
-- Print every original line
Put_Line(" O r i g i n a l T e x t");
Put_Line("--------------------------------------------------" &
"----------------------");
while not End_Of_File(Fp) loop
Put_Line(Get_Line(Fp));
end loop;
New_Line;
Close(Fp);
-- Attempt to open the file again, this time for processing
Open(File => Fp,
Mode => In_File,
Name => File_Name);
-- Process file by iterating over every line
Put_Line(" T r a n s p o s e d T e x t");
Put_Line("--------------------------------------------------" &
"----------------------");
-- Like above, we iterate over the file
while not End_Of_File(Fp) loop
declare
-- Left and Right represent slice/substring indices for parsing
-- Line is the fixed string holding the line. Because it is within
-- block scope with the loop, we do not have to use unbounded
-- string. This is because we re-create it every loop iteration.
Left : Integer := 1;
Right : Integer := 1;
Line : String := Get_Line(Fp);
begin
-- Parsing algorithm that aims to 'greedily' select the largest
-- word using Left and Right to index potential substrings, and
-- then moving to the next potential candidate.
-- This algorithm will backtrack upon discovering a non-alpha
-- character and use the backtracked 'word' as the scramble target.
-- Otherwise, it will just print out, one-by-one, as many non-
-- alpha characters as possible before returning to the greedy
-- word building algorithm as mentioned earlier.
-- This algorithm, as shown in this while loop, will only run for
-- the length of the current line. This is for bounds-checking.
while Left <= Line'Length and then Right <= Line'Length loop
-- If current substring is a word...
if isWord(Line(Left .. Right)) then
-- ...then greedily grow it until it is no longer a word.
while Right <= Line'Length and then
isWord(Line(Left .. Right)) loop
Right := Right + 1;
end loop;
-- Upon finding a non-alpha character, we backtrack 1
Right := Right - 1;
-- We know that this backtracked word is the largest
-- possible substring that satisfies isWord(), so we go on
-- to scramble it in-place and then print it.
scrambleWord(Line(Left .. Right));
Put(Line(Left .. Right));
-- In doing so, we increment the word count.
Word_Count := Word_Count + 1;
-- Then, we set both Left and Right indices into the first
-- character following the word we just scrambled.
Right := Right + 1;
Left := Right;
-- Otherwise, if the current substring is NOT a word...
else
-- ...we don't want to do anything else but print it.
Put(Line(Left .. Right));
-- In fact, we print AS MANY non-alphabetic characters as
-- possible. As long as there are more, it will always
-- fall back to this else statement.
Left := Left + 1;
Right := Right + 1;
end if;
end loop; -- We are finished parsing the file
New_Line; -- Putting a new line for cleanliness
end; -- End loop scope
end loop; -- End the actual loop
-- Close the file when we are done and return word count
Close(Fp);
return Word_Count;
end processText;
-- Scramble a string / "word" in-place
procedure scrambleWord(Str : in out String) is
-- Copies the string not including first/last char.
Copy : String := Str(Str'First + 1 .. Str'Last - 1);
Rand : Integer;
begin
-- Only words 4 char. or greater will be scrambled
if Str'Length > 3 then
-- Iterate over the middle characters
for i in 2 .. Str'Length - 1 loop
-- Keep looping until we get a unique letter
loop
Rand := randomInt(A => Copy'First, B => Copy'Last + 1);
exit when Copy(Rand) /= '.';
end loop;
-- Copy this character over to the scrambled word
Str(Str'First + i - 1) := Copy(Rand);
-- Mark the original character spot as "used".
-- This method only works because only true words
-- are passed to scrambleWord().
Copy(Rand) := '.';
end loop;
end if;
end scrambleWord;
-- Check if a string is completely alphabetic
function isWord(Str : String) return Boolean is
begin
-- Check for empty string
if Str = "" then
return False;
end if;
-- Check if each character is alphabetic
for i in Str'First .. Str'Last loop
if not Is_Letter(Str(i)) then
return False;
end if;
end loop;
-- If we reach this point, it's a good string and we exit
return true;
end isWord;
-- Generate a random number on the interval [A, B) (incl. - excl.)
function randomInt(A : Integer; B : Integer) return Integer is
subtype IntGen is Integer range A .. B - 1;
package RandGen is new Ada.Numerics.Discrete_Random (IntGen);
use RandGen;
RandIntGen : Generator;
begin
-- Generate our number
Reset(RandIntGen);
return Random(RandIntGen);
end randomInt;
------------------------- Testing Subprograms -------------------------
procedure Test_randomInt(A : Integer; B : Integer);
procedure Test_isWord(Str : String; Expected : Boolean);
procedure Test_scrambleWord(Str : String);
procedure Test_derangement(Str : String);
-----------------------------------------------------------------------
-- Tests the return value of randomInt()
procedure Test_randomInt(A : Integer; B : Integer) is
Rand_Value : Integer;
Checks : array(-10000 .. 10000) of Integer := (others => 0);
begin
-- Assert all outputs are in range for 10,000 trials
for i in 1 .. 10000 loop
Rand_Value := randomInt(A, B);
Checks(Rand_Value) := 1;
Assert(Rand_Value >= A and Rand_Value < B, "randomInt(" &
Integer'Image(A) & "," & Integer'Image(B) &
") failed!" & " Got " & Integer'Image(Rand_Value));
end loop;
-- Assert function is surjective / "onto" range
for i in A .. B - 1 loop
Assert(Checks(i) = 1, "Value " & Integer'Image(i) &
" not found in range [" & Integer'Image(A) & ", " &
Integer'Image(B) & ").");
end loop;
Put_Line(" PASS: randomInt(" & Integer'Image(A) & "," &
Integer'Image(B) & ")");
end Test_randomInt;
-- Tests the return value of isWord()
procedure Test_isWord(Str : String; Expected : Boolean) is
begin
-- Assert word status
Assert(isWord(Str) = Expected, "isWord(" & str & ") failed! " &
"Expected " & Boolean'Image(Expected));
Put_Line(" PASS: isWord(" & str & ")");
end test_isWord;
-- Tests the word scrambling of scrambleWord()
procedure Test_scrambleWord(Str : String) is
Copy : String := Str;
Temp : String := Str;
begin
-- Scramble a copy of the word
scrambleWord(Copy);
-- Assert that words with length < 4 are untouched
if Str'Length < 4 then
Assert(Str = Copy, "scrambleWord(" & Str & ") failed" &
" and returned " & Copy & ". Words less than" &
" 4 characters must be untouched!");
end if;
-- Assert that scrambleWord() creates an actual word
Assert(isWord(Copy) = True, Copy & " is not a word!");
-- Assert the two strings are the same length
Assert(Copy'Length = Str'Length, Copy & " != " & Str);
-- Assert that the first letters match
Assert(Copy(Copy'First) = Str(Str'First),
"scrambleWord(" & Str & ") => " & Copy &
" failed. First letters don't match!");
-- Assert that the last letters match
Assert(Copy(Copy'Last) = Str(Str'Last),
"scrambleWord(" & Str & ") => " & Copy &
" failed. Last letters don't match!");
-- Confirm that the two words are anagrams by checking letters
for i in Copy'First .. Copy'Last loop
for j in Temp'First .. Temp'Last loop
if Copy(i) = Temp(j) then
Temp(j) := '.';
end if;
end loop;
end loop;
-- Verify the guard character, the period. Because we verify
-- that isWord() gives true, the period is free to use
for i in Temp'First .. Temp'Last loop
Assert(Temp(i) = '.', Copy & " and " & Str &
" are not anagrams!");
end loop;
-- Test passed at this point
Put_Line(" PASS: scrambleWord(" & Str & ")");
end Test_scrambleWord;
-- Tests substring derangement. HELLO has a potential derangement
-- at ELL. The first and last character must remain, but all of the
-- characters in-between must be moved. Of course, sometimes they,
-- by complete chance, don't. Which is why I will run 1000 trials.
--
-- The goal is to find at least one derangement, which is where all
-- of the non-first non-last characters are out of order.
--
-- This test will run after all the Test_scrambleWord() trials so
-- that I know scrambleWord() is capable of creating anagrams.
procedure Test_derangement(Str : String) is
Copy : String := Str;
Found : Boolean := True;
begin
if Str'Length > 3 then
for trial in 1 .. 1000 loop
Found := True;
scrambleWord(Copy);
for i in Copy'First + 1 .. Copy'Last - 1 loop
if Copy(i) = Str(i) then
Found := False;
end if;
end loop;
if Found then
exit;
end if;
end loop;
Assert(Found, "Could not force derangement on " &
"scrambleWord(" & Str & "). Returned " & Copy);
Put_Line(" PASS: scrambleWord(" & Str & ")");
end if;
end Test_derangement;
-- Main variables
File_Name_Len : Integer;
File_Name : String(1..5000);
Num_Words : Integer;
Start_Time, End_Time : Time;
Millis : Duration;
-----------------------------------------------------------------------
begin
-- Test harness
Put_Line(ESC & "[32m" & "Starting automatic tests!" & ESC & "[0m");
Start_Time := Clock;
-- randomInt() range test
Put_Line("Testing randomInt()...");
New_Line;
Test_randomInt(1, 5);
Test_randomInt(10, 500);
Test_randomInt(-10, 5);
Test_randomInt(-10, 0);
Test_randomInt(0, 50);
Test_randomInt(-100, 100);
Test_randomInt(-1, 0);
Test_randomInt(1, 2);
Test_randomInt(2, 3);
Test_randomInt(10, 11);
Test_randomInt(100, 101);
Test_randomInt(1000, 1001);
New_Line;
-- isWord() true test
Put_Line("Testing isWord() for true...");
New_Line;
Test_isWord("a", true);
Test_isWord("z", true);
Test_isWord("abasjdklflksdf", true);
Test_isWord("A", true);
Test_isWord("Z", true);
Test_isWord("AZ", true);
Test_isWord("ASDFJSADFJSADKFJAG", true);
Test_isWord("ABCDEFGHIJKLMNOPQRSTUVWXYZ", true);
Test_isWord("abcdefghijklmnopqrstuvwxys", true);
for i in 65 .. 90 loop
Test_isWord(Character'Image(Character'Val(i))(2 .. 2), true);
end loop;
for i in 97 .. 122 loop
Test_isWord(Character'Image(Character'Val(i))(2 .. 2), true);
end loop;
New_Line;
-- isWord() false test
Put_Line("Testing isWord() for false...");
New_Line;
Test_isWord("", false);
Test_isWord("1", false);
Test_isWord("28375498275", false);
Test_isWord("!", false);
Test_isWord(" ", false);
Test_isWord("ABa313", false);
Test_isWord("aaskdfjaskdfashdf1", false);
Test_isWord("hsadfjasdf[aksdjfaskdf", false);
Test_isWord("sakdjfl`aksdjf", false);
Test_isWord("adsf~~asdfasdf", false);
Test_isWord("ABCDEFGHIJKL~MNOPQRSTUVWXYZ", false);
Test_isWord("1234567890][';/.[p,p.][}{>{}>}{>{}", false);
for i in 32 .. 64 loop
Test_isWord(Character'Image(Character'Val(i))(2 .. 2), false);
end loop;
for i in 91 .. 96 loop
Test_isWord(Character'Image(Character'Val(i))(2 .. 2), false);
end loop;
for i in 123 .. 126 loop
Test_isWord(Character'Image(Character'Val(i))(2 .. 2), false);
end loop;
New_Line;
-- isWord() escape sequence test
Put_Line("Testing isWord() for false with escape sequences...");
New_Line;
for i in 0 .. 31 loop
Test_isWord(ESC & Integer'Image(i), false);
end loop;
Test_isWord(ESC & Integer'Image(127), false);
New_Line;
-- scrambleWord() anagram test
Put_Line("Testing scrambleWord()...");
New_Line;
Test_scrambleWord("a");
Test_scrambleWord("z");
Test_scrambleWord("ad");
Test_scrambleWord("hel");
Test_scrambleWord("HASfdhasFDDFhasdf");
Test_scrambleWord("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
Test_scrambleWord("abcdefghijklmnopqrstuvwxyz");
Test_scrambleWord("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
Test_scrambleWord("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB");
Test_scrambleWord("ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ");
Test_scrambleWord("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
Test_scrambleWord("IJUSTLOSTTHEGAMEEEEEEEEEEEEEEEEEEEEEEEEEE");
Test_scrambleWord("ABCDEFGHIJKLMNOPQRSTUVWXYZ" &
"abcdefghijklmnopqrstuvwxyz");
Test_scrambleWord("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno" &
"pqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcd" &
"efghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRS" &
"TUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGH" &
"IJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw" &
"xyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl" &
"mnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZa" &
"bcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP" &
"QRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDE" &
"FGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst" &
"uvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi" &
"jklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX" &
"YZabcdefABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFG");
New_Line;
-- scrambleWord() derangement test
Put_Line("Testing derangements...");
New_Line;
Test_derangement("ABCDEFGH");
Test_derangement("abcdefgh");
Test_derangement("IJKLMNOP");
Test_derangement("ijklmnop");
Test_derangement("QRSTUVWX");
Test_derangement("qrstuvwx");
Test_derangement("YZ");
Test_derangement("yz");
New_Line;
Put_Line(ESC & "[32m" & "Passed all automatic tests" & ESC &"[0m");
Put_Line(ESC & "[32m" & "Starting manual tests!" & ESC & "[0m");
-- processTest() manual analysis
New_Line;
Put_Line("Testing 1000 most common English words...");
Put_Line("You should be able to recognize these");
New_Line;
Num_Words := processText("test/test.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing punctuation nightmare");
Put_Line("Punctuation should be intact; words scrambled");
New_Line;
Num_Words := processText("test/punctuation.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing 3-letter words");
Put_Line("There should be NO change");
New_Line;
Num_Words := processText("test/3letter.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing 2-letter words");
Put_Line("There should be NO change");
New_Line;
Num_Words := processText("test/2letter.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing 1-letter words");
Put_Line("There should be NO change");
New_Line;
Num_Words := processText("test/1letter.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing d2.txt");
New_Line;
Num_Words := processText("test/d2.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing dijkstra.txt");
New_Line;
Num_Words := processText("test/dijkstra.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing middleE.txt");
New_Line;
Num_Words := processText("test/middleE.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing z.txt");
New_Line;
Num_Words := processText("test/z.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing empire.txt");
New_Line;
Num_Words := processText("test/empire.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Testing quotations.txt");
New_Line;
Num_Words := processText("test/quotations.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
New_Line;
Put_Line("Arthur's behemoth");
New_Line;
-- Num_Words := processText("test/amurica.txt");
New_Line;
Put_Line("Word Count: " & Integer'Image(Num_Words));
End_Time := Clock;
Millis := (End_Time - Start_Time) * 1000;
New_Line;
Put_Line(ESC & "[32m" & "All automatic tests passed!" & ESC & "[0m");
Put_Line("Now, scroll up and manually examine your sample outputs.");
New_Line;
Put_Line(ESC & "[32m" & "Runtime: " & Duration'Image(Millis) & ESC & "[0m");
-- Main code
getFilename(File_Name, File_Name_Len);
New_Line;
Num_Words := processText(File_Name(1..File_Name_Len));
New_Line;
Put_Line("Word count: " & Integer'Image(Num_Words));
end Scramble_With_Harness;
-----------------------------------------------------------------------
|
with UxAS.Comms.Transport.Socket_Configurations;
use UxAS.Comms.Transport.Socket_Configurations;
with ZMQ.Sockets;
package UxAS.Comms.Transport.ZeroMQ_Socket_Configurations is
type ZeroMq_Socket_Configuration is new Socket_Configuration with record
Zmq_Socket_Type : ZMQ.Sockets.Socket_Type;
Is_Server_Bind : Boolean;
Receive_High_Water_Mark : Int32;
Send_High_Water_Mark : Int32;
Number_Of_IO_Threads : Positive;
end record;
function Make -- a convenience routine
(Network_Name : String;
Socket_Address : String;
Is_Receive : Boolean;
Zmq_Socket_Type : ZMQ.Sockets.Socket_Type;
Number_Of_IO_Threads : Positive;
Is_Server_Bind : Boolean;
Receive_High_Water_Mark : Int32;
Send_High_Water_Mark : Int32)
return ZeroMq_Socket_Configuration
with Pre'Class =>
Network_Name'Length in 1 .. Max_Network_Name_Length and then
Socket_Address'Length in 1 .. Max_Socket_Address_Length;
end UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
|
-----------------------------------------------------------------------
-- util-encoders -- Encode/Decode streams and strings from one format to another
-- Copyright (C) 2009, 2010, 2011, 2016, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Unchecked_Deallocation;
with Util.Encoders.Base16;
with Util.Encoders.Base64;
with Util.Encoders.SHA1;
package body Util.Encoders is
use Ada;
use Ada.Strings.Unbounded;
subtype Offset is Ada.Streams.Stream_Element_Offset;
procedure Free is
new Ada.Unchecked_Deallocation (Transformer'Class, Transformer_Access);
-- ------------------------------
-- Create the secret key from the password string.
-- ------------------------------
function Create (Password : in String) return Secret_Key is
I : Stream_Element_Offset := 1;
begin
return Key : Secret_Key (Length => Password'Length) do
for C of Password loop
Key.Secret (I) := Character'Pos (C);
I := I + 1;
end loop;
end return;
end Create;
procedure Create (Password : in String;
Key : out Secret_Key) is
I : Stream_Element_Offset := 1;
begin
for C of Password loop
Key.Secret (I) := Character'Pos (C);
I := I + 1;
end loop;
end Create;
procedure Create (Password : in Stream_Element_Array;
Key : out Secret_Key) is
begin
Key.Secret := Password;
end Create;
overriding
procedure Finalize (Object : in out Secret_Key) is
begin
for I in Object.Secret'Range loop
Object.Secret (I) := 0;
end loop;
end Finalize;
-- ------------------------------
-- Encodes the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> encoder.
--
-- Returns the encoded string.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be encoded.
-- Raises the <b>Not_Supported</b> exception if the encoding is not
-- supported.
-- ------------------------------
function Encode (E : in Encoder;
Data : in String) return String is
begin
if E.Encode = null then
raise Not_Supported with "There is no encoder";
end if;
return E.Encode.Transform (Data);
end Encode;
function Encode_Binary (E : in Encoder;
Data : in Ada.Streams.Stream_Element_Array) return String is
begin
if E.Encode = null then
raise Not_Supported with "There is no encoder";
end if;
return E.Encode.all.Transform (Data);
end Encode_Binary;
function Encode_Unsigned_16 (E : in Encoder;
Value : in Interfaces.Unsigned_16) return String is
use type Interfaces.Unsigned_16;
Data : Ada.Streams.Stream_Element_Array (1 .. 2);
Val : Interfaces.Unsigned_16 := Value;
begin
for I in reverse Data'Range loop
Data (I) := Stream_Element (Val and 16#0ff#);
Val := Interfaces.Shift_Right (Val, 8);
end loop;
return E.Encode_Binary (Data);
end Encode_Unsigned_16;
function Encode_Unsigned_32 (E : in Encoder;
Value : in Interfaces.Unsigned_32) return String is
use type Interfaces.Unsigned_32;
Data : Ada.Streams.Stream_Element_Array (1 .. 4);
Val : Interfaces.Unsigned_32 := Value;
begin
for I in reverse Data'Range loop
Data (I) := Stream_Element (Val and 16#0ff#);
Val := Interfaces.Shift_Right (Val, 8);
end loop;
return E.Encode_Binary (Data);
end Encode_Unsigned_32;
function Encode_Unsigned_64 (E : in Encoder;
Value : in Interfaces.Unsigned_64) return String is
use type Interfaces.Unsigned_64;
Data : Ada.Streams.Stream_Element_Array (1 .. 8);
Val : Interfaces.Unsigned_64 := Value;
begin
for I in reverse Data'Range loop
Data (I) := Stream_Element (Val and 16#0ff#);
Val := Interfaces.Shift_Right (Val, 8);
end loop;
return E.Encode_Binary (Data);
end Encode_Unsigned_64;
-- ------------------------------
-- Decodes the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> encoder.
--
-- Returns the encoded string.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be decoded.
-- Raises the <b>Not_Supported</b> exception if the decoding is not
-- supported.
-- ------------------------------
function Decode (E : in Decoder;
Data : in String) return String is
begin
if E.Decode = null then
raise Not_Supported with "There is no decoder";
end if;
return E.Decode.Transform (Data);
end Decode;
function Decode_Binary (E : in Decoder;
Data : in String) return Ada.Streams.Stream_Element_Array is
Buf : Ada.Streams.Stream_Element_Array (Offset (Data'First) .. Offset (Data'Last));
for Buf'Address use Data'Address;
begin
if E.Decode = null then
raise Not_Supported with "There is no decoder";
end if;
return E.Decode.all.Transform (Buf);
end Decode_Binary;
MIN_BUFFER_SIZE : constant Streams.Stream_Element_Offset := 64;
MAX_BUFFER_SIZE : constant Streams.Stream_Element_Offset := 2_048;
function Best_Size (Length : Natural) return Streams.Stream_Element_Offset;
pragma Inline (Best_Size);
-- ------------------------------
-- Compute a good size for allocating a buffer on the stack
-- ------------------------------
function Best_Size (Length : Natural) return Streams.Stream_Element_Offset is
begin
if Length < Natural (MIN_BUFFER_SIZE) then
return MIN_BUFFER_SIZE;
elsif Length > Natural (MAX_BUFFER_SIZE) then
return MAX_BUFFER_SIZE;
else
return Streams.Stream_Element_Offset (((Length + 15) / 16) * 16);
end if;
end Best_Size;
-- ------------------------------
-- Transform the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> transformer.
--
-- Returns the transformed string.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be transformed
-- ------------------------------
function Transform (E : in out Transformer'Class;
Data : in String) return String is
Buf_Size : constant Streams.Stream_Element_Offset := Best_Size (Data'Length);
Buf : Streams.Stream_Element_Array (1 .. Buf_Size);
Res : Streams.Stream_Element_Array (1 .. Buf_Size);
Tmp : String (1 .. Natural (Buf_Size));
Result : Ada.Strings.Unbounded.Unbounded_String;
Pos : Natural := Data'First;
Last : Streams.Stream_Element_Offset;
begin
while Pos <= Data'Last loop
declare
Last_Encoded : Streams.Stream_Element_Offset;
First_Encoded : Streams.Stream_Element_Offset := 1;
Size : Streams.Stream_Element_Offset;
Next_Pos : Natural;
begin
-- Fill the stream buffer with our input string
Size := Streams.Stream_Element_Offset (Data'Last - Pos + 1);
if Size > Buf'Length then
Size := Buf'Length;
end if;
for I in 1 .. Size loop
Buf (I) := Character'Pos (Data (Natural (I) + Pos - 1));
end loop;
Next_Pos := Pos + Natural (Size);
-- Encode that buffer and put the result in out result string.
loop
E.Transform (Data => Buf (First_Encoded .. Size),
Into => Res,
Encoded => Last_Encoded,
Last => Last);
-- If the encoder generated nothing, move the position backward
-- to take into account the remaining bytes not taken into account.
if Last < 1 then
Next_Pos := Next_Pos - Natural (Size - First_Encoded + 1);
exit;
end if;
for I in 1 .. Last loop
Tmp (Natural (I)) := Character'Val (Res (I));
end loop;
Append (Result, Tmp (1 .. Natural (Last)));
exit when Last_Encoded = Size;
First_Encoded := Last_Encoded + 1;
end loop;
-- The encoder cannot encode the data
if Pos = Next_Pos then
raise Encoding_Error with "Encoding cannot proceed";
end if;
Pos := Next_Pos;
end;
end loop;
Last := 0;
E.Finish (Into => Res,
Last => Last);
if Last > 0 then
for I in 1 .. Last loop
Tmp (Natural (I)) := Character'Val (Res (I));
end loop;
Append (Result, Tmp (1 .. Natural (Last)));
end if;
return To_String (Result);
end Transform;
-- ------------------------------
-- Transform the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> transformer and return the data in
-- the <b>Into</b> array, setting <b>Last</b> to the last index.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be transformed
-- ------------------------------
procedure Transform (E : in out Transformer'Class;
Data : in String;
Into : out Ada.Streams.Stream_Element_Array;
Last : out Ada.Streams.Stream_Element_Offset) is
Buf_Size : constant Streams.Stream_Element_Offset := Best_Size (Data'Length);
Buf : Streams.Stream_Element_Array (1 .. Buf_Size);
Pos : Natural := Data'First;
First : Streams.Stream_Element_Offset := Into'First;
begin
Last := Into'First - 1;
while Pos <= Data'Last and Last < Into'Last loop
declare
Last_Encoded : Streams.Stream_Element_Offset;
Size : Streams.Stream_Element_Offset;
Next_Pos : Natural;
begin
-- Fill the stream buffer with our input string
Size := Streams.Stream_Element_Offset (Data'Last - Pos + 1);
if Size > Buf'Length then
Size := Buf'Length;
end if;
for I in 1 .. Size loop
Buf (I) := Character'Pos (Data (Natural (I) + Pos - 1));
end loop;
Next_Pos := Pos + Natural (Size);
-- Encode that buffer and put the result in the output data array.
E.Transform (Data => Buf (1 .. Size),
Into => Into (First .. Into'Last),
Encoded => Last_Encoded,
Last => Last);
-- If the encoded has not used all the data, update the position for the next run.
if Last_Encoded /= Size then
Next_Pos := Next_Pos - Natural (Size - Last_Encoded + 1);
end if;
-- The encoder cannot encode the data
if Pos = Next_Pos then
raise Encoding_Error with "Encoding cannot proceed";
end if;
First := Last;
Pos := Next_Pos;
end;
end loop;
if Pos <= Data'Last then
raise Encoding_Error with "Not enough space for encoding";
end if;
end Transform;
-- ------------------------------
-- Transform the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> transformer.
--
-- Returns the transformed string.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be transformed
-- ------------------------------
function Transform (E : in out Transformer'Class;
Data : in Streams.Stream_Element_Array) return String is
Buf_Size : constant Streams.Stream_Element_Offset := Best_Size (Data'Length);
Res : Streams.Stream_Element_Array (1 .. Buf_Size);
Tmp : String (1 .. Natural (Buf_Size));
Result : Ada.Strings.Unbounded.Unbounded_String;
Last_Encoded : Streams.Stream_Element_Offset;
Last : Streams.Stream_Element_Offset;
begin
-- Encode that buffer and put the result in out result string.
E.Transform (Data => Data,
Into => Res,
Encoded => Last_Encoded,
Last => Last);
E.Finish (Res (Last + 1 .. Res'Last), Last);
for I in 1 .. Last loop
Tmp (Natural (I)) := Character'Val (Res (I));
end loop;
Append (Result, Tmp (1 .. Natural (Last)));
return To_String (Result);
end Transform;
-- ------------------------------
-- Transform the input string <b>Data</b> using the transformation
-- rules provided by the <b>E</b> transformer.
--
-- Returns the transformed string.
--
-- Raises the <b>Encoding_Error</b> exception if the source string
-- cannot be transformed
-- ------------------------------
function Transform (E : in out Transformer'Class;
Data : in Streams.Stream_Element_Array)
return Streams.Stream_Element_Array is
Buf_Size : constant Streams.Stream_Element_Offset := Best_Size (Data'Length);
Res : Streams.Stream_Element_Array (1 .. Buf_Size);
Last_Encoded : Streams.Stream_Element_Offset;
Last : Streams.Stream_Element_Offset;
begin
-- Encode that buffer and put the result in out result string.
E.Transform (Data => Data,
Into => Res,
Encoded => Last_Encoded,
Last => Last);
E.Finish (Res (Last + 1 .. Res'Last), Last);
return Res (1 .. Last);
end Transform;
-- ------------------------------
-- Transform the input data into the target string.
-- ------------------------------
procedure Convert (E : in out Transformer'Class;
Data : in Ada.Streams.Stream_Element_Array;
Into : out String) is
Buf : Ada.Streams.Stream_Element_Array (Offset (Into'First) .. Offset (Into'Last));
for Buf'Address use Into'Address;
Last_Encoded : Offset;
Last : Offset;
begin
E.Transform (Data => Data,
Into => Buf,
Last => Last,
Encoded => Last_Encoded);
E.Finish (Buf (Last + 1 .. Buf'Last), Last);
end Convert;
-- ------------------------------
-- Encode the value represented by <tt>Val</tt> in the stream array <tt>Into</tt> starting
-- at position <tt>Pos</tt> in that array. The value is encoded using LEB128 format, 7-bits
-- at a time until all non zero bits are written. The <tt>Last</tt> parameter is updated
-- to indicate the position of the last valid byte written in <tt>Into</tt>.
-- ------------------------------
procedure Encode_LEB128 (Into : in out Ada.Streams.Stream_Element_Array;
Pos : in Ada.Streams.Stream_Element_Offset;
Val : in Interfaces.Unsigned_64;
Last : out Ada.Streams.Stream_Element_Offset) is
use type Interfaces.Unsigned_64;
P : Ada.Streams.Stream_Element_Offset := Pos;
V, U : Interfaces.Unsigned_64;
begin
V := Val;
loop
if V < 16#07F# then
Into (P) := Ada.Streams.Stream_Element (V);
Last := P;
return;
end if;
U := V and 16#07F#;
Into (P) := Ada.Streams.Stream_Element (U or 16#80#);
P := P + 1;
V := Interfaces.Shift_Right (V, 7);
end loop;
end Encode_LEB128;
-- ------------------------------
-- Decode from the byte array <tt>From</tt> the value represented as LEB128 format starting
-- at position <tt>Pos</tt> in that array. After decoding, the <tt>Last</tt> index is updated
-- to indicate the last position in the byte array.
-- ------------------------------
procedure Decode_LEB128 (From : in Ada.Streams.Stream_Element_Array;
Pos : in Ada.Streams.Stream_Element_Offset;
Val : out Interfaces.Unsigned_64;
Last : out Ada.Streams.Stream_Element_Offset) is
use type Interfaces.Unsigned_64;
use type Interfaces.Unsigned_8;
P : Ada.Streams.Stream_Element_Offset := Pos;
Value : Interfaces.Unsigned_64 := 0;
V : Interfaces.Unsigned_8;
Shift : Integer := 0;
begin
loop
V := Interfaces.Unsigned_8 (From (P));
if (V and 16#80#) = 0 then
Val := Interfaces.Shift_Left (Interfaces.Unsigned_64 (V), Shift) or Value;
Last := P + 1;
return;
end if;
V := V and 16#07F#;
Value := Interfaces.Shift_Left (Interfaces.Unsigned_64 (V), Shift) or Value;
P := P + 1;
Shift := Shift + 7;
end loop;
end Decode_LEB128;
-- ------------------------------
-- Create the encoder object for the specified algorithm.
-- ------------------------------
function Create (Name : String) return Encoder is
begin
if Name = BASE_16 or Name = HEX then
return E : Encoder do
E.Encode := new Util.Encoders.Base16.Encoder;
end return;
elsif Name = BASE_64 then
return E : Encoder do
E.Encode := new Util.Encoders.Base64.Encoder;
end return;
elsif Name = BASE_64_URL then
return E : Encoder do
E.Encode := Util.Encoders.Base64.Create_URL_Encoder;
end return;
elsif Name = HASH_SHA1 then
return E : Encoder do
E.Encode := new Util.Encoders.SHA1.Encoder;
end return;
end if;
raise Not_Supported with "Invalid encoder: " & Name;
end Create;
-- ------------------------------
-- Create the encoder object for the specified algorithm.
-- ------------------------------
function Create (Name : String) return Decoder is
begin
if Name = BASE_16 or Name = HEX then
return E : Decoder do
E.Decode := new Util.Encoders.Base16.Decoder;
end return;
elsif Name = BASE_64 then
return E : Decoder do
E.Decode := new Util.Encoders.Base64.Decoder;
end return;
elsif Name = BASE_64_URL then
return E : Decoder do
E.Decode := Util.Encoders.Base64.Create_URL_Decoder;
end return;
elsif Name = HASH_SHA1 then
return E : Decoder do
E.Decode := new Util.Encoders.Base64.Decoder;
end return;
end if;
raise Not_Supported with "Invalid encoder: " & Name;
end Create;
-- ------------------------------
-- Delete the transformers
-- ------------------------------
overriding
procedure Finalize (E : in out Encoder) is
begin
Free (E.Encode);
end Finalize;
-- ------------------------------
-- Delete the transformers
-- ------------------------------
overriding
procedure Finalize (E : in out Decoder) is
begin
Free (E.Decode);
end Finalize;
end Util.Encoders;
|
package Problem_58 is
-- Starting with 1 and spiralling anticlockwise in the following way, a
-- square spiral with side length 7 is formed.
--
-- 37 36 35 34 33 32 31
-- 38 17 16 15 14 13 30
-- 39 18 5 4 3 12 29
-- 40 19 6 1 2 11 28
-- 41 20 7 8 9 10 27
-- 42 21 22 23 24 25 26
-- 43 44 45 46 47 48 49
--
-- It is interesting to note that the odd squares lie along the bottom right
-- diagonal, but what is more interesting is that 8 out of the 13 numbers
-- lying along both diagonals are prime; that is, a ratio of 8/13 ~= 62%.
--
-- If one complete new layer is wrapped around the spiral above, a square
-- spiral with side length 9 will be formed. If this process is continued,
-- what is the side length of the square spiral for which the ratio of primes
-- along both diagonals first falls below 10%?
procedure Solve;
end Problem_58;
|
with HAL; use HAL;
with HAL.Framebuffer; use HAL.Framebuffer;
with HAL.Bitmap;
private with STM32.Device;
private with STM32.DMA2D_Bitmap;
private with STM32.LTDC;
private with OTM8009A;
private with HAL.DSI;
package Framebuffer_OTM8009A is
LCD_Natural_Width : constant := 800;
LCD_Natural_Height : constant := 480;
type Frame_Buffer is limited
new HAL.Framebuffer.Frame_Buffer_Display with private;
overriding function Get_Max_Layers
(Display : Frame_Buffer) return Positive;
overriding function Is_Supported
(Display : Frame_Buffer;
Mode : HAL.Framebuffer.FB_Color_Mode) return Boolean;
procedure Initialize
(Display : in out Frame_Buffer;
Orientation : HAL.Framebuffer.Display_Orientation := Default;
Mode : HAL.Framebuffer.Wait_Mode := Interrupt);
overriding function Initialized
(Display : Frame_Buffer) return Boolean;
overriding procedure Set_Orientation
(Display : in out Frame_Buffer;
Orientation : HAL.Framebuffer.Display_Orientation);
overriding procedure Set_Mode
(Display : in out Frame_Buffer;
Mode : HAL.Framebuffer.Wait_Mode);
overriding function Get_Width
(Display : Frame_Buffer) return Positive;
overriding function Get_Height
(Display : Frame_Buffer) return Positive;
overriding function Is_Swapped
(Display : Frame_Buffer) return Boolean;
overriding procedure Set_Background
(Display : Frame_Buffer; R, G, B : Byte);
overriding procedure Initialize_Layer
(Display : in out Frame_Buffer;
Layer : Positive;
Mode : HAL.Framebuffer.FB_Color_Mode;
X : Natural := 0;
Y : Natural := 0;
Width : Positive := Positive'Last;
Height : Positive := Positive'Last);
-- All layers are double buffered, so an explicit call to Update_Layer
-- needs to be performed to actually display the current buffer attached
-- to the layer.
-- Alloc is called to create the actual buffer.
overriding function Initialized
(Display : Frame_Buffer;
Layer : Positive) return Boolean;
overriding procedure Update_Layer
(Display : in out Frame_Buffer;
Layer : Positive;
Copy_Back : Boolean := False);
-- Updates the layer so that the hidden buffer is displayed.
-- If Copy_Back is set, then the newly displayed buffer will be copied back
-- the the hidden buffer
overriding procedure Update_Layers
(Display : in out Frame_Buffer);
-- Updates all initialized layers at once with their respective hidden
-- buffer
overriding function Get_Color_Mode
(Display : Frame_Buffer;
Layer : Positive) return HAL.Framebuffer.FB_Color_Mode;
overriding function Get_Hidden_Buffer
(Display : Frame_Buffer;
Layer : Positive) return HAL.Bitmap.Bitmap_Buffer'Class;
-- Retrieves the current hidden buffer for the layer.
overriding function Get_Pixel_Size
(Display : Frame_Buffer;
Layer : Positive) return Positive;
private
type FB_Array is array (STM32.LTDC.LCD_Layer) of
STM32.DMA2D_Bitmap.DMA2D_Bitmap_Buffer;
LCD_Channel : constant HAL.DSI.DSI_Virtual_Channel_ID := 0;
-- Only one display on this board, constant to 0
type Frame_Buffer is limited new HAL.Framebuffer.Frame_Buffer_Display with
record
Device : OTM8009A.OTM8009A_Device
(DSI_Host => STM32.Device.DSIHOST'Access,
Channel_Id => LCD_Channel);
Swapped : Boolean;
Buffers : FB_Array := (others => STM32.DMA2D_Bitmap.Null_Buffer);
end record;
type Frame_Buffer_Ref is access all Frame_Buffer;
end Framebuffer_OTM8009A;
|
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
procedure Weed_All (W : in out String) is
-- In contrast to the Latin phase where the prioritization takes
-- is at runtime for the English most of the work is done beforehand
-- both the setting of a priority class for each entry in the scan
-- of DICTLINE and the WEEDing/TRIMming done herein
Kill : Boolean := False;
begin
if W'Length <= 1 then
--if W (1) not in 'A'..'Z' then
Kill := True;
--end if;
else
if -- WORDS words
W = "DECL" or
W = "DAT" or
W = "ACC" or
W = "ABL" or
W = "ADJ" or
W = "AD" or
W = "BC" or
W = "COMP" or
W = "SUPER" or
W = "DEMONST" or
W = "INDEF" or
W = "INF" or
W = "KLUDGE" or
W = "NE" or
W = "NW" or
W = "SE" or
W = "SW" or
W = "NT" or
W = "OT" or
W = "PASS" or
W = "L+S" or
W = "St"
then
Kill := True;
end if;
if
-- Articles
W = "a" or
W = "an" or
W = "the" or
W = "The" or
-- Others
W = "no"
then
Kill := True;
end if;
if -- Fragments
W = "ad" or
W = "de" or
W = "bi" or
W = "di" or
W = "re" or
W = "ex"
then
Kill := True;
end if;
if
W = "abb" or -- Abbreviation
-- Number suffixes
W = "st" or -- 1st
W = "nd" or -- 2nd
W = "rd" or -- 3rd
W = "th" -- 4th
then
Kill := True;
end if;
-- Kill abbreviations
if W (W'Last) = '.' then
Kill := True;
end if;
-- Kill internal AREA
if W (W'Last) = ':' then
Kill := True;
end if;
end if;
if Kill then
for I in W'Range loop
W (I) := '\';
end loop;
end if;
--PUT_LINE ("WEEDed ANY " & W & '|' & BOOLEAN'IMAGE (KILL));
end Weed_All;
|
with fann_c.Binding;
with fann_c.Fann;
with fann_c.Pointers;
with Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test
is
use Interfaces, interfaces.C,
fann_c, fann_c.Binding, fann_c.Pointers;
calc_out : fann_type_Pointer;
input : array (1 .. 1) of aliased fann_Type;
ann : fann_c.fann.pointer := fann_create_from_file (new_String ("xor_float.net"));
begin
input (1) := 0.0;
for Each in 1 .. 20 loop
calc_out := fann_run (ann, input (1)'unchecked_access);
put_Line ("linear neural test (" & fann_Type'Image (input (1)) & ") -> " & fann_Type'Image (calc_out.all));
input (1) := input (1) + 0.05;
end loop;
fann_destroy (ann);
end Test;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K I N G . R E S T R I C T E D . S T A G E S --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1999-2001 Ada Core Technologies --
-- --
-- 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). --
-- --
------------------------------------------------------------------------------
pragma Style_Checks (All_Checks);
-- Turn off subprogram alpha order check, since we group soft link
-- bodies and also separate off subprograms for restricted GNARLI.
-- This is a simplified version of the System.Tasking.Stages package,
-- intended to be used in a restricted run time.
-- This package represents the high level tasking interface used by the
-- compiler to expand Ada 95 tasking constructs into simpler run time calls.
pragma Polling (Off);
-- Turn off polling, we do not want ATC polling to take place during
-- tasking operations. It causes infinite loops and other problems.
with System.Parameters;
-- used for Size_Type
with System.Task_Info;
-- used for Task_Info_Type
-- Task_Image_Type
with System.Task_Primitives.Operations;
-- used for Enter_Task
-- Write_Lock
-- Unlock
-- Wakeup
-- Get_Priority
with System.Soft_Links;
-- used for the non-tasking routines (*_NT) that refer to global data.
-- They are needed here before the tasking run time has been elaborated.
-- used for Create_TSD
-- This package also provides initialization routines for task specific data.
-- The GNARL must call these to be sure that all non-tasking
-- Ada constructs will work.
with System.Secondary_Stack;
-- used for SS_Init;
with System.Storage_Elements;
-- used for Storage_Array;
package body System.Tasking.Restricted.Stages is
package STPO renames System.Task_Primitives.Operations;
package SSL renames System.Soft_Links;
package SSE renames System.Storage_Elements;
package SST renames System.Secondary_Stack;
use System.Task_Primitives;
use System.Task_Primitives.Operations;
use System.Task_Info;
Global_Task_Lock : aliased System.Task_Primitives.RTS_Lock;
-- This is a global lock; it is used to execute in mutual exclusion
-- from all other tasks. It is only used by Task_Lock and Task_Unlock.
-----------------------------------------------------------------
-- Tasking versions of services needed by non-tasking programs --
-----------------------------------------------------------------
procedure Task_Lock;
-- Locks out other tasks. Preceding a section of code by Task_Lock and
-- following it by Task_Unlock creates a critical region. This is used
-- for ensuring that a region of non-tasking code (such as code used to
-- allocate memory) is tasking safe. Note that it is valid for calls to
-- Task_Lock/Task_Unlock to be nested, and this must work properly, i.e.
-- only the corresponding outer level Task_Unlock will actually unlock.
procedure Task_Unlock;
-- Releases lock previously set by call to Task_Lock. In the nested case,
-- all nested locks must be released before other tasks competing for the
-- tasking lock are released.
function Get_Jmpbuf_Address return Address;
procedure Set_Jmpbuf_Address (Addr : Address);
function Get_Sec_Stack_Addr return Address;
procedure Set_Sec_Stack_Addr (Addr : Address);
function Get_Machine_State_Addr return Address;
procedure Set_Machine_State_Addr (Addr : Address);
function Get_Current_Excep return SSL.EOA;
procedure Timed_Delay_T (Time : Duration; Mode : Integer);
------------------------
-- Local Subprograms --
------------------------
procedure Task_Wrapper (Self_ID : Task_ID);
-- This is the procedure that is called by the GNULL from the
-- new context when a task is created. It waits for activation
-- and then calls the task body procedure. When the task body
-- procedure completes, it terminates the task.
procedure Terminate_Task (Self_ID : Task_ID);
-- Terminate the calling task.
-- This should only be called by the Task_Wrapper procedure.
procedure Init_RTS;
-- This procedure performs the initialization of the GNARL.
-- It consists of initializing the environment task, global locks, and
-- installing tasking versions of certain operations used by the compiler.
-- Init_RTS is called during elaboration.
---------------
-- Task_Lock --
---------------
procedure Task_Lock is
begin
STPO.Write_Lock (Global_Task_Lock'Access);
end Task_Lock;
-----------------
-- Task_Unlock --
-----------------
procedure Task_Unlock is
begin
STPO.Unlock (Global_Task_Lock'Access);
end Task_Unlock;
----------------------
-- Soft-Link Bodies --
----------------------
function Get_Current_Excep return SSL.EOA is
begin
return STPO.Self.Common.Compiler_Data.Current_Excep'Access;
end Get_Current_Excep;
function Get_Jmpbuf_Address return Address is
begin
return STPO.Self.Common.Compiler_Data.Jmpbuf_Address;
end Get_Jmpbuf_Address;
function Get_Machine_State_Addr return Address is
begin
return STPO.Self.Common.Compiler_Data.Machine_State_Addr;
end Get_Machine_State_Addr;
function Get_Sec_Stack_Addr return Address is
begin
return STPO.Self.Common.Compiler_Data.Sec_Stack_Addr;
end Get_Sec_Stack_Addr;
procedure Set_Jmpbuf_Address (Addr : Address) is
begin
STPO.Self.Common.Compiler_Data.Jmpbuf_Address := Addr;
end Set_Jmpbuf_Address;
procedure Set_Machine_State_Addr (Addr : Address) is
begin
STPO.Self.Common.Compiler_Data.Machine_State_Addr := Addr;
end Set_Machine_State_Addr;
procedure Set_Sec_Stack_Addr (Addr : Address) is
begin
STPO.Self.Common.Compiler_Data.Sec_Stack_Addr := Addr;
end Set_Sec_Stack_Addr;
------------------
-- Task_Wrapper --
------------------
-- The task wrapper is a procedure that is called first for each task
-- task body, and which in turn calls the compiler-generated task body
-- procedure. The wrapper's main job is to do initialization for the task.
-- The variable ID in the task wrapper is used to implement the Self
-- function on targets where there is a fast way to find the stack base
-- of the current thread, since it should be at a fixed offset from the
-- stack base.
procedure Task_Wrapper (Self_ID : Task_ID) is
ID : Task_ID := Self_ID;
pragma Volatile (ID);
-- Do not delete this variable.
-- In some targets, we need this variable to implement a fast Self.
use type System.Parameters.Size_Type;
use type SSE.Storage_Offset;
Secondary_Stack : aliased SSE.Storage_Array
(1 .. Self_ID.Common.Compiler_Data.Pri_Stack_Info.Size *
SSE.Storage_Offset (Parameters.Sec_Stack_Ratio) / 100);
Secondary_Stack_Address : System.Address := Secondary_Stack'Address;
begin
if not Parameters.Sec_Stack_Dynamic then
Self_ID.Common.Compiler_Data.Sec_Stack_Addr :=
Secondary_Stack'Address;
SST.SS_Init (Secondary_Stack_Address, Integer (Secondary_Stack'Last));
end if;
-- Initialize low-level TCB components, that
-- cannot be initialized by the creator.
Enter_Task (Self_ID);
-- Call the task body procedure.
begin
-- We are separating the following portion of the code in order to
-- place the exception handlers in a different block.
-- In this way we do not call Set_Jmpbuf_Address (which needs
-- Self) before we set Self in Enter_Task.
-- Note that in the case of Ravenscar HI-E where there are no
-- exception handlers, the exception handler is suppressed.
-- Call the task body procedure.
Self_ID.Common.Task_Entry_Point (Self_ID.Common.Task_Arg);
Terminate_Task (Self_ID);
exception
when others =>
Terminate_Task (Self_ID);
end;
end Task_Wrapper;
-------------------
-- Timed_Delay_T --
-------------------
procedure Timed_Delay_T (Time : Duration; Mode : Integer) is
begin
STPO.Timed_Delay (STPO.Self, Time, Mode);
end Timed_Delay_T;
-----------------------
-- Restricted GNARLI --
-----------------------
-------------------------------
-- Activate_Restricted_Tasks --
-------------------------------
-- Note that locks of activator and activated task are both locked
-- here. This is necessary because C.State and Self.Wait_Count
-- have to be synchronized. This is safe from deadlock because
-- the activator is always created before the activated task.
-- That satisfies our in-order-of-creation ATCB locking policy.
procedure Activate_Restricted_Tasks
(Chain_Access : Activation_Chain_Access)
is
Self_ID : constant Task_ID := STPO.Self;
C : Task_ID;
Activate_Prio : System.Any_Priority;
Success : Boolean;
begin
pragma Assert (Self_ID = Environment_Task);
pragma Assert (Self_ID.Common.Wait_Count = 0);
-- Lock self, to prevent activated tasks
-- from racing ahead before we finish activating the chain.
Write_Lock (Self_ID);
-- Activate all the tasks in the chain.
-- Creation of the thread of control was deferred until
-- activation. So create it now.
C := Chain_Access.T_ID;
while C /= null loop
if C.Common.State /= Terminated then
pragma Assert (C.Common.State = Unactivated);
Write_Lock (C);
if C.Common.Base_Priority < Get_Priority (Self_ID) then
Activate_Prio := Get_Priority (Self_ID);
else
Activate_Prio := C.Common.Base_Priority;
end if;
STPO.Create_Task
(C, Task_Wrapper'Address,
Parameters.Size_Type
(C.Common.Compiler_Data.Pri_Stack_Info.Size),
Activate_Prio, Success);
Self_ID.Common.Wait_Count := Self_ID.Common.Wait_Count + 1;
if Success then
C.Common.State := Runnable;
else
raise Program_Error;
end if;
Unlock (C);
end if;
C := C.Common.Activation_Link;
end loop;
Self_ID.Common.State := Activator_Sleep;
-- Wait for the activated tasks to complete activation.
-- It is unsafe to abort any of these tasks until the count goes to
-- zero.
loop
exit when Self_ID.Common.Wait_Count = 0;
Sleep (Self_ID, Activator_Sleep);
end loop;
Self_ID.Common.State := Runnable;
Unlock (Self_ID);
-- Remove the tasks from the chain.
Chain_Access.T_ID := null;
end Activate_Restricted_Tasks;
------------------------------------
-- Complete_Restricted_Activation --
------------------------------------
-- As in several other places, the locks of the activator and activated
-- task are both locked here. This follows our deadlock prevention lock
-- ordering policy, since the activated task must be created after the
-- activator.
procedure Complete_Restricted_Activation is
Self_ID : constant Task_ID := STPO.Self;
Activator : constant Task_ID := Self_ID.Common.Activator;
begin
Write_Lock (Activator);
Write_Lock (Self_ID);
-- Remove dangling reference to Activator,
-- since a task may outlive its activator.
Self_ID.Common.Activator := null;
-- Wake up the activator, if it is waiting for a chain
-- of tasks to activate, and we are the last in the chain
-- to complete activation
if Activator.Common.State = Activator_Sleep then
Activator.Common.Wait_Count := Activator.Common.Wait_Count - 1;
if Activator.Common.Wait_Count = 0 then
Wakeup (Activator, Activator_Sleep);
end if;
end if;
Unlock (Self_ID);
Unlock (Activator);
-- After the activation, active priority should be the same
-- as base priority. We must unlock the Activator first,
-- though, since it should not wait if we have lower priority.
if Get_Priority (Self_ID) /= Self_ID.Common.Base_Priority then
Set_Priority (Self_ID, Self_ID.Common.Base_Priority);
end if;
end Complete_Restricted_Activation;
------------------------------
-- Complete_Restricted_Task --
------------------------------
procedure Complete_Restricted_Task is
begin
STPO.Self.Common.State := Terminated;
end Complete_Restricted_Task;
----------------------------
-- Create_Restricted_Task --
----------------------------
procedure Create_Restricted_Task
(Priority : Integer;
Size : System.Parameters.Size_Type;
Task_Info : System.Task_Info.Task_Info_Type;
State : Task_Procedure_Access;
Discriminants : System.Address;
Elaborated : Access_Boolean;
Chain : in out Activation_Chain;
Task_Image : System.Task_Info.Task_Image_Type;
Created_Task : out Task_ID)
is
T : Task_ID;
Self_ID : constant Task_ID := STPO.Self;
Base_Priority : System.Any_Priority;
Success : Boolean;
begin
if Priority = Unspecified_Priority then
Base_Priority := Self_ID.Common.Base_Priority;
else
Base_Priority := System.Any_Priority (Priority);
end if;
T := New_ATCB (0);
Write_Lock (Self_ID);
-- With no task hierarchy, the parent of all non-Environment tasks that
-- are created must be the Environment task
Initialize_ATCB
(Self_ID, State, Discriminants, Self_ID, Elaborated, Base_Priority,
Task_Info, Size, T, Success);
-- If we do our job right then there should never be any failures,
-- which was probably said about the Titanic; so just to be safe,
-- let's retain this code for now
if not Success then
Unlock (Self_ID);
raise Program_Error;
end if;
T.Entry_Calls (1).Self := T;
T.Common.Task_Image := Task_Image;
Unlock (Self_ID);
-- Create TSD as early as possible in the creation of a task, since it
-- may be used by the operation of Ada code within the task.
SSL.Create_TSD (T.Common.Compiler_Data);
T.Common.Activation_Link := Chain.T_ID;
Chain.T_ID := T;
Created_Task := T;
end Create_Restricted_Task;
---------------------------
-- Finalize_Global_Tasks --
---------------------------
-- This is needed to support the compiler interface; it will only be called
-- by the Environment task. Instead, it will cause the Environment to block
-- forever, since none of the dependent tasks are expected to terminate
procedure Finalize_Global_Tasks is
Self_ID : constant Task_ID := STPO.Self;
begin
pragma Assert (Self_ID = STPO.Environment_Task);
Write_Lock (Self_ID);
Sleep (Self_ID, Master_Completion_Sleep);
Unlock (Self_ID);
-- Should never return from Master Completion Sleep
raise Program_Error;
end Finalize_Global_Tasks;
---------------------------
-- Restricted_Terminated --
---------------------------
function Restricted_Terminated (T : Task_ID) return Boolean is
begin
return T.Common.State = Terminated;
end Restricted_Terminated;
--------------------
-- Terminate_Task --
--------------------
procedure Terminate_Task (Self_ID : Task_ID) is
begin
Self_ID.Common.State := Terminated;
end Terminate_Task;
--------------
-- Init_RTS --
--------------
procedure Init_RTS is
begin
-- Initialize lock used to implement mutual exclusion between all tasks
STPO.Initialize_Lock (Global_Task_Lock'Access, STPO.Global_Task_Level);
-- Notify that the tasking run time has been elaborated so that
-- the tasking version of the soft links can be used.
SSL.Lock_Task := Task_Lock'Access;
SSL.Unlock_Task := Task_Unlock'Access;
SSL.Get_Jmpbuf_Address := Get_Jmpbuf_Address'Access;
SSL.Set_Jmpbuf_Address := Set_Jmpbuf_Address'Access;
SSL.Get_Machine_State_Addr := Get_Machine_State_Addr'Access;
SSL.Set_Machine_State_Addr := Set_Machine_State_Addr'Access;
SSL.Get_Current_Excep := Get_Current_Excep'Access;
SSL.Set_Jmpbuf_Address (SSL.Get_Jmpbuf_Address_NT);
SSL.Set_Machine_State_Addr (SSL.Get_Machine_State_Addr_NT);
SSL.Get_Sec_Stack_Addr := Get_Sec_Stack_Addr'Access;
SSL.Set_Sec_Stack_Addr := Set_Sec_Stack_Addr'Access;
-- No need to create a new Secondary Stack, since we will use the
-- default one created in s-secsta.adb
Set_Sec_Stack_Addr (SSL.Get_Sec_Stack_Addr_NT);
SSL.Timed_Delay := Timed_Delay_T'Access;
SSL.Adafinal := Finalize_Global_Tasks'Access;
end Init_RTS;
begin
Init_RTS;
end System.Tasking.Restricted.Stages;
|
package OCONST5 is
type u1 is mod 2**1;
type u8 is mod 2**8;
type HI_Record is record
A, B : U8;
end record;
pragma Suppress_Initialization (HI_Record);
type R is record
Bit : U1;
Agg : HI_Record;
end record;
pragma Suppress_Initialization (R);
for R use record
Bit at 0 range 0 .. 0;
Agg at 0 range 1 .. 16;
end record;
My_R0 : R := (Bit => 0, Agg => (A => 3, B => 7));
My_R1 : R := (Bit => 1, Agg => (A => 3, B => 7));
procedure Check (Arg : R; Bit : U1);
end;
|
pragma License (Unrestricted);
with Ada.Numerics.Generic_Real_Arrays;
package Ada.Numerics.Long_Long_Real_Arrays is
new Generic_Real_Arrays (Long_Long_Float);
pragma Pure (Ada.Numerics.Long_Long_Real_Arrays);
|
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tk.Image.Photo.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Image.Photo
.Test_Data
.Test with
null record;
procedure Test_Blank_2c1442_30601f(Gnattest_T: in out Test);
-- tk-image-photo.ads:273:4:Blank:Tests_Blank_Photo
procedure Test_Get_Option_e3d52c_8f9fe9(Gnattest_T: in out Test);
-- tk-image-photo.ads:328:4:Get_Option:Tests_Get_Option_Photo
procedure Test_Copy_0a35cf_21de2d(Gnattest_T: in out Test);
-- tk-image-photo.ads:408:4:Copy:Tests_Copy_Photo
procedure Test_Get_Data_433b25_8ba84f(Gnattest_T: in out Test);
-- tk-image-photo.ads:448:4:Get_Data:Tests_Get_Data_Photo
procedure Test_Get_Color_6fd571_5f6b3a(Gnattest_T: in out Test);
-- tk-image-photo.ads:478:4:Get_Color:Tests_Get_Color_Photo
procedure Test_Put_Data_cd9739_ee5695(Gnattest_T: in out Test);
-- tk-image-photo.ads:506:4:Put_Data:Tests_Put_Data_Photo
procedure Test_Read_95a1fe_24b510(Gnattest_T: in out Test);
-- tk-image-photo.ads:545:4:Read:Tests_Read_Photo
procedure Test_Redither_68a59f_4f3041(Gnattest_T: in out Test);
-- tk-image-photo.ads:572:4:Redither:Tests_Redither_Photo
procedure Test_Get_Transparency_6cdf5e_ffe137(Gnattest_T: in out Test);
-- tk-image-photo.ads:604:4:Get_Transparency:Tests_Get_Transparency_Photo
procedure Test_Set_Transparency_76d5d1_e76ade(Gnattest_T: in out Test);
-- tk-image-photo.ads:636:4:Set_Transparency:Tests_Set_Transparency_Photo
procedure Test_Write_a9d740_96f97b(Gnattest_T: in out Test);
-- tk-image-photo.ads:671:4:Write:Tests_Write_Photo
end Tk.Image.Photo.Test_Data.Tests;
-- end read only
|
------------------------------------------------------
--| Semaphores |
------------------------------------------------------
--| Author | Jack (Yevhenii) Shendrikov |
--| Group | IO-82 |
--| Variant | #25 |
--| Date | 29.11.2020 |
------------------------------------------------------
--| Function 1 | D = SORT(A)+SORT(B)+SORT(C)*(MA*ME) |
--| Function 2 | MF = (MG*MH)*TRANS(MK) |
--| Function 3 | S = (MO*MP)*V+t*MR*(O+P) |
------------------------------------------------------
with Data;
with Ada.Integer_Text_IO, Ada.Text_IO, Ada.Characters.Latin_1;
use Ada.Integer_Text_IO, Ada.Text_IO, Ada.Characters.Latin_1;
with System.Multiprocessors; use System.Multiprocessors;
with Semaphores;
use Semaphores;
procedure Lab1 is
N: Integer;
MY_SIMA : SIMA (1,2);
procedure Tasks is
package My_Data is new Data(N);
use My_Data;
CPU_0: CPU_Range := 0;
CPU_1: CPU_Range := 1;
CPU_2: CPU_Range := 2;
task T1 is
pragma Task_Name("T1");
pragma Priority(4);
pragma Storage_Size(500000000);
pragma CPU (CPU_0);
end T1;
task T2 is
pragma Task_Name("T2");
pragma Priority(3);
pragma Storage_Size(500000000);
pragma CPU (CPU_1);
end T2;
task T3 is
pragma Task_Name("T3");
pragma Priority(7);
pragma Storage_Size(500000000);
pragma CPU (CPU_2);
end T3;
task body T1 is
A,B,C,D: Vector;
MA,ME: Matrix;
begin
Put_Line("Task T1 started");
delay 0.7;
Put_Line("T1 is waiting for a permit.");
-- Generate Input Values
MY_SIMA.P; -- Acquire the semaphore
New_Line; Put_Line("T1 gets a permit.");
delay 1.0;
Input_Val_F1(A,B,C,MA,ME);
Put_Line("T1 releases the permit.");
MY_SIMA.V; -- Release the semaphore
New_Line; Put_Line("T1 is waiting for a permit.");
-- Calculate The Result
D := Func1(A,B,C,MA,ME);
delay 1.0;
-- Output
MY_SIMA.P; -- Acquire the semaphore
Put_Line("T1 gets a permit.");
Put("T1 | ");
Vector_Output(D, "D");
Put_Line("T1 releases the permit."); New_Line;
MY_SIMA.V; -- Release the semaphore
Put_Line("Task T1 finished"); New_Line;
end T1;
task body T2 is
MG,MH,MK,MF: Matrix;
begin
Put_Line("Task T2 started");
delay 1.0;
Put_Line("T2 is waiting for a permit.");
-- Generate Input Values
MY_SIMA.P; -- Acquire the semaphore
New_Line; Put_Line("T2 gets a permit.");
delay 1.0;
Input_Val_F2(MG,MH,MK);
Put_Line("T2 releases the permit."); New_Line;
MY_SIMA.V; -- Release the semaphore
New_Line; Put_Line("T2 is waiting for a permit.");
-- Calculate The Result
MF := Func2(MG,MH,MK);
delay 1.0;
-- Output
MY_SIMA.P; -- Acquire the semaphore
Put_Line("T2 gets a permit.");
Put_Line("T2 | ");
Matrix_Output(MF, "MF");
Put_Line("T2 releases the permit.");
MY_SIMA.V; -- Release the semaphore
Put_Line("Task T2 finished"); New_Line;
end T2;
task body T3 is
t: Integer;
V,O,P,S: Vector;
MO,MP,MR: Matrix;
begin
Put_Line("Task T3 started");
delay 0.5;
Put_Line("T3 is waiting for a permit.");
-- Generate Input Values
MY_SIMA.P; -- Acquire the semaphore
New_Line; Put_Line("T3 gets a permit.");
delay 1.0;
Input_Val_F3(t,V,O,P,MO,MP,MR);
Put_Line("T3 releases the permit.");
MY_SIMA.V; -- Release the semaphore
New_Line; Put_Line("T3 is waiting for a permit.");
-- Calculate The Result
S := Func3(t,V,O,P,MO,MP,MR);
delay 1.0;
-- Output
MY_SIMA.P; -- Acquire the semaphore
Put_Line("T3 gets a permit.");
Put("T3 | ");
Vector_Output(S, "S");
Put_Line("T3 releases the permit."); New_Line;
MY_SIMA.V; -- Release the semaphore
Put_Line("Task T3 finished"); New_Line;
end T3;
begin
Put_Line("Calculations started");
New_Line;
end Tasks;
begin
Put_Line("Function 1: D = SORT(A)+SORT(B)+SORT(C)*(MA*ME)" & CR & LF
& "Function 2: MF = (MG*MH)*TRANS(MK)" & CR & LF
& "Function 3: S = (MO*MP)*V+t*MR*(O+P)" & CR & LF);
Put_Line("!!! Note that if the value of N > 10 -> the result will not be displayed !!!" & CR & LF
& "!!! If you enter N <= 0 - execution will be terminated !!!" & CR & LF);
Put("Enter N: ");
Get(N);
New_Line;
Tasks;
Put_Line("All task finished");
end Lab1;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . S O F T _ L I N K S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
pragma Warnings (Off);
-- Disable warnings as System.Soft_Links.Initialize is not Preelaborate. It is
-- safe to with this unit as its elaboration routine will only be initializing
-- NT_TSD, which is part of this package spec.
with System.Soft_Links.Initialize;
pragma Warnings (On);
package body System.Soft_Links is
Stack_Limit : aliased System.Address := System.Null_Address;
pragma Export (C, Stack_Limit, "__gnat_stack_limit");
-- Needed for Vx6Cert (Vx653mc) GOS cert and ravenscar-cert runtimes,
-- VxMILS cert, ravenscar-cert and full runtimes, Vx 5 default runtime
--------------------
-- Abort_Defer_NT --
--------------------
procedure Abort_Defer_NT is
begin
null;
end Abort_Defer_NT;
----------------------
-- Abort_Handler_NT --
----------------------
procedure Abort_Handler_NT is
begin
null;
end Abort_Handler_NT;
----------------------
-- Abort_Undefer_NT --
----------------------
procedure Abort_Undefer_NT is
begin
null;
end Abort_Undefer_NT;
-----------------
-- Adafinal_NT --
-----------------
procedure Adafinal_NT is
begin
-- Handle normal task termination by the environment task, but only
-- for the normal task termination. In the case of Abnormal and
-- Unhandled_Exception they must have been handled before, and the
-- task termination soft link must have been changed so the task
-- termination routine is not executed twice.
Task_Termination_Handler.all (Ada.Exceptions.Null_Occurrence);
-- Finalize all library-level controlled objects if needed
if Finalize_Library_Objects /= null then
Finalize_Library_Objects.all;
end if;
end Adafinal_NT;
---------------------------
-- Check_Abort_Status_NT --
---------------------------
function Check_Abort_Status_NT return Integer is
begin
return Boolean'Pos (False);
end Check_Abort_Status_NT;
------------------------
-- Complete_Master_NT --
------------------------
procedure Complete_Master_NT is
begin
null;
end Complete_Master_NT;
----------------
-- Create_TSD --
----------------
procedure Create_TSD
(New_TSD : in out TSD;
Sec_Stack : SST.SS_Stack_Ptr;
Sec_Stack_Size : System.Parameters.Size_Type)
is
begin
New_TSD.Jmpbuf_Address := Null_Address;
New_TSD.Sec_Stack_Ptr := Sec_Stack;
SST.SS_Init (New_TSD.Sec_Stack_Ptr, Sec_Stack_Size);
end Create_TSD;
-----------------------
-- Current_Master_NT --
-----------------------
function Current_Master_NT return Integer is
begin
return 0;
end Current_Master_NT;
-----------------
-- Destroy_TSD --
-----------------
procedure Destroy_TSD (Old_TSD : in out TSD) is
begin
SST.SS_Free (Old_TSD.Sec_Stack_Ptr);
end Destroy_TSD;
---------------------
-- Enter_Master_NT --
---------------------
procedure Enter_Master_NT is
begin
null;
end Enter_Master_NT;
--------------------------
-- Get_Current_Excep_NT --
--------------------------
function Get_Current_Excep_NT return EOA is
begin
return NT_TSD.Current_Excep'Access;
end Get_Current_Excep_NT;
------------------------
-- Get_GNAT_Exception --
------------------------
function Get_GNAT_Exception return Ada.Exceptions.Exception_Id is
begin
return Ada.Exceptions.Exception_Identity (Get_Current_Excep.all.all);
end Get_GNAT_Exception;
---------------------------
-- Get_Jmpbuf_Address_NT --
---------------------------
function Get_Jmpbuf_Address_NT return Address is
begin
return NT_TSD.Jmpbuf_Address;
end Get_Jmpbuf_Address_NT;
-----------------------------
-- Get_Jmpbuf_Address_Soft --
-----------------------------
function Get_Jmpbuf_Address_Soft return Address is
begin
return Get_Jmpbuf_Address.all;
end Get_Jmpbuf_Address_Soft;
----------------------
-- Get_Sec_Stack_NT --
----------------------
function Get_Sec_Stack_NT return SST.SS_Stack_Ptr is
begin
return NT_TSD.Sec_Stack_Ptr;
end Get_Sec_Stack_NT;
-----------------------------
-- Get_Sec_Stack_Soft --
-----------------------------
function Get_Sec_Stack_Soft return SST.SS_Stack_Ptr is
begin
return Get_Sec_Stack.all;
end Get_Sec_Stack_Soft;
-----------------------
-- Get_Stack_Info_NT --
-----------------------
function Get_Stack_Info_NT return Stack_Checking.Stack_Access is
begin
return NT_TSD.Pri_Stack_Info'Access;
end Get_Stack_Info_NT;
-----------------------------
-- Save_Library_Occurrence --
-----------------------------
procedure Save_Library_Occurrence (E : EOA) is
use Ada.Exceptions;
begin
if not Library_Exception_Set then
Library_Exception_Set := True;
if E /= null then
Ada.Exceptions.Save_Occurrence (Library_Exception, E.all);
end if;
end if;
end Save_Library_Occurrence;
---------------------------
-- Set_Jmpbuf_Address_NT --
---------------------------
procedure Set_Jmpbuf_Address_NT (Addr : Address) is
begin
NT_TSD.Jmpbuf_Address := Addr;
end Set_Jmpbuf_Address_NT;
procedure Set_Jmpbuf_Address_Soft (Addr : Address) is
begin
Set_Jmpbuf_Address (Addr);
end Set_Jmpbuf_Address_Soft;
----------------------
-- Set_Sec_Stack_NT --
----------------------
procedure Set_Sec_Stack_NT (Stack : SST.SS_Stack_Ptr) is
begin
NT_TSD.Sec_Stack_Ptr := Stack;
end Set_Sec_Stack_NT;
------------------------
-- Set_Sec_Stack_Soft --
------------------------
procedure Set_Sec_Stack_Soft (Stack : SST.SS_Stack_Ptr) is
begin
Set_Sec_Stack (Stack);
end Set_Sec_Stack_Soft;
------------------
-- Task_Lock_NT --
------------------
procedure Task_Lock_NT is
begin
null;
end Task_Lock_NT;
------------------
-- Task_Name_NT --
-------------------
function Task_Name_NT return String is
begin
return "main_task";
end Task_Name_NT;
-------------------------
-- Task_Termination_NT --
-------------------------
procedure Task_Termination_NT (Excep : EO) is
pragma Unreferenced (Excep);
begin
null;
end Task_Termination_NT;
--------------------
-- Task_Unlock_NT --
--------------------
procedure Task_Unlock_NT is
begin
null;
end Task_Unlock_NT;
end System.Soft_Links;
|
pragma Ada_2012;
package body Adventofcode.Day_6 is
-----------
-- Value --
-----------
function Value (Item : String) return Reply_Type is
begin
return Ret : Reply_Type do
for C of Item loop
Ret (Question_Id (C)) := True;
end loop;
end return;
end Value;
-----------
-- Count --
-----------
function Count (Item : Reply_Type) return Natural is
begin
return Ret : Natural := 0 do
for I of Item loop
Ret := Ret + (if I then 1 else 0);
end loop;
end return;
end Count;
-----------
-- Image --
-----------
function Image (Item : Reply_Type) return String is
Ret : String (1 .. Item'Length);
Cursor : Natural := Ret'First;
begin
for Index in Item'Range loop
if Item (Index) then
Ret (Cursor) := Character (Index);
Cursor := Cursor + 1;
end if;
end loop;
return Ret (Ret'First .. Cursor - 1);
end Image;
-----------
-- Count --
-----------
function Count (Replies : Group_Replie) return Natural is
Temp : Reply_Type := (others => True);
begin
for R of Replies loop
Temp := Temp and R;
end loop;
return Count (Temp);
end Count;
end Adventofcode.Day_6;
|
with Prime_Numbers;
procedure Test_Prime is
package Integer_Numbers is new
Prime_Numbers (Natural, 0, 1, 2);
use Integer_Numbers;
begin
if Is_Prime(12) or (not Is_Prime(13)) then
raise Program_Error with "Test_Prime failed!";
end if;
end Test_Prime;
|
with System;
with System.Storage_Pools;
package GC.Pools is
type GC_Storage_Pool is new System.Storage_Pools.Root_Storage_Pool
with null record;
overriding procedure Allocate (
Pool : in out GC_Storage_Pool;
Storage_Address : out System.Address;
Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
Alignment : in System.Storage_Elements.Storage_Count);
overriding procedure Deallocate (
Pool : in out GC_Storage_Pool;
Storage_Address : in System.Address;
Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
Alignment : in System.Storage_Elements.Storage_Count);
overriding function Storage_Size (Pool : GC_Storage_Pool)
return System.Storage_Elements.Storage_Count;
Pool : GC_Storage_Pool;
type GC_Controlled_Storage_Pool is new GC_Storage_Pool with null record;
overriding procedure Allocate (
Pool : in out GC_Controlled_Storage_Pool;
Storage_Address : out System.Address;
Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
Alignment : in System.Storage_Elements.Storage_Count);
overriding procedure Deallocate (
Pool : in out GC_Controlled_Storage_Pool;
Storage_Address : in System.Address;
Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
Alignment : in System.Storage_Elements.Storage_Count);
Controlled_Pool : GC_Controlled_Storage_Pool;
end GC.Pools;
|
-- { dg-do compile }
-- { dg-options "-gnatct" }
package Task1 is
type Cable_Task_1 (C : Boolean) is limited private;
type Cable_Rec is limited record
Tsk_1 : Cable_Task_1 (C => False);
end record;
private
task type Cable_Task_1 (C : Boolean) is
end Cable_Task_1;
end Task1;
|
--
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- The version of the OpenAPI document: 20220523
--
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0.
-- https://openapi-generator.tech
-- Do not edit the class manually.
pragma Warnings (Off, "*is not referenced");
with Swagger.Streams;
package body .Clients is
pragma Style_Checks ("-mr");
--
procedure Ability_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/ability/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Ability_List;
--
procedure Ability_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/ability/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Ability_Read;
--
procedure Berry_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/berry/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_List;
--
procedure Berry_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/berry/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_Read;
--
procedure Berry_Firmness_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/berry-firmness/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_Firmness_List;
--
procedure Berry_Firmness_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/berry-firmness/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_Firmness_Read;
--
procedure Berry_Flavor_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/berry-flavor/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_Flavor_List;
--
procedure Berry_Flavor_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/berry-flavor/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Berry_Flavor_Read;
--
procedure Characteristic_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/characteristic/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Characteristic_List;
--
procedure Characteristic_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/characteristic/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Characteristic_Read;
--
procedure Contest_Effect_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/contest-effect/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Contest_Effect_List;
--
procedure Contest_Effect_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/contest-effect/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Contest_Effect_Read;
--
procedure Contest_Type_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/contest-type/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Contest_Type_List;
--
procedure Contest_Type_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/contest-type/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Contest_Type_Read;
--
procedure Egg_Group_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/egg-group/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Egg_Group_List;
--
procedure Egg_Group_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/egg-group/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Egg_Group_Read;
--
procedure Encounter_Condition_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/encounter-condition/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Condition_List;
--
procedure Encounter_Condition_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/encounter-condition/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Condition_Read;
--
procedure Encounter_Condition_Value_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/encounter-condition-value/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Condition_Value_List;
--
procedure Encounter_Condition_Value_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/encounter-condition-value/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Condition_Value_Read;
--
procedure Encounter_Method_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/encounter-method/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Method_List;
--
procedure Encounter_Method_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/encounter-method/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Encounter_Method_Read;
--
procedure Evolution_Chain_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/evolution-chain/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Evolution_Chain_List;
--
procedure Evolution_Chain_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/evolution-chain/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Evolution_Chain_Read;
--
procedure Evolution_Trigger_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/evolution-trigger/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Evolution_Trigger_List;
--
procedure Evolution_Trigger_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/evolution-trigger/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Evolution_Trigger_Read;
--
procedure Gender_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/gender/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Gender_List;
--
procedure Gender_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/gender/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Gender_Read;
--
procedure Generation_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/generation/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Generation_List;
--
procedure Generation_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/generation/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Generation_Read;
--
procedure Growth_Rate_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/growth-rate/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Growth_Rate_List;
--
procedure Growth_Rate_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/growth-rate/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Growth_Rate_Read;
--
procedure Item_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/item/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_List;
--
procedure Item_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/item/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Read;
--
procedure Item_Attribute_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/item-attribute/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Attribute_List;
--
procedure Item_Attribute_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/item-attribute/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Attribute_Read;
--
procedure Item_Category_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/item-category/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Category_List;
--
procedure Item_Category_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/item-category/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Category_Read;
--
procedure Item_Fling_Effect_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/item-fling-effect/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Fling_Effect_List;
--
procedure Item_Fling_Effect_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/item-fling-effect/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Fling_Effect_Read;
--
procedure Item_Pocket_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/item-pocket/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Pocket_List;
--
procedure Item_Pocket_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/item-pocket/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Item_Pocket_Read;
--
procedure Language_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/language/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Language_List;
--
procedure Language_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/language/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Language_Read;
--
procedure Location_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/location/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Location_List;
--
procedure Location_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/location/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Location_Read;
--
procedure Location_Area_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/location-area/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Location_Area_List;
--
procedure Location_Area_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/location-area/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Location_Area_Read;
--
procedure Machine_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/machine/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Machine_List;
--
procedure Machine_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/machine/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Machine_Read;
--
procedure Move_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_List;
--
procedure Move_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Read;
--
procedure Move_Ailment_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-ailment/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Ailment_List;
--
procedure Move_Ailment_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-ailment/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Ailment_Read;
--
procedure Move_Battle_Style_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-battle-style/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Battle_Style_List;
--
procedure Move_Battle_Style_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-battle-style/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Battle_Style_Read;
--
procedure Move_Category_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-category/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Category_List;
--
procedure Move_Category_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-category/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Category_Read;
--
procedure Move_Damage_Class_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-damage-class/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Damage_Class_List;
--
procedure Move_Damage_Class_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-damage-class/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Damage_Class_Read;
--
procedure Move_Learn_Method_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-learn-method/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Learn_Method_List;
--
procedure Move_Learn_Method_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-learn-method/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Learn_Method_Read;
--
procedure Move_Target_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/move-target/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Target_List;
--
procedure Move_Target_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/move-target/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Move_Target_Read;
--
procedure Nature_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/nature/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Nature_List;
--
procedure Nature_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/nature/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Nature_Read;
--
procedure Pal_Park_Area_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pal-park-area/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pal_Park_Area_List;
--
procedure Pal_Park_Area_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pal-park-area/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pal_Park_Area_Read;
--
procedure Pokeathlon_Stat_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokeathlon-stat/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokeathlon_Stat_List;
--
procedure Pokeathlon_Stat_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokeathlon-stat/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokeathlon_Stat_Read;
--
procedure Pokedex_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokedex/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokedex_List;
--
procedure Pokedex_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokedex/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokedex_Read;
--
procedure Pokemon_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_List;
--
procedure Pokemon_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Read;
--
procedure Pokemon_Color_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon-color/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Color_List;
--
procedure Pokemon_Color_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon-color/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Color_Read;
--
procedure Pokemon_Form_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon-form/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Form_List;
--
procedure Pokemon_Form_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon-form/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Form_Read;
--
procedure Pokemon_Habitat_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon-habitat/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Habitat_List;
--
procedure Pokemon_Habitat_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon-habitat/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Habitat_Read;
--
procedure Pokemon_Shape_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon-shape/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Shape_List;
--
procedure Pokemon_Shape_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon-shape/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Shape_Read;
--
procedure Pokemon_Species_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/pokemon-species/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Species_List;
--
procedure Pokemon_Species_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/pokemon-species/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Pokemon_Species_Read;
--
procedure Region_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/region/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Region_List;
--
procedure Region_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/region/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Region_Read;
--
procedure Stat_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/stat/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Stat_List;
--
procedure Stat_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/stat/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Stat_Read;
--
procedure Super_Contest_Effect_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/super-contest-effect/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Super_Contest_Effect_List;
--
procedure Super_Contest_Effect_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/super-contest-effect/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Super_Contest_Effect_Read;
--
procedure Type_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/type/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Type_List;
--
procedure Type_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/type/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Type_Read;
--
procedure Version_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/version/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Version_List;
--
procedure Version_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/version/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Version_Read;
--
procedure Version_Group_List
(Client : in out Client_Type;
Limit : in Swagger.Nullable_Integer;
Offset : in Swagger.Nullable_Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Add_Param ("limit", Limit);
URI.Add_Param ("offset", Offset);
URI.Set_Path ("/api/v2/version-group/");
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Version_Group_List;
--
procedure Version_Group_Read
(Client : in out Client_Type;
Id : in Integer;
Result : out Swagger.UString) is
URI : Swagger.Clients.URI_Type;
Reply : Swagger.Value_Type;
begin
Client.Set_Accept ((1 => Swagger.Clients.TEXT_PLAIN));
URI.Set_Path ("/api/v2/version-group/{id}/");
URI.Set_Path_Param ("id", Swagger.To_String (Id));
Client.Call (Swagger.Clients.GET, URI, Reply);
.Models.Deserialize (Reply, "", Result);
end Version_Group_Read;
end .Clients;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- S Y S T E M . W C H _ J I S --
-- --
-- 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.WCh_JIS is
type Byte is mod 256;
EUC_Hankaku_Kana : constant Byte := 16#8E#;
-- Prefix byte in EUC for Hankaku Kana (small Katakana). Such characters
-- in EUC are represented by a prefix byte followed by the code, which
-- is in the upper half (the corresponding JIS internal code is in the
-- range 16#0080# - 16#00FF#).
function EUC_To_JIS (EUC1, EUC2 : Character) return Wide_Character is
EUC1B : constant Byte := Character'Pos (EUC1);
EUC2B : constant Byte := Character'Pos (EUC2);
begin
if EUC2B not in 16#A0# .. 16#FE# then
raise Constraint_Error;
end if;
if EUC1B = EUC_Hankaku_Kana then
return Wide_Character'Val (EUC2B);
else
if EUC1B not in 16#A0# .. 16#FE# then
raise Constraint_Error;
else
return Wide_Character'Val
(256 * Natural (EUC1B and 16#7F#) + Natural (EUC2B and 16#7F#));
end if;
end if;
end EUC_To_JIS;
----------------
-- JIS_To_EUC --
----------------
procedure JIS_To_EUC
(J : in Wide_Character;
EUC1 : out Character;
EUC2 : out Character)
is
JIS1 : constant Natural := Wide_Character'Pos (J) / 256;
JIS2 : constant Natural := Wide_Character'Pos (J) rem 256;
begin
if JIS1 = 0 then
EUC1 := Character'Val (EUC_Hankaku_Kana);
EUC2 := Character'Val (JIS2);
else
EUC1 := Character'Val (JIS1 + 16#80#);
EUC2 := Character'Val (JIS2 + 16#80#);
end if;
end JIS_To_EUC;
----------------------
-- JIS_To_Shift_JIS --
----------------------
procedure JIS_To_Shift_JIS
(J : in Wide_Character;
SJ1 : out Character;
SJ2 : out Character)
is
JIS1 : Byte;
JIS2 : Byte;
begin
-- The following is the required algorithm, it's hard to make any
-- more intelligent comments! This was copied from a public domain
-- C program called etos.c (author unknown).
JIS1 := Byte (Natural (Wide_Character'Pos (J) / 256));
JIS2 := Byte (Natural (Wide_Character'Pos (J) rem 256));
if JIS1 > 16#5F# then
JIS1 := JIS1 + 16#80#;
end if;
if (JIS1 mod 2) = 0 then
SJ1 := Character'Val ((JIS1 - 16#30#) / 2 + 16#88#);
SJ2 := Character'Val (JIS2 + 16#7E#);
else
if JIS2 >= 16#60# then
JIS2 := JIS2 + 16#01#;
end if;
SJ1 := Character'Val ((JIS1 - 16#31#) / 2 + 16#89#);
SJ2 := Character'Val (JIS2 + 16#1F#);
end if;
end JIS_To_Shift_JIS;
----------------------
-- Shift_JIS_To_JIS --
----------------------
function Shift_JIS_To_JIS (SJ1, SJ2 : Character) return Wide_Character is
SJIS1 : Byte;
SJIS2 : Byte;
JIS1 : Byte;
JIS2 : Byte;
begin
-- The following is the required algorithm, it's hard to make any
-- more intelligent comments! This was copied from a public domain
-- C program called stoj.c written by shige@csk.JUNET.
SJIS1 := Character'Pos (SJ1);
SJIS2 := Character'Pos (SJ2);
if SJIS1 >= 16#E0# then
SJIS1 := SJIS1 - 16#40#;
end if;
if SJIS2 >= 16#9F# then
JIS1 := (SJIS1 - 16#88#) * 2 + 16#30#;
JIS2 := SJIS2 - 16#7E#;
else
if SJIS2 >= 16#7F# then
SJIS2 := SJIS2 - 16#01#;
end if;
JIS1 := (SJIS1 - 16#89#) * 2 + 16#31#;
JIS2 := SJIS2 - 16#1F#;
end if;
if JIS1 not in 16#20# .. 16#7E#
or else JIS2 not in 16#20# .. 16#7E#
then
raise Constraint_Error;
else
return Wide_Character'Val (256 * Natural (JIS1) + Natural (JIS2));
end if;
end Shift_JIS_To_JIS;
end System.WCh_JIS;
|
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library
-- Joe Wingbermuehle 20020320 <> 20020327
--------------------------------------------------------------------------
with Ada.Finalization;
package Arbitrary is
-- Set to false for increased speed
DEBUG_CHECKS : boolean := false;
type Arbitrary_Type(size : positive) is
new Ada.Finalization.Controlled with private;
procedure Display(a : Arbitrary_Type);
procedure Clear(a : out Arbitrary_Type);
function To_Arbitrary(value : integer; precision : integer)
return Arbitrary_Type;
function Factorial(n : integer; precision : integer)
return Arbitrary_Type;
function One_Over_Factorial(n : integer; precision : integer)
return Arbitrary_Type;
function Square_Root(a : Arbitrary_Type) return Arbitrary_Type;
function "="(a, b : Arbitrary_Type) return boolean;
function ">"(a, b : Arbitrary_Type) return boolean;
function ">="(a, b : Arbitrary_Type) return boolean;
function "<"(a, b : Arbitrary_Type) return boolean;
function "<="(a, b : Arbitrary_Type) return boolean;
function "+"(a : Arbitrary_Type) return Arbitrary_Type;
function "-"(a : Arbitrary_Type) return Arbitrary_Type;
function "+"(a, b : Arbitrary_Type) return Arbitrary_Type;
function "-"(a, b : Arbitrary_Type) return Arbitrary_Type;
function "*"(a, b : Arbitrary_Type) return Arbitrary_Type;
function "/"(a, b : Arbitrary_Type) return Arbitrary_Type;
private
base : constant integer := 10;
type Mantissa_Type is array(positive range <>) of integer;
type Mantissa_Pointer is access Mantissa_Type;
type Arbitrary_Type(size : positive) is
new Ada.Finalization.Controlled with record
mantissa : Mantissa_Pointer;
exponent : integer;
sign : integer range -1..1;
precision : positive := size;
end record;
procedure Initialize(Object : in out Arbitrary_Type);
procedure Adjust(Object : in out Arbitrary_Type);
procedure Finalize(Object : in out Arbitrary_Type);
end Arbitrary;
|
with Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev;
use Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev;
procedure Auto_Differentiation.Lagrangian is
-- Set Up Parameters -----------------
Control : Control_Type
:= (N => 2, Dt => 0.01, Eps => 1.0e-10, Err => 1.0, K => 7);
N : Nat renames Control.N;
α : constant Real := 100.0;
-------------------------------
function KE (Q, Q_Dot : in AD_Vector; N : in Nat) return AD_Type is
C : constant AD_Type := Cos (Q (1) + Q (2));
Cp2 : constant AD_Type := C + 2.0;
C4p6 : constant AD_Type := 4.0 * C + 6.1;
T_Dot : AD_Type renames Q_Dot (1);
S_Dot : AD_Type renames Q_Dot (2);
begin
return (0.5 * C4p6 * T_Dot ** 2 + 0.55 * S_Dot ** 2 + Cp2 * T_Dot * S_Dot);
end KE;
-------------------------------
function PE (Q : in AD_Vector; N : in Nat) return AD_Type is
PE_G, PE_M : AD_Type;
T : AD_Type renames Q (1);
S : AD_Type renames Q (2);
Tmp : AD_Type := Cos (0.5 * (T + S));
Cs : constant AD_Type := Cos (S);
Ct : constant AD_Type := Cos (T);
C2tps : constant AD_Type := Cos (2.0 * T + S);
Ctp2s : constant AD_Type := Cos (T + 2.0 * S);
begin
Tmp := 0.5 / Tmp;
PE_G := Ct + C2tps;
PE_M := Cos (2.0 * T) - 3.0 * Ct ** 2
+ Cos (2.0 * S) - 3.0 * Cs ** 2
+ (Tmp ** 3) * Cos (2.0 * (T + S))
- 3.0 * (Tmp ** 5) * ((Ct + C2tps) * (Cs + Ctp2s));
return ((α / 6.0) * PE_M + PE_G);
end PE;
-------------------------------
function Lagrangian (X : in Real_Vector; N : in Nat) return AD_Type is
Q : AD_Vector := Var (X (1 .. N), 2 * N, 1);
Q_Dot : AD_Vector := Var (X (N + 1 .. 2 * N), 2 * N, N + 1);
begin
pragma Assert (abs (X (1) + X (2)) < π, "singularity error: t + s = pi");
return KE (Q, Q_Dot, N) - PE (Q, N);
end Lagrangian;
-------------------------------
-- Initial Conditions ----
Var : Variable := (N2 => 2 * N,
X => (0.0, 0.0, -2.0, 10.0),
T => 0.0);
X : Real_Vector renames Var.X;
-------------------------------
XYZ : File_Type;
Y : Real_Vector (1 .. 2 * N * Control.K);
Dt : constant Real := 0.01;
Time : Real := Var.T;
PTime : Real;
A : array (1 .. 2 * N) of Real_Vector (1 .. Control.K);
begin
Create (XYZ, Name => "out.xyz");
Put_Line ("T, x1, y1, x2, y2");
Print_Data_L (XYZ, Var);
Print_XYZ (XYZ, Var);
Setup (N, Control.K);
while Var.T < 5.2 loop
Y := Collocation (Lagrangian'Access, Var, Control);
for I in 1 .. 2 * N loop
for K in 1 .. Control.K loop
A (I) (K) := Y (2 * N * (K - 1) + I);
end loop;
end loop;
for I in 1 .. 2 * N loop
A (I) := CGL_Transform (A (I));
end loop;
PTime := Var.T + Control.Dt;
while Time < PTime loop
for I in 1 .. 2 * N loop
Var.X (I) := Interpolate (A (I), Time, Var.T, Var.T + Control.Dt);
end loop;
Var.T := Time;
Print_XYZ (XYZ, Var);
Print_Data_L (XYZ, Var);
Time := Time + Dt;
end loop;
Var.T := PTime;
for I in 1 .. 2 * N loop
Var.X (I) := Y (Y'Last - 2 * N + I);
end loop;
end loop;
Print_Data_L (XYZ, Var);
Close (XYZ);
end Auto_Differentiation.Lagrangian;
|
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Bases.Trade.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Bases.Trade.Test_Data
.Test with
null record;
procedure Test_HireRecruit_8627ed_6a9998(Gnattest_T: in out Test);
-- bases-trade.ads:52:4:HireRecruit:Test_HireRecruit
procedure Test_BuyRecipe_64b3a1_e0c4a8(Gnattest_T: in out Test);
-- bases-trade.ads:64:4:BuyRecipe:Test_BuyRecipe
procedure Test_HealWounded_ec5713_276c05(Gnattest_T: in out Test);
-- bases-trade.ads:76:4:HealWounded:Test_HealWounded
procedure Test_HealCost_772065_168081(Gnattest_T: in out Test);
-- bases-trade.ads:92:4:HealCost:Test_HealCost
procedure Test_TrainCost_976ed7_313cfa(Gnattest_T: in out Test);
-- bases-trade.ads:111:4:TrainCost:Test_TrainCost
procedure Test_TrainSkill_97d670_bf4684(Gnattest_T: in out Test);
-- bases-trade.ads:130:4:TrainSkill:Test_TrainSkill
end Bases.Trade.Test_Data.Tests;
-- end read only
|
------------------------------------------------------------------------------
-- --
-- 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 --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This is a Solaris (native) version of this package
-- This package contains all the GNULL primitives that interface directly
-- with the underlying OS.
pragma Polling (Off);
-- Turn off polling, we do not want ATC polling to take place during
-- tasking operations. It causes infinite loops and other problems.
with System.Tasking.Debug;
-- used for Known_Tasks
with System.Interrupt_Management;
-- used for Keep_Unmasked
-- Abort_Task_Interrupt
-- Interrupt_ID
with System.OS_Primitives;
-- used for Delay_Modes
pragma Warnings (Off);
with GNAT.OS_Lib;
-- used for String_Access, Getenv
pragma Warnings (On);
with Interfaces.C;
-- used for int
-- size_t
with System.Task_Info;
-- to initialize Task_Info for a C thread, in function Self
with System.Soft_Links;
-- used for Defer/Undefer_Abort
-- We use System.Soft_Links instead of System.Tasking.Initialization
-- because the later is a higher level package that we shouldn't depend on.
-- For example when using the restricted run time, it is replaced by
-- System.Tasking.Restricted.Stages.
with Unchecked_Deallocation;
package body System.Task_Primitives.Operations is
package SSL renames System.Soft_Links;
use System.Tasking.Debug;
use System.Tasking;
use Interfaces.C;
use System.OS_Interface;
use System.Parameters;
use System.OS_Primitives;
----------------
-- Local Data --
----------------
-- The following are logically constants, but need to be initialized
-- at run time.
Environment_Task_Id : Task_Id;
-- A variable to hold Task_Id for the environment task.
-- If we use this variable to get the Task_Id, we need the following
-- ATCB_Key only for non-Ada threads.
Unblocked_Signal_Mask : aliased sigset_t;
-- The set of signals that should unblocked in all tasks
ATCB_Key : aliased thread_key_t;
-- Key used to find the Ada Task_Id associated with a thread,
-- at least for C threads unknown to the Ada run-time system.
Single_RTS_Lock : aliased RTS_Lock;
-- This is a lock to allow only one thread of control in the RTS at
-- a time; it is used to execute in mutual exclusion from all other tasks.
-- Used mainly in Single_Lock mode, but also to protect All_Tasks_List
Next_Serial_Number : Task_Serial_Number := 100;
-- We start at 100, to reserve some special values for
-- using in error checking.
-- The following are internal configuration constants needed.
----------------------
-- Priority Support --
----------------------
Priority_Ceiling_Emulation : constant Boolean := True;
-- controls whether we emulate priority ceiling locking
-- To get a scheduling close to annex D requirements, we use the real-time
-- class provided for LWP's and map each task/thread to a specific and
-- unique LWP (there is 1 thread per LWP, and 1 LWP per thread).
-- The real time class can only be set when the process has root
-- priviledges, so in the other cases, we use the normal thread scheduling
-- and priority handling.
Using_Real_Time_Class : Boolean := False;
-- indicates wether the real time class is being used (i.e the process
-- has root priviledges).
Prio_Param : aliased struct_pcparms;
-- Hold priority info (Real_Time) initialized during the package
-- elaboration.
-----------------------------------
-- External Configuration Values --
-----------------------------------
Time_Slice_Val : Interfaces.C.long;
pragma Import (C, Time_Slice_Val, "__gl_time_slice_val");
Locking_Policy : Character;
pragma Import (C, Locking_Policy, "__gl_locking_policy");
Dispatching_Policy : Character;
pragma Import (C, Dispatching_Policy, "__gl_task_dispatching_policy");
Foreign_Task_Elaborated : aliased Boolean := True;
-- Used to identified fake tasks (i.e., non-Ada Threads).
-----------------------
-- Local Subprograms --
-----------------------
function sysconf (name : System.OS_Interface.int) return processorid_t;
pragma Import (C, sysconf, "sysconf");
SC_NPROCESSORS_CONF : constant System.OS_Interface.int := 14;
function Num_Procs
(name : System.OS_Interface.int := SC_NPROCESSORS_CONF)
return processorid_t renames sysconf;
procedure Abort_Handler
(Sig : Signal;
Code : access siginfo_t;
Context : access ucontext_t);
-- Target-dependent binding of inter-thread Abort signal to
-- the raising of the Abort_Signal exception.
-- See also comments in 7staprop.adb
------------
-- Checks --
------------
function Check_Initialize_Lock
(L : Lock_Ptr;
Level : Lock_Level) return Boolean;
pragma Inline (Check_Initialize_Lock);
function Check_Lock (L : Lock_Ptr) return Boolean;
pragma Inline (Check_Lock);
function Record_Lock (L : Lock_Ptr) return Boolean;
pragma Inline (Record_Lock);
function Check_Sleep (Reason : Task_States) return Boolean;
pragma Inline (Check_Sleep);
function Record_Wakeup
(L : Lock_Ptr;
Reason : Task_States) return Boolean;
pragma Inline (Record_Wakeup);
function Check_Wakeup
(T : Task_Id;
Reason : Task_States) return Boolean;
pragma Inline (Check_Wakeup);
function Check_Unlock (L : Lock_Ptr) return Boolean;
pragma Inline (Check_Unlock);
function Check_Finalize_Lock (L : Lock_Ptr) return Boolean;
pragma Inline (Check_Finalize_Lock);
--------------------
-- Local Packages --
--------------------
package Specific is
procedure Initialize (Environment_Task : Task_Id);
pragma Inline (Initialize);
-- Initialize various data needed by this package.
function Is_Valid_Task return Boolean;
pragma Inline (Is_Valid_Task);
-- Does executing thread have a TCB?
procedure Set (Self_Id : Task_Id);
pragma Inline (Set);
-- Set the self id for the current task.
function Self return Task_Id;
pragma Inline (Self);
-- Return a pointer to the Ada Task Control Block of the calling task.
end Specific;
package body Specific is separate;
-- The body of this package is target specific.
---------------------------------
-- Support for foreign threads --
---------------------------------
function Register_Foreign_Thread (Thread : Thread_Id) return Task_Id;
-- Allocate and Initialize a new ATCB for the current Thread.
function Register_Foreign_Thread
(Thread : Thread_Id) return Task_Id is separate;
------------
-- Checks --
------------
Check_Count : Integer := 0;
Lock_Count : Integer := 0;
Unlock_Count : Integer := 0;
-------------------
-- Abort_Handler --
-------------------
procedure Abort_Handler
(Sig : Signal;
Code : access siginfo_t;
Context : access ucontext_t)
is
pragma Unreferenced (Sig);
pragma Unreferenced (Code);
pragma Unreferenced (Context);
Self_ID : constant Task_Id := Self;
Old_Set : aliased sigset_t;
Result : Interfaces.C.int;
begin
-- It is not safe to raise an exception when using ZCX and the GCC
-- exception handling mechanism.
if ZCX_By_Default and then GCC_ZCX_Support then
return;
end if;
if Self_ID.Deferral_Level = 0
and then Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level
and then not Self_ID.Aborting
then
Self_ID.Aborting := True;
-- Make sure signals used for RTS internal purpose are unmasked
Result := thr_sigsetmask (SIG_UNBLOCK,
Unblocked_Signal_Mask'Unchecked_Access, Old_Set'Unchecked_Access);
pragma Assert (Result = 0);
raise Standard'Abort_Signal;
end if;
end Abort_Handler;
-----------------
-- Stack_Guard --
-----------------
-- The underlying thread system sets a guard page at the
-- bottom of a thread stack, so nothing is needed.
procedure Stack_Guard (T : ST.Task_Id; On : Boolean) is
pragma Unreferenced (T);
pragma Unreferenced (On);
begin
null;
end Stack_Guard;
-------------------
-- Get_Thread_Id --
-------------------
function Get_Thread_Id (T : ST.Task_Id) return OSI.Thread_Id is
begin
return T.Common.LL.Thread;
end Get_Thread_Id;
----------------
-- Initialize --
----------------
procedure Initialize (Environment_Task : ST.Task_Id) is
act : aliased struct_sigaction;
old_act : aliased struct_sigaction;
Tmp_Set : aliased sigset_t;
Result : Interfaces.C.int;
procedure Configure_Processors;
-- Processors configuration
-- The user can specify a processor which the program should run
-- on to emulate a single-processor system. This can be easily
-- done by setting environment variable GNAT_PROCESSOR to one of
-- the following :
--
-- -2 : use the default configuration (run the program on all
-- available processors) - this is the same as having
-- GNAT_PROCESSOR unset
-- -1 : let the RTS choose one processor and run the program on
-- that processor
-- 0 .. Last_Proc : run the program on the specified processor
--
-- Last_Proc is equal to the value of the system variable
-- _SC_NPROCESSORS_CONF, minus one.
procedure Configure_Processors is
Proc_Acc : constant GNAT.OS_Lib.String_Access :=
GNAT.OS_Lib.Getenv ("GNAT_PROCESSOR");
Proc : aliased processorid_t; -- User processor #
Last_Proc : processorid_t; -- Last processor #
begin
if Proc_Acc.all'Length /= 0 then
-- Environment variable is defined
Last_Proc := Num_Procs - 1;
if Last_Proc /= -1 then
Proc := processorid_t'Value (Proc_Acc.all);
if Proc <= -2 or else Proc > Last_Proc then
-- Use the default configuration
null;
elsif Proc = -1 then
-- Choose a processor
Result := 0;
while Proc < Last_Proc loop
Proc := Proc + 1;
Result := p_online (Proc, PR_STATUS);
exit when Result = PR_ONLINE;
end loop;
pragma Assert (Result = PR_ONLINE);
Result := processor_bind (P_PID, P_MYID, Proc, null);
pragma Assert (Result = 0);
else
-- Use user processor
Result := processor_bind (P_PID, P_MYID, Proc, null);
pragma Assert (Result = 0);
end if;
end if;
end if;
exception
when Constraint_Error =>
-- Illegal environment variable GNAT_PROCESSOR - ignored
null;
end Configure_Processors;
function State
(Int : System.Interrupt_Management.Interrupt_ID) return Character;
pragma Import (C, State, "__gnat_get_interrupt_state");
-- Get interrupt state. Defined in a-init.c
-- The input argument is the interrupt number,
-- and the result is one of the following:
Default : constant Character := 's';
-- 'n' this interrupt not set by any Interrupt_State pragma
-- 'u' Interrupt_State pragma set state to User
-- 'r' Interrupt_State pragma set state to Runtime
-- 's' Interrupt_State pragma set state to System (use "default"
-- system handler)
-- Start of processing for Initialize
begin
Environment_Task_Id := Environment_Task;
Interrupt_Management.Initialize;
-- Prepare the set of signals that should unblocked in all tasks
Result := sigemptyset (Unblocked_Signal_Mask'Access);
pragma Assert (Result = 0);
for J in Interrupt_Management.Interrupt_ID loop
if System.Interrupt_Management.Keep_Unmasked (J) then
Result := sigaddset (Unblocked_Signal_Mask'Access, Signal (J));
pragma Assert (Result = 0);
end if;
end loop;
if Dispatching_Policy = 'F' then
declare
Result : Interfaces.C.long;
Class_Info : aliased struct_pcinfo;
Secs, Nsecs : Interfaces.C.long;
begin
-- If a pragma Time_Slice is specified, takes the value in account
if Time_Slice_Val > 0 then
-- Convert Time_Slice_Val (microseconds) into seconds and
-- nanoseconds
Secs := Time_Slice_Val / 1_000_000;
Nsecs := (Time_Slice_Val rem 1_000_000) * 1_000;
-- Otherwise, default to no time slicing (i.e run until blocked)
else
Secs := RT_TQINF;
Nsecs := RT_TQINF;
end if;
-- Get the real time class id.
Class_Info.pc_clname (1) := 'R';
Class_Info.pc_clname (2) := 'T';
Class_Info.pc_clname (3) := ASCII.NUL;
Result := priocntl (PC_VERSION, P_LWPID, P_MYID, PC_GETCID,
Class_Info'Address);
-- Request the real time class
Prio_Param.pc_cid := Class_Info.pc_cid;
Prio_Param.rt_pri := pri_t (Class_Info.rt_maxpri);
Prio_Param.rt_tqsecs := Secs;
Prio_Param.rt_tqnsecs := Nsecs;
Result := priocntl (PC_VERSION, P_LWPID, P_MYID, PC_SETPARMS,
Prio_Param'Address);
Using_Real_Time_Class := Result /= -1;
end;
end if;
Specific.Initialize (Environment_Task);
-- The following is done in Enter_Task, but this is too late for the
-- Environment Task, since we need to call Self in Check_Locks when
-- the run time is compiled with assertions on.
Specific.Set (Environment_Task);
-- Initialize the lock used to synchronize chain of all ATCBs.
Initialize_Lock (Single_RTS_Lock'Access, RTS_Lock_Level);
Enter_Task (Environment_Task);
-- Install the abort-signal handler
if State (System.Interrupt_Management.Abort_Task_Interrupt)
/= Default
then
-- Set sa_flags to SA_NODEFER so that during the handler execution
-- we do not change the Signal_Mask to be masked for the Abort_Signal
-- This is a temporary fix to the problem that the Signal_Mask is
-- not restored after the exception (longjmp) from the handler.
-- The right fix should be made in sigsetjmp so that we save
-- the Signal_Set and restore it after a longjmp.
-- In that case, this field should be changed back to 0. ???
act.sa_flags := 16;
act.sa_handler := Abort_Handler'Address;
Result := sigemptyset (Tmp_Set'Access);
pragma Assert (Result = 0);
act.sa_mask := Tmp_Set;
Result :=
sigaction (
Signal (System.Interrupt_Management.Abort_Task_Interrupt),
act'Unchecked_Access,
old_act'Unchecked_Access);
pragma Assert (Result = 0);
end if;
Configure_Processors;
end Initialize;
---------------------
-- Initialize_Lock --
---------------------
-- Note: mutexes and cond_variables needed per-task basis are
-- initialized in Initialize_TCB and the Storage_Error is
-- handled. Other mutexes (such as RTS_Lock, Memory_Lock...)
-- used in RTS is initialized before any status change of RTS.
-- Therefore rasing Storage_Error in the following routines
-- should be able to be handled safely.
procedure Initialize_Lock
(Prio : System.Any_Priority;
L : access Lock)
is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Initialize_Lock (Lock_Ptr (L), PO_Level));
if Priority_Ceiling_Emulation then
L.Ceiling := Prio;
end if;
Result := mutex_init (L.L'Access, USYNC_THREAD, System.Null_Address);
pragma Assert (Result = 0 or else Result = ENOMEM);
if Result = ENOMEM then
raise Storage_Error with "Failed to allocate a lock";
end if;
end Initialize_Lock;
procedure Initialize_Lock
(L : access RTS_Lock;
Level : Lock_Level)
is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Initialize_Lock
(To_Lock_Ptr (RTS_Lock_Ptr (L)), Level));
Result := mutex_init (L.L'Access, USYNC_THREAD, System.Null_Address);
pragma Assert (Result = 0 or else Result = ENOMEM);
if Result = ENOMEM then
raise Storage_Error with "Failed to allocate a lock";
end if;
end Initialize_Lock;
-------------------
-- Finalize_Lock --
-------------------
procedure Finalize_Lock (L : access Lock) is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Finalize_Lock (Lock_Ptr (L)));
Result := mutex_destroy (L.L'Access);
pragma Assert (Result = 0);
end Finalize_Lock;
procedure Finalize_Lock (L : access RTS_Lock) is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Finalize_Lock (To_Lock_Ptr (RTS_Lock_Ptr (L))));
Result := mutex_destroy (L.L'Access);
pragma Assert (Result = 0);
end Finalize_Lock;
----------------
-- Write_Lock --
----------------
procedure Write_Lock (L : access Lock; Ceiling_Violation : out Boolean) is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Lock (Lock_Ptr (L)));
if Priority_Ceiling_Emulation and then Locking_Policy = 'C' then
declare
Self_Id : constant Task_Id := Self;
Saved_Priority : System.Any_Priority;
begin
if Self_Id.Common.LL.Active_Priority > L.Ceiling then
Ceiling_Violation := True;
return;
end if;
Saved_Priority := Self_Id.Common.LL.Active_Priority;
if Self_Id.Common.LL.Active_Priority < L.Ceiling then
Set_Priority (Self_Id, L.Ceiling);
end if;
Result := mutex_lock (L.L'Access);
pragma Assert (Result = 0);
Ceiling_Violation := False;
L.Saved_Priority := Saved_Priority;
end;
else
Result := mutex_lock (L.L'Access);
pragma Assert (Result = 0);
Ceiling_Violation := False;
end if;
pragma Assert (Record_Lock (Lock_Ptr (L)));
end Write_Lock;
procedure Write_Lock
(L : access RTS_Lock;
Global_Lock : Boolean := False)
is
Result : Interfaces.C.int;
begin
if not Single_Lock or else Global_Lock then
pragma Assert (Check_Lock (To_Lock_Ptr (RTS_Lock_Ptr (L))));
Result := mutex_lock (L.L'Access);
pragma Assert (Result = 0);
pragma Assert (Record_Lock (To_Lock_Ptr (RTS_Lock_Ptr (L))));
end if;
end Write_Lock;
procedure Write_Lock (T : Task_Id) is
Result : Interfaces.C.int;
begin
if not Single_Lock then
pragma Assert (Check_Lock (To_Lock_Ptr (T.Common.LL.L'Access)));
Result := mutex_lock (T.Common.LL.L.L'Access);
pragma Assert (Result = 0);
pragma Assert (Record_Lock (To_Lock_Ptr (T.Common.LL.L'Access)));
end if;
end Write_Lock;
---------------
-- Read_Lock --
---------------
procedure Read_Lock (L : access Lock; Ceiling_Violation : out Boolean) is
begin
Write_Lock (L, Ceiling_Violation);
end Read_Lock;
------------
-- Unlock --
------------
procedure Unlock (L : access Lock) is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Unlock (Lock_Ptr (L)));
if Priority_Ceiling_Emulation and then Locking_Policy = 'C' then
declare
Self_Id : constant Task_Id := Self;
begin
Result := mutex_unlock (L.L'Access);
pragma Assert (Result = 0);
if Self_Id.Common.LL.Active_Priority > L.Saved_Priority then
Set_Priority (Self_Id, L.Saved_Priority);
end if;
end;
else
Result := mutex_unlock (L.L'Access);
pragma Assert (Result = 0);
end if;
end Unlock;
procedure Unlock (L : access RTS_Lock; Global_Lock : Boolean := False) is
Result : Interfaces.C.int;
begin
if not Single_Lock or else Global_Lock then
pragma Assert (Check_Unlock (To_Lock_Ptr (RTS_Lock_Ptr (L))));
Result := mutex_unlock (L.L'Access);
pragma Assert (Result = 0);
end if;
end Unlock;
procedure Unlock (T : Task_Id) is
Result : Interfaces.C.int;
begin
if not Single_Lock then
pragma Assert (Check_Unlock (To_Lock_Ptr (T.Common.LL.L'Access)));
Result := mutex_unlock (T.Common.LL.L.L'Access);
pragma Assert (Result = 0);
end if;
end Unlock;
-- For the time delay implementation, we need to make sure we
-- achieve following criteria:
-- 1) We have to delay at least for the amount requested.
-- 2) We have to give up CPU even though the actual delay does not
-- result in blocking.
-- 3) Except for restricted run-time systems that do not support
-- ATC or task abort, the delay must be interrupted by the
-- abort_task operation.
-- 4) The implementation has to be efficient so that the delay overhead
-- is relatively cheap.
-- (1)-(3) are Ada requirements. Even though (2) is an Annex-D
-- requirement we still want to provide the effect in all cases.
-- The reason is that users may want to use short delays to implement
-- their own scheduling effect in the absence of language provided
-- scheduling policies.
---------------------
-- Monotonic_Clock --
---------------------
function Monotonic_Clock return Duration is
TS : aliased timespec;
Result : Interfaces.C.int;
begin
Result := clock_gettime (CLOCK_REALTIME, TS'Unchecked_Access);
pragma Assert (Result = 0);
return To_Duration (TS);
end Monotonic_Clock;
-------------------
-- RT_Resolution --
-------------------
function RT_Resolution return Duration is
begin
return 10#1.0#E-6;
end RT_Resolution;
-----------
-- Yield --
-----------
procedure Yield (Do_Yield : Boolean := True) is
begin
if Do_Yield then
System.OS_Interface.thr_yield;
end if;
end Yield;
-----------
-- Self ---
-----------
function Self return Task_Id renames Specific.Self;
------------------
-- Set_Priority --
------------------
procedure Set_Priority
(T : Task_Id;
Prio : System.Any_Priority;
Loss_Of_Inheritance : Boolean := False)
is
pragma Unreferenced (Loss_Of_Inheritance);
Result : Interfaces.C.int;
pragma Unreferenced (Result);
Param : aliased struct_pcparms;
use Task_Info;
begin
T.Common.Current_Priority := Prio;
if Priority_Ceiling_Emulation then
T.Common.LL.Active_Priority := Prio;
end if;
if Using_Real_Time_Class then
Param.pc_cid := Prio_Param.pc_cid;
Param.rt_pri := pri_t (Prio);
Param.rt_tqsecs := Prio_Param.rt_tqsecs;
Param.rt_tqnsecs := Prio_Param.rt_tqnsecs;
Result := Interfaces.C.int (
priocntl (PC_VERSION, P_LWPID, T.Common.LL.LWP, PC_SETPARMS,
Param'Address));
else
if T.Common.Task_Info /= null
and then not T.Common.Task_Info.Bound_To_LWP
then
-- The task is not bound to a LWP, so use thr_setprio
Result :=
thr_setprio (T.Common.LL.Thread, Interfaces.C.int (Prio));
else
-- The task is bound to a LWP, use priocntl
-- ??? TBD
null;
end if;
end if;
end Set_Priority;
------------------
-- Get_Priority --
------------------
function Get_Priority (T : Task_Id) return System.Any_Priority is
begin
return T.Common.Current_Priority;
end Get_Priority;
----------------
-- Enter_Task --
----------------
procedure Enter_Task (Self_ID : Task_Id) is
Result : Interfaces.C.int;
Proc : processorid_t; -- User processor #
Last_Proc : processorid_t; -- Last processor #
use System.Task_Info;
begin
Self_ID.Common.LL.Thread := thr_self;
Self_ID.Common.LL.LWP := lwp_self;
if Self_ID.Common.Task_Info /= null then
if Self_ID.Common.Task_Info.New_LWP
and then Self_ID.Common.Task_Info.CPU /= CPU_UNCHANGED
then
Last_Proc := Num_Procs - 1;
if Self_ID.Common.Task_Info.CPU = ANY_CPU then
Result := 0;
Proc := 0;
while Proc < Last_Proc loop
Result := p_online (Proc, PR_STATUS);
exit when Result = PR_ONLINE;
Proc := Proc + 1;
end loop;
Result := processor_bind (P_LWPID, P_MYID, Proc, null);
pragma Assert (Result = 0);
else
-- Use specified processor
if Self_ID.Common.Task_Info.CPU < 0
or else Self_ID.Common.Task_Info.CPU > Last_Proc
then
raise Invalid_CPU_Number;
end if;
Result := processor_bind
(P_LWPID, P_MYID, Self_ID.Common.Task_Info.CPU, null);
pragma Assert (Result = 0);
end if;
end if;
end if;
Specific.Set (Self_ID);
-- We need the above code even if we do direct fetch of Task_Id in Self
-- for the main task on Sun, x86 Solaris and for gcc 2.7.2.
Lock_RTS;
for J in Known_Tasks'Range loop
if Known_Tasks (J) = null then
Known_Tasks (J) := Self_ID;
Self_ID.Known_Tasks_Index := J;
exit;
end if;
end loop;
Unlock_RTS;
end Enter_Task;
--------------
-- New_ATCB --
--------------
function New_ATCB (Entry_Num : Task_Entry_Index) return Task_Id is
begin
return new Ada_Task_Control_Block (Entry_Num);
end New_ATCB;
-------------------
-- Is_Valid_Task --
-------------------
function Is_Valid_Task return Boolean renames Specific.Is_Valid_Task;
-----------------------------
-- Register_Foreign_Thread --
-----------------------------
function Register_Foreign_Thread return Task_Id is
begin
if Is_Valid_Task then
return Self;
else
return Register_Foreign_Thread (thr_self);
end if;
end Register_Foreign_Thread;
--------------------
-- Initialize_TCB --
--------------------
procedure Initialize_TCB (Self_ID : Task_Id; Succeeded : out Boolean) is
Result : Interfaces.C.int := 0;
begin
-- Give the task a unique serial number.
Self_ID.Serial_Number := Next_Serial_Number;
Next_Serial_Number := Next_Serial_Number + 1;
pragma Assert (Next_Serial_Number /= 0);
Self_ID.Common.LL.Thread := To_thread_t (-1);
if not Single_Lock then
Result := mutex_init
(Self_ID.Common.LL.L.L'Access, USYNC_THREAD, System.Null_Address);
Self_ID.Common.LL.L.Level :=
Private_Task_Serial_Number (Self_ID.Serial_Number);
pragma Assert (Result = 0 or else Result = ENOMEM);
end if;
if Result = 0 then
Result := cond_init (Self_ID.Common.LL.CV'Access, USYNC_THREAD, 0);
pragma Assert (Result = 0 or else Result = ENOMEM);
end if;
if Result = 0 then
Succeeded := True;
else
if not Single_Lock then
Result := mutex_destroy (Self_ID.Common.LL.L.L'Access);
pragma Assert (Result = 0);
end if;
Succeeded := False;
end if;
end Initialize_TCB;
-----------------
-- Create_Task --
-----------------
procedure Create_Task
(T : Task_Id;
Wrapper : System.Address;
Stack_Size : System.Parameters.Size_Type;
Priority : System.Any_Priority;
Succeeded : out Boolean)
is
pragma Unreferenced (Priority);
Result : Interfaces.C.int;
Adjusted_Stack_Size : Interfaces.C.size_t;
Opts : Interfaces.C.int := THR_DETACHED;
Page_Size : constant System.Parameters.Size_Type := 4096;
-- This constant is for reserving extra space at the
-- end of the stack, which can be used by the stack
-- checking as guard page. The idea is that we need
-- to have at least Stack_Size bytes available for
-- actual use.
use System.Task_Info;
begin
Adjusted_Stack_Size := Interfaces.C.size_t (Stack_Size + Page_Size);
-- Since the initial signal mask of a thread is inherited from the
-- creator, and the Environment task has all its signals masked, we
-- do not need to manipulate caller's signal mask at this point.
-- All tasks in RTS will have All_Tasks_Mask initially.
if T.Common.Task_Info /= null then
if T.Common.Task_Info.New_LWP then
Opts := Opts + THR_NEW_LWP;
end if;
if T.Common.Task_Info.Bound_To_LWP then
Opts := Opts + THR_BOUND;
end if;
else
Opts := THR_DETACHED + THR_BOUND;
end if;
Result := thr_create
(System.Null_Address,
Adjusted_Stack_Size,
Thread_Body_Access (Wrapper),
To_Address (T),
Opts,
T.Common.LL.Thread'Access);
Succeeded := Result = 0;
pragma Assert
(Result = 0
or else Result = ENOMEM
or else Result = EAGAIN);
end Create_Task;
------------------
-- Finalize_TCB --
------------------
procedure Finalize_TCB (T : Task_Id) is
Result : Interfaces.C.int;
Tmp : Task_Id := T;
Is_Self : constant Boolean := T = Self;
procedure Free is new
Unchecked_Deallocation (Ada_Task_Control_Block, Task_Id);
begin
T.Common.LL.Thread := To_thread_t (0);
if not Single_Lock then
Result := mutex_destroy (T.Common.LL.L.L'Access);
pragma Assert (Result = 0);
end if;
Result := cond_destroy (T.Common.LL.CV'Access);
pragma Assert (Result = 0);
if T.Known_Tasks_Index /= -1 then
Known_Tasks (T.Known_Tasks_Index) := null;
end if;
Free (Tmp);
if Is_Self then
Specific.Set (null);
end if;
end Finalize_TCB;
---------------
-- Exit_Task --
---------------
-- This procedure must be called with abort deferred.
-- It can no longer call Self or access
-- the current task's ATCB, since the ATCB has been deallocated.
procedure Exit_Task is
begin
Specific.Set (null);
end Exit_Task;
----------------
-- Abort_Task --
----------------
procedure Abort_Task (T : Task_Id) is
Result : Interfaces.C.int;
begin
pragma Assert (T /= Self);
Result := thr_kill (T.Common.LL.Thread,
Signal (System.Interrupt_Management.Abort_Task_Interrupt));
pragma Assert (Result = 0);
end Abort_Task;
-----------
-- Sleep --
-----------
procedure Sleep
(Self_ID : Task_Id;
Reason : Task_States)
is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Sleep (Reason));
if Dynamic_Priority_Support
and then Self_ID.Pending_Priority_Change
then
Self_ID.Pending_Priority_Change := False;
Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority;
Set_Priority (Self_ID, Self_ID.Common.Base_Priority);
end if;
if Single_Lock then
Result := cond_wait
(Self_ID.Common.LL.CV'Access, Single_RTS_Lock.L'Access);
else
Result := cond_wait
(Self_ID.Common.LL.CV'Access, Self_ID.Common.LL.L.L'Access);
end if;
pragma Assert (Record_Wakeup
(To_Lock_Ptr (Self_ID.Common.LL.L'Access), Reason));
pragma Assert (Result = 0 or else Result = EINTR);
end Sleep;
-- Note that we are relying heaviliy here on the GNAT feature
-- that Calendar.Time, System.Real_Time.Time, Duration, and
-- System.Real_Time.Time_Span are all represented in the same
-- way, i.e., as a 64-bit count of nanoseconds.
-- This allows us to always pass the timeout value as a Duration.
-- ???
-- We are taking liberties here with the semantics of the delays.
-- That is, we make no distinction between delays on the Calendar clock
-- and delays on the Real_Time clock. That is technically incorrect, if
-- the Calendar clock happens to be reset or adjusted.
-- To solve this defect will require modification to the compiler
-- interface, so that it can pass through more information, to tell
-- us here which clock to use!
-- cond_timedwait will return if any of the following happens:
-- 1) some other task did cond_signal on this condition variable
-- In this case, the return value is 0
-- 2) the call just returned, for no good reason
-- This is called a "spurious wakeup".
-- In this case, the return value may also be 0.
-- 3) the time delay expires
-- In this case, the return value is ETIME
-- 4) this task received a signal, which was handled by some
-- handler procedure, and now the thread is resuming execution
-- UNIX calls this an "interrupted" system call.
-- In this case, the return value is EINTR
-- If the cond_timedwait returns 0 or EINTR, it is still
-- possible that the time has actually expired, and by chance
-- a signal or cond_signal occurred at around the same time.
-- We have also observed that on some OS's the value ETIME
-- will be returned, but the clock will show that the full delay
-- has not yet expired.
-- For these reasons, we need to check the clock after return
-- from cond_timedwait. If the time has expired, we will set
-- Timedout = True.
-- This check might be omitted for systems on which the
-- cond_timedwait() never returns early or wakes up spuriously.
-- Annex D requires that completion of a delay cause the task
-- to go to the end of its priority queue, regardless of whether
-- the task actually was suspended by the delay. Since
-- cond_timedwait does not do this on Solaris, we add a call
-- to thr_yield at the end. We might do this at the beginning,
-- instead, but then the round-robin effect would not be the
-- same; the delayed task would be ahead of other tasks of the
-- same priority that awoke while it was sleeping.
-- For Timed_Sleep, we are expecting possible cond_signals
-- to indicate other events (e.g., completion of a RV or
-- completion of the abortable part of an async. select),
-- we want to always return if interrupted. The caller will
-- be responsible for checking the task state to see whether
-- the wakeup was spurious, and to go back to sleep again
-- in that case. We don't need to check for pending abort
-- or priority change on the way in our out; that is the
-- caller's responsibility.
-- For Timed_Delay, we are not expecting any cond_signals or
-- other interruptions, except for priority changes and aborts.
-- Therefore, we don't want to return unless the delay has
-- actually expired, or the call has been aborted. In this
-- case, since we want to implement the entire delay statement
-- semantics, we do need to check for pending abort and priority
-- changes. We can quietly handle priority changes inside the
-- procedure, since there is no entry-queue reordering involved.
-----------------
-- Timed_Sleep --
-----------------
procedure Timed_Sleep
(Self_ID : Task_Id;
Time : Duration;
Mode : ST.Delay_Modes;
Reason : System.Tasking.Task_States;
Timedout : out Boolean;
Yielded : out Boolean)
is
Check_Time : constant Duration := Monotonic_Clock;
Abs_Time : Duration;
Request : aliased timespec;
Result : Interfaces.C.int;
begin
pragma Assert (Check_Sleep (Reason));
Timedout := True;
Yielded := False;
if Mode = Relative then
Abs_Time := Duration'Min (Time, Max_Sensible_Delay) + Check_Time;
else
Abs_Time := Duration'Min (Check_Time + Max_Sensible_Delay, Time);
end if;
if Abs_Time > Check_Time then
Request := To_Timespec (Abs_Time);
loop
exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level
or else (Dynamic_Priority_Support and then
Self_ID.Pending_Priority_Change);
if Single_Lock then
Result := cond_timedwait (Self_ID.Common.LL.CV'Access,
Single_RTS_Lock.L'Access, Request'Access);
else
Result := cond_timedwait (Self_ID.Common.LL.CV'Access,
Self_ID.Common.LL.L.L'Access, Request'Access);
end if;
Yielded := True;
exit when Abs_Time <= Monotonic_Clock;
if Result = 0 or Result = EINTR then
-- Somebody may have called Wakeup for us
Timedout := False;
exit;
end if;
pragma Assert (Result = ETIME);
end loop;
end if;
pragma Assert (Record_Wakeup
(To_Lock_Ptr (Self_ID.Common.LL.L'Access), Reason));
end Timed_Sleep;
-----------------
-- Timed_Delay --
-----------------
procedure Timed_Delay
(Self_ID : Task_Id;
Time : Duration;
Mode : ST.Delay_Modes)
is
Check_Time : constant Duration := Monotonic_Clock;
Abs_Time : Duration;
Request : aliased timespec;
Result : Interfaces.C.int;
Yielded : Boolean := False;
begin
if Single_Lock then
Lock_RTS;
end if;
Write_Lock (Self_ID);
if Mode = Relative then
Abs_Time := Time + Check_Time;
else
Abs_Time := Duration'Min (Check_Time + Max_Sensible_Delay, Time);
end if;
if Abs_Time > Check_Time then
Request := To_Timespec (Abs_Time);
Self_ID.Common.State := Delay_Sleep;
pragma Assert (Check_Sleep (Delay_Sleep));
loop
if Dynamic_Priority_Support and then
Self_ID.Pending_Priority_Change then
Self_ID.Pending_Priority_Change := False;
Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority;
Set_Priority (Self_ID, Self_ID.Common.Base_Priority);
end if;
exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level;
if Single_Lock then
Result := cond_timedwait (Self_ID.Common.LL.CV'Access,
Single_RTS_Lock.L'Access, Request'Access);
else
Result := cond_timedwait (Self_ID.Common.LL.CV'Access,
Self_ID.Common.LL.L.L'Access, Request'Access);
end if;
Yielded := True;
exit when Abs_Time <= Monotonic_Clock;
pragma Assert (Result = 0 or else
Result = ETIME or else
Result = EINTR);
end loop;
pragma Assert (Record_Wakeup
(To_Lock_Ptr (Self_ID.Common.LL.L'Access), Delay_Sleep));
Self_ID.Common.State := Runnable;
end if;
Unlock (Self_ID);
if Single_Lock then
Unlock_RTS;
end if;
if not Yielded then
thr_yield;
end if;
end Timed_Delay;
------------
-- Wakeup --
------------
procedure Wakeup
(T : Task_Id;
Reason : Task_States)
is
Result : Interfaces.C.int;
begin
pragma Assert (Check_Wakeup (T, Reason));
Result := cond_signal (T.Common.LL.CV'Access);
pragma Assert (Result = 0);
end Wakeup;
---------------------------
-- Check_Initialize_Lock --
---------------------------
-- The following code is intended to check some of the invariant
-- assertions related to lock usage, on which we depend.
function Check_Initialize_Lock
(L : Lock_Ptr;
Level : Lock_Level) return Boolean
is
Self_ID : constant Task_Id := Self;
begin
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
-- Check that the lock is not yet initialized
if L.Level /= 0 then
return False;
end if;
L.Level := Lock_Level'Pos (Level) + 1;
return True;
end Check_Initialize_Lock;
----------------
-- Check_Lock --
----------------
function Check_Lock (L : Lock_Ptr) return Boolean is
Self_ID : constant Task_Id := Self;
P : Lock_Ptr;
begin
-- Check that the argument is not null
if L = null then
return False;
end if;
-- Check that L is not frozen
if L.Frozen then
return False;
end if;
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
-- Check that caller is not holding this lock already
if L.Owner = To_Owner_ID (To_Address (Self_ID)) then
return False;
end if;
if Single_Lock then
return True;
end if;
-- Check that TCB lock order rules are satisfied
P := Self_ID.Common.LL.Locks;
if P /= null then
if P.Level >= L.Level
and then (P.Level > 2 or else L.Level > 2)
then
return False;
end if;
end if;
return True;
end Check_Lock;
-----------------
-- Record_Lock --
-----------------
function Record_Lock (L : Lock_Ptr) return Boolean is
Self_ID : constant Task_Id := Self;
P : Lock_Ptr;
begin
Lock_Count := Lock_Count + 1;
-- There should be no owner for this lock at this point
if L.Owner /= null then
return False;
end if;
-- Record new owner
L.Owner := To_Owner_ID (To_Address (Self_ID));
if Single_Lock then
return True;
end if;
-- Check that TCB lock order rules are satisfied
P := Self_ID.Common.LL.Locks;
if P /= null then
L.Next := P;
end if;
Self_ID.Common.LL.Locking := null;
Self_ID.Common.LL.Locks := L;
return True;
end Record_Lock;
-----------------
-- Check_Sleep --
-----------------
function Check_Sleep (Reason : Task_States) return Boolean is
pragma Unreferenced (Reason);
Self_ID : constant Task_Id := Self;
P : Lock_Ptr;
begin
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
if Single_Lock then
return True;
end if;
-- Check that caller is holding own lock, on top of list
if Self_ID.Common.LL.Locks /=
To_Lock_Ptr (Self_ID.Common.LL.L'Access)
then
return False;
end if;
-- Check that TCB lock order rules are satisfied
if Self_ID.Common.LL.Locks.Next /= null then
return False;
end if;
Self_ID.Common.LL.L.Owner := null;
P := Self_ID.Common.LL.Locks;
Self_ID.Common.LL.Locks := Self_ID.Common.LL.Locks.Next;
P.Next := null;
return True;
end Check_Sleep;
-------------------
-- Record_Wakeup --
-------------------
function Record_Wakeup
(L : Lock_Ptr;
Reason : Task_States) return Boolean
is
pragma Unreferenced (Reason);
Self_ID : constant Task_Id := Self;
P : Lock_Ptr;
begin
-- Record new owner
L.Owner := To_Owner_ID (To_Address (Self_ID));
if Single_Lock then
return True;
end if;
-- Check that TCB lock order rules are satisfied
P := Self_ID.Common.LL.Locks;
if P /= null then
L.Next := P;
end if;
Self_ID.Common.LL.Locking := null;
Self_ID.Common.LL.Locks := L;
return True;
end Record_Wakeup;
------------------
-- Check_Wakeup --
------------------
function Check_Wakeup
(T : Task_Id;
Reason : Task_States) return Boolean
is
Self_ID : constant Task_Id := Self;
begin
-- Is caller holding T's lock?
if T.Common.LL.L.Owner /= To_Owner_ID (To_Address (Self_ID)) then
return False;
end if;
-- Are reasons for wakeup and sleep consistent?
if T.Common.State /= Reason then
return False;
end if;
return True;
end Check_Wakeup;
------------------
-- Check_Unlock --
------------------
function Check_Unlock (L : Lock_Ptr) return Boolean is
Self_ID : constant Task_Id := Self;
P : Lock_Ptr;
begin
Unlock_Count := Unlock_Count + 1;
if L = null then
return False;
end if;
if L.Buddy /= null then
return False;
end if;
if L.Level = 4 then
Check_Count := Unlock_Count;
end if;
if Unlock_Count - Check_Count > 1000 then
Check_Count := Unlock_Count;
end if;
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
-- Check that caller is holding this lock, on top of list
if Self_ID.Common.LL.Locks /= L then
return False;
end if;
-- Record there is no owner now
L.Owner := null;
P := Self_ID.Common.LL.Locks;
Self_ID.Common.LL.Locks := Self_ID.Common.LL.Locks.Next;
P.Next := null;
return True;
end Check_Unlock;
--------------------
-- Check_Finalize --
--------------------
function Check_Finalize_Lock (L : Lock_Ptr) return Boolean is
Self_ID : constant Task_Id := Self;
begin
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
-- Check that no one is holding this lock
if L.Owner /= null then
return False;
end if;
L.Frozen := True;
return True;
end Check_Finalize_Lock;
----------------
-- Initialize --
----------------
procedure Initialize (S : in out Suspension_Object) is
Result : Interfaces.C.int;
begin
-- Initialize internal state. It is always initialized to False (ARM
-- D.10 par. 6).
S.State := False;
S.Waiting := False;
-- Initialize internal mutex
Result := mutex_init (S.L'Access, USYNC_THREAD, System.Null_Address);
pragma Assert (Result = 0 or else Result = ENOMEM);
if Result = ENOMEM then
raise Storage_Error with "Failed to allocate a lock";
end if;
-- Initialize internal condition variable
Result := cond_init (S.CV'Access, USYNC_THREAD, 0);
pragma Assert (Result = 0 or else Result = ENOMEM);
if Result /= 0 then
Result := mutex_destroy (S.L'Access);
pragma Assert (Result = 0);
if Result = ENOMEM then
raise Storage_Error;
end if;
end if;
end Initialize;
--------------
-- Finalize --
--------------
procedure Finalize (S : in out Suspension_Object) is
Result : Interfaces.C.int;
begin
-- Destroy internal mutex
Result := mutex_destroy (S.L'Access);
pragma Assert (Result = 0);
-- Destroy internal condition variable
Result := cond_destroy (S.CV'Access);
pragma Assert (Result = 0);
end Finalize;
-------------------
-- Current_State --
-------------------
function Current_State (S : Suspension_Object) return Boolean is
begin
-- We do not want to use lock on this read operation. State is marked
-- as Atomic so that we ensure that the value retrieved is correct.
return S.State;
end Current_State;
---------------
-- Set_False --
---------------
procedure Set_False (S : in out Suspension_Object) is
Result : Interfaces.C.int;
begin
SSL.Abort_Defer.all;
Result := mutex_lock (S.L'Access);
pragma Assert (Result = 0);
S.State := False;
Result := mutex_unlock (S.L'Access);
pragma Assert (Result = 0);
SSL.Abort_Undefer.all;
end Set_False;
--------------
-- Set_True --
--------------
procedure Set_True (S : in out Suspension_Object) is
Result : Interfaces.C.int;
begin
SSL.Abort_Defer.all;
Result := mutex_lock (S.L'Access);
pragma Assert (Result = 0);
-- If there is already a task waiting on this suspension object then
-- we resume it, leaving the state of the suspension object to False,
-- as it is specified in ARM D.10 par. 9. Otherwise, it just leaves
-- the state to True.
if S.Waiting then
S.Waiting := False;
S.State := False;
Result := cond_signal (S.CV'Access);
pragma Assert (Result = 0);
else
S.State := True;
end if;
Result := mutex_unlock (S.L'Access);
pragma Assert (Result = 0);
SSL.Abort_Undefer.all;
end Set_True;
------------------------
-- Suspend_Until_True --
------------------------
procedure Suspend_Until_True (S : in out Suspension_Object) is
Result : Interfaces.C.int;
begin
SSL.Abort_Defer.all;
Result := mutex_lock (S.L'Access);
pragma Assert (Result = 0);
if S.Waiting then
-- Program_Error must be raised upon calling Suspend_Until_True
-- if another task is already waiting on that suspension object
-- (ARM D.10 par. 10).
Result := mutex_unlock (S.L'Access);
pragma Assert (Result = 0);
SSL.Abort_Undefer.all;
raise Program_Error;
else
-- Suspend the task if the state is False. Otherwise, the task
-- continues its execution, and the state of the suspension object
-- is set to False (ARM D.10 par. 9).
if S.State then
S.State := False;
else
S.Waiting := True;
Result := cond_wait (S.CV'Access, S.L'Access);
end if;
Result := mutex_unlock (S.L'Access);
pragma Assert (Result = 0);
SSL.Abort_Undefer.all;
end if;
end Suspend_Until_True;
----------------
-- Check_Exit --
----------------
function Check_Exit (Self_ID : Task_Id) return Boolean is
begin
-- Check that caller is just holding Global_Task_Lock
-- and no other locks
if Self_ID.Common.LL.Locks = null then
return False;
end if;
-- 2 = Global_Task_Level
if Self_ID.Common.LL.Locks.Level /= 2 then
return False;
end if;
if Self_ID.Common.LL.Locks.Next /= null then
return False;
end if;
-- Check that caller is abort-deferred
if Self_ID.Deferral_Level = 0 then
return False;
end if;
return True;
end Check_Exit;
--------------------
-- Check_No_Locks --
--------------------
function Check_No_Locks (Self_ID : Task_Id) return Boolean is
begin
return Self_ID.Common.LL.Locks = null;
end Check_No_Locks;
----------------------
-- Environment_Task --
----------------------
function Environment_Task return Task_Id is
begin
return Environment_Task_Id;
end Environment_Task;
--------------
-- Lock_RTS --
--------------
procedure Lock_RTS is
begin
Write_Lock (Single_RTS_Lock'Access, Global_Lock => True);
end Lock_RTS;
----------------
-- Unlock_RTS --
----------------
procedure Unlock_RTS is
begin
Unlock (Single_RTS_Lock'Access, Global_Lock => True);
end Unlock_RTS;
------------------
-- Suspend_Task --
------------------
function Suspend_Task
(T : ST.Task_Id;
Thread_Self : Thread_Id) return Boolean
is
begin
if T.Common.LL.Thread /= Thread_Self then
return thr_suspend (T.Common.LL.Thread) = 0;
else
return True;
end if;
end Suspend_Task;
-----------------
-- Resume_Task --
-----------------
function Resume_Task
(T : ST.Task_Id;
Thread_Self : Thread_Id) return Boolean
is
begin
if T.Common.LL.Thread /= Thread_Self then
return thr_continue (T.Common.LL.Thread) = 0;
else
return True;
end if;
end Resume_Task;
end System.Task_Primitives.Operations;
|
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Parsers.Multiline_Source Luebeck --
-- Interface Winter, 2004 --
-- --
-- Last revision : 12:54 06 Jun 2009 --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public License as --
-- published by the Free Software Foundation; either version 2 of --
-- the License, or (at your option) any later version. This library --
-- is distributed in the hope that it will be useful, but WITHOUT --
-- ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. You should have --
-- received a copy of the GNU General Public License along with --
-- this library; if not, write to the Free Software Foundation, --
-- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
--____________________________________________________________________--
--
-- This package provides an implementation of code sources consisting
-- of several lines. The package defines an abstract base type Source.
--
with Ada.Finalization;
with Ada.Unchecked_Deallocation;
with Parsers.Generic_Source;
package Parsers.Multiline_Source is
type Line_Number is new Natural;
--
-- Position -- File postion
--
type Position is record
Line : Line_Number;
Column : Integer;
end record;
function "<" (Left, Right : Position) return Boolean;
--
-- Location -- File slice from First to previous to Next
--
type Location is record
First : Position;
Next : Position;
end record;
type String_Ptr is access all String;
--
-- Source -- The source containing a file
--
-- Buffer - The source line buffer
-- Line - The current source line number
-- Length - The current line length
-- Pointer - The second cursor
-- Last - The first (backup) cursor
--
-- The field Buffer points to a string, which is used to keep the
-- current source line. The constructor allocates the buffer of some
-- reasonable size. When a new line is requested the buffer can be
-- replaced by a greater one if necessary. The destructor deallocates
-- the buffer.
--
type Source is
abstract new Ada.Finalization.Limited_Controlled with
record
Buffer : String_Ptr;
Line : Line_Number := 0;
Length : Natural;
Pointer : Integer;
Last : Integer;
end record;
type Line_Ptr is access constant String;
--
-- Finalize -- Destruction
--
-- Code - The source code
--
procedure Finalize (Code : in out Source);
--
-- Initialize -- Construction
--
-- Code - The source code
--
procedure Initialize (Code : in out Source);
--
-- Get_Line -- Read the next line into the buffer
--
-- Code - The source code
--
-- An implementation should read a complete next line into
-- Code.Buffer.all. It may reallocate the buffer if necessary. After
-- successful completion Code.Buffer should point to a buffer containing
-- the line and Code.Length should be the line length. The rest of the
-- buffer is ignored.
--
-- Exceptions :
--
-- End_Error - No more lines available
-- Any other - I/O error etc
--
procedure Get_Line (Code : in out Source) is abstract;
--
-- Get_Location -- Of an error from an error message string
--
-- Message - An error message
-- Prefix - Introducing error location image
--
-- This function searches for a location image in an error message
-- string. The image is searched backwards for an appearance of Prefix.
-- If an image does not follow Prefix search continues. The result is
-- the location decoded according to the format used by Image. If no
-- image found the result is ((0,0), (0,0).
--
-- Returns :
--
-- The rightmost location
--
function Get_Location
( Message : String;
Prefix : String := "at "
) return Location;
--
-- Skip -- Advance source to the specified location
--
-- Code - The source code
-- Link - Location
--
-- This procedure advances the source Code to the location Link, so that
-- the result of Link (Code) would equal to the value of the parameter
-- Link. Layout_Error is propagated when the source is beyond the first
-- position of Link. It is also propagated when some parts of Link do
-- not belong to the source Code.
--
-- Exceptions :
--
-- Layout_Error - Link is beyond the actual position
-- Any other - I/O error etc
--
procedure Skip (Code : in out Source'Class; Link : Location);
--
-- Implementations of the Parsers.Generic_Source interface
--
function "&" (Left, Right : Location) return Location;
function End_Of (Code : Source'Class) return Boolean;
function Get_Backup_Pointer (Code : Source'Class) return Integer;
function Get_Line (Code : Source'Class) return String;
procedure Get_Line
( Code : Source'Class;
Line : out Line_Ptr;
Pointer : out Integer;
Last : out Integer
);
function Get_Pointer (Code : Source'Class) return Integer;
function Image (Link : Location) return String;
function Link (Code : Source'Class) return Location;
procedure Next_Line (Code : in out Source'Class);
procedure Reset_Pointer (Code : in out Source'Class);
procedure Set_Pointer
( Code : in out Source'Class;
Pointer : Integer
);
--
-- Code -- The implementation
--
package Code is new
Parsers.Generic_Source
( Location_Type => Location,
Source_Type => Source'Class,
Line_Ptr_Type => Line_Ptr
);
private
pragma Inline ("<");
pragma Inline (End_Of);
pragma Inline (Get_Backup_Pointer);
pragma Inline (Get_Line);
pragma Inline (Get_Pointer);
pragma Inline (Link);
pragma Inline (Reset_Pointer);
procedure Free is
new Ada.Unchecked_Deallocation (String, String_Ptr);
end Parsers.Multiline_Source;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- G N A T . T A B L E --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1998-2001 Ada Core Technologies, 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 is maintained by Ada Core Technologies Inc (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
with System; use System;
package body GNAT.Table is
Min : constant Integer := Integer (Table_Low_Bound);
-- Subscript of the minimum entry in the currently allocated table
Max : Integer;
-- Subscript of the maximum entry in the currently allocated table
Length : Integer := 0;
-- Number of entries in currently allocated table. The value of zero
-- ensures that we initially allocate the table.
Last_Val : Integer;
-- Current value of Last.
type size_t is new Integer;
-----------------------
-- Local Subprograms --
-----------------------
procedure Reallocate;
-- Reallocate the existing table according to the current value stored
-- in Max. Works correctly to do an initial allocation if the table
-- is currently null.
--------------
-- Allocate --
--------------
function Allocate (Num : Integer := 1) return Table_Index_Type is
Old_Last : constant Integer := Last_Val;
begin
Last_Val := Last_Val + Num;
if Last_Val > Max then
Reallocate;
end if;
return Table_Index_Type (Old_Last + 1);
end Allocate;
------------
-- Append --
------------
procedure Append (New_Val : Table_Component_Type) is
begin
Increment_Last;
Table (Table_Index_Type (Last_Val)) := New_Val;
end Append;
--------------------
-- Decrement_Last --
--------------------
procedure Decrement_Last is
begin
Last_Val := Last_Val - 1;
end Decrement_Last;
----------
-- Free --
----------
procedure Free is
procedure free (T : Table_Ptr);
pragma Import (C, free);
begin
free (Table);
Table := null;
Length := 0;
end Free;
--------------------
-- Increment_Last --
--------------------
procedure Increment_Last is
begin
Last_Val := Last_Val + 1;
if Last_Val > Max then
Reallocate;
end if;
end Increment_Last;
----------
-- Init --
----------
procedure Init is
Old_Length : Integer := Length;
begin
Last_Val := Min - 1;
Max := Min + Table_Initial - 1;
Length := Max - Min + 1;
-- If table is same size as before (happens when table is never
-- expanded which is a common case), then simply reuse it. Note
-- that this also means that an explicit Init call right after
-- the implicit one in the package body is harmless.
if Old_Length = Length then
return;
-- Otherwise we can use Reallocate to get a table of the right size.
-- Note that Reallocate works fine to allocate a table of the right
-- initial size when it is first allocated.
else
Reallocate;
end if;
end Init;
----------
-- Last --
----------
function Last return Table_Index_Type is
begin
return Table_Index_Type (Last_Val);
end Last;
----------------
-- Reallocate --
----------------
procedure Reallocate is
function realloc
(memblock : Table_Ptr;
size : size_t)
return Table_Ptr;
pragma Import (C, realloc);
function malloc
(size : size_t)
return Table_Ptr;
pragma Import (C, malloc);
New_Size : size_t;
begin
if Max < Last_Val then
pragma Assert (not Locked);
while Max < Last_Val loop
-- Increase length using the table increment factor, but make
-- sure that we add at least ten elements (this avoids a loop
-- for silly small increment values)
Length := Integer'Max
(Length * (100 + Table_Increment) / 100,
Length + 10);
Max := Min + Length - 1;
end loop;
end if;
New_Size :=
size_t ((Max - Min + 1) *
(Table_Type'Component_Size / Storage_Unit));
if Table = null then
Table := malloc (New_Size);
elsif New_Size > 0 then
Table :=
realloc
(memblock => Table,
size => New_Size);
end if;
if Length /= 0 and then Table = null then
raise Storage_Error;
end if;
end Reallocate;
-------------
-- Release --
-------------
procedure Release is
begin
Length := Last_Val - Integer (Table_Low_Bound) + 1;
Max := Last_Val;
Reallocate;
end Release;
--------------
-- Set_Item --
--------------
procedure Set_Item
(Index : Table_Index_Type;
Item : Table_Component_Type)
is
begin
if Integer (Index) > Max then
Set_Last (Index);
end if;
Table (Index) := Item;
end Set_Item;
--------------
-- Set_Last --
--------------
procedure Set_Last (New_Val : Table_Index_Type) is
begin
if Integer (New_Val) < Last_Val then
Last_Val := Integer (New_Val);
else
Last_Val := Integer (New_Val);
if Last_Val > Max then
Reallocate;
end if;
end if;
end Set_Last;
begin
Init;
end GNAT.Table;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- I N T E R F A C E S . A A R C H 6 4 --
-- --
-- S p e c --
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
with System; use System;
with System.Machine_Code; use System.Machine_Code;
with Interfaces; use Interfaces;
package body Interfaces.AArch64 is
-------------------
-- Get_CPACR_EL1 --
-------------------
function Get_CPACR_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, cpacr_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_CPACR_EL1;
-------------------
-- Set_CPACR_EL1 --
-------------------
procedure Set_CPACR_EL1 (Val : Unsigned_64) is
begin
Asm ("msr cpacr_el1, %0",
Inputs => Unsigned_64'Asm_Input ("r", Val),
Volatile => True);
end Set_CPACR_EL1;
------------------
-- Get_CPTR_EL2 --
------------------
function Get_CPTR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, cptr_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_CPTR_EL2;
------------------
-- Set_CPTR_EL2 --
------------------
procedure Set_CPTR_EL2 (Val : Unsigned_64) is
begin
Asm ("msr cptr_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", Val),
Volatile => True);
end Set_CPTR_EL2;
----------------------
-- Set_CNTP_CTL_EL0 --
----------------------
procedure Set_CNTP_CTL_EL0 (Val : Unsigned_32) is
begin
Asm ("msr cntp_ctl_el0, %0",
Inputs => Unsigned_32'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTP_CTL_EL0;
----------------------
-- Set_CNTP_CTL_EL2 --
----------------------
procedure Set_CNTHP_CTL_EL2 (Val : Unsigned_32) is
begin
Asm ("msr cnthp_ctl_el2, %0",
Inputs => Unsigned_32'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTHP_CTL_EL2;
----------------------
-- Set_CNTV_CTL_EL0 --
----------------------
procedure Set_CNTV_CTL_EL0 (Val : Unsigned_32) is
begin
Asm ("msr cntv_ctl_el0, %0",
Inputs => Unsigned_32'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTV_CTL_EL0;
-----------------------
-- Set_CNTV_TVAL_EL0 --
-----------------------
procedure Set_CNTP_TVAL_EL0 (Val : Unsigned_32) is
begin
Asm ("msr cntp_tval_el0, %0",
Inputs => Unsigned_32'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTP_TVAL_EL0;
-----------------------
-- Set_CNTV_TVAL_EL2 --
-----------------------
procedure Set_CNTHP_TVAL_EL2 (Val : Unsigned_32) is
begin
Asm ("msr cnthp_tval_el2, %0",
Inputs => Unsigned_32'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTHP_TVAL_EL2;
-----------------------
-- Set_CNTP_CVAL_EL0 --
-----------------------
procedure Set_CNTP_CVAL_EL0 (Val : Unsigned_64) is
begin
Asm ("msr cntp_cval_el0, %0",
Inputs => Unsigned_64'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTP_CVAL_EL0;
-----------------------
-- Set_CNTHP_CVAL_EL2 --
-----------------------
procedure Set_CNTHP_CVAL_EL2 (Val : Unsigned_64) is
begin
Asm ("msr cnthp_cval_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", Val),
Volatile => True);
end Set_CNTHP_CVAL_EL2;
--------------------
-- Get_CNTPCT_EL0 --
--------------------
function Get_CNTPCT_EL0 return Unsigned_64 is
Res : Unsigned_64;
begin
-- Read CNTPCT
Asm ("mrs %0, cntpct_el0",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_CNTPCT_EL0;
-------------
-- DC_CVAU --
-------------
procedure DC_CVAU (Addr : Address) is
begin
Asm ("dc cvau, %0",
Inputs => Address'Asm_Input ("r", Addr),
Volatile => True);
end DC_CVAU;
-------------
-- DC_CVAC --
-------------
procedure DC_CVAC (Addr : Address) is
begin
Asm ("dc cvac, %0",
Inputs => Address'Asm_Input ("r", Addr),
Volatile => True);
end DC_CVAC;
-------------
-- IC_IVAU --
-------------
procedure IC_IVAU (Addr : Address) is
begin
Asm ("ic ivau, %0",
Inputs => Address'Asm_Input ("r", Addr),
Volatile => True);
end IC_IVAU;
-------------
-- DSB_ISH --
-------------
procedure DSB_ISH is
begin
Asm ("dsb ish", Volatile => True);
end DSB_ISH;
---------
-- ISB --
---------
procedure ISB is
begin
Asm ("isb", Volatile => True);
end ISB;
---------------------
-- TLBI_VMALLS12E1 --
---------------------
procedure TLBI_VMALLS12E1 is
begin
Asm ("tlbi vmalls12e1", Volatile => True);
end TLBI_VMALLS12E1;
--------------------
-- Get_Current_EL --
--------------------
function Get_Current_EL return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, currentel",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_Current_EL;
-----------------
-- Get_ELR_EL3 --
-----------------
function Get_ELR_EL3 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, elr_el3",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ELR_EL3;
-----------------
-- Set_ELR_EL3 --
-----------------
procedure Set_ELR_EL3 (V : Unsigned_64) is
begin
Asm ("msr elr_el3, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_ELR_EL3;
------------------
-- Get_SPSR_EL3 --
------------------
function Get_SPSR_EL3 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, spsr_el3",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SPSR_EL3;
-----------------
-- Get_ESR_EL3 --
-----------------
function Get_ESR_EL3 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, esr_el3",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ESR_EL3;
-----------------
-- Get_FAR_EL3 --
-----------------
function Get_FAR_EL3 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, far_el3",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_FAR_EL3;
-----------------
-- Get_ELR_EL2 --
-----------------
function Get_ELR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, elr_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ELR_EL2;
-----------------
-- Set_ELR_EL2 --
-----------------
procedure Set_ELR_EL2 (V : Unsigned_64) is
begin
Asm ("msr elr_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_ELR_EL2;
------------------
-- Get_SPSR_EL2 --
------------------
function Get_SPSR_EL2 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, spsr_el2",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SPSR_EL2;
-----------------
-- Get_ESR_EL2 --
-----------------
function Get_ESR_EL2 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, esr_el2",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ESR_EL2;
-----------------
-- Get_FAR_EL2 --
-----------------
function Get_FAR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, far_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_FAR_EL2;
-------------------
-- Get_HPFAR_EL2 --
-------------------
function Get_HPFAR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, hpfar_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_HPFAR_EL2;
------------------
-- Get_VTCR_EL2 --
------------------
function Get_VTCR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, vtcr_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_VTCR_EL2;
-------------------
-- Get_VTTBR_EL2 --
-------------------
function Get_VTTBR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, vttbr_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_VTTBR_EL2;
-------------------
-- Set_VTTBR_EL2 --
-------------------
procedure Set_VTTBR_EL2 (V : Unsigned_64) is
begin
Asm ("msr vttbr_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_VTTBR_EL2;
-----------------
-- Get_HCR_EL2 --
-----------------
function Get_HCR_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, hcr_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_HCR_EL2;
-----------------
-- Set_HCR_EL2 --
-----------------
procedure Set_HCR_EL2 (V : Unsigned_64) is
begin
Asm ("msr hcr_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_HCR_EL2;
----------------
-- Get_SP_EL2 --
----------------
function Get_SP_EL2 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, sp_el2",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SP_EL2;
-------------------
-- Get_SCTLR_EL2 --
-------------------
function Get_SCTLR_EL2 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, sctlr_el2",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SCTLR_EL2;
-------------------
-- Set_VPIDR_EL2 --
-------------------
procedure Set_VPIDR_EL2 (V : Unsigned_32) is
begin
Asm ("msr vpidr_el2, %0",
Inputs => Unsigned_32'Asm_Input ("r", V),
Volatile => True);
end Set_VPIDR_EL2;
--------------------
-- Set_VMPIDR_EL2 --
--------------------
procedure Set_VMPIDR_EL2 (V : Unsigned_64) is
begin
Asm ("msr vmpidr_el2, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_VMPIDR_EL2;
-----------------
-- Get_ELR_EL1 --
-----------------
function Get_ELR_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, elr_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ELR_EL1;
-----------------
-- Set_ELR_EL1 --
-----------------
procedure Set_ELR_EL1 (V : Unsigned_64) is
begin
Asm ("msr elr_el1, %0",
Inputs => Unsigned_64'Asm_Input ("r", V),
Volatile => True);
end Set_ELR_EL1;
------------------
-- Get_SPSR_EL1 --
------------------
function Get_SPSR_EL1 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, spsr_el1",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SPSR_EL1;
------------------
-- Get_VBAR_EL1 --
------------------
function Get_VBAR_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, vbar_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_VBAR_EL1;
-----------------
-- Get_ESR_EL1 --
-----------------
function Get_ESR_EL1 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, esr_el1",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ESR_EL1;
-----------------
-- Get_FAR_EL1 --
-----------------
function Get_FAR_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, far_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_FAR_EL1;
----------------
-- Get_SP_EL1 --
----------------
function Get_SP_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, sp_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SP_EL1;
-------------------
-- Get_SCTLR_EL1 --
-------------------
function Get_SCTLR_EL1 return Unsigned_32
is
Res : Unsigned_32;
begin
Asm ("mrs %0, sctlr_el1",
Outputs => Unsigned_32'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SCTLR_EL1;
-----------------
-- Get_TCR_EL1 --
-----------------
function Get_TCR_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, tcr_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_TCR_EL1;
-------------------
-- Get_TTBR0_EL1 --
-------------------
function Get_TTBR0_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, ttbr0_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_TTBR0_EL1;
-------------------
-- Get_TTBR1_EL1 --
-------------------
function Get_TTBR1_EL1 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, ttbr1_el1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_TTBR1_EL1;
-------------------
-- Get_MPIDR_EL1 --
-------------------
function Get_MPIDR_EL1 return Unsigned_32 is
R : Unsigned_32;
begin
Asm ("mrs %0, mpidr_el1",
Outputs => Unsigned_32'Asm_Output ("=r", R),
Volatile => True);
return R;
end Get_MPIDR_EL1;
----------------
-- Get_SP_EL0 --
----------------
function Get_SP_EL0 return Unsigned_64
is
Res : Unsigned_64;
begin
Asm ("mrs %0, sp_el0",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_SP_EL0;
--------------------------
-- Get_ID_AA64MMFR0_EL1 --
--------------------------
function Get_ID_AA64MMFR0_EL1 return Unsigned_64 is
Res : Unsigned_64;
begin
Asm ("mrs %0, ID_AA64MMFR0_EL1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ID_AA64MMFR0_EL1;
--------------------------
-- Get_ID_AA64MMFR1_EL1 --
--------------------------
function Get_ID_AA64MMFR1_EL1 return Unsigned_64 is
Res : Unsigned_64;
begin
Asm ("mrs %0, ID_AA64MMFR1_EL1",
Outputs => Unsigned_64'Asm_Output ("=r", Res),
Volatile => True);
return Res;
end Get_ID_AA64MMFR1_EL1;
end Interfaces.AArch64;
|
------------------------------------------------------------------------------
-- File : Game_control.ads
-- Description : Command set for games, based on GLUT
-- Copyright (c) Gautier de Montmollin 2002, 2005 .. 2008
------------------------------------------------------------------------------
-- Cannibalized from Game_Driving (see Engine_3D)
-- To do : programmable behaviour
with GL, GLUT.Devices;
package Game_Control is
type Command is (
go_forward,
go_backwards,
go_graduated,
slide_left,
slide_right,
slide_lateral_graduated,
turn_left,
turn_right,
turn_lateral_graduated,
slide_up,
slide_down,
slide_vertical_graduated,
turn_up,
turn_down,
turn_vertical_graduated,
run_mode,
ctrl_mode, -- "shoot", but useless with GLUT
slide_mode,
swing_plus,
swing_minus,
jump,
special_plus,
special_minus,
photo, video,
toggle_10,
interrupt_game,
n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, -- numeric keys
bogus_command -- a control can be directed on this
);
pragma Ordered (Command);
type Command_set is array (Command) of Boolean;
-- The empty command set:
no_command : constant Command_set := (others => False);
-- Function Set_ .. .
-- keyboard_command_mapping : array (Multi_keys.key_value) of Command :=
-- (others => bogus_command); -- for later !!
-- mouse_command_mapping : array (PC_Mouse.Mouse_button) of Command :=
-- (others => bogus_command); -- for later !!
-- Record game commands from peripherals (keyboard, mouse) --
procedure Append_Commands (size_x,
size_y : Integer; -- screen dimensions for mouse
warp_mouse : Boolean; -- recenter mouse cursor
c : in out Game_Control.Command_set; -- commands are added to c
gx, gy : out GL.Double; -- mouse movement since last call
Keyboard : access GLUT.Devices.Keyboard := GLUT.Devices.default_Keyboard'Access;
Mouse : access GLUT.Devices.Mouse := GLUT.Devices.default_Mouse'Access);
end Game_Control;
|
------------------------------------------------------------------------------
-- --
-- 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;
with Ada.Unchecked_Conversion;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.CRC; use STM32_SVD.CRC;
with STM32.RCC; use STM32.RCC;
package body STM32.Device is
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 GPIO_Port) is
begin
if This'Address = GPIOA_Base then
RCC_Periph.AHBENR.IOPAEN := True;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHBENR.IOPBEN := True;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHBENR.IOPCEN := True;
elsif This'Address = GPIOD_Base then
RCC_Periph.AHBENR.IOPDEN := True;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHBENR.IOPFEN := 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 GPIO_Port) is
begin
if This'Address = GPIOA_Base then
RCC_Periph.AHBRSTR.IOPARST := True;
RCC_Periph.AHBRSTR.IOPARST := False;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHBRSTR.IOPBRST := True;
RCC_Periph.AHBRSTR.IOPBRST := False;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHBRSTR.IOPCRST := True;
RCC_Periph.AHBRSTR.IOPCRST := False;
elsif This'Address = GPIOD_Base then
RCC_Periph.AHBRSTR.IOPDRST := True;
RCC_Periph.AHBRSTR.IOPDRST := False;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHBRSTR.IOPFRST := True;
RCC_Periph.AHBRSTR.IOPFRST := False;
else
raise Unknown_Device;
end if;
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Point : GPIO_Point) is
begin
Reset (Point.Periph.all);
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Points : GPIO_Points)
is
Do_Reset : Boolean;
begin
for J in Points'Range loop
Do_Reset := True;
for K in Points'First .. J - 1 loop
if Points (K).Periph = Points (J).Periph then
Do_Reset := False;
exit;
end if;
end loop;
if Do_Reset then
Reset (Points (J).Periph.all);
end if;
end loop;
end Reset;
------------------------------
-- GPIO_Port_Representation --
------------------------------
function GPIO_Port_Representation (Port : GPIO_Port) return UInt4 is
begin
-- TODO: rather ugly to have this board-specific range here
if Port'Address = GPIOA_Base then
return 0;
elsif Port'Address = GPIOB_Base then
return 1;
elsif Port'Address = GPIOC_Base then
return 2;
elsif Port'Address = GPIOD_Base then
return 3;
elsif Port'Address = GPIOF_Base then
return 5;
else
raise Program_Error;
end if;
end GPIO_Port_Representation;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased Analog_To_Digital_Converter)
is
begin
if This'Address = ADC1_Base then
RCC_Periph.AHBENR.ADC12EN := True;
elsif This'Address = ADC2_Base then
RCC_Periph.AHBENR.ADC12EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-------------------------
-- Reset_All_ADC_Units --
-------------------------
procedure Reset_All_ADC_Units is
begin
RCC_Periph.AHBRSTR.ADC12RST := True;
RCC_Periph.AHBRSTR.ADC12RST := False;
end Reset_All_ADC_Units;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source
(This : Analog_To_Digital_Converter;
Source : ADC_Clock_Source;
Prescaler : ADC_Prescaler := (Enable => False, Value => DIV_2))
is
pragma Unreferenced (This);
function To_ADCPRE is new Ada.Unchecked_Conversion
(ADC_Prescaler, UInt5);
AHB_PRE : constant ADC_Prescaler := (Enable => False, Value => DIV_2);
begin
case Source is
when AHB =>
RCC_Periph.CFGR2.ADC12PRES := To_ADCPRE (AHB_PRE);
if not RCC_Periph.AHBENR.ADC12EN then
RCC_Periph.AHBENR.ADC12EN := True;
end if;
when PLLCLK =>
if Prescaler.Enable then
RCC_Periph.AHBENR.ADC12EN := False;
end if;
RCC_Periph.CFGR2.ADC12PRES := To_ADCPRE (Prescaler);
end case;
end Select_Clock_Source;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock
-- (This : aliased Digital_To_Analog_Converter)
-- is
-- begin
-- if This'Address = DAC1_Base then
-- RCC_Periph.APB1ENR.DAC1EN := True;
-- elsif This'Address = DAC2_Base then
-- RCC_Periph.APB1ENR.DAC2EN := True;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : aliased Digital_To_Analog_Converter)
-- is
-- begin
-- if This'Address = DAC1_Base then
-- RCC_Periph.APB1RSTR.DAC1RST := True;
-- RCC_Periph.APB1RSTR.DAC1RST := False;
-- elsif This'Address = DAC2_Base then
-- RCC_Periph.APB1RSTR.DAC2RST := True;
-- RCC_Periph.APB1RSTR.DAC2RST := False;
-- end if;
-- end Reset;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : CRC_32) is
-- pragma Unreferenced (This);
-- begin
-- RCC_Periph.AHBENR.CRCEN := True;
-- end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
-- procedure Disable_Clock (This : CRC_32) is
-- pragma Unreferenced (This);
-- begin
-- RCC_Periph.AHBENR.CRCEN := False;
-- end Disable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : CRC_32) is
-- pragma Unreferenced (This);
-- begin
-- CRC_Periph.CR.RESET := True;
-- end Reset;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : aliased DMA_Controller) is
-- begin
-- if This'Address = STM32_SVD.DMA_Base then
-- RCC_Periph.AHBENR.DMA1EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- This processor doesn't have DMA reset. When a DMA transfer error occurs
-- during a DMA read or write access, the faulty channel x is automatically
-- disabled through a hardware clear of its EN bit in the corresponding
-- DMA_CCRx register. See RM0364 rev 4 pg 181 chapter 11.4.6.
-- procedure Reset (This : aliased DMA_Controller) is
-- begin
-- if This'Address = STM32_SVD.DMA_Base then
-- RCC_Periph.AHBENR.DMA1EN := False;
-- RCC_Periph.AHBENR.DMA1EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : aliased USART) is
-- begin
-- if This.Periph.all'Address = USART1_Base then
-- RCC_Periph.APB2ENR.USART1EN := True;
-- elsif This.Periph.all'Address = USART2_Base then
-- RCC_Periph.APB1ENR.USART2EN := True;
-- elsif This.Periph.all'Address = USART3_Base then
-- RCC_Periph.APB1ENR.USART3EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : aliased USART) is
-- begin
-- if This.Periph.all'Address = USART1_Base then
-- RCC_Periph.APB2RSTR.USART1RST := True;
-- RCC_Periph.APB2RSTR.USART1RST := False;
-- elsif This.Periph.all'Address = USART2_Base then
-- RCC_Periph.APB1RSTR.USART2RST := True;
-- RCC_Periph.APB1RSTR.USART2RST := False;
-- elsif This.Periph.all'Address = USART3_Base then
-- RCC_Periph.APB1RSTR.USART3RST := True;
-- RCC_Periph.APB1RSTR.USART3RST := False;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
-- procedure Select_Clock_Source (This : USART;
-- Source : USART_Clock_Source)
-- is
-- begin
-- if This'Address = USART1_Base then
-- RCC_Periph.CFGR3.USART1SW := Source'Enum_Rep;
-- else
-- raise Unknown_Device;
-- end if;
-- end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
-- function Read_Clock_Source
-- (This : USART) return USART_Clock_Source
-- is
-- begin
-- if This'Address = USART1_Base then
-- return USART_Clock_Source'Val (RCC_Periph.CFGR3.USART1SW);
-- else
-- raise Unknown_Device;
-- end if;
-- end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : aliased CAN_Controller) is
-- begin
-- if This'Address = CAN_Base then
-- RCC_Periph.APB1ENR.CANEN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : aliased CAN_Controller) is
-- begin
-- if This'Address = STM32_SVD.CAN_Base then
-- RCC_Periph.APB1RSTR.CANRST := True;
-- RCC_Periph.APB1RSTR.CANRST := False;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
----------------
-- As_Port_Id --
----------------
-- function As_Port_Id (Port : I2C_Port'Class) return I2C_Port_Id is
-- begin
-- if Port.Periph.all'Address = I2C_Base then
-- return I2C_Id_1;
-- else
-- raise Unknown_Device;
-- end if;
-- end As_Port_Id;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : aliased I2C_Port'Class) is
-- begin
-- Enable_Clock (As_Port_Id (This));
-- end Enable_Clock;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : I2C_Port_Id) is
-- begin
-- case This is
-- when I2C_Id_1 =>
-- RCC_Periph.APB1ENR.I2C1EN := True;
-- end case;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : I2C_Port'Class) is
-- begin
-- Reset (As_Port_Id (This));
-- end Reset;
-----------
-- Reset --
-----------
-- procedure Reset (This : I2C_Port_Id) is
-- begin
-- case This is
-- when I2C_Id_1 =>
-- RCC_Periph.APB1RSTR.I2C1RST := True;
-- RCC_Periph.APB1RSTR.I2C1RST := False;
-- end case;
-- end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
-- procedure Select_Clock_Source (This : I2C_Port'Class;
-- Source : I2C_Clock_Source)
-- is
-- begin
-- case This is
-- when I2C_Id_1 =>
-- RCC_Periph.CFGR3.I2C1SW := Source = SYSCLK;
-- end case;
-- end Select_Clock_Source;
-------------------------
-- Select_Clock_Source --
-------------------------
-- procedure Select_Clock_Source (This : I2C_Port_Id;
-- Source : I2C_Clock_Source)
-- is
-- begin
-- RCC_Periph.CFGR3.I2C1SW := Source = SYSCLK;
-- end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
-- function Read_Clock_Source (This : I2C_Port'Class) return I2C_Clock_Source
-- is
-- begin
-- case This is
-- when I2C_Id_1 =>
-- if RCC_Periph.CFGR3.I2C1SW then
-- return SYSCLK;
-- else
-- return HSI;
-- end if;
-- end case;
-- end Read_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
-- function Read_Clock_Source (This : I2C_Port_Id) return I2C_Clock_Source
-- is
-- begin
-- return I2C_Clock_Source'Val (RCC_Periph.CFGR3.I2C1SW);
-- end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : SPI_Port'Class) is
-- begin
-- if This.Periph.all'Address = SPI_Base then
-- RCC_Periph.APB2ENR.SPI1EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : SPI_Port'Class) is
-- begin
-- if This.Periph.all'Address = SPI_Base then
-- RCC_Periph.APB2RSTR.SPI1RST := True;
-- RCC_Periph.APB2RSTR.SPI1RST := False;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : RTC_Device) is
-- pragma Unreferenced (This);
-- begin
-- RCC_Periph.BDCR.RTCEN := True;
-- end Enable_Clock;
-------------------------
-- Select_Clock_Source --
-------------------------
-- procedure Select_Clock_Source
-- (This : RTC_Device;
-- Source : RTC_Clock_Source)
-- is
-- pragma Unreferenced (This);
-- begin
-- RCC_Periph.BDCR.RTCSEL := Source'Enum_Rep;
-- end Select_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
-- function Read_Clock_Source (This : RTC_Device) return RTC_Clock_Source
-- is
-- pragma Unreferenced (This);
-- begin
-- return RTC_Clock_Source'Val (RCC_Periph.BDCR.RTCSEL);
-- end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : Timer) is
begin
if This'Address = TIM1_Base then
RCC_Periph.APB2ENR.TIM1EN := True;
elsif This'Address = TIM2_Base then
RCC_Periph.APB1ENR.TIM2EN := True;
elsif This'Address = TIM3_Base then
RCC_Periph.APB1ENR.TIM3EN := True;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1ENR.TIM6EN := True;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1ENR.TIM7EN := True;
elsif This'Address = TIM15_Base then
RCC_Periph.APB2ENR.TIM15EN := 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 : Timer) is
begin
if This'Address = TIM1_Base then
RCC_Periph.APB2RSTR.TIM1RST := True;
RCC_Periph.APB2RSTR.TIM1RST := False;
elsif This'Address = TIM2_Base then
RCC_Periph.APB1RSTR.TIM2RST := True;
RCC_Periph.APB1RSTR.TIM2RST := False;
elsif This'Address = TIM3_Base then
RCC_Periph.APB1RSTR.TIM3RST := True;
RCC_Periph.APB1RSTR.TIM3RST := False;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1RSTR.TIM6RST := True;
RCC_Periph.APB1RSTR.TIM6RST := False;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1RSTR.TIM7RST := True;
RCC_Periph.APB1RSTR.TIM7RST := False;
elsif This'Address = TIM15_Base then
RCC_Periph.APB2RSTR.TIM15RST := True;
RCC_Periph.APB2RSTR.TIM15RST := False;
elsif This'Address = TIM16_Base then
RCC_Periph.APB2RSTR.TIM16RST := True;
RCC_Periph.APB2RSTR.TIM16RST := False;
elsif This'Address = TIM17_Base then
RCC_Periph.APB2RSTR.TIM17RST := True;
RCC_Periph.APB2RSTR.TIM17RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : Timer;
Source : Timer_Clock_Source)
is
begin
if This'Address = TIM1_Base then
RCC_Periph.CFGR3.TIM1SW := Source = PLLCLK;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source
(This : Timer) return Timer_Clock_Source
is
begin
if This'Address = TIM1_Base then
if RCC_Periph.CFGR3.TIM1SW then
return PLLCLK;
else
return PCLK2;
end if;
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : Timer) return UInt32 is
begin
if This'Address = TIM1_Base then
return System_Clock_Frequencies.TIM1CLK;
elsif This'Address = TIM2_Base or
This'Address = TIM3_Base or
This'Address = TIM6_Base or
This'Address = TIM7_Base
then
return System_Clock_Frequencies.TIMCLK1;
elsif This'Address = TIM15_Base or
This'Address = TIM16_Base or
This'Address = TIM17_Base
then
return System_Clock_Frequencies.TIMCLK2;
else
raise Unknown_Device;
end if;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : HRTimer_Master) is
-- begin
-- if This'Address = HRTIM_Master_Base then
-- RCC_Periph.APB2ENR.HRTIM1EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : HRTimer_Channel) is
-- begin
-- if This'Address = HRTIM_TIMA_Base or
-- This'Address = HRTIM_TIMB_Base or
-- This'Address = HRTIM_TIMC_Base or
-- This'Address = HRTIM_TIMD_Base or
-- This'Address = HRTIM_TIME_Base
-- then
-- RCC_Periph.APB2ENR.HRTIM1EN := True;
-- else
-- raise Unknown_Device;
-- end if;
-- end Enable_Clock;
-----------
-- Reset --
-----------
-- procedure Reset (This : HRTimer_Master) is
-- begin
-- if This'Address = HRTIM_Master_Base then
-- RCC_Periph.APB2RSTR.HRTIM1RST := True;
-- RCC_Periph.APB2RSTR.HRTIM1RST := False;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
-----------
-- Reset --
-----------
-- procedure Reset (This : HRTimer_Channel) is
-- begin
-- if This'Address = HRTIM_TIMA_Base or
-- This'Address = HRTIM_TIMB_Base or
-- This'Address = HRTIM_TIMC_Base or
-- This'Address = HRTIM_TIMD_Base or
-- This'Address = HRTIM_TIME_Base
-- then
-- RCC_Periph.APB2RSTR.HRTIM1RST := True;
-- RCC_Periph.APB2RSTR.HRTIM1RST := False;
-- else
-- raise Unknown_Device;
-- end if;
-- end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
-- procedure Select_Clock_Source (This : HRTimer_Master;
-- Source : Timer_Clock_Source)
-- is
-- begin
-- if This'Address = HRTIM_Master_Base then
-- RCC_Periph.CFGR3.HRTIM1SW := Source = PLLCLK;
-- else
-- raise Unknown_Device;
-- end if;
-- end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
-- function Read_Clock_Source
-- (This : HRTimer_Master) return Timer_Clock_Source
-- is
-- begin
-- if This'Address = TIM1_Base then
-- if RCC_Periph.CFGR3.HRTIM1SW then
-- return PLLCLK;
-- else
-- return PCLK2;
-- end if;
-- else
-- raise Unknown_Device;
-- end if;
-- end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
-- function Get_Clock_Frequency (This : HRTimer_Master) return UInt32 is
-- pragma Unreferenced (This);
-- begin
-- return System_Clock_Frequencies.TIMCLK2;
-- end Get_Clock_Frequency;
-------------------------
-- Get_Clock_Frequency --
-------------------------
-- function Get_Clock_Frequency (This : HRTimer_Channel) return UInt32 is
-- pragma Unreferenced (This);
-- begin
-- return System_Clock_Frequencies.HRTIM1CLK;
-- end Get_Clock_Frequency;
------------------------------
-- System_Clock_Frequencies --
------------------------------
function System_Clock_Frequencies return RCC_System_Clocks
is
Source : constant SYSCLK_Clock_Source :=
SYSCLK_Clock_Source'Val (RCC_Periph.CFGR.SWS);
-- Get System Clock Mux
PLLCLK : UInt32;
-- PLL output
Result : RCC_System_Clocks;
begin
case Source is
-- HSI as source
when SYSCLK_SRC_HSI =>
Result.SYSCLK := HSI_VALUE;
Result.I2CCLK := HSI_VALUE;
-- HSE as source
when SYSCLK_SRC_HSE =>
Result.SYSCLK := HSE_VALUE;
Result.I2CCLK := HSE_VALUE;
-- PLL as source
when SYSCLK_SRC_PLL =>
declare
Plld : constant UInt32 := UInt32 (RCC_Periph.CFGR2.PREDIV + 1);
-- Get the correct value of Pll divisor
Pllm : constant UInt32 := UInt32 (RCC_Periph.CFGR.PLLMUL + 2);
-- Get the correct value of Pll multiplier
PLLSRC : constant Boolean := RCC_Periph.CFGR.PLLSRC;
-- Get the PLL entry clock source
begin
-- PLL Source Mux
if PLLSRC then
-- HSE/PREDIV selected as PLL input clock
PLLCLK := (HSE_VALUE / Plld) * Pllm;
else
-- HSI/2 selected as PLL input clock
PLLCLK := (HSI_VALUE / 2) * Pllm;
end if;
Result.SYSCLK := PLLCLK;
Result.I2CCLK := PLLCLK;
end;
end case;
declare
HPRE : constant UInt4 := RCC_Periph.CFGR.HPRE;
PPRE1 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (1);
PPRE2 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (2);
begin
Result.HCLK := Result.SYSCLK / HPRE_Presc_Table (HPRE);
Result.PCLK1 := Result.HCLK / PPRE_Presc_Table (PPRE1);
Result.PCLK2 := Result.HCLK / PPRE_Presc_Table (PPRE2);
-- Timer clocks
-- If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register)
-- is configured to a division factor of 1, TIMxCLK = PCLKx.
-- Otherwise, the timer clock frequencies are set to twice to the
-- frequency of the APB domain to which the timers are connected:
-- TIMxCLK = 2 x PCLKx.
-- TIMs 2, 3, 6, 7
if PPRE_Presc_Table (PPRE1) = 1 then
Result.TIMCLK1 := Result.PCLK1;
else
Result.TIMCLK1 := Result.PCLK1 * 2;
end if;
-- TIMs 15, 16, 17
if PPRE_Presc_Table (PPRE2) = 1 then
Result.TIMCLK2 := Result.PCLK2;
else
Result.TIMCLK2 := Result.PCLK2 * 2;
end if;
end;
declare
Activate_Pll : constant Boolean := RCC_Periph.CR.PLLON;
TIM1_Pll : constant Boolean := RCC_Periph.CFGR3.TIM1SW;
HRTIM1_Pll : constant Boolean := RCC_Periph.CFGR3.HRTIM1SW;
begin
-- TIM1 source Mux
if Activate_Pll and TIM1_Pll then
Result.TIM1CLK := PLLCLK * 2;
else
Result.TIM1CLK := Result.PCLK2;
end if;
-- HRTIM1 source Mux
if Activate_Pll and HRTIM1_Pll then
Result.HRTIM1CLK := PLLCLK * 2;
else
Result.HRTIM1CLK := Result.PCLK2;
end if;
end;
return Result;
end System_Clock_Frequencies;
end STM32.Device;
|
with Ada.Streams.Stream_IO.Naked;
with System.Native_IO;
package body Ada.Streams.Stream_IO.Pipes is
procedure Create (Reading, Writing : out File_Type) is
Handles : array (0 .. 1) of aliased System.Native_IO.Handle_Type;
begin
System.Native_IO.Open_Pipe (Handles (0), Handles (1));
Naked.Open (Reading, In_File, Handles (0), To_Close => True);
Naked.Open (Writing, Out_File, Handles (1), To_Close => True);
end Create;
end Ada.Streams.Stream_IO.Pipes;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Definitions;
package Program.Elements.Discrete_Ranges is
pragma Pure (Program.Elements.Discrete_Ranges);
type Discrete_Range is
limited interface and Program.Elements.Definitions.Definition;
type Discrete_Range_Access is access all Discrete_Range'Class
with Storage_Size => 0;
not overriding function Is_Discrete_Subtype_Definition
(Self : Discrete_Range)
return Boolean is abstract;
type Discrete_Range_Vector is
limited interface and Program.Element_Vectors.Element_Vector;
type Discrete_Range_Vector_Access is access all Discrete_Range_Vector'Class
with Storage_Size => 0;
overriding function Element
(Self : Discrete_Range_Vector;
Index : Positive)
return not null Program.Elements.Element_Access is abstract
with Post'Class => Element'Result.Is_Discrete_Range;
function To_Discrete_Range
(Self : Discrete_Range_Vector'Class;
Index : Positive)
return not null Discrete_Range_Access
is (Self.Element (Index).To_Discrete_Range);
end Program.Elements.Discrete_Ranges;
|
with Module_IO;
with Google_Naive;
with Google_Creuse;
with Types; use Types;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure PageRank is
package Module_IO_A is
new Module_IO(Float);
use Module_IO_A;
ImpNaive: Boolean;
PagesNum: Integer;
MaxIterations: Integer;
Alpha: T_Digits;
NomFichier: Unbounded_String;
Liens: LC_Integer_Integer.T_LC;
Rangs: Vecteur_Poids.T_Vecteur;
procedure Trier_Rangs is
new Vecteur_Poids.Trier("<");
procedure Lire_Ligne_Commande is
begin
ImpNaive := False;
MaxIterations := 150;
Alpha := 0.85;
NomFichier := To_Unbounded_String("");
declare
I : Integer := 1;
begin
while I <= Argument_Count loop
if Argument (I) = "-P" then
ImpNaive := True;
elsif Argument (I) = "-I" then
MaxIterations := Integer'Value(Argument(I+1));
I := I+1;
elsif Argument (I) = "-A" then
Alpha := T_Digits'Value(Argument(I+1));
I := I+1;
else
-- Enlever les ".net" du nom
NomFichier := To_Unbounded_String(Argument(I)(Argument(I)'First .. Argument(I)'Last-4));
end if;
I := I+1;
end loop;
end;
end Lire_Ligne_Commande;
procedure Calculer_Rangs (Liens: in LC_Integer_Integer.T_LC; Rangs: out Vecteur_Poids.T_Vecteur) is
begin
if ImpNaive then
declare
package Imp_Naive is
new Google_Naive(T_Digits, PagesNum, MaxIterations, Alpha);
Google: Imp_Naive.T_Google;
begin
Imp_Naive.Initialiser(Google);
Imp_Naive.Creer(Google, Liens);
Imp_Naive.Calculer_Rangs(Google, Rangs);
end;
else
declare
package Imp_Creuse is
new Google_Creuse(T_Digits, PagesNum, MaxIterations, Alpha);
Google: Imp_Creuse.T_Google;
begin
Imp_Creuse.Initialiser(Google);
Imp_Creuse.Creer(Google, Liens);
Imp_Creuse.Calculer_Rangs(Google, Rangs);
end;
end if;
end Calculer_Rangs;
procedure Vider(Liens: in out LC_Integer_Integer.T_LC; Rangs: in out Vecteur_Poids.T_Vecteur) is
begin
Vecteur_Poids.Vider(Rangs);
LC_Integer_Integer.Vider(Liens);
end Vider;
begin
Lire_Ligne_Commande;
Lire(NomFichier, PagesNum, Liens);
Calculer_Rangs(Liens, Rangs);
Trier_Rangs(Rangs);
Ecrire(NomFichier, PagesNum, MaxIterations, Alpha, Rangs);
Vider(Liens, Rangs);
end PageRank;
|
with
lace.Environ.Paths;
package lace.Environ.OS_Commands
--
-- Allows running of operating system commands.
--
is
function Path_to (Command : in String) return Paths.Folder;
procedure run_OS (command_Line : in String;
Input : in String := "");
--
-- Discards any output. Error is raised when the command fails.
function run_OS (command_Line : in String;
Input : in String := "") return Data;
--
-- Returns any output. Error is raised when the command fails.
function run_OS (command_Line : in String;
Input : in String := "";
add_Errors : in Boolean := True) return String;
--
-- Returns any output. Error output is appended if add_Errors is true.
function Executable_on_Path (Executable : Paths.File) return Boolean;
--
-- Returns True if the Executable exists on the environment PATH variable.
end lace.Environ.OS_Commands;
|
--- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package AdaBase.Results.Field is
type Std_Field is tagged private;
type Field_Access is access Std_Field;
type Variant (datatype : field_types := ft_nbyte8) is
record
case datatype is
when ft_nbyte0 => v00 : Boolean;
when ft_nbyte1 => v01 : NByte1;
when ft_nbyte2 => v02 : NByte2;
when ft_nbyte3 => v03 : NByte3;
when ft_nbyte4 => v04 : NByte4;
when ft_nbyte8 => v05 : NByte8;
when ft_byte1 => v06 : Byte1;
when ft_byte2 => v07 : Byte2;
when ft_byte3 => v08 : Byte3;
when ft_byte4 => v09 : Byte4;
when ft_byte8 => v10 : Byte8;
when ft_real9 => v11 : Real9;
when ft_real18 => v12 : Real18;
when ft_textual => v13 : Textual;
when ft_widetext => v14 : Textwide;
when ft_supertext => v15 : Textsuper;
when ft_timestamp => v16 : AC.Time;
when ft_chain => v17 : Textual;
when ft_enumtype => v18 : Enumtype;
when ft_settype => v19 : Textual;
when ft_bits => v20 : Textual;
when ft_utf8 => v21 : Textual;
when ft_geometry => v22 : Textual;
end case;
end record;
function as_nbyte0 (field : Std_Field) return NByte0;
function as_nbyte1 (field : Std_Field) return NByte1;
function as_nbyte2 (field : Std_Field) return NByte2;
function as_nbyte3 (field : Std_Field) return NByte3;
function as_nbyte4 (field : Std_Field) return NByte4;
function as_nbyte8 (field : Std_Field) return NByte8;
function as_byte1 (field : Std_Field) return Byte1;
function as_byte2 (field : Std_Field) return Byte2;
function as_byte3 (field : Std_Field) return Byte3;
function as_byte4 (field : Std_Field) return Byte4;
function as_byte8 (field : Std_Field) return Byte8;
function as_real9 (field : Std_Field) return Real9;
function as_real18 (field : Std_Field) return Real18;
function as_string (field : Std_Field) return String;
function as_wstring (field : Std_Field) return Wide_String;
function as_wwstring (field : Std_Field) return Wide_Wide_String;
function as_time (field : Std_Field) return AC.Time;
function as_chain (field : Std_Field) return Chain;
function as_enumtype (field : Std_Field) return Enumtype;
function as_settype (field : Std_Field) return Settype;
function as_bits (field : Std_Field) return Bits;
function as_utf8 (field : Std_Field) return Text_UTF8;
function as_geometry (field : Std_Field) return GEO.Geometry;
function is_null (field : Std_Field) return Boolean;
function native_type (field : Std_Field) return field_types;
function spawn_field (data : Variant; null_data : Boolean := False)
return Std_Field;
function spawn_field (binob : Chain) return Std_Field;
function spawn_field (enumset : String) return Std_Field;
function spawn_bits_field (bitstring : String) return Std_Field;
function spawn_null_field (data_type : field_types) return Std_Field;
private
type Std_Field is tagged record
native : Variant;
explicit_null : Boolean := False;
end record;
procedure set (field : out Std_Field; data : Variant; exnull : Boolean);
end AdaBase.Results.Field;
|
with Deferred_Const4_Pkg;
package Deferred_Const4 is
type R1 is tagged record
I1 : Integer;
end record;
type R2 is new R1 with record
I2 : Integer;
end record;
package My_Q is new Deferred_Const4_Pkg (R2);
function F return My_Q.T;
end Deferred_Const4;
|
-- C37003A.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 MULTIPLE COMPONENT DECLARATIONS ARE TREATED AS A SERIES
-- OF SINGLE COMNENT DECLARATIONS, I.E., THE COMPONENTS ALL HAVE THE
-- SAME TYPE AND ANY EXPRESSION USED IN CONSTRAINTS OR INITIALIZATIONS
-- IS EVALUATED ONCE FOR EACH COMPONENT.
-- DAT 3/30/81
-- SPS 10/26/82
-- JWC 10/23/85 RENAMED FROM C37013A-AB.ADA.
-- ADDED TEST TO ENSURE THAT ANY EXPRESSION USED
-- IN A CONSTRAINT IS EVALUATED ONCE FOR EACH
-- COMPONENT.
-- JRK 11/15/85 ADDED INITIALIZATION EVALUATION CHECKS.
WITH REPORT; USE REPORT;
PROCEDURE C37003A IS
X : INTEGER := 0;
FUNCTION F RETURN INTEGER IS
BEGIN
X := X + 1;
RETURN X;
END F;
PROCEDURE RESET IS
BEGIN
X := 0;
END RESET;
BEGIN
TEST ("C37003A", "CHECK THAT MULTIPLE COMPONENT DECLARATIONS " &
"ARE TREATED AS A SERIES OF SINGLE COMPONENT " &
"DECLARATIONS");
DECLARE
TYPE ARR IS ARRAY (INTEGER RANGE <>) OF INTEGER;
TYPE REC1 IS RECORD
A1, A2 : ARR (1 .. F) := (OTHERS => F);
END RECORD;
R1 : REC1 := (OTHERS => (OTHERS => 1));
Y : INTEGER := X;
R1A : REC1;
BEGIN
IF R1.A1 = R1.A2 THEN -- TEST TO SEE IF THE COMPONENTS
NULL; -- ARE OF THE SAME TYPE.
END IF;
IF Y /= 2 THEN
FAILED ("CONSTRAINT EXPRESSION NOT EVALUATED TWICE " &
"FOR ARRAYS");
END IF;
IF X /= 5 THEN
FAILED ("INITIALIZATION EXPRESSION NOT EVALUATED FOR " &
"EACH ARRAY COMPONENT");
END IF;
RESET;
END;
DECLARE
TYPE REC2 IS RECORD
I1, I2 : INTEGER RANGE 1 .. F := F * IDENT_INT(0) + 1;
END RECORD;
R2 : REC2 := (OTHERS => 1);
Y : INTEGER := X;
R2A : REC2;
BEGIN
IF R2.I1 = R2.I2 THEN -- TEST TO SEE IF THE COMPONENTS
NULL; -- ARE OF THE SAME TYPE.
END IF;
IF Y /= 2 THEN
FAILED ("CONSTRAINT EXPRESSION NOT EVALUATED TWICE " &
"FOR SCALARS");
END IF;
IF X /= 4 THEN
FAILED ("INITIALIZATION EXPRESSION NOT EVALUATED FOR " &
"EACH SCALAR COMPONENT");
END IF;
RESET;
END;
DECLARE
TYPE REC3X (DSC : INTEGER) IS RECORD
NULL;
END RECORD;
TYPE REC3Y IS RECORD
I : INTEGER;
END RECORD;
TYPE REC3 IS RECORD
RX1, RX2 : REC3X (F);
RY1, RY2 : REC3Y := (I => F);
END RECORD;
R3 : REC3 := ((DSC => 1), (DSC => 2), (I => 0), (I => 0));
Y : INTEGER := X;
R3A : REC3;
BEGIN
IF R3.RX1 = R3.RX2 THEN -- TEST TO SEE IF THE COMPONENTS
NULL; -- ARE OF THE SAME TYPE.
END IF;
IF Y /= 2 THEN
FAILED ("CONSTRAINT EXPRESSION NOT EVALUATED TWICE " &
"FOR RECORDS");
END IF;
IF X /= 4 THEN
FAILED ("INITIALIZATION EXPRESSION NOT EVALUATED " &
"FOR EACH RECORD COMPONENT");
END IF;
RESET;
END;
DECLARE
TYPE REC4X (DSC : INTEGER) IS RECORD
NULL;
END RECORD;
TYPE ACR IS ACCESS REC4X;
TYPE ACI IS ACCESS INTEGER;
TYPE REC4 IS RECORD
AC1, AC2 : ACR (F);
AC3, AC4 : ACI := NEW INTEGER'(F);
END RECORD;
R4 : REC4 := (NULL, NULL, NULL, NULL);
Y : INTEGER := X;
R4A : REC4;
BEGIN
IF R4.AC1 = R4.AC2 THEN -- TEST TO SEE IF THE COMPONENTS
NULL; -- ARE OF THE SAME TYPE.
END IF;
IF Y /= 2 THEN
FAILED ("CONSTRAINT EXPRESSION NOT EVALUATED TWICE " &
"FOR ACCESS");
END IF;
IF X /= 4 THEN
FAILED ("INITIALIZATION EXPRESSION NOT EVALUATED " &
"FOR EACH ACCESS COMPONENT");
END IF;
END;
RESULT;
END C37003A;
|
with Giza.Widget.Frame; use Giza.Widget.Frame;
with Giza.Widget.Button; use Giza.Widget.Button;
with Giza.Widget.Composite; use Giza.Widget.Composite;
with Ada.Real_Time; use Ada.Real_Time;
package Giza.Widget.Number_Selection is
subtype Parent is Frame.Instance;
type Instance is new Parent with private;
subtype Class is Instance'Class;
type Ref is access all Class;
type Instance_Ref is access all Instance'Class;
overriding
procedure Set_Dirty (This : in out Instance;
Dirty : Boolean := True);
overriding
procedure Draw (This : in out Instance;
Ctx : in out Context.Class;
Force : Boolean := True);
overriding
function On_Position_Event
(This : in out Instance;
Evt : Position_Event_Ref;
Pos : Point_T) return Boolean;
overriding
function On_Event
(This : in out Instance;
Evt : Event_Not_Null_Ref) return Boolean;
procedure Set_Value (This : in out Instance; Val : Integer);
procedure Set_Step (This : in out Instance; Step : Integer);
procedure Set_Min (This : in out Instance; Min : Integer);
procedure Set_Max (This : in out Instance; Max : Integer);
procedure Set_Label (This : in out Instance; Label : String);
procedure Show_Value (This : in out Instance;
Show : Boolean := True);
procedure Do_Plus (This : in out Instance);
procedure Do_Minus (This : in out Instance);
function Value (This : Instance) return Integer;
private
type Repeat_Event is new Timer_Event with record
Nbr : Instance_Ref;
end record;
overriding
function Triggered (This : Repeat_Event) return Boolean;
type Instance is new Parent with record
Repeat_Time : Time_Span := Milliseconds (200);
Repeat_Evt : aliased Repeat_Event;
Init : Boolean := False;
Show_Value : Boolean := False;
Value : Integer := 0;
Min : Integer := 0;
Max : Integer := 100;
Step : Integer := 5;
Plus, Minus : access Button.Instance := null;
Str : access String := null;
Root : Composite.Instance;
end record;
end Giza.Widget.Number_Selection;
|
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Run;
with AUnit.Reporter.Text;
with Regex_Test_Suite;
with Utilities_Test_Suite;
procedure Regex_Test is
procedure Regex_Test_Runner is new AUnit.Run.Test_Runner (Regex_Test_Suite.Test_Suite);
procedure Utilities_Test_Runner is new AUnit.Run.Test_Runner (Utilities_Test_Suite.Test_Suite);
Test_Reporter : AUnit.Reporter.Text.Text_Reporter;
begin
Regex_Test_Runner (Test_Reporter);
Utilities_Test_Runner (Test_Reporter);
end Regex_Test;
|
package NullRecord is
type Null_Record_1 is null record;
type Null_Record_2 is record
null;
end record;
end NullRecord;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Recursion_Depth is
function Recursion (Depth : Positive) return Positive is
begin
return Recursion (Depth + 1);
exception
when Storage_Error =>
return Depth;
end Recursion;
begin
Put_Line ("Recursion depth on this system is" & Integer'Image (Recursion (1)));
end Test_Recursion_Depth;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ADA.EXCEPTIONS.EXCEPTION_TRACES --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Unchecked_Conversion;
pragma Warnings (Off);
with Ada.Exceptions.Last_Chance_Handler;
pragma Warnings (On);
-- Bring last chance handler into closure
separate (Ada.Exceptions)
package body Exception_Traces is
Nline : constant String := String'(1 => ASCII.LF);
-- Convenient shortcut
type Exception_Action is access procedure (E : Exception_Occurrence);
Global_Action : Exception_Action := null;
pragma Export
(Ada, Global_Action, "__gnat_exception_actions_global_action");
-- Global action, executed whenever an exception is raised. Changing the
-- export name must be coordinated with code in g-excact.adb.
Raise_Hook_Initialized : Boolean := False;
pragma Export
(Ada, Raise_Hook_Initialized, "__gnat_exception_actions_initialized");
procedure Last_Chance_Handler
(Except : Exception_Occurrence);
pragma Import (C, Last_Chance_Handler, "__gnat_last_chance_handler");
pragma No_Return (Last_Chance_Handler);
-- Users can replace the default version of this routine,
-- Ada.Exceptions.Last_Chance_Handler.
function To_Action is new Unchecked_Conversion
(Raise_Action, Exception_Action);
-----------------------
-- Local Subprograms --
-----------------------
procedure Notify_Exception (Excep : EOA; Is_Unhandled : Boolean);
-- Factorizes the common processing for Notify_Handled_Exception and
-- Notify_Unhandled_Exception. Is_Unhandled is set to True only in the
-- latter case because Notify_Handled_Exception may be called for an
-- actually unhandled occurrence in the Front-End-SJLJ case.
---------------------------------
-- Debugger Interface Routines --
---------------------------------
-- The routines here are null routines that normally have no effect.
-- They are provided for the debugger to place breakpoints on their
-- entry points to get control on an exception.
procedure Unhandled_Exception;
pragma Export (C, Unhandled_Exception, "__gnat_unhandled_exception");
-- Hook for GDB to support "break exception unhandled"
-- For "break exception", GDB uses __gnat_raise_nodefer_with_msg, which
-- is not in this section because it functions as more than simply a
-- debugger interface.
--------------------------------
-- Import Run-Time C Routines --
--------------------------------
-- The purpose of the following pragma Import is to ensure that we
-- generate appropriate subprogram descriptors for all C routines in
-- the standard GNAT library that can raise exceptions. This ensures
-- that the exception propagation can properly find these routines
pragma Propagate_Exceptions;
----------------------
-- Notify_Exception --
----------------------
procedure Notify_Exception (Excep : EOA; Is_Unhandled : Boolean) is
begin
-- Output the exception information required by the Exception_Trace
-- configuration. Take care not to output information about internal
-- exceptions.
-- ??? In the Front-End ZCX case, the traceback entries we have at this
-- point only include the ones we stored while walking up the stack *up
-- to the handler*. All the frames above the subprogram in which the
-- handler is found are missing.
if not Excep.Id.Not_Handled_By_Others
and then
(Exception_Trace = Every_Raise
or else (Exception_Trace = Unhandled_Raise and then Is_Unhandled))
then
To_Stderr (Nline);
if Is_Unhandled then
To_Stderr ("Unhandled ");
end if;
To_Stderr ("Exception raised");
To_Stderr (Nline);
To_Stderr (Tailored_Exception_Information (Excep.all));
end if;
-- Call the user-specific actions
-- ??? We should presumably look at the reraise status here.
if Raise_Hook_Initialized
and then Exception_Data_Ptr (Excep.Id).Raise_Hook /= null
then
To_Action (Exception_Data_Ptr (Excep.Id).Raise_Hook) (Excep.all);
end if;
if Global_Action /= null then
Global_Action (Excep.all);
end if;
end Notify_Exception;
------------------------------
-- Notify_Handled_Exception --
------------------------------
procedure Notify_Handled_Exception is
begin
Notify_Exception (Get_Current_Excep.all, Is_Unhandled => False);
end Notify_Handled_Exception;
--------------------------------
-- Notify_Unhandled_Exception --
--------------------------------
procedure Notify_Unhandled_Exception is
Excep : constant EOA := Get_Current_Excep.all;
begin
-- Check whether there is any termination handler to be executed for
-- the environment task, and execute it if needed. Here we handle both
-- the Abnormal and Unhandled_Exception task termination. Normal
-- task termination routine is executed elsewhere (either in the
-- Task_Wrapper or in the Adafinal routine for the environment task).
Task_Termination_Handler.all (Excep.all);
Notify_Exception (Excep, Is_Unhandled => True);
Unhandled_Exception;
end Notify_Unhandled_Exception;
-------------------------
-- Unhandled_Exception --
-------------------------
procedure Unhandled_Exception is
begin
null;
end Unhandled_Exception;
-----------------------------------
-- Unhandled_Exception_Terminate --
-----------------------------------
procedure Unhandled_Exception_Terminate is
Excep : constant EOA := Save_Occurrence (Get_Current_Excep.all.all);
-- This occurrence will be used to display a message after finalization.
-- It is necessary to save a copy here, or else the designated value
-- could be overwritten if an exception is raised during finalization
-- (even if that exception is caught).
begin
Last_Chance_Handler (Excep.all);
end Unhandled_Exception_Terminate;
------------------------------------
-- Handling GNAT.Exception_Traces --
------------------------------------
-- The bulk of exception traces output is centralized in Notify_Exception,
-- for both the Handled and Unhandled cases. Extra task specific output is
-- triggered in the task wrapper for unhandled occurrences in tasks. It is
-- not performed in this unit to avoid dragging dependencies against the
-- tasking units here.
-- We used to rely on the output performed by Unhanded_Exception_Terminate
-- for the case of an unhandled occurrence in the environment thread, and
-- the task wrapper was responsible for the whole output in the tasking
-- case.
-- This initial scheme had a drawback: the output from Terminate only
-- occurs after finalization is done, which means possibly never if some
-- tasks keep hanging around.
-- The first "presumably obvious" fix consists in moving the Terminate
-- output before the finalization. It has not been retained because it
-- introduces annoying changes in output orders when the finalization
-- itself issues outputs, this also in "regular" cases not resorting to
-- Exception_Traces.
-- Today's solution has the advantage of simplicity and better isolates
-- the Exception_Traces machinery.
-- It currently outputs the information about unhandled exceptions twice
-- in the environment thread, once in the notification routine and once in
-- the termination routine. Avoiding the second output is possible but so
-- far has been considered undesirable. It would mean changing the order
-- of outputs between the two runs with or without exception traces, while
-- it seems preferrable to only have additional outputs in the former
-- case.
end Exception_Traces;
|
-----------------------------------------------------------------------
-- awa-votes -- Module votes
-- 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.
-----------------------------------------------------------------------
-- == Introduction ==
-- The <b>Votes</b> module allows users to vote for objects defined in the application.
-- Users can vote by setting a rating value on an item (+1, -1 or any other integer value).
-- The Votes module makes sure that users can vote only once for an item. A global rating
-- is associated with the item to give the vote summary. The vote can be associated with
-- any database entity and it is not necessary to change other entities in your data model.
--
-- == Model ==
-- [http://ada-awa.googlecode.com/svn/wiki/awa_votes_model.png]
--
-- @include awa-votes-modules.ads
-- @include awa-votes-beans.ads
--
-- == Javascript Integration ==
-- The <b>Votes</b> module provides a Javascript support to help users vote for items.
-- The Javascript file <tt>/js/awa-votes.js</tt> must be included in the Javascript page.
-- It is based on jQuery and ASF. The vote actions are activated on the page items as
-- follows in XHTML facelet files:
--
-- <util:script>
-- $('.question-vote').votes({
-- voteUrl: "#{contextPath}/questions/ajax/questionVote/vote?id=",
-- itemPrefix: "vote_for-"
-- });
-- </util:script>
--
-- When the vote up or down HTML element is clicked, the <tt>vote</tt> operation of the
-- managed bean <tt>questionVote</tt> is called. The operation will update the user's vote
-- for the selected item (in the example "a question").
package AWA.Votes is
pragma Preelaborate;
end AWA.Votes;
|
separate (Numerics.Sparse_Matrices)
procedure Remove_Duplicates (Mat : in out Sparse_Matrix) is
N, Iter : Pos := 0;
J : Int_Array (1 .. Nat (Mat.P.Length)) := (others => 0);
I : Int_Array (1 .. Pos (Mat.I.Length));
X : Real_Vector (1 .. Pos (Mat.X.Length));
begin
for K in 1 .. Nat (Mat.P.Length) - 1 loop
Iter := 0;
for L in Mat.P (K) .. Mat.P (K + 1) - 1 loop
if Iter /= Mat.I (L) then
N := N + 1;
Iter := Mat.I (L);
I (N) := Iter;
J (K) := J (K) + 1;
X (N) := Mat.X (L);
else
X (N) := X (N) + Mat.X (L);
end if;
end loop;
end loop;
Cumulative_Sum (J);
Set (Mat.I, I (1 .. N));
Set (Mat.X, X (1 .. N));
Set (Mat.P, J);
end Remove_Duplicates;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- D E B U G --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains global flags used to control the inclusion
-- of debugging code in various phases of the compiler. Some of these
-- flags are also used by the binder and gnatmake.
package Debug is
pragma Preelaborate;
-------------------------
-- Dynamic Debug Flags --
-------------------------
-- Sixty two flags that can be used to active various specialized
-- debugging output information. The flags are preset to False, which
-- corresponds to the given output being suppressed. The individual
-- flags can be turned on using the undocumented switch dxxx where
-- xxx is a string of letters for flags to be turned on. Documentation
-- on the current usage of these flags is contained in the body of Debug
-- rather than the spec, so that we don't have to recompile the world
-- when a new debug flag is added
Debug_Flag_A : Boolean := False;
Debug_Flag_B : Boolean := False;
Debug_Flag_C : Boolean := False;
Debug_Flag_D : Boolean := False;
Debug_Flag_E : Boolean := False;
Debug_Flag_F : Boolean := False;
Debug_Flag_G : Boolean := False;
Debug_Flag_H : Boolean := False;
Debug_Flag_I : Boolean := False;
Debug_Flag_J : Boolean := False;
Debug_Flag_K : Boolean := False;
Debug_Flag_L : Boolean := False;
Debug_Flag_M : Boolean := False;
Debug_Flag_N : Boolean := False;
Debug_Flag_O : Boolean := False;
Debug_Flag_P : Boolean := False;
Debug_Flag_Q : Boolean := False;
Debug_Flag_R : Boolean := False;
Debug_Flag_S : Boolean := False;
Debug_Flag_T : Boolean := False;
Debug_Flag_U : Boolean := False;
Debug_Flag_V : Boolean := False;
Debug_Flag_W : Boolean := False;
Debug_Flag_X : Boolean := False;
Debug_Flag_Y : Boolean := False;
Debug_Flag_Z : Boolean := False;
Debug_Flag_AA : Boolean := False;
Debug_Flag_BB : Boolean := False;
Debug_Flag_CC : Boolean := False;
Debug_Flag_DD : Boolean := False;
Debug_Flag_EE : Boolean := False;
Debug_Flag_FF : Boolean := False;
Debug_Flag_GG : Boolean := False;
Debug_Flag_HH : Boolean := False;
Debug_Flag_II : Boolean := False;
Debug_Flag_JJ : Boolean := False;
Debug_Flag_KK : Boolean := False;
Debug_Flag_LL : Boolean := False;
Debug_Flag_MM : Boolean := False;
Debug_Flag_NN : Boolean := False;
Debug_Flag_OO : Boolean := False;
Debug_Flag_PP : Boolean := False;
Debug_Flag_QQ : Boolean := False;
Debug_Flag_RR : Boolean := False;
Debug_Flag_SS : Boolean := False;
Debug_Flag_TT : Boolean := False;
Debug_Flag_UU : Boolean := False;
Debug_Flag_VV : Boolean := False;
Debug_Flag_WW : Boolean := False;
Debug_Flag_XX : Boolean := False;
Debug_Flag_YY : Boolean := False;
Debug_Flag_ZZ : Boolean := False;
Debug_Flag_1 : Boolean := False;
Debug_Flag_2 : Boolean := False;
Debug_Flag_3 : Boolean := False;
Debug_Flag_4 : Boolean := False;
Debug_Flag_5 : Boolean := False;
Debug_Flag_6 : Boolean := False;
Debug_Flag_7 : Boolean := False;
Debug_Flag_8 : Boolean := False;
Debug_Flag_9 : Boolean := False;
Debug_Flag_Dot_A : Boolean := False;
Debug_Flag_Dot_B : Boolean := False;
Debug_Flag_Dot_C : Boolean := False;
Debug_Flag_Dot_D : Boolean := False;
Debug_Flag_Dot_E : Boolean := False;
Debug_Flag_Dot_F : Boolean := False;
Debug_Flag_Dot_G : Boolean := False;
Debug_Flag_Dot_H : Boolean := False;
Debug_Flag_Dot_I : Boolean := False;
Debug_Flag_Dot_J : Boolean := False;
Debug_Flag_Dot_K : Boolean := False;
Debug_Flag_Dot_L : Boolean := False;
Debug_Flag_Dot_M : Boolean := False;
Debug_Flag_Dot_N : Boolean := False;
Debug_Flag_Dot_O : Boolean := False;
Debug_Flag_Dot_P : Boolean := False;
Debug_Flag_Dot_Q : Boolean := False;
Debug_Flag_Dot_R : Boolean := False;
Debug_Flag_Dot_S : Boolean := False;
Debug_Flag_Dot_T : Boolean := False;
Debug_Flag_Dot_U : Boolean := False;
Debug_Flag_Dot_V : Boolean := False;
Debug_Flag_Dot_W : Boolean := False;
Debug_Flag_Dot_X : Boolean := False;
Debug_Flag_Dot_Y : Boolean := False;
Debug_Flag_Dot_Z : Boolean := False;
Debug_Flag_Dot_AA : Boolean := False;
Debug_Flag_Dot_BB : Boolean := False;
Debug_Flag_Dot_CC : Boolean := False;
Debug_Flag_Dot_DD : Boolean := False;
Debug_Flag_Dot_EE : Boolean := False;
Debug_Flag_Dot_FF : Boolean := False;
Debug_Flag_Dot_GG : Boolean := False;
Debug_Flag_Dot_HH : Boolean := False;
Debug_Flag_Dot_II : Boolean := False;
Debug_Flag_Dot_JJ : Boolean := False;
Debug_Flag_Dot_KK : Boolean := False;
Debug_Flag_Dot_LL : Boolean := False;
Debug_Flag_Dot_MM : Boolean := False;
Debug_Flag_Dot_NN : Boolean := False;
Debug_Flag_Dot_OO : Boolean := False;
Debug_Flag_Dot_PP : Boolean := False;
Debug_Flag_Dot_QQ : Boolean := False;
Debug_Flag_Dot_RR : Boolean := False;
Debug_Flag_Dot_SS : Boolean := False;
Debug_Flag_Dot_TT : Boolean := False;
Debug_Flag_Dot_UU : Boolean := False;
Debug_Flag_Dot_VV : Boolean := False;
Debug_Flag_Dot_WW : Boolean := False;
Debug_Flag_Dot_XX : Boolean := False;
Debug_Flag_Dot_YY : Boolean := False;
Debug_Flag_Dot_ZZ : Boolean := False;
Debug_Flag_Dot_1 : Boolean := False;
Debug_Flag_Dot_2 : Boolean := False;
Debug_Flag_Dot_3 : Boolean := False;
Debug_Flag_Dot_4 : Boolean := False;
Debug_Flag_Dot_5 : Boolean := False;
Debug_Flag_Dot_6 : Boolean := False;
Debug_Flag_Dot_7 : Boolean := False;
Debug_Flag_Dot_8 : Boolean := False;
Debug_Flag_Dot_9 : Boolean := False;
function Get_Debug_Flag_K return Boolean;
-- This function is called from C code to get the setting of the K flag
-- (it does not work to try to access a constant object directly).
procedure Set_Debug_Flag (C : Character; Val : Boolean := True);
-- Where C is 0-9, A-Z, or a-z, sets the corresponding debug flag to
-- the given value. In the checks off version of debug, the call to
-- Set_Debug_Flag is always a null operation.
procedure Set_Dotted_Debug_Flag (C : Character; Val : Boolean := True);
-- Where C is 0-9, A-Z, or a-z, sets the corresponding dotted debug
-- flag (e.g. call with C = 'a' for the .a flag).
end Debug;
|
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // 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.
-- //
-- ////////////////////////////////////////////////////////////
-- ////////////////////////////////////////////////////////////
-- // Headers
-- ////////////////////////////////////////////////////////////
with Sf.Config;
with Sf.Network.IPAddress;
with Sf.Network.SocketStatus;
with Sf.Network.Types;
package Sf.Network.SocketUDP is
use Sf.Config;
use Sf.Network.IPAddress;
use Sf.Network.SocketStatus;
use Sf.Network.Types;
-- ////////////////////////////////////////////////////////////
-- /// Construct a new UDP socket
-- ///
-- /// \return Pointer to the new socket
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_Create return sfSocketUDP_Ptr;
-- ////////////////////////////////////////////////////////////
-- /// Destroy an existing UDP socket
-- ///
-- /// \param Socket : Socket to destroy
-- ///
-- ////////////////////////////////////////////////////////////
procedure sfSocketUDP_Destroy (Socket : sfSocketUDP_Ptr);
-- ////////////////////////////////////////////////////////////
-- /// Change the blocking state of a UDP socket.
-- /// The default behaviour of a socket is blocking
-- ///
-- /// \param Socket : Socket to modify
-- /// \param Blocking : Pass sfTrue to set the socket as blocking, or false for non-blocking
-- ///
-- ////////////////////////////////////////////////////////////
procedure sfSocketUDP_SetBlocking (Socket : sfSocketUDP_Ptr; Blocking : sfBool);
-- ////////////////////////////////////////////////////////////
-- /// Bind a socket to a specific port
-- ///
-- /// \param Socket : Socket to bind
-- /// \param Port : Port to bind the socket to
-- ///
-- /// \return True if operation has been successful
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_Bind (Socket : sfSocketUDP_Ptr; Port : sfUint16) return sfBool;
-- ////////////////////////////////////////////////////////////
-- /// Unbind a socket from its previous port, if any
-- ///
-- /// \param Socket : Socket to unbind
-- ///
-- /// \return sfTrue if operation has been successful
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_Unbind (Socket : sfSocketUDP_Ptr) return sfBool;
-- ////////////////////////////////////////////////////////////
-- /// Send an array of bytes
-- ///
-- /// \param Socket : Socket to use for sending
-- /// \param Data : Pointer to the bytes to send
-- /// \param Size : Number of bytes to send
-- /// \param Address : Address of the computer to send the packet to
-- /// \param Port : Port to use for communication
-- ///
-- /// \return Socket status
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_Send
(Socket : sfSocketUDP_Ptr;
Data : sfInt8_Ptr;
Size : sfSize_t;
Address : sfIPAddress;
Port : sfUint16)
return sfSocketStatus;
-- ////////////////////////////////////////////////////////////
-- /// Receive an array of bytes.
-- /// This function is blocking, ie. it won't return before some
-- /// bytes have been received
-- ///
-- /// \param Socket : Socket to use for receiving
-- /// \param Data : Pointer to a byte array to fill (make sure it is big enough)
-- /// \param MaxSize : Maximum number of bytes to read
-- /// \param SizeReceived : Number of bytes received
-- /// \param Address : Address of the computer which sent the data
-- /// \param Port : Port on which the remote computer sent the data
-- ///
-- /// \return Socket status
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_Receive
(Socket : sfSocketUDP_Ptr;
Data : sfInt8_Ptr;
MaxSize : sfSize_t;
SizeReceived : access sfSize_t;
Address : access sfIPAddress;
Port : access sfUint16)
return sfSocketStatus;
-- ////////////////////////////////////////////////////////////
-- /// Send a packet of data
-- ///
-- /// \param Socket : Socket to use for sending
-- /// \param Packet : Packet to send
-- /// \param Address : Address of the computer to send the packet to
-- /// \param Port : Port to use for communication
-- ///
-- /// \return Socket status
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_SendPacket
(Socket : sfSocketUDP_Ptr;
Packet : sfPacket_Ptr;
Address : sfIPAddress;
Port : sfUint16)
return sfSocketStatus;
-- ////////////////////////////////////////////////////////////
-- /// Receive a packet.
-- /// This function is blocking, ie. it won't return before a
-- /// packet is received
-- ///
-- /// \param Socket : Socket to use for receiving
-- /// \param Packet : Packet to fill with received data
-- /// \param Address : Address of the computer which sent the packet
-- /// \param Port : Port on which the remote computer sent the data
-- ///
-- /// \return Socket status
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_ReceivePacket
(Socket : sfSocketUDP_Ptr;
Packet : sfPacket_Ptr;
Address : access sfIPAddress;
Port : access sfUint16)
return sfSocketStatus;
-- ////////////////////////////////////////////////////////////
-- /// Check if a socket is in a valid state ; this function
-- /// can be called any time to check if the socket is OK
-- ///
-- /// \param Socket : Socket to check
-- ///
-- /// \return sfTrue if the socket is valid
-- ///
-- ////////////////////////////////////////////////////////////
function sfSocketUDP_IsValid (Socket : sfSocketUDP_Ptr) return sfBool;
private
pragma Import (C, sfSocketUDP_Create, "sfSocketUDP_Create");
pragma Import (C, sfSocketUDP_Destroy, "sfSocketUDP_Destroy");
pragma Import (C, sfSocketUDP_SetBlocking, "sfSocketUDP_SetBlocking");
pragma Import (C, sfSocketUDP_Bind, "sfSocketUDP_Bind");
pragma Import (C, sfSocketUDP_Unbind, "sfSocketUDP_Unbind");
pragma Import (C, sfSocketUDP_Send, "sfSocketUDP_Send");
pragma Import (C, sfSocketUDP_Receive, "sfSocketUDP_Receive");
pragma Import (C, sfSocketUDP_SendPacket, "sfSocketUDP_SendPacket");
pragma Import (C, sfSocketUDP_ReceivePacket, "sfSocketUDP_ReceivePacket");
pragma Import (C, sfSocketUDP_IsValid, "sfSocketUDP_IsValid");
end Sf.Network.SocketUDP;
|
with Ada.Directories;
with Ahven.Framework;
with Annotation.Api;
package Test_Annotation.Write is
package Skill renames Annotation.Api;
use Annotation;
use Annotation.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Set_Up (T : in out Test);
procedure Tear_Down (T : in out Test);
procedure Read_Written (T : in out Ahven.Framework.Test_Case'Class);
procedure Check_Annotation (T : in out Ahven.Framework.Test_Case'Class);
procedure Annotation_Type_Safety (T : in out Ahven.Framework.Test_Case'Class);
end Test_Annotation.Write;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . G E N E R I C _ B I G N U M S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2012-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides arbitrary precision signed integer arithmetic
-- and can be used either built into the compiler via System.Bignums or to
-- implement a default version of Ada.Numerics.Big_Numbers.Big_Integers.
with Interfaces;
with System.Shared_Bignums;
generic
type Big_Integer is private;
with function Allocate_Big_Integer
(D : Shared_Bignums.Digit_Vector; Neg : Boolean) return Big_Integer;
-- Allocate Bignum value with the given contents
with procedure Free_Big_Integer (X : in out Big_Integer);
-- Free the memory associated with X
with function To_Bignum
(X : aliased in out Big_Integer) return Shared_Bignums.Bignum;
-- Convert the given Big_Integer to a Bignum
package System.Generic_Bignums is
pragma Preelaborate;
subtype Bignum is Shared_Bignums.Bignum;
-- Note that this package never shares an allocated Big_Integer value, so
-- so for example for X + 0, a copy of X is returned, not X itself.
-- Note: none of the subprograms in this package modify the Bignum_Data
-- records referenced by Bignum arguments of mode IN.
function Big_Add (X, Y : Bignum) return Big_Integer; -- "+"
function Big_Sub (X, Y : Bignum) return Big_Integer; -- "-"
function Big_Mul (X, Y : Bignum) return Big_Integer; -- "*"
function Big_Div (X, Y : Bignum) return Big_Integer; -- "/"
function Big_Exp (X, Y : Bignum) return Big_Integer; -- "**"
function Big_Mod (X, Y : Bignum) return Big_Integer; -- "mod"
function Big_Rem (X, Y : Bignum) return Big_Integer; -- "rem"
function Big_Neg (X : Bignum) return Big_Integer; -- "-"
function Big_Abs (X : Bignum) return Big_Integer; -- "abs"
-- Perform indicated arithmetic operation on bignum values. No exception
-- raised except for Div/Mod/Rem by 0 which raises Constraint_Error with
-- an appropriate message.
function Big_And (X, Y : Bignum) return Big_Integer; -- "and"
function Big_Or (X, Y : Bignum) return Big_Integer; -- "or"
-- Perform indicated bitwise operation on big num values.
-- The negative flags of X and Y are also combined.
function Big_Shift_Left (X : Bignum; Amount : Natural) return Big_Integer;
function Big_Shift_Right (X : Bignum; Amount : Natural) return Big_Integer;
-- Perform indicated bitwise operation on big num values.
-- Constraint_Error is raised if X is negative.
function Big_EQ (X, Y : Bignum) return Boolean; -- "="
function Big_NE (X, Y : Bignum) return Boolean; -- "/="
function Big_GE (X, Y : Bignum) return Boolean; -- ">="
function Big_LE (X, Y : Bignum) return Boolean; -- "<="
function Big_GT (X, Y : Bignum) return Boolean; -- ">"
function Big_LT (X, Y : Bignum) return Boolean; -- "<"
-- Perform indicated comparison on bignums, returning result as Boolean.
-- No exception raised for any input arguments.
function Bignum_In_LLI_Range (X : Bignum) return Boolean;
-- Returns True if the Bignum value is in the range of Long_Long_Integer,
-- so that a call to From_Bignum is guaranteed not to raise an exception.
function To_Bignum (X : Long_Long_Integer) return Big_Integer;
-- Convert Long_Long_Integer to a big integer. No exception can be raised
-- for any input argument.
function To_Bignum (X : Interfaces.Unsigned_64) return Big_Integer;
-- Convert Unsigned_64 to a big integer. No exception can be raised for any
-- input argument.
function From_Bignum (X : Bignum) return Long_Long_Integer;
-- Convert Bignum to Long_Long_Integer. Constraint_Error raised with
-- appropriate message if value is out of range of Long_Long_Integer.
function To_String
(X : Bignum; Width : Natural := 0; Base : Positive := 10)
return String;
-- Return the image of X, based on the given Width and Base, as defined
-- in the RM for Ada.Text_IO. Base should really be in the range 2 .. 16.
function Is_Zero (X : Bignum) return Boolean;
-- Return True if X = 0
end System.Generic_Bignums;
|
with Ada.Text_IO;
with Scripts;
procedure Show_Script is
begin
Ada.Text_IO.Put ("Create SQLite");
Ada.Text_IO.Put (Natural'Image (Scripts.create_database'Length));
Ada.Text_IO.Put_Line (" lines");
for Line of Scripts.create_database loop
Ada.Text_IO.Put_Line (Line.all);
end loop;
Ada.Text_IO.Put ("Drop SQLite");
Ada.Text_IO.Put (Natural'Image (Scripts.drop_database'Length));
Ada.Text_IO.Put_Line (" lines");
for Line of Scripts.drop_database loop
Ada.Text_IO.Put_Line (Line.all);
end loop;
end Show_Script;
|
select
accept Wake_Up (Parameters : Work_Item) do
Current_Work_Item := Parameters;
end;
Process (Current_Work_Item);
or accept Shut_Down;
exit; -- Shut down requested
end select;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
generic
type Base (<>) is new Texture_Proxy with private;
package GL.Objects.Textures.With_2D_Loader is
pragma Preelaborate;
type Target is new Base with null record;
procedure Load_Empty_Texture
(Object : Target; Level : Mipmap_Level;
Internal_Format : Pixels.Internal_Format;
Width, Height : Types.Size);
procedure Storage (Object : Target; Number_Of_Levels : Types.Size;
Internal_Format : Pixels.Internal_Format;
Width, Height : Types.Size);
type Fillable_Target is new Target with null record;
procedure Load_From_Data
(Object : Fillable_Target; Level : Mipmap_Level;
Internal_Format : Pixels.Internal_Format;
Width, Height : Types.Size;
Source_Format : Pixels.Data_Format;
Source_Type : Pixels.Data_Type;
Source : Image_Source);
procedure Load_Sub_Image_From_Data
(Object : Fillable_Target; Level : Mipmap_Level;
X_Offset, Y_Offset : Int;
Width, Height : Size;
Format : Pixels.Data_Format;
Data_Type : Pixels.Data_Type;
Source : Image_Source);
procedure Load_Compressed
(Object : Fillable_Target;
Level : Mipmap_Level;
Internal_Format : Pixels.Internal_Format;
Width, Height, Image_Size : Types.Size;
Source : Image_Source);
end GL.Objects.Textures.With_2D_Loader;
|
pragma License (Unrestricted);
-- runtime unit specialized for Darwin
package System.Storage_Map is
pragma Preelaborate;
function Load_Address return Address;
pragma Inline (Load_Address);
Growing_Down_Is_Preferred : constant Boolean := False;
end System.Storage_Map;
|
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.UTF8.Handling Luebeck --
-- Implementation Spring, 2005 --
-- --
-- Last revision : 21:03 21 Apr 2009 --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public License as --
-- published by the Free Software Foundation; either version 2 of --
-- the License, or (at your option) any later version. This library --
-- is distributed in the hope that it will be useful, but WITHOUT --
-- ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. You should have --
-- received a copy of the GNU General Public License along with --
-- this library; if not, write to the Free Software Foundation, --
-- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
--____________________________________________________________________--
package body Strings_Edit.UTF8.Handling is
function To_UTF8 (Value : Character) return String is
Result : String (1..2);
Pointer : Integer := Result'First;
begin
Put (Result, Pointer, UTF8_Code_Point (Character'Pos (Value)));
return Result (1..Pointer - 1);
end To_UTF8;
function To_UTF8 (Value : String) return String is
Result : String (1..Value'Length * 2);
Pointer : Integer := Result'First;
begin
for Item in Value'Range loop
Put
( Result,
Pointer,
UTF8_Code_Point (Character'Pos (Value (Item)))
);
end loop;
return Result (Result'First..Pointer - 1);
end To_UTF8;
function To_UTF8 (Value : Wide_Character) return String is
Result : String (1..3);
Pointer : Integer := Result'First;
begin
Put
( Result,
Pointer,
UTF8_Code_Point (Wide_Character'Pos (Value))
);
return Result (1..Pointer - 1);
end To_UTF8;
function To_UTF8 (Value : Wide_String) return String is
Result : String (1..Value'Length * 3);
Pointer : Integer := Result'First;
begin
for Item in Value'Range loop
Put
( Result,
Pointer,
UTF8_Code_Point (Wide_Character'Pos (Value (Item)))
);
end loop;
return Result (Result'First..Pointer - 1);
end To_UTF8;
function To_String (Value : String) return String is
Result : String (1..Value'Length);
Pointer : Integer := Value'First;
Index : Integer := Result'First;
Item : UTF8_Code_Point;
begin
while Pointer <= Value'Last loop
Get (Value, Pointer, Item);
if Item > 16#FF# then
raise Constraint_Error;
end if;
Result (Index) := Character'Val (Item);
Index := Index + 1;
end loop;
return Result (Result'First..Index - 1);
end To_String;
function To_String
( Value : String;
Substitute : Character
) return String is
Result : String (1..Value'Length);
Pointer : Integer := Value'First;
Index : Integer := Result'First;
Item : UTF8_Code_Point;
begin
while Pointer <= Value'Last loop
Get (Value, Pointer, Item);
if Item > 16#FF# then
Result (Index) := Substitute;
else
Result (Index) := Character'Val (Item);
end if;
Index := Index + 1;
end loop;
return Result (Result'First..Index - 1);
end To_String;
function To_Wide_String (Value : String) return Wide_String is
Result : Wide_String (1..Value'Length);
Pointer : Integer := Value'First;
Index : Integer := Result'First;
Item : UTF8_Code_Point;
begin
while Pointer <= Value'Last loop
Get (Value, Pointer, Item);
if Item > 16#FFFF# then
raise Constraint_Error;
end if;
Result (Index) := Wide_Character'Val (Item);
Index := Index + 1;
end loop;
return Result (Result'First..Index - 1);
end To_Wide_String;
function To_Wide_String
( Value : String;
Substitute : Wide_Character
) return Wide_String is
Result : Wide_String (1..Value'Length);
Pointer : Integer := Value'First;
Index : Integer := Result'First;
Item : UTF8_Code_Point;
begin
while Pointer <= Value'Last loop
Get (Value, Pointer, Item);
if Item > 16#FFFF# then
Result (Index) := Substitute;
else
Result (Index) := Wide_Character'Val (Item);
end if;
Index := Index + 1;
end loop;
return Result (Result'First..Index - 1);
end To_Wide_String;
end Strings_Edit.UTF8.Handling;
|
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Interfaces.C; use Interfaces.C;
with CArgv; use CArgv;
with Tcl; use Tcl;
-- ****h* Ships/SUI2
-- FUNCTION
-- Provide code to show the player ship information to the player
-- SOURCE
package Ships.UI is
-- ****
-- ****o* SUI2/SUI2.Show_Ship_Info_Command
-- FUNCTION
-- Show information about the player's ship
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command.
-- Argv - Values of arguments passed to the command. Unused
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- ShowShipInfo
-- SOURCE
function Show_Ship_Info_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
-- ****f* SUI2/SUI2.AddCommands
-- FUNCTION
-- Add Tcl commands related to the player's ship information
-- SOURCE
procedure AddCommands;
-- ****
end Ships.UI;
|
with Ada.Text_IO;
with Ada.Text_IO.Complex_IO;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada_Lapack;
use Ada.Text_IO;
procedure tdgesvd is
type Real is digits 18;
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
package Complex_Types is new Ada.Numerics.Generic_Complex_Types (Real);
package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays (Real_Arrays, Complex_Types);
package Real_Maths is new Ada.Numerics.Generic_Elementary_Functions (Real);
package Complex_Maths is new Ada.Numerics.Generic_Complex_Elementary_Functions (Complex_Types);
package Real_IO is new Ada.Text_IO.Float_IO (Real);
package Integer_IO is new Ada.Text_IO.Integer_IO (Integer);
package Complex_IO is new Ada.Text_IO.Complex_IO (Complex_Types);
package Lapack is new Ada_Lapack(Real, Complex_Types, Real_Arrays, Complex_Arrays);
use Lapack;
use Real_Arrays;
use Complex_Types;
use Complex_Arrays;
use Real_IO;
use Integer_IO;
use Complex_IO;
use Real_Maths;
use Complex_Maths;
function min(left,right : Integer) return Integer is
begin
if left < right
then return left;
else return right;
end if;
end min;
one : constant Real := 1.0e0;
zero : constant Real := 0.0e0;
matrix : Real_Matrix (1..6,1..5);
matrix_rows : Integer := Matrix'Length (1);
matrix_cols : Integer := Matrix'Length (2);
num_singular : Integer;
singular_values : Real_Vector (1..min(matrix_rows,matrix_cols));
u_rows : Integer := matrix_rows;
u_cols : Integer := matrix_rows;
u_matrix : Real_Matrix (1..u_rows,1..u_cols);
v_rows : Integer := matrix_cols;
v_cols : Integer := matrix_cols;
v_transpose : Real_Matrix (1..v_rows,1..v_cols);
short_vector : Real_Vector (1..1);
return_code : Integer;
begin
matrix :=( ( 8.79, 9.93, 9.83, 5.45, 3.16),
( 6.11, 6.91, 5.04, -0.27, 7.98),
( -9.15, -7.93, 4.86, 4.85, 3.01),
( 9.57, 1.64, 8.83, 0.74, 5.80),
( -3.49, 4.02, 9.80, 10.00, 4.27),
( 9.84, 0.15, -8.99, -6.02, -5.31) );
GESVD ( JOBU => 'S',
JOBVT => 'S',
M => matrix_rows,
N => matrix_cols,
A => matrix,
LDA => matrix_rows,
S => singular_values,
U => u_matrix,
LDU => u_rows,
VT => v_transpose,
LDVT => v_rows,
WORK => short_vector,
LWORK => -1,
INFO => return_code );
declare
work_vector_rows : Integer := Integer( short_vector(1) );
work_vector : Real_Vector (1 .. work_vector_rows);
begin
GESVD ( JOBU => 'S',
JOBVT => 'S',
M => matrix_rows,
N => matrix_cols,
A => matrix,
LDA => matrix_rows,
S => singular_values,
U => u_matrix,
LDU => u_rows,
VT => v_transpose,
LDVT => v_rows,
WORK => work_vector,
LWORK => work_vector_rows,
INFO => return_code );
end;
if return_code > 0 then
Put ("DGESVD failed, the return code was : ");
Put ( return_code );
New_line;
else
num_singular := min(matrix_rows,matrix_cols);
put_line("Singular values");
for i in 1..num_singular loop
put(singular_values(i),3,4,0);
end loop;
new_line;
new_line;
put_line("Matrix U");
for i in 1..matrix_rows loop
for j in 1..num_singular loop
put(u_matrix(i,j),3,4,0);
end loop;
new_line;
end loop;
new_line;
put_line("Matrix V transpose");
for i in 1..num_singular loop
for j in 1..matrix_cols loop
put(v_transpose(i,j),3,4,0);
end loop;
new_line;
end loop;
end if;
end tdgesvd;
|
-- C32112B.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 RAISED FOR THE DECLARATION OF A NULL
-- ARRAY OBJECT IF THE INITIAL VALUE IS NOT A NULL ARRAY.
-- RJW 7/20/86
-- GMT 7/01/87 ADDED CODE TO PREVENT DEAD VARIABLE OPTIMIZATION.
-- CHANGED THE RANGE VALUES OF A FEW DIMENSIONS.
WITH REPORT; USE REPORT;
PROCEDURE C32112B IS
TYPE ARR1 IS ARRAY (NATURAL RANGE <>) OF INTEGER;
SUBTYPE NARR1 IS ARR1 (IDENT_INT (2) .. IDENT_INT (1));
TYPE ARR2 IS ARRAY (NATURAL RANGE <>, NATURAL RANGE <>)
OF INTEGER;
SUBTYPE NARR2 IS ARR2 (IDENT_INT (1) .. IDENT_INT (2),
IDENT_INT (1) .. IDENT_INT (0));
BEGIN
TEST ("C32112B", "CHECK THAT CONSTRAINT_ERROR IS RAISED FOR " &
"THE DECLARATION OF A NULL ARRAY OBJECT IF " &
"THE INITIAL VALUE IS NOT A NULL ARRAY");
BEGIN
DECLARE
A : ARR1 (IDENT_INT(1) .. IDENT_INT(2));
N1A : NARR1 := (A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1A'");
A(1) := IDENT_INT(N1A(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1A'");
END;
BEGIN
DECLARE
A : ARR1 (IDENT_INT (1) .. IDENT_INT (2));
N1B : CONSTANT NARR1 := (A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1B'");
A(1) := IDENT_INT(N1B(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1B'");
END;
BEGIN
DECLARE
A : ARR1 (IDENT_INT (1) .. IDENT_INT (1));
N1C : CONSTANT NARR1 := (A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1C'");
A(1) := IDENT_INT(N1C(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1C'");
END;
BEGIN
DECLARE
A : ARR1 (IDENT_INT (1) .. IDENT_INT (1));
N1D : NARR1 := (A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1D'");
A(1) := IDENT_INT(N1D(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1D'");
END;
BEGIN
DECLARE
A : ARR1 (IDENT_INT (0) .. IDENT_INT (1));
N1E : ARR1 (IDENT_INT (1) .. IDENT_INT (0)) :=
(A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1E'");
A(1) := IDENT_INT(N1E(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N1E'");
END;
BEGIN
DECLARE
A : ARR1 (IDENT_INT (0) .. IDENT_INT (1));
N1F : CONSTANT ARR1 (IDENT_INT (1) .. IDENT_INT (0)) :=
(A'RANGE => 0);
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1F'");
A(1) := IDENT_INT(N1F(1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N1F'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (2),
IDENT_INT (0) .. IDENT_INT (1));
N2A : CONSTANT NARR2 := (A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2'");
A(1,1) := IDENT_INT(N2A(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2A'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (2),
IDENT_INT (0) .. IDENT_INT (1));
N2B : NARR2 := (A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2B'");
A(1,1) := IDENT_INT(N2B(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2B'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (3),
IDENT_INT (1) .. IDENT_INT (1));
N2C : CONSTANT NARR2 := (A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2C'");
A(1,1) := IDENT_INT(N2C(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2C'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (3),
IDENT_INT (1) .. IDENT_INT (1));
N2D : NARR2 := (A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2D'");
A(1,1) := IDENT_INT(N2D(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2D'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (1),
IDENT_INT (1) .. IDENT_INT (1));
N2E : CONSTANT ARR2 (IDENT_INT (2) .. IDENT_INT (1),
IDENT_INT (1) .. IDENT_INT (1)) :=
(A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2E'");
A(1,1) := IDENT_INT(N2E(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF CONSTANT 'N2E'");
END;
BEGIN
DECLARE
A : ARR2 (IDENT_INT (1) .. IDENT_INT (1),
IDENT_INT (1) .. IDENT_INT (1));
N2F : ARR2 (IDENT_INT (2) .. IDENT_INT (1),
IDENT_INT (1) .. IDENT_INT (1)) :=
(A'RANGE => (A'RANGE (2) =>0));
BEGIN
FAILED ("NO EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2F'");
A(1,1) := IDENT_INT(N2F(1,1));
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED FOR INITIALIZATION " &
"OF VARIABLE 'N2F'");
END;
RESULT;
END C32112B;
|
private with Ada.Streams;
package Crypto is
pragma Pure;
pragma Linker_Options ("-lcrypto");
private
procedure Value (
Image : String;
Result : out Ada.Streams.Stream_Element_Array);
procedure Image (
Value : Ada.Streams.Stream_Element_Array;
Result : out String);
end Crypto;
|
with Ada.Processes;
with Ada.Text_IO;
with System.Program;
with System.Storage_Elements.Formatting;
with System.Unwind.Occurrences;
procedure btsym is
procedure Report (
X : System.Unwind.Exception_Occurrence;
Where : String) is
begin
System.Unwind.Occurrences.Default_Report (X, Where);
if X.Num_Tracebacks > 0 then
declare
T : constant String := Standard'Target_Name;
Darwin : constant Boolean :=
T (T'Last - 7 .. T'Last - 1) = "-darwin"
or else T (T'Last - 8 .. T'Last - 2) = "-darwin";
Executable : constant String := System.Program.Full_Name;
Load_Address : constant System.Address :=
System.Program.Load_Address;
Command : String (
1 ..
256
+ System.Unwind.Exception_Msg_Max_Length
+ System.Unwind.Max_Tracebacks
* (3 + (Standard'Address_Size + 3) / 4)
+ Executable'Length);
Last : Natural := 0;
procedure Put (S : String);
procedure Put (S : String) is
begin
Command (Last + 1 .. Last + S'Length) := S;
Last := Last + S'Length;
end Put;
procedure Put (A : System.Address);
procedure Put (A : System.Address) is
begin
Put ("0x");
Put (System.Storage_Elements.Formatting.Image (A));
end Put;
begin
if Darwin then
Put ("atos -o ");
else
Put ("addr2line -e ");
end if;
Put (Executable);
if Darwin then
for I in T'Range loop
if T (I) = '-' then
Put (" -arch ");
Put (T (T'First .. I - 1));
exit;
end if;
end loop;
Put (" -l ");
Put (Load_Address);
end if;
for I in 1 .. X.Num_Tracebacks loop
Put (" ");
Put (X.Tracebacks (I));
end loop;
Command (Last + 1) := Character'Val (0);
Ada.Text_IO.New_Line (Ada.Text_IO.Standard_Error.all);
begin
Ada.Processes.Shell (Command (1 .. Last));
exception
when Ada.Processes.Name_Error | Ada.Processes.Use_Error =>
Ada.Text_IO.Put_Line (
Ada.Text_IO.Standard_Error.all,
"failed: " & Command (1 .. Last));
end;
-- Report_Hook is called just before abort, so it should flush.
Ada.Text_IO.Flush (Ada.Text_IO.Standard_Error.all);
end;
end if;
end Report;
-- level 2
procedure Nest_2;
pragma No_Inline (Nest_2);
procedure Nest_2 is
begin
Ada.Debug.Put ("before raising");
if Integer'Value ("1") = 1 then
raise Program_Error; -- report backtrace as symbols
end if;
Ada.Debug.Put ("after raising");
end Nest_2;
-- level 1
procedure Nest_1;
pragma No_Inline (Nest_1);
procedure Nest_1 is
begin
Ada.Debug.Put ("before Nest_2");
Nest_2;
Ada.Debug.Put ("after Nest_2");
end Nest_1;
begin
Ada.Debug.Put ("PROGRAM_ERROR is right.");
System.Unwind.Occurrences.Report_Hook := Report'Unrestricted_Access;
Ada.Debug.Put ("before Nest_1");
Nest_1;
Ada.Debug.Put ("after Nest_1");
end btsym;
|
--with Ada.Text_IO;
with Ada.Numerics.Elementary_Functions;
--use Ada.Text_IO;
use Ada.Numerics.Elementary_Functions;
--procedure call_recur is
--function fac(n: Natural) is
--begin
-- if n = 1 then
-- return 1;
-- else
-- return n * fac(n - 1);
-- end if;
-- return;
--end fac;
function Square_Root (X : in Float) return Float is
--use Ada.Numerics.Elementary_Functions;
begin
if X < 0.0 then
return -1.0;
else
return Sqrt (X);
end if;
end Square_Root;
--begin
-- put(fac(5));
--end call_recur;
|
------------------------------------------------------------------------------
-- --
-- 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; -- Disable for SPI, COMP and OPAMP
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.CRC; use STM32_SVD.CRC;
with STM32_SVD.LPTIM; use STM32_SVD.LPTIM;
with STM32.RCC; use STM32.RCC;
package body STM32.Device is
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 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 = GPIOD_Base then
RCC_Periph.AHB2ENR.GPIODEN := True;
elsif This'Address = GPIOE_Base then
RCC_Periph.AHB2ENR.GPIOEEN := True;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHB2ENR.GPIOFEN := True;
elsif This'Address = GPIOG_Base then
RCC_Periph.AHB2ENR.GPIOGEN := 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 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;
elsif This'Address = GPIOD_Base then
RCC_Periph.AHB2RSTR.GPIODRST := True;
RCC_Periph.AHB2RSTR.GPIODRST := False;
elsif This'Address = GPIOE_Base then
RCC_Periph.AHB2RSTR.GPIOERST := True;
RCC_Periph.AHB2RSTR.GPIOERST := False;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHB2RSTR.GPIOFRST := True;
RCC_Periph.AHB2RSTR.GPIOFRST := False;
elsif This'Address = GPIOG_Base then
RCC_Periph.AHB2RSTR.GPIOGRST := True;
RCC_Periph.AHB2RSTR.GPIOGRST := False;
else
raise Unknown_Device;
end if;
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Point : GPIO_Point) is
begin
Reset (Point.Periph.all);
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Points : GPIO_Points)
is
Do_Reset : Boolean;
begin
for J in Points'Range loop
Do_Reset := True;
for K in Points'First .. J - 1 loop
if Points (K).Periph = Points (J).Periph then
Do_Reset := False;
exit;
end if;
end loop;
if Do_Reset then
Reset (Points (J).Periph.all);
end if;
end loop;
end Reset;
------------------------------
-- GPIO_Port_Representation --
------------------------------
function GPIO_Port_Representation (Port : GPIO_Port) return UInt4 is
begin
-- TODO: rather ugly to have this board-specific range here
if Port'Address = GPIOA_Base then
return 0;
elsif Port'Address = GPIOB_Base then
return 1;
elsif Port'Address = GPIOC_Base then
return 2;
elsif Port'Address = GPIOD_Base then
return 3;
elsif Port'Address = GPIOE_Base then
return 4;
elsif Port'Address = GPIOF_Base then
return 5;
elsif Port'Address = GPIOG_Base then
return 6;
else
raise Program_Error;
end if;
end GPIO_Port_Representation;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased Analog_To_Digital_Converter)
is
begin
if This'Address = ADC1_Base then
RCC_Periph.AHB2ENR.ADC12EN := True;
elsif This'Address = ADC2_Base then
RCC_Periph.AHB2ENR.ADC12EN := True;
elsif This'Address = ADC3_Base then
RCC_Periph.AHB2ENR.ADC345EN := True;
elsif This'Address = ADC4_Base then
RCC_Periph.AHB2ENR.ADC345EN := True;
elsif This'Address = ADC5_Base then
RCC_Periph.AHB2ENR.ADC345EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-------------------------
-- Reset_All_ADC_Units --
-------------------------
procedure Reset_All_ADC_Units is
begin
RCC_Periph.AHB2RSTR.ADC12RST := True;
RCC_Periph.AHB2RSTR.ADC12RST := False;
RCC_Periph.AHB2RSTR.ADC345RST := True;
RCC_Periph.AHB2RSTR.ADC345RST := False;
end Reset_All_ADC_Units;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : Analog_To_Digital_Converter;
Source : ADC_Clock_Source)
is
begin
if This'Address = ADC1_Base or
This'Address = ADC2_Base
then
RCC_Periph.CCIPR.ADC12SEL := Source'Enum_Rep;
elsif This'Address = ADC3_Base or
This'Address = ADC4_Base or
This'Address = ADC5_Base
then
RCC_Periph.CCIPR.ADC345SEL := Source'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source (This : Analog_To_Digital_Converter)
return ADC_Clock_Source
is
begin
if This'Address = ADC1_Base or
This'Address = ADC2_Base
then
return ADC_Clock_Source'Val (RCC_Periph.CCIPR.ADC12SEL);
elsif This'Address = ADC3_Base or
This'Address = ADC4_Base or
This'Address = ADC5_Base
then
return ADC_Clock_Source'Val (RCC_Periph.CCIPR.ADC345SEL);
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock
(This : aliased Digital_To_Analog_Converter)
is
begin
if This'Address = DAC1_Base then
RCC_Periph.AHB2ENR.DAC1EN := True;
elsif This'Address = DAC2_Base then
RCC_Periph.AHB2ENR.DAC2EN := True;
elsif This'Address = DAC3_Base then
RCC_Periph.AHB2ENR.DAC3EN := True;
elsif This'Address = DAC4_Base then
RCC_Periph.AHB2ENR.DAC4EN := True;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased Digital_To_Analog_Converter)
is
begin
if This'Address = DAC1_Base then
RCC_Periph.AHB2RSTR.DAC1RST := True;
RCC_Periph.AHB2RSTR.DAC1RST := False;
elsif This'Address = DAC2_Base then
RCC_Periph.AHB2RSTR.DAC2RST := True;
RCC_Periph.AHB2RSTR.DAC2RST := False;
elsif This'Address = DAC3_Base then
RCC_Periph.AHB2RSTR.DAC3RST := True;
RCC_Periph.AHB2RSTR.DAC3RST := False;
elsif This'Address = DAC4_Base then
RCC_Periph.AHB2RSTR.DAC4RST := True;
RCC_Periph.AHB2RSTR.DAC4RST := False;
end if;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : SAI_Port)
is
begin
pragma Assert (This'Address = SAI_Base);
RCC_Periph.APB2ENR.SAI1EN := True;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : SAI_Port)
is
begin
pragma Assert (This'Address = SAI_Base);
RCC_Periph.APB2RSTR.SAI1RST := True;
RCC_Periph.APB2RSTR.SAI1RST := False;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : SAI_Port;
Source : SAI_Clock_Source)
is
begin
pragma Assert (This'Address = SAI_Base);
RCC_Periph.CCIPR.SAI1SEL := Source'Enum_Rep;
end Select_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
function Read_Clock_Source (This : SAI_Port) return SAI_Clock_Source
is
begin
pragma Assert (This'Address = SAI_Base);
return SAI_Clock_Source'Val (RCC_Periph.CCIPR.SAI1SEL);
end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : SAI_Port) return UInt32
is
Input_Selector : SAI_Clock_Source;
VCO_Input : UInt32;
begin
if This'Address /= SAI_Base then
raise Unknown_Device;
end if;
Input_Selector := SAI_Clock_Source'Val (RCC_Periph.CCIPR.SAI1SEL);
case Input_Selector is
when SYSCLK =>
VCO_Input := System_Clock_Frequencies.SYSCLK;
when PLLQ =>
VCO_Input := System_Clock_Frequencies.PLLQ;
when I2S_CKIN =>
VCO_Input := I2SCLK;
when HSI16 =>
VCO_Input := HSI_VALUE;
end case;
return VCO_Input;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CRCEN := True;
end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
procedure Disable_Clock (This : CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CRCEN := False;
end Disable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1RSTR.CRCRST := True;
RCC_Periph.AHB1RSTR.CRCRST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : RNG_Generator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB2ENR.RNGEN := True;
end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
procedure Disable_Clock (This : RNG_Generator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB2ENR.RNGEN := False;
end Disable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : RNG_Generator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB2RSTR.RNGRST := True;
RCC_Periph.AHB2RSTR.RNGRST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : CORDIC_Coprocessor) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CORDICEN := True;
end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
procedure Disable_Clock (This : CORDIC_Coprocessor) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CORDICEN := False;
end Disable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : CORDIC_Coprocessor) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1RSTR.CORDICRST := True;
RCC_Periph.AHB1RSTR.CORDICRST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : FMAC_Accelerator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.FMACEN := True;
end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
procedure Disable_Clock (This : FMAC_Accelerator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.FMACEN := False;
end Disable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : FMAC_Accelerator) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1RSTR.FMACRST := True;
RCC_Periph.AHB1RSTR.FMACRST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased 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;
RCC_Periph.AHB1ENR.DMAMUXEN := True;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased 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;
RCC_Periph.AHB1RSTR.DMAMUX1RST := True;
RCC_Periph.AHB1RSTR.DMAMUX1RST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased USART) is
begin
if This.Periph.all'Address = USART1_Base then
RCC_Periph.APB2ENR.USART1EN := True;
elsif This.Periph.all'Address = USART2_Base then
RCC_Periph.APB1ENR1.USART2EN := True;
elsif This.Periph.all'Address = USART3_Base then
RCC_Periph.APB1ENR1.USART3EN := True;
elsif This.Periph.all'Address = UART4_Base then
RCC_Periph.APB1ENR1.UART4EN := True;
elsif This.Periph.all'Address = UART5_Base then
RCC_Periph.APB1ENR1.UART5EN := True;
elsif This.Periph.all'Address = LPUART1_Base then
RCC_Periph.APB1ENR2.LPUART1EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased USART) is
begin
if This.Periph.all'Address = USART1_Base then
RCC_Periph.APB2RSTR.USART1RST := True;
RCC_Periph.APB2RSTR.USART1RST := False;
elsif This.Periph.all'Address = USART2_Base then
RCC_Periph.APB1RSTR1.USART2RST := True;
RCC_Periph.APB1RSTR1.USART2RST := False;
elsif This.Periph.all'Address = USART3_Base then
RCC_Periph.APB1RSTR1.USART3RST := True;
RCC_Periph.APB1RSTR1.USART3RST := False;
elsif This.Periph.all'Address = UART4_Base then
RCC_Periph.APB1RSTR1.UART4RST := True;
RCC_Periph.APB1RSTR1.UART4RST := False;
elsif This.Periph.all'Address = UART5_Base then
RCC_Periph.APB1RSTR1.UART5RST := True;
RCC_Periph.APB1RSTR1.UART5RST := False;
elsif This.Periph.all'Address = LPUART1_Base then
RCC_Periph.APB1RSTR2.LPUART1RST := True;
RCC_Periph.APB1RSTR2.LPUART1RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : aliased USART;
Source : USART_Clock_Source)
is
begin
if This'Address = USART1_Base then
RCC_Periph.CCIPR.USART1SEL := Source'Enum_Rep;
elsif This'Address = USART2_Base then
RCC_Periph.CCIPR.USART2SEL := Source'Enum_Rep;
elsif This'Address = USART3_Base then
RCC_Periph.CCIPR.USART3SEL := Source'Enum_Rep;
elsif This'Address = UART4_Base then
RCC_Periph.CCIPR.UART4SEL := Source'Enum_Rep;
elsif This'Address = UART5_Base then
RCC_Periph.CCIPR.UART5SEL := Source'Enum_Rep;
elsif This'Address = LPUART1_Base then
RCC_Periph.CCIPR.LPUART1SEL := Source'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source (This : aliased USART)
return USART_Clock_Source
is
begin
if This'Address = USART1_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.USART1SEL);
elsif This'Address = USART2_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.USART2SEL);
elsif This'Address = USART3_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.USART3SEL);
elsif This'Address = UART4_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.UART4SEL);
elsif This'Address = UART5_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.UART5SEL);
elsif This'Address = LPUART1_Base then
return USART_Clock_Source'Val (RCC_Periph.CCIPR.LPUART1SEL);
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : USART) return UInt32 is
begin
if This.Periph.all'Address = USART1_Base
then
return System_Clock_Frequencies.PCLK2;
else
return System_Clock_Frequencies.PCLK1;
end if;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased CAN_Controller)
is
begin
if This'Address = FDCAN1_Base or
This'Address = FDCAN2_Base or
This'Address = FDCAN3_Base
then
RCC_Periph.APB1ENR1.FDCANEN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased CAN_Controller) is
begin
if This'Address = FDCAN1_Base or
This'Address = FDCAN2_Base or
This'Address = FDCAN3_Base
then
RCC_Periph.APB1RSTR1.FDCANRST := True;
RCC_Periph.APB1RSTR1.FDCANRST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : aliased CAN_Controller;
Source : CAN_Clock_Source)
is
begin
if This'Address = FDCAN1_Base or
This'Address = FDCAN2_Base or
This'Address = FDCAN3_Base
then
RCC_Periph.CCIPR.FDCANSEL := Source'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source (This : aliased CAN_Controller)
return CAN_Clock_Source
is
begin
if This'Address = FDCAN1_Base or
This'Address = FDCAN2_Base or
This'Address = FDCAN3_Base
then
return CAN_Clock_Source'Val (RCC_Periph.CCIPR.FDCANSEL);
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
----------------
-- As_Port_Id --
----------------
function As_Port_Id (Port : I2C_Port'Class) 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;
elsif Port.Periph.all'Address = I2C4_Base then
return I2C_Id_4;
else
raise Unknown_Device;
end if;
end As_Port_Id;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased I2C_Port'Class) 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;
when I2C_Id_4 =>
RCC_Periph.APB1ENR2.I2C4EN := True;
end case;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : I2C_Port'Class) 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;
when I2C_Id_4 =>
RCC_Periph.APB1RSTR2.I2C4RST := True;
RCC_Periph.APB1RSTR2.I2C4RST := False;
end case;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : I2C_Port'Class;
Source : I2C_Clock_Source)
is
begin
Select_Clock_Source (As_Port_Id (This), Source);
end Select_Clock_Source;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : I2C_Port_Id;
Source : I2C_Clock_Source)
is
begin
case This is
when I2C_Id_1 =>
RCC_Periph.CCIPR.I2C1SEL := Source'Enum_Rep;
when I2C_Id_2 =>
RCC_Periph.CCIPR.I2C2SEL := Source'Enum_Rep;
when I2C_Id_3 =>
RCC_Periph.CCIPR.I2C3SEL := Source'Enum_Rep;
when I2C_Id_4 =>
RCC_Periph.CCIPR2.I2C4SEL := Source'Enum_Rep;
end case;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source (This : I2C_Port'Class) return I2C_Clock_Source
is
begin
return Read_Clock_Source (As_Port_Id (This));
end Read_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
function Read_Clock_Source (This : I2C_Port_Id) return I2C_Clock_Source
is
begin
case This is
when I2C_Id_1 =>
return I2C_Clock_Source'Val (RCC_Periph.CCIPR.I2C1SEL);
when I2C_Id_2 =>
return I2C_Clock_Source'Val (RCC_Periph.CCIPR.I2C2SEL);
when I2C_Id_3 =>
return I2C_Clock_Source'Val (RCC_Periph.CCIPR.I2C3SEL);
when I2C_Id_4 =>
return I2C_Clock_Source'Val (RCC_Periph.CCIPR2.I2C4SEL);
end case;
end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : SPI_Port'Class) 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.SPI2EN := True;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1ENR1.SPI3EN := True;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2ENR.SPI4EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : SPI_Port'Class) 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.SPI2RST := True;
RCC_Periph.APB1RSTR1.SPI2RST := False;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1RSTR1.SPI3RST := True;
RCC_Periph.APB1RSTR1.SPI3RST := False;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2RSTR.SPI4RST := True;
RCC_Periph.APB2RSTR.SPI4RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : SPI_Port'Class;
Source : SPI_Clock_Source)
is
begin
if This.Periph.all'Address = SPI1_Base or
This.Periph.all'Address = SPI4_Base
then
null;
elsif This.Periph.all'Address = SPI2_Base or
This.Periph.all'Address = SPI3_Base
then
RCC_Periph.CCIPR.I2S23SEL := Source'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
function Read_Clock_Source (This : SPI_Port'Class) return SPI_Clock_Source
is
begin
if This.Periph.all'Address = SPI2_Base or
This.Periph.all'Address = SPI3_Base
then
return SPI_Clock_Source'Val (RCC_Periph.CCIPR.I2S23SEL);
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : I2S_Port) is
begin
if This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1ENR1.SPI2EN := True;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1ENR1.SPI3EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : I2S_Port) is
begin
if This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1RSTR1.SPI2RST := True;
RCC_Periph.APB1RSTR1.SPI2RST := False;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1RSTR1.SPI3RST := True;
RCC_Periph.APB1RSTR1.SPI3RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : I2S_Port'Class;
Source : I2S_Clock_Source)
is
begin
if This.Periph.all'Address = SPI2_Base or
This.Periph.all'Address = SPI3_Base
then
RCC_Periph.CCIPR.I2S23SEL := Source'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
function Read_Clock_Source (This : I2S_Port'Class) return I2S_Clock_Source
is
begin
if This.Periph.all'Address = SPI2_Base or
This.Periph.all'Address = SPI3_Base
then
return I2S_Clock_Source'Val (RCC_Periph.CCIPR.I2S23SEL);
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : I2S_Port) return UInt32 is
Source : constant I2S_Clock_Source :=
I2S_Clock_Source'Val (RCC_Periph.CCIPR.I2S23SEL);
begin
if This.Periph.all'Address = SPI2_Base or
This.Periph.all'Address = SPI3_Base
then
case Source is
when SYSCLK =>
return System_Clock_Frequencies.SYSCLK;
when PLLQ =>
return System_Clock_Frequencies.PLLQ;
when I2S_CKIN =>
return I2SCLK;
when HSI16 =>
return HSI_VALUE;
end case;
else
raise Unknown_Device;
end if;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : RTC_Device) is
pragma Unreferenced (This);
begin
RCC_Periph.BDCR.RTCEN := True;
end Enable_Clock;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source
(This : RTC_Device;
Source : RTC_Clock_Source)
is
pragma Unreferenced (This);
begin
RCC_Periph.BDCR.RTCSEL := Source'Enum_Rep;
end Select_Clock_Source;
------------------------
-- Read_Clock_Source --
------------------------
function Read_Clock_Source (This : RTC_Device) return RTC_Clock_Source
is
pragma Unreferenced (This);
begin
return RTC_Clock_Source'Val (RCC_Periph.BDCR.RTCSEL);
end Read_Clock_Source;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : 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 = TIM3_Base then
RCC_Periph.APB1ENR1.TIM3EN := True;
elsif This'Address = TIM4_Base then
RCC_Periph.APB1ENR1.TIM4EN := True;
elsif This'Address = TIM5_Base then
RCC_Periph.APB1ENR1.TIM5EN := True;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1ENR1.TIM6EN := True;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1ENR1.TIM7EN := True;
elsif This'Address = TIM8_Base then
RCC_Periph.APB2ENR.TIM8EN := True;
elsif This'Address = TIM15_Base then
RCC_Periph.APB2ENR.TIM15EN := True;
elsif This'Address = TIM16_Base then
RCC_Periph.APB2ENR.TIM16EN := True;
elsif This'Address = TIM17_Base then
RCC_Periph.APB2ENR.TIM17EN := True;
elsif This'Address = TIM20_Base then
RCC_Periph.APB2ENR.TIM20EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : 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;
elsif This'Address = TIM3_Base then
RCC_Periph.APB1RSTR1.TIM3RST := True;
RCC_Periph.APB1RSTR1.TIM3RST := False;
elsif This'Address = TIM4_Base then
RCC_Periph.APB1RSTR1.TIM4RST := True;
RCC_Periph.APB1RSTR1.TIM4RST := False;
elsif This'Address = TIM5_Base then
RCC_Periph.APB1RSTR1.TIM5RST := True;
RCC_Periph.APB1RSTR1.TIM5RST := False;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1RSTR1.TIM6RST := True;
RCC_Periph.APB1RSTR1.TIM6RST := False;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1RSTR1.TIM7RST := True;
RCC_Periph.APB1RSTR1.TIM7RST := False;
elsif This'Address = TIM8_Base then
RCC_Periph.APB2RSTR.TIM8RST := True;
RCC_Periph.APB2RSTR.TIM8RST := False;
elsif This'Address = TIM15_Base then
RCC_Periph.APB2RSTR.TIM15RST := True;
RCC_Periph.APB2RSTR.TIM15RST := False;
elsif This'Address = TIM16_Base then
RCC_Periph.APB2RSTR.TIM16RST := True;
RCC_Periph.APB2RSTR.TIM16RST := False;
elsif This'Address = TIM17_Base then
RCC_Periph.APB2RSTR.TIM17RST := True;
RCC_Periph.APB2RSTR.TIM17RST := False;
elsif This'Address = TIM20_Base then
RCC_Periph.APB2RSTR.TIM20RST := True;
RCC_Periph.APB2RSTR.TIM20RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : Timer) return UInt32 is
begin
-- TIMs 2 .. 7
if This'Address = TIM2_Base or
This'Address = TIM3_Base or
This'Address = TIM4_Base or
This'Address = TIM5_Base or
This'Address = TIM6_Base or
This'Address = TIM7_Base
then
return System_Clock_Frequencies.TIMCLK1;
-- TIMs 1, 8, 20, 15 .. 17
elsif This'Address = TIM1_Base or
This'Address = TIM8_Base or
This'Address = TIM15_Base or
This'Address = TIM16_Base or
This'Address = TIM17_Base or
This'Address = TIM20_Base
then
return System_Clock_Frequencies.TIMCLK2;
else
raise Unknown_Device;
end if;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : LPTimer) is
begin
if This'Address = LPTIMER1_Base then
RCC_Periph.APB1ENR1.LPTIM1EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : LPTimer) is
begin
if This'Address = LPTIMER1_Base then
RCC_Periph.APB1RSTR1.LPTIM1RST := True;
RCC_Periph.APB1RSTR1.LPTIM1RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source (This : LPTimer;
Source : LPTimer_Clock_Source)
is
begin
if This'Address = LPTIMER1_Base then
LPTIMER1_Periph.CFGR.CKSEL := Source.External;
RCC_Periph.CCIPR.LPTIM1SEL := Source.Clock'Enum_Rep;
else
raise Unknown_Device;
end if;
end Select_Clock_Source;
-----------------------
-- Read_Clock_Source --
-----------------------
function Read_Clock_Source (This : LPTimer) return LPTimer_Clock_Source is
Source : LPTimer_Clock_Source;
begin
if This'Address = LPTIMER1_Base then
Source.External := LPTIMER1_Periph.CFGR.CKSEL;
Source.Clock := LPTimer_Clock_Source_Enum'Val (RCC_Periph.CCIPR.LPTIM1SEL);
return Source;
else
raise Unknown_Device;
end if;
end Read_Clock_Source;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : LPTimer) return UInt32 is
begin
-- LPTIMs 1
if This'Address = LPTIMER1_Base then
return System_Clock_Frequencies.TIMCLK3;
else
raise Unknown_Device;
end if;
end Get_Clock_Frequency;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : HRTimer_Master) is
begin
if This'Address = HRTIM_Master_Base then
RCC_Periph.APB2ENR.HRTIM1EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : HRTimer_Channel) is
begin
if This'Address = HRTIM_TIMA_Base or
This'Address = HRTIM_TIMB_Base or
This'Address = HRTIM_TIMC_Base or
This'Address = HRTIM_TIMD_Base or
This'Address = HRTIM_TIME_Base or
This'Address = HRTIM_TIMF_Base
then
RCC_Periph.APB2ENR.HRTIM1EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : HRTimer_Master) is
begin
if This'Address = HRTIM_Master_Base then
RCC_Periph.APB2RSTR.HRTIM1RST := True;
RCC_Periph.APB2RSTR.HRTIM1RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-----------
-- Reset --
-----------
procedure Reset (This : HRTimer_Channel) is
begin
if This'Address = HRTIM_TIMA_Base or
This'Address = HRTIM_TIMB_Base or
This'Address = HRTIM_TIMC_Base or
This'Address = HRTIM_TIMD_Base or
This'Address = HRTIM_TIME_Base or
This'Address = HRTIM_TIMF_Base
then
RCC_Periph.APB2RSTR.HRTIM1RST := True;
RCC_Periph.APB2RSTR.HRTIM1RST := False;
else
raise Unknown_Device;
end if;
end Reset;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : HRTimer_Master) return UInt32 is
pragma Unreferenced (This);
begin
return System_Clock_Frequencies.TIMCLK2;
end Get_Clock_Frequency;
-------------------------
-- Get_Clock_Frequency --
-------------------------
function Get_Clock_Frequency (This : HRTimer_Channel) return UInt32 is
pragma Unreferenced (This);
begin
return System_Clock_Frequencies.TIMCLK2;
end Get_Clock_Frequency;
------------------------------
-- System_Clock_Frequencies --
------------------------------
function System_Clock_Frequencies return RCC_System_Clocks
is
Source : constant SYSCLK_Clock_Source :=
SYSCLK_Clock_Source'Val (RCC_Periph.CFGR.SWS);
-- Get System_Clock_Mux selection
Result : RCC_System_Clocks;
PLLSRC : constant PLL_Clock_Source :=
PLL_Clock_Source'Val (RCC_Periph.PLLCFGR.PLLSRC);
-- PLL Source Mux input.
PLL_Clock_In : UInt32;
Pllm : constant UInt32 := UInt32 (RCC_Periph.PLLCFGR.PLLM + 1);
-- Get the value of Pll M divisor.
Plln : constant UInt32 := UInt32 (RCC_Periph.PLLCFGR.PLLN);
-- Get the value of Pll N multiplier.
Pllp : constant UInt32 := UInt32 (RCC_Periph.PLLCFGR.PLLPDIV);
-- Get the value of Pll P divisor.
Pllq : UInt32 := UInt32 (RCC_Periph.PLLCFGR.PLLQ);
-- Get the value of Pll Q divisor.
Pllr : UInt32 := UInt32 (RCC_Periph.PLLCFGR.PLLR);
-- Get the value of Pll R divisor.
begin
-- Get the correct value of Pll Q divisor.
Pllq := (Pllq + 1) * 2;
-- Get the correct value of Pll R divisor.
Pllr := (Pllr + 1) * 2;
-- PLL Source Mux
case PLLSRC is
when PLL_SRC_HSE => -- HSE as PLL source
PLL_Clock_In := HSE_VALUE;
when PLL_SRC_HSI => -- HSI as PLL source
PLL_Clock_In := HSI_VALUE;
when others => -- No source
PLL_Clock_In := 0;
end case;
-- PLL clock output frequencies
-- PLLR is PLLCLK that is used for SYSCLK, see below.
-- When PLLPDIV is set to zero, the division factor of the PLLP
-- output is defined by the PLLP bit (0 = 7, 1 = 17).
if Pllp = 16#00# then
if RCC_Periph.PLLCFGR.PLLP then
Result.PLLP := (PLL_Clock_In / Pllm * Plln) / 17;
else
Result.PLLP := (PLL_Clock_In / Pllm * Plln) / 7;
end if;
else
Result.PLLP := (PLL_Clock_In / Pllm * Plln) / Pllp;
end if;
Result.PLLQ := (PLL_Clock_In / Pllm * Plln) / Pllq;
case Source is
-- HSI as source
when SYSCLK_SRC_HSI =>
Result.SYSCLK := HSI_VALUE;
-- HSE as source
when SYSCLK_SRC_HSE =>
Result.SYSCLK := HSE_VALUE;
-- PLL as source = PLLCLK
when SYSCLK_SRC_PLL =>
-- PLLR output to System Clock Mux (PLLCLK) that defines SYSCLK.
Result.SYSCLK := (PLL_Clock_In / Pllm * Plln) / Pllr;
end case;
declare
HPRE : constant UInt4 := RCC_Periph.CFGR.HPRE;
PPRE1 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (1);
PPRE2 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (2);
begin
Result.HCLK := Result.SYSCLK / HPRE_Presc_Table (HPRE);
Result.PCLK1 := Result.HCLK / PPRE_Presc_Table (PPRE1);
Result.PCLK2 := Result.HCLK / PPRE_Presc_Table (PPRE2);
-- Timer clocks
-- If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register)
-- is configured to a division factor of 1, TIMxCLK = PCLKx.
-- Otherwise, the timer clock frequencies are set to twice to the
-- frequency of the APB domain to which the timers are connected:
-- TIMxCLK = 2 x PCLKx.
-- TIMs 2 .. 7
if PPRE_Presc_Table (PPRE1) = 1 then
Result.TIMCLK1 := Result.PCLK1;
else
Result.TIMCLK1 := Result.PCLK1 * 2;
end if;
-- TIMs 1, 8, 20, 15 .. 17, HRTIM1
if PPRE_Presc_Table (PPRE2) = 1 then
Result.TIMCLK2 := Result.PCLK2;
else
Result.TIMCLK2 := Result.PCLK2 * 2;
end if;
-- LPTIMs 1 .. 2
case RCC_Periph.CCIPR.LPTIM1SEL is
when 0 =>
Result.TIMCLK3 := Result.PCLK1;
when 1 =>
Result.TIMCLK3 := LSI_VALUE;
when 2 =>
Result.TIMCLK3 := HSI_VALUE;
when 3 =>
Result.TIMCLK3 := LSE_VALUE;
end case;
end;
return Result;
end System_Clock_Frequencies;
end STM32.Device;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
package body BMP280 is
-- TODO: Introduce Status Value
subtype Dispatch is BMP280_Device'Class;
procedure Configure (This : in out BMP280_Device;
Configuration : BMP280_Configuration) is
function Config_To_Uint8 is new
Ada.Unchecked_Conversion (BMP280_Config, UInt8);
function Control_To_Uint8 is new
Ada.Unchecked_Conversion (BMP280_Control, UInt8);
function To_Calibration is new
Ada.Unchecked_Conversion (Byte_Array, BMP280_Calibration);
Device_Not_Found : Exception;
D_Id : Byte_Array (1 .. 1);
Config : BMP280_Config;
Control : BMP280_Control;
C_Data : Byte_Array (1 .. BMP280_Calibration'Size / 8);
begin
-- Check the Device Id
Dispatch (This).Read_Port (BMP280_Device_Id_Address, D_Id);
if D_Id (1) /= BMP280_Device_Id then
raise Device_Not_Found;
end if;
-- Read the Calibration Data
Dispatch (This).Read_Port (BMP280_Calibration_Address, C_Data);
This.Cal := To_Calibration (C_Data);
-- Configure the device
Control := (osrs_t => Configuration.Temperature_Oversampling,
osrs_p => Configuration.Pressure_Oversampling,
mode => Normal);
Dispatch (This).Write_Port (BMP280_Control_Address,
Control_To_Uint8 (Control));
Config := (t_sb => Configuration.Standby_Time,
filter => Configuration.Filter_Coefficient,
reserved_1 => False,
spi3w => False);
Dispatch (This).Write_Port (BMP280_Config_Address,
Config_To_Uint8 (Config));
end Configure;
procedure Read_Values_Int (This : BMP280_Device;
Values : out BMP280_Values_Int) is
function To_Readout is new Ada.Unchecked_Conversion (Byte_Array,
BMP280_Raw_Readout);
Readout : BMP280_Raw_Readout;
C_Data : Byte_Array (1 .. BMP280_Raw_Readout'Size / 8);
TFine : Integer_32;
begin
Dispatch (This).Read_Port (BMP280_Readout_Address, C_Data);
Readout := To_Readout (C_Data);
Values.Temperature := This.Compensate_Temperature (Readout, TFine);
Values.Pressure := This.Compensate_Pressure (Readout, TFine);
end Read_Values_Int;
procedure Read_Values_Float (This : BMP280_Device;
Values : out BMP280_Values_Float) is
Int_Values : BMP280_Values_Int;
begin
This.Read_Values_Int (Int_Values);
Values.Temperature := Float (Int_Values.Temperature) / 100.0;
Values.Pressure := Float (Int_Values.Pressure) / 256.0;
end Read_Values_Float;
function Compensate_Temperature (This : BMP280_Device;
Readout : BMP280_Raw_Readout;
TFine : out Integer_32)
return Integer_32 is
function U2I is new Ada.Unchecked_Conversion (Unsigned_32, Integer_32);
function I2U is new Ada.Unchecked_Conversion (Integer_32, Unsigned_32);
function Shr (i : Integer_32; v : Integer) return Integer_32;
function Shr (i : Integer_32; v : Integer) return Integer_32 is
begin
return U2I (Shift_Right_Arithmetic (I2U (i), v));
end Shr;
function Shl (i : Integer_32; v : Integer) return Integer_32;
function Shl (i : Integer_32; v : Integer) return Integer_32 is
begin
return U2I (Shift_Left (I2U (i), v));
end Shl;
T : Integer_32;
var1, var2 : Integer_32;
begin
T := Integer_32 (Readout.Temperature);
var1 := Shr (T, 3) - Shl (Integer_32 (This.Cal.dig_T1), 1);
var1 := Shr (var1 * Integer_32 (This.Cal.dig_T2), 11);
var2 := (Shr (T, 4) - Integer_32 (This.Cal.dig_T1))**2;
var2 := Shr (Shr (var2, 12) * Integer_32 (This.Cal.dig_T3), 14);
TFine := var1 + var2;
return Shr ((TFine) * 5 + 128, 8);
end Compensate_Temperature;
function Compensate_Pressure (This : BMP280_Device;
Readout : BMP280_Raw_Readout;
TFine : Integer_32)
return Integer_64 is
function U2I is new Ada.Unchecked_Conversion (Unsigned_64, Integer_64);
function I2U is new Ada.Unchecked_Conversion (Integer_64, Unsigned_64);
function Shr (i : Integer_64; v : Integer) return Integer_64;
function Shr (i : Integer_64; v : Integer) return Integer_64 is
begin
return U2I (Shift_Right_Arithmetic (I2U (i), v));
end Shr;
function Shl (i : Integer_64; v : Integer) return Integer_64;
function Shl (i : Integer_64; v : Integer) return Integer_64 is
begin
return U2I (Shift_Left (I2U (i), v));
end Shl;
p : Integer_64;
var1, var2 : Integer_64;
t_fine : Integer_64;
begin
p := Integer_64 (Readout.Pressure);
t_fine := Integer_64(TFine);
var1 := t_fine - 128000;
var2 := (var1**2) * Integer_64 (This.Cal.dig_P6);
var2 := var2 + Shl (var1 * Integer_64 (This.Cal.dig_P5), 17);
var2 := var2 + Shl (Integer_64 (This.Cal.dig_P4), 35);
var1 := Shr ((var1**2) * Integer_64 (This.Cal.dig_P3), 8)
+ Shl (var1 * Integer_64 (This.Cal.dig_P2), 12);
var1 := Shr ((Shl (Integer_64 (1), 47) + var1)
* Integer_64 (This.Cal.dig_P1), 33);
if var1 = 0 then
return 0;
end if;
p := 1048576 - p;
p := ((Shl (p, 31) - var2) * 3125) / var1;
var1 := Shr (Integer_64 (This.Cal.dig_P9) * (Shr (p, 13)**2), 25);
var2 := Shr (Integer_64 (This.Cal.dig_P8) * p, 19);
p := Shr (p + var1 + var2, 8) + Shl (Integer_64 (This.Cal.dig_P7), 4);
return p;
end Compensate_Pressure;
procedure Read_Port (This : BMP280_Device;
Address : UInt8;
Data : out Byte_Array) is
Not_Implemented_Error : exception;
begin
raise Not_Implemented_Error;
end Read_Port;
procedure Write_Port (This : BMP280_Device;
Address : UInt8;
Data : UInt8) is
Not_Implemented_Error : exception;
begin
raise Not_Implemented_Error;
end Write_Port;
end BMP280;
|
with VisitFailurePackage, VisitablePackage, EnvironmentPackage;
use VisitFailurePackage, VisitablePackage, EnvironmentPackage;
with Ada.Text_IO; use Ada.Text_IO;
package body ChoiceIdStrategy is
----------------------------------------------------------------------------
-- Object implementation
----------------------------------------------------------------------------
overriding
function toString(c: ChoiceId) return String is
begin
return "ChoiceId()";
end;
----------------------------------------------------------------------------
-- Strategy implementation
----------------------------------------------------------------------------
overriding
function visitLight(str:access ChoiceId; any: ObjectPtr; i: access Introspector'Class) return ObjectPtr is
v : ObjectPtr := visitLight(StrategyPtr(str.arguments(FIRST)), any, i);
begin
if v = any then
return visitLight(StrategyPtr(str.arguments(SECOND)), v, i);
else
return v;
end if;
end;
overriding
function visit(str: access ChoiceId; i: access Introspector'Class) return Integer is
subject : ObjectPtr;
status : Integer;
begin
subject := getSubject(str.env.all);
status := visit(StrategyPtr(str.arguments(FIRST)), i);
if status = EnvironmentPackage.SUCCESS and then getSubject(str.env.all) /= subject then
return status;
else
setSubject(str.env.all, subject);
if status = EnvironmentPackage.SUCCESS then
return visit(StrategyPtr(str.arguments(SECOND)), i);
else
return status;
end if;
end if;
end;
----------------------------------------------------------------------------
procedure makeChoiceId(c : in out ChoiceId; first, second: StrategyPtr) is
begin
initSubterm(c, first, second);
end;
function make(first, second: StrategyPtr) return StrategyPtr is
begin
if second = null then
return first;
else
return newChoiceId(first, second);
end if;
end;
function newChoiceId(first, second: StrategyPtr) return StrategyPtr is
ret : StrategyPtr := new ChoiceId;
begin
makeChoiceId(ChoiceId(ret.all), first, second);
return ret;
end;
----------------------------------------------------------------------------
end ChoiceIdStrategy;
|
with
lace.make_Observer.deferred,
lace.Any;
private
with
ada.Strings.unbounded;
package lace.Observer.deferred
--
-- Provides a concrete deferred event observer.
--
is
type Item is limited new Any.limited_item
and Observer .item with private;
type View is access all Item'Class;
package Forge
is
function to_Observer (Name : in event.observer_Name) return Item;
function new_Observer (Name : in event.observer_Name) return View;
end Forge;
overriding
function Name (Self : in Item) return event.observer_Name;
private
use ada.Strings.unbounded;
package Observer is new lace.make_Observer (Any.limited_item);
package Deferred is new Observer.deferred (Observer.item);
type Item is limited new Deferred.item with
record
Name : unbounded_String;
end record;
end lace.Observer.deferred;
|
with Ada.Text_IO;
procedure Value_Capture is
protected type Fun is -- declaration of the type of a protected object
entry Init(Index: Natural);
function Result return Natural;
private
N: Natural := 0;
end Fun;
protected body Fun is -- the implementation of a protected object
entry Init(Index: Natural) when N=0 is
begin -- after N has been set to a nonzero value, it cannot be changed any more
N := Index;
end Init;
function Result return Natural is (N*N);
end Fun;
A: array (1 .. 10) of Fun; -- an array holding 10 protected objects
begin
for I in A'Range loop -- initialize the protected objects
A(I).Init(I);
end loop;
for I in A'First .. A'Last-1 loop -- evaluate the functions, except for the last
Ada.Text_IO.Put(Integer'Image(A(I).Result));
end loop;
end Value_Capture;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S T R I N G T --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System; use System;
with Types; use Types;
package Stringt is
-- This package contains routines for handling the strings table which is
-- used to store string constants encountered in the source, and also those
-- additional string constants generated by compile time concatenation and
-- other similar processing.
-- A string constant in this table consists of a series of Char_Code values,
-- so that 16-bit character codes can be properly handled if this feature
-- is implemented in the scanner.
-- There is no guarantee that hashing is used in the implementation, although
-- it maybe. This means that the caller cannot count on having the same Id
-- value for two identical strings stored separately and also cannot count on
-- the two Id values being different.
--------------------------------------
-- String Table Access Subprograms --
--------------------------------------
procedure Initialize;
-- Initializes the strings table for a new compilation. Note that
-- Initialize must not be called if Tree_Read is used.
procedure Lock;
-- Lock internal tables before calling back end
procedure Unlock;
-- Unlock internal tables, in case back end needs to modify them
procedure Start_String;
-- Sets up for storing a new string in the table. To store a string, a
-- call is first made to Start_String, then successive calls are
-- made to Store_String_Character to store the characters of the string.
-- Finally, a call to End_String terminates the entry and returns it Id.
procedure Start_String (S : String_Id);
-- Like Start_String with no parameter, except that the contents of the
-- new string is initialized to be a copy of the given string. A test is
-- made to see if S is the last created string, and if so it is shared,
-- rather than copied, this can be particularly helpful for the case of
-- a continued concatenation of string constants.
procedure Store_String_Char (C : Char_Code);
procedure Store_String_Char (C : Character);
-- Store next character of string, see description above for Start_String
procedure Store_String_Chars (S : String);
procedure Store_String_Chars (S : String_Id);
-- Store character codes of given string in sequence
procedure Store_String_Int (N : Int);
-- Stored decimal representation of integer with possible leading minus
procedure Unstore_String_Char;
-- Undoes effect of previous Store_String_Char call, used in some error
-- situations of unterminated string constants.
function End_String return String_Id;
-- Terminates current string and returns its Id
function String_Length (Id : String_Id) return Nat;
-- Returns length of previously stored string
function Get_String_Char (Id : String_Id; Index : Int) return Char_Code;
pragma Inline (Get_String_Char);
-- Obtains the specified character from a stored string. The lower bound
-- of stored strings is always 1, so the range is 1 .. String_Length (Id).
function String_Equal (L, R : String_Id) return Boolean;
-- Determines if two string literals represent the same string
procedure String_To_Name_Buffer (S : String_Id);
-- Place characters of given string in Name_Buffer, setting Name_Len.
-- Error if any characters are out of Character range. Does not attempt
-- to do any encoding of any characters.
procedure Add_String_To_Name_Buffer (S : String_Id);
-- Append characters of given string to Name_Buffer, updating Name_Len.
-- Error if any characters are out of Character range. Does not attempt
-- to do any encoding of any characters.
function String_Chars_Address return System.Address;
-- Return address of String_Chars table (used by Back_End call to Gigi)
function String_From_Name_Buffer return String_Id;
-- Given a name stored in Namet.Name_Buffer (length in Namet.Name_Len),
-- returns a string of the corresponding value. The value in Name_Buffer
-- is unchanged, and the cases of letters are unchanged.
function Strings_Address return System.Address;
-- Return address of Strings table (used by Back_End call to Gigi)
procedure Tree_Read;
-- Initializes internal tables from current tree file using the relevant
-- Table.Tree_Read routines. Note that Initialize should not be called if
-- Tree_Read is used. Tree_Read includes all necessary initialization.
procedure Tree_Write;
-- Writes out internal tables to current tree file using the relevant
-- Table.Tree_Write routines.
procedure Write_Char_Code (Code : Char_Code);
-- Procedure to write a character code value, used for debugging purposes
-- for writing character codes. If the character code is in the range
-- 16#20# .. 16#7E#, then the single graphic character corresponding to
-- the code is output. For any other codes in the range 16#00# .. 16#FF#,
-- the code is output as ["hh"] where hh is the two digit hex value for
-- the code. Codes greater than 16#FF# are output as ["hhhh"] where hhhh
-- is the four digit hex representation of the code value (high order
-- byte first). Hex letters are always in lower case.
procedure Write_String_Table_Entry (Id : String_Id);
-- Writes a string value with enclosing quotes to the current file using
-- routines in package Output. Does not write an end of line character.
-- This procedure is used for debug output purposes, and also for output
-- of strings specified by pragma Linker Option to the ali file. 7-bit
-- ASCII graphics (except for double quote) are output literally.
-- The double quote appears as two successive double quotes.
-- All other codes, are output as described for Write_Char_Code. For
-- example, the string created by folding "A" & ASCII.HT & "Hello" will
-- print as "A["09"]Hello". A No_String value prints simply as "no string"
-- without surrounding quote marks.
private
pragma Inline (End_String);
pragma Inline (String_Length);
end Stringt;
|
-- ________ ___ ______ ______ ___
-- /___ .. ._/ |.| |.___.\ /. __ .\ __|.| ____
-- / .. / |.| |.____/ |.|__|.| / .. ..| __\ .. \
-- _/ .. /___ |.| |.| === | .. __ .. ||. = .| | = .. |
-- /_______/ |_| /__| /__| |_| \__\_| \__\_|
-- This package provides:
--
-- * Definiton of PKZIP information structures (cf appnote.txt),
-- * Reading a header from a data stream (Read_and_check),
-- * Copying a header from a buffer (Copy_and_check)
-- * Writing a header to a data stream (Write)
-- Change log:
-- ==========
-- 16 - Nov - 2009 : GdM : Replaced Ada.Calendar.Time by Zip.Time in headers, due to
-- perf. issues in some run - times' Ada.Calendar.Time_Of
with Interfaces;
with Zip_Streams; use Zip_Streams;
package Zip.Headers is
use Interfaces;
----------------------------------------------------------------------
-- PKZIP data descriptor, put after streamed compressed data - PK78 --
----------------------------------------------------------------------
type Data_descriptor is record
-- PK78 -- 1 .. 4
crc_32 : Unsigned_32; -- 5 .. 8
compressed_size,
uncompressed_size : Unsigned_32;
end record;
data_descriptor_length : constant := 16;
-- This header needs to be read in continuation of
-- the compressed data - > access to a buffer
procedure Copy_and_check (buffer : Byte_Buffer;
the_data_desc : out Data_descriptor);
procedure Read_and_check (stream : Zipstream_Class;
the_data_desc : out Data_descriptor);
bad_data_descriptor : exception;
procedure Write (stream : Zipstream_Class;
the_data_desc : Data_descriptor);
-----------------------------------------------------------------------
-- PKZIP local file header, in front of every file in archive - PK34 --
-----------------------------------------------------------------------
Language_Encoding_Flag_Bit : constant := 2**11;
type Local_File_Header is record
-- PK34 -- 1 .. 4
needed_extract_version : Unsigned_16; -- 5 .. 6
bit_flag,
zip_type : Unsigned_16;
file_timedate : Time;
dd : Data_descriptor;
filename_length,
extra_field_length : Unsigned_16;
end record;
local_header_length : constant := 30;
procedure Read_and_check (stream : Zipstream_Class;
header : out Local_File_Header);
bad_local_header : exception;
procedure Write (stream : Zipstream_Class;
header : Local_File_Header);
-------------------------------------------------------
-- PKZIP file header, as in central directory - PK12 --
-------------------------------------------------------
-- NB : a central header contains a local header in the middle
type Central_File_Header is record
-- PK12 -- 1 .. 4
made_by_version : Unsigned_16; -- 5 .. 6
short_info : Local_File_Header; -- 7 .. 32
comment_length : Unsigned_16; -- 33 .. 34
disk_number_start : Unsigned_16;
internal_attributes : Unsigned_16; -- internal properties of data
external_attributes : Unsigned_32; -- 1st byte if MS - DOS : see below
local_header_offset : Unsigned_32;
end record;
-- MS - DOS external attributes:
--
-- Bit 0 Read - Only
-- Bit 1 Hidden
-- Bit 2 System
-- Bit 3 Volume Label
-- Bit 4 Directory
-- Bit 5 Archive
central_header_length : constant := 46;
procedure Read_and_check (stream : Zipstream_Class;
header : out Central_File_Header);
bad_central_header : exception;
procedure Write (stream : Zipstream_Class;
header : Central_File_Header);
-------------------------------------------
-- PKZIP end - of - central - directory - PK56 --
-------------------------------------------
type End_of_Central_Dir is record
-- PK56 -- 1 .. 4
disknum : Unsigned_16; -- 5 .. 6
disknum_with_start : Unsigned_16;
disk_total_entries : Unsigned_16;
total_entries : Unsigned_16;
central_dir_size : Unsigned_32;
central_dir_offset : Unsigned_32;
main_comment_length : Unsigned_16;
-- The Zip archive may be appended to another file (for instance an
-- executable for self - extracting purposes) of size N.
-- Then, all offsets need to be shifted by N.
-- N=0 if the Zip archive is on its own.
-- The real offset of the end - of - central - dir
-- will be N + central_dir_size + central_dir_offset.
-- This way, we have an unique chance to determine N when reading the
-- end - of - central - dir. N is stored in the field hereafter.
offset_shifting : Unsigned_32;
end record;
end_of_central_dir_length : constant := 22;
-- This header needs to be read in special
-- ways (see Load) - > access to a buffer
procedure Copy_and_check (buffer : Byte_Buffer;
the_end : out End_of_Central_Dir);
procedure Read_and_check (stream : Zipstream_Class;
the_end : out End_of_Central_Dir);
bad_end : exception;
-- A bit more elaborated : from an open file (not a stream),
-- find the End - of - Central - dir and load it; keep the file open.
procedure Load (stream : Zipstream_Class;
the_end : out End_of_Central_Dir);
procedure Write (stream : Zipstream_Class;
the_end : End_of_Central_Dir);
end Zip.Headers;
|
with Ada.Streams; use Ada.Streams;
with GNAT.Sockets.MQTT; use GNAT.Sockets.MQTT;
package MQTT_Clients is
type MQTT_Client is new MQTT_Pier with private;
overriding
procedure On_Connect_Accepted (Pier : in out MQTT_Client;
Session_Present : Boolean);
overriding
procedure On_Connect_Rejected (Pier : in out MQTT_Client;
Response : Connect_Response);
overriding
procedure On_Ping_Response (Pier : in out MQTT_Client);
overriding
procedure On_Publish (Pier : in out MQTT_Client;
Topic : String;
Message : Stream_Element_Array;
Packet : Packet_Identification;
Duplicate : Boolean;
Retain : Boolean);
overriding
procedure On_Subscribe_Acknowledgement
(Pier : in out MQTT_Client;
Packet : Packet_Identifier;
Codes : Return_Code_List);
private
type MQTT_Client is new MQTT_Pier with null record;
end MQTT_Clients;
|
with System;
with lvgl_ada_Config;
with HAL;
package BB_Pico_Bsp.LCD is
Width : constant := lvgl_ada_Config.Horizontal_Resolution;
Height : constant := lvgl_ada_Config.Vertical_Resolution;
procedure Send_Pixels (X1, Y1, X2, Y2 : Natural;
Addr : System.Address;
Len : HAL.UInt32;
Blocking : Boolean := True);
procedure Wait_For_DMA;
end BB_Pico_Bsp.LCD;
|
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
function Natools.Static_Hash_Maps.S_Expressions.Command_Maps.Test
return Boolean;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
type Parent is abstract new Test_Event_Base with private;
package Apsepp.Test_Event_Class.Generic_Timestamp_Mixin is
type Child_W_Timestamp is new Parent with private
with Type_Invariant'Class => Child_W_Timestamp.Has_Timestamp;
overriding
procedure Set (Obj : in out Child_W_Timestamp; Data : Test_Event_Data);
overriding
function Has_Timestamp (Obj : Child_W_Timestamp) return Boolean
is (True);
overriding
function Timestamp (Obj : Child_W_Timestamp) return Time;
overriding
procedure Set_Timestamp (Obj : in out Child_W_Timestamp;
Date : Time := Clock);
private
type Child_W_Timestamp is new Parent with record
Date : Time;
end record;
end Apsepp.Test_Event_Class.Generic_Timestamp_Mixin;
|
with Colors; use Colors;
with Vectors; use Vectors;
-- @summary Lights that shine onto a Scene
package Lights is
type Light_Type is private;
-- Light_Type has a position and a color
type Light_Array is array( Positive range <> ) of Light_Type;
function Create_Light(Position: Vector; Color: Color_Type) return Light_Type;
function Position_Of(Light: Light_Type) return Vector;
-- the position vector of this Light
pragma Inline_Always(Position_Of);
function Color_Of(Light: Light_Type) return Color_Type;
-- the RGB color of this Light
pragma Inline_Always(Color_Of);
private
type Light_Type is record
Position: Vector;
Color: Color_Type;
end record;
end Lights;
|
-- BinToAsc.Testable
-- Expose some private internals of BinToAsc for unit testing
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
generic
package BinToAsc.Testable is
procedure Check_Make_Reverse_Alphabet (T : in out Test_Cases.Test_Case'Class);
end BinToAsc.Testable;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Sets;
procedure Test_Happy_Digits is
function Is_Happy (N : Positive) return Boolean is
package Sets_Of_Positive is new Ada.Containers.Ordered_Sets (Positive);
use Sets_Of_Positive;
function Next (N : Positive) return Natural is
Sum : Natural := 0;
Accum : Natural := N;
begin
while Accum > 0 loop
Sum := Sum + (Accum mod 10) ** 2;
Accum := Accum / 10;
end loop;
return Sum;
end Next;
Current : Positive := N;
Visited : Set;
begin
loop
if Current = 1 then
return True;
elsif Visited.Contains (Current) then
return False;
else
Visited.Insert (Current);
Current := Next (Current);
end if;
end loop;
end Is_Happy;
Found : Natural := 0;
begin
for N in Positive'Range loop
if Is_Happy (N) then
Put (Integer'Image (N));
Found := Found + 1;
exit when Found = 8;
end if;
end loop;
end Test_Happy_Digits;
|
-----------------------------------------------------------------------
-- util-dates-rfc7231-- RFC7231 date format utilities
-- Copyright (C) 2015, 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.Calendar;
with Util.Strings.Builders;
-- == RFC7231 Dates ==
-- The RFC 7231 defines a standard date format that is used by HTTP headers.
-- The `Util.Dates.RFC7231` package provides an `Image` function to convert a date into
-- that target format and a `Value` function to parse such format string and return the date.
--
-- Now : constant Ada.Calendar.Time := Ada.Calendar.Clock;
-- S : constant String := Util.Dates.RFC7231.Image (Now);
-- Date : Ada.Calendar.time := Util.Dates.RFC7231.Value (S);
--
-- A `Constraint_Error` exception is raised when the date string is not in the correct format.
package Util.Dates.RFC7231 is
-- Parses a HTTP date that follows the RFC7231 or RFC2616 format.
-- Raises Constraint_Error if the date format is not recognized.
function Value (Date : in String) return Ada.Calendar.Time;
-- Return the RFC7231/RFC2616 date format.
function Image (Date : in Ada.Calendar.Time) return String;
-- Append the date in RFC7231/RFC2616 format in the string builder.
-- The date separator can be changed to '-' to generate a cookie expires date.
procedure Append_Date (Into : in out Util.Strings.Builders.Builder;
Date : in Ada.Calendar.Time;
Date_Separator : in Character := ' ');
end Util.Dates.RFC7231;
|
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with Interfaces;
use Interfaces;
with GBA.Memory.IO_Registers;
use GBA.Memory.IO_Registers;
package GBA.Timers is
subtype Timer_Value is Unsigned_16;
type Timer_Scale is
( x1
, x64
, x256
, x1024
);
for Timer_Scale use
( x1 => 0
, x64 => 1
, x256 => 2
, x1024 => 3
);
type Timer_Increment_Type is
( Independent
, Linked_To_Previous
);
for Timer_Increment_Type use
( Independent => 0
, Linked_To_Previous => 1
);
type Timer_Control_Info is
record
Scale : Timer_Scale;
Increment : Timer_Increment_Type;
Trigger_IRQ : Boolean;
Enabled : Boolean;
end record
with Size => 16;
for Timer_Control_Info use
record
Scale at 0 range 0 .. 1;
Increment at 0 range 2 .. 2;
Trigger_IRQ at 0 range 6 .. 6;
Enabled at 0 range 7 .. 7;
end record;
type Timer is
record
Value : Timer_Value;
Control_Info : Timer_Control_Info;
end record;
type Timer_ID is range 0 .. 3;
Timers : array (Timer_ID) of Timer
with Import, Address => TM0CNT_L;
function Get_Count (ID : Timer_ID) return Timer_Value
with Inline_Always;
procedure Set_Initial_Value (ID : Timer_ID; Value : Timer_Value)
with Inline_Always;
procedure Start_Timer (ID : Timer_ID)
with Inline_Always;
procedure Set_Timer_Scale (ID : Timer_ID; Scale : Timer_Scale)
with Inline_Always;
procedure Set_Timer_Increment_Type (ID : Timer_ID; Increment : Timer_Increment_Type)
with Inline_Always;
end GBA.Timers;
|
with text_io;
procedure rank_distr is
type Real is digits 15;
L : constant Integer := 61; -- length of vector in bits
k : constant Integer := L; -- no of vectors in matrix whose rank is to be calculated.
Sum, Product : Real;
Prob : array(1..k) of Real := (others => 0.0);
begin
for x in k-7 .. k loop
product := 1.0;
for i in 0 .. x-1 loop
product := product*(1.0 - 2.0**(i-L))*(1.0 - 2.0**(i-k)) / (1.0 - 2.0**(i-x));
end loop;
prob(x) := 2.0**(x*(L + k - x) - L*k) * product;
end loop;
for x in k-7 .. k loop
Sum := 0.0;
for j in x .. k loop
Sum := Sum + Prob(j);
end loop;
end loop;
Sum := 0.0;
for j in k-7 .. k-4 loop
Sum := Sum + Prob(j);
end loop;
text_io.new_line;
text_io.put (Integer'Image(k-4)); text_io.put (Real'Image(Sum));
text_io.new_line;
for x in k-3 .. k loop
text_io.new_line;
text_io.put (Integer'Image(x)); text_io.put (Real'Image (Prob(x)));
--text_io.put (Real'Image(-Log (Prob (x))));
end loop;
text_io.new_line(2);
Sum := 0.0;
for j in k-7 .. k loop
Sum := Sum + Prob(j);
end loop;
text_io.put ("Total probability"); text_io.put (Real'Image(Sum));
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/>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>memcachedPipeline</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>22</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>inData_V_data_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>inData.V.data.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>64</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>inData_V_user_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>inData.V.user.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>112</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>inData_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>inData.V.keep.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>8</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>inData_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>inData.V.last.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>outData_V_data_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>outData.V.data.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>64</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="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>outData_V_user_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>outData.V.user.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>112</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="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>outData_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>outData.V.keep.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>8</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="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>outData_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>outData.V.last.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_9">
<Value>
<Obj>
<type>1</type>
<id>9</id>
<name>dramValueStoreMemRdCmd_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dramValueStoreMemRdCmd.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>40</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>dramValueStoreMemRdData_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dramValueStoreMemRdData.V.V</originalName>
<rtlName/>
<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="_11">
<Value>
<Obj>
<type>1</type>
<id>11</id>
<name>dramValueStoreMemWrCmd_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dramValueStoreMemWrCmd.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>40</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>dramValueStoreMemWrData_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dramValueStoreMemWrData.V.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>512</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>hashTableMemRdData_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hashTableMemRdData.V.V</originalName>
<rtlName/>
<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="_14">
<Value>
<Obj>
<type>1</type>
<id>14</id>
<name>hashTableMemRdCmd_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hashTableMemRdCmd.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>40</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>hashTableMemWrData_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hashTableMemWrData.V.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>512</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="_16">
<Value>
<Obj>
<type>1</type>
<id>16</id>
<name>hashTableMemWrCmd_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hashTableMemWrCmd.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>40</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="_17">
<Value>
<Obj>
<type>1</type>
<id>17</id>
<name>addressReturnOut_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>addressReturnOut.V.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_18">
<Value>
<Obj>
<type>1</type>
<id>18</id>
<name>addressAssignDramIn_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>addressAssignDramIn.V.V</originalName>
<rtlName/>
<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="_19">
<Value>
<Obj>
<type>1</type>
<id>19</id>
<name>addressAssignFlashIn_V_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>addressAssignFlashIn.V.V</originalName>
<rtlName/>
<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="_20">
<Value>
<Obj>
<type>1</type>
<id>20</id>
<name>flushReq_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>flushReq.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_21">
<Value>
<Obj>
<type>1</type>
<id>21</id>
<name>flushAck_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<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="_22">
<Value>
<Obj>
<type>1</type>
<id>22</id>
<name>flushDone_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>flushDone.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>23</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>235</id>
<name>flushAck_V_read</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>384</item>
<item>385</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="_24">
<Value>
<Obj>
<type>0</type>
<id>236</id>
<name>flushAck_V_c1</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>flushAck_V_c1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>387</item>
</oprand_edges>
<opcode>alloca</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="_25">
<Value>
<Obj>
<type>0</type>
<id>237</id>
<name>flushAck_V_c</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>flushAck_V_c_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>388</item>
</oprand_edges>
<opcode>alloca</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>362</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>memcachedPipeline_en_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>390</item>
<item>391</item>
<item>392</item>
</oprand_edges>
<opcode>call</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="_27">
<Value>
<Obj>
<type>0</type>
<id>363</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>bp_f1244_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>22</count>
<item_version>0</item_version>
<item>394</item>
<item>395</item>
<item>396</item>
<item>397</item>
<item>398</item>
<item>399</item>
<item>400</item>
<item>453</item>
<item>454</item>
<item>455</item>
<item>456</item>
<item>457</item>
<item>458</item>
<item>459</item>
<item>460</item>
<item>461</item>
<item>462</item>
<item>463</item>
<item>464</item>
<item>465</item>
<item>2508</item>
<item>2509</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>5.82</m_delay>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>364</id>
<name/>
<fileName>sources/requestParser/requestParser.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>272</lineNumber>
<contextFuncName>binaryParser</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second class_id="12" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>100</second>
</item>
<item>
<first>
<first>sources/requestParser/requestParser.cpp</first>
<second>binaryParser</second>
</first>
<second>272</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>bp_r_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>13</count>
<item_version>0</item_version>
<item>402</item>
<item>466</item>
<item>467</item>
<item>468</item>
<item>469</item>
<item>470</item>
<item>471</item>
<item>472</item>
<item>473</item>
<item>474</item>
<item>475</item>
<item>2507</item>
<item>2510</item>
</oprand_edges>
<opcode>call</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="_29">
<Value>
<Obj>
<type>0</type>
<id>365</id>
<name/>
<fileName>sources/hashTable/hashTable.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>321</lineNumber>
<contextFuncName>hashTable</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>321</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>ht_inputLogic_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>19</count>
<item_version>0</item_version>
<item>404</item>
<item>476</item>
<item>477</item>
<item>478</item>
<item>479</item>
<item>480</item>
<item>481</item>
<item>482</item>
<item>483</item>
<item>484</item>
<item>485</item>
<item>486</item>
<item>487</item>
<item>488</item>
<item>489</item>
<item>490</item>
<item>491</item>
<item>2506</item>
<item>2511</item>
</oprand_edges>
<opcode>call</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="_30">
<Value>
<Obj>
<type>0</type>
<id>366</id>
<name/>
<fileName>sources/hashTable/hash.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>326</lineNumber>
<contextFuncName>hash</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>sources/hashTable/hash.cpp</first>
<second>hash</second>
</first>
<second>326</second>
</item>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>322</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>hashKeyResizer_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>12</count>
<item_version>0</item_version>
<item>406</item>
<item>492</item>
<item>493</item>
<item>494</item>
<item>495</item>
<item>496</item>
<item>497</item>
<item>498</item>
<item>499</item>
<item>500</item>
<item>2505</item>
<item>2512</item>
</oprand_edges>
<opcode>call</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="_31">
<Value>
<Obj>
<type>0</type>
<id>367</id>
<name/>
<fileName>sources/hashTable/hash.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>327</lineNumber>
<contextFuncName>hash</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>sources/hashTable/hash.cpp</first>
<second>hash</second>
</first>
<second>327</second>
</item>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>322</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>bobj_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>12</count>
<item_version>0</item_version>
<item>408</item>
<item>501</item>
<item>502</item>
<item>503</item>
<item>504</item>
<item>505</item>
<item>506</item>
<item>507</item>
<item>508</item>
<item>509</item>
<item>2504</item>
<item>2513</item>
</oprand_edges>
<opcode>call</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="_32">
<Value>
<Obj>
<type>0</type>
<id>368</id>
<name/>
<fileName>sources/hashTable/hashTable.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>323</lineNumber>
<contextFuncName>hashTable</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>323</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>concurrencyControl_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>46</count>
<item_version>0</item_version>
<item>410</item>
<item>510</item>
<item>511</item>
<item>512</item>
<item>513</item>
<item>514</item>
<item>515</item>
<item>516</item>
<item>517</item>
<item>518</item>
<item>519</item>
<item>520</item>
<item>521</item>
<item>522</item>
<item>523</item>
<item>524</item>
<item>525</item>
<item>526</item>
<item>527</item>
<item>528</item>
<item>529</item>
<item>530</item>
<item>531</item>
<item>532</item>
<item>533</item>
<item>534</item>
<item>535</item>
<item>536</item>
<item>537</item>
<item>538</item>
<item>539</item>
<item>540</item>
<item>541</item>
<item>542</item>
<item>543</item>
<item>544</item>
<item>545</item>
<item>546</item>
<item>547</item>
<item>548</item>
<item>549</item>
<item>550</item>
<item>551</item>
<item>552</item>
<item>2503</item>
<item>2514</item>
</oprand_edges>
<opcode>call</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>369</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>memRead_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>9</count>
<item_version>0</item_version>
<item>412</item>
<item>413</item>
<item>553</item>
<item>554</item>
<item>555</item>
<item>556</item>
<item>557</item>
<item>2502</item>
<item>2515</item>
</oprand_edges>
<opcode>call</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="_34">
<Value>
<Obj>
<type>0</type>
<id>370</id>
<name/>
<fileName>sources/hashTable/hashTable.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>325</lineNumber>
<contextFuncName>hashTable</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>325</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>ht_compare_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>25</count>
<item_version>0</item_version>
<item>415</item>
<item>416</item>
<item>558</item>
<item>559</item>
<item>560</item>
<item>561</item>
<item>562</item>
<item>563</item>
<item>564</item>
<item>565</item>
<item>566</item>
<item>567</item>
<item>568</item>
<item>569</item>
<item>570</item>
<item>571</item>
<item>572</item>
<item>573</item>
<item>574</item>
<item>575</item>
<item>576</item>
<item>577</item>
<item>578</item>
<item>2501</item>
<item>2516</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>1.70</m_delay>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>371</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>memWrite_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>37</count>
<item_version>0</item_version>
<item>418</item>
<item>419</item>
<item>420</item>
<item>421</item>
<item>422</item>
<item>423</item>
<item>424</item>
<item>425</item>
<item>426</item>
<item>579</item>
<item>580</item>
<item>581</item>
<item>582</item>
<item>583</item>
<item>584</item>
<item>585</item>
<item>586</item>
<item>587</item>
<item>588</item>
<item>589</item>
<item>590</item>
<item>591</item>
<item>592</item>
<item>593</item>
<item>594</item>
<item>595</item>
<item>596</item>
<item>597</item>
<item>598</item>
<item>599</item>
<item>600</item>
<item>601</item>
<item>602</item>
<item>603</item>
<item>604</item>
<item>2500</item>
<item>2517</item>
</oprand_edges>
<opcode>call</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>372</id>
<name/>
<fileName>sources/hashTable/hashTable.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>327</lineNumber>
<contextFuncName>hashTable</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/hashTable/hashTable.cpp</first>
<second>hashTable</second>
</first>
<second>327</second>
</item>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>101</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>ht_outputLogic_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>11</count>
<item_version>0</item_version>
<item>428</item>
<item>605</item>
<item>606</item>
<item>607</item>
<item>608</item>
<item>609</item>
<item>610</item>
<item>611</item>
<item>612</item>
<item>2499</item>
<item>2518</item>
</oprand_edges>
<opcode>call</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>373</id>
<name/>
<fileName>sources/valueStore/valueStore.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>772</lineNumber>
<contextFuncName>valueStoreDram</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>102</second>
</item>
<item>
<first>
<first>sources/valueStore/valueStore.cpp</first>
<second>valueStoreDram</second>
</first>
<second>772</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>accessControl_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>46</count>
<item_version>0</item_version>
<item>430</item>
<item>613</item>
<item>614</item>
<item>615</item>
<item>616</item>
<item>617</item>
<item>618</item>
<item>619</item>
<item>620</item>
<item>621</item>
<item>622</item>
<item>623</item>
<item>624</item>
<item>625</item>
<item>626</item>
<item>627</item>
<item>628</item>
<item>629</item>
<item>630</item>
<item>631</item>
<item>632</item>
<item>633</item>
<item>634</item>
<item>635</item>
<item>636</item>
<item>637</item>
<item>638</item>
<item>639</item>
<item>640</item>
<item>641</item>
<item>642</item>
<item>643</item>
<item>644</item>
<item>645</item>
<item>646</item>
<item>647</item>
<item>648</item>
<item>649</item>
<item>650</item>
<item>651</item>
<item>652</item>
<item>653</item>
<item>654</item>
<item>655</item>
<item>2498</item>
<item>2519</item>
</oprand_edges>
<opcode>call</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>374</id>
<name/>
<fileName>sources/valueStore/valueStore.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>773</lineNumber>
<contextFuncName>valueStoreDram</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>102</second>
</item>
<item>
<first>
<first>sources/valueStore/valueStore.cpp</first>
<second>valueStoreDram</second>
</first>
<second>773</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>demux_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>12</count>
<item_version>0</item_version>
<item>432</item>
<item>656</item>
<item>657</item>
<item>658</item>
<item>659</item>
<item>660</item>
<item>661</item>
<item>662</item>
<item>663</item>
<item>664</item>
<item>2497</item>
<item>2520</item>
</oprand_edges>
<opcode>call</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>375</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>setPath_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>13</count>
<item_version>0</item_version>
<item>434</item>
<item>435</item>
<item>436</item>
<item>665</item>
<item>666</item>
<item>667</item>
<item>668</item>
<item>669</item>
<item>670</item>
<item>671</item>
<item>672</item>
<item>2495</item>
<item>2521</item>
</oprand_edges>
<opcode>call</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>376</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>dispatch_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>438</item>
<item>439</item>
<item>673</item>
<item>674</item>
<item>2496</item>
</oprand_edges>
<opcode>call</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>377</id>
<name/>
<fileName>sources/valueStore/valueStore.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>572</lineNumber>
<contextFuncName>getPath</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>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>102</second>
</item>
<item>
<first>
<first>sources/valueStore/valueStore.cpp</first>
<second>getPath</second>
</first>
<second>572</second>
</item>
<item>
<first>
<first>sources/valueStore/valueStore.cpp</first>
<second>valueStoreDram</second>
</first>
<second>777</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>receive_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>10</count>
<item_version>0</item_version>
<item>441</item>
<item>442</item>
<item>675</item>
<item>676</item>
<item>677</item>
<item>678</item>
<item>679</item>
<item>680</item>
<item>681</item>
<item>2494</item>
</oprand_edges>
<opcode>call</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="_42">
<Value>
<Obj>
<type>0</type>
<id>378</id>
<name/>
<fileName>sources/valueStore/valueStore.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>779</lineNumber>
<contextFuncName>valueStoreDram</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>102</second>
</item>
<item>
<first>
<first>sources/valueStore/valueStore.cpp</first>
<second>valueStoreDram</second>
</first>
<second>779</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>remux_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>10</count>
<item_version>0</item_version>
<item>444</item>
<item>682</item>
<item>683</item>
<item>684</item>
<item>685</item>
<item>686</item>
<item>687</item>
<item>688</item>
<item>689</item>
<item>2493</item>
</oprand_edges>
<opcode>call</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="_43">
<Value>
<Obj>
<type>0</type>
<id>379</id>
<name/>
<fileName>sources/responseFormatter/binResponse.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>253</lineNumber>
<contextFuncName>binaryResponse</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>103</second>
</item>
<item>
<first>
<first>sources/responseFormatter/binResponse.cpp</first>
<second>binaryResponse</second>
</first>
<second>253</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>response_f_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>7</count>
<item_version>0</item_version>
<item>446</item>
<item>690</item>
<item>691</item>
<item>692</item>
<item>693</item>
<item>694</item>
<item>2492</item>
</oprand_edges>
<opcode>call</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>380</id>
<name/>
<fileName>sources/responseFormatter/binResponse.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>254</lineNumber>
<contextFuncName>binaryResponse</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>103</second>
</item>
<item>
<first>
<first>sources/responseFormatter/binResponse.cpp</first>
<second>binaryResponse</second>
</first>
<second>254</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>response_r_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>15</count>
<item_version>0</item_version>
<item>448</item>
<item>449</item>
<item>450</item>
<item>451</item>
<item>452</item>
<item>695</item>
<item>696</item>
<item>697</item>
<item>698</item>
<item>699</item>
<item>700</item>
<item>701</item>
<item>702</item>
<item>703</item>
<item>2491</item>
</oprand_edges>
<opcode>call</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="_45">
<Value>
<Obj>
<type>0</type>
<id>381</id>
<name/>
<fileName>sources/memcachedPipeline.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>104</lineNumber>
<contextFuncName>memcachedPipeline</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/memcachedPipeline.cpp</first>
<second>memcachedPipeline</second>
</first>
<second>104</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<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>20</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_46">
<Value>
<Obj>
<type>2</type>
<id>386</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_47">
<Value>
<Obj>
<type>2</type>
<id>389</id>
<name>memcachedPipeline_en</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:memcachedPipeline.en></content>
</item>
<item class_id_reference="16" object_id="_48">
<Value>
<Obj>
<type>2</type>
<id>393</id>
<name>bp_f1244</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:bp_f1244></content>
</item>
<item class_id_reference="16" object_id="_49">
<Value>
<Obj>
<type>2</type>
<id>401</id>
<name>bp_r</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:bp_r></content>
</item>
<item class_id_reference="16" object_id="_50">
<Value>
<Obj>
<type>2</type>
<id>403</id>
<name>ht_inputLogic</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:ht_inputLogic></content>
</item>
<item class_id_reference="16" object_id="_51">
<Value>
<Obj>
<type>2</type>
<id>405</id>
<name>hashKeyResizer</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:hashKeyResizer></content>
</item>
<item class_id_reference="16" object_id="_52">
<Value>
<Obj>
<type>2</type>
<id>407</id>
<name>bobj</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:bobj></content>
</item>
<item class_id_reference="16" object_id="_53">
<Value>
<Obj>
<type>2</type>
<id>409</id>
<name>concurrencyControl</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:concurrencyControl></content>
</item>
<item class_id_reference="16" object_id="_54">
<Value>
<Obj>
<type>2</type>
<id>411</id>
<name>memRead</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:memRead></content>
</item>
<item class_id_reference="16" object_id="_55">
<Value>
<Obj>
<type>2</type>
<id>414</id>
<name>ht_compare</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:ht_compare></content>
</item>
<item class_id_reference="16" object_id="_56">
<Value>
<Obj>
<type>2</type>
<id>417</id>
<name>memWrite</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:memWrite></content>
</item>
<item class_id_reference="16" object_id="_57">
<Value>
<Obj>
<type>2</type>
<id>427</id>
<name>ht_outputLogic</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:ht_outputLogic></content>
</item>
<item class_id_reference="16" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>429</id>
<name>accessControl</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:accessControl></content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>431</id>
<name>demux</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:demux></content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>433</id>
<name>setPath</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:setPath></content>
</item>
<item class_id_reference="16" object_id="_61">
<Value>
<Obj>
<type>2</type>
<id>437</id>
<name>dispatch</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:dispatch></content>
</item>
<item class_id_reference="16" object_id="_62">
<Value>
<Obj>
<type>2</type>
<id>440</id>
<name>receive</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:receive></content>
</item>
<item class_id_reference="16" object_id="_63">
<Value>
<Obj>
<type>2</type>
<id>443</id>
<name>remux</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:remux></content>
</item>
<item class_id_reference="16" object_id="_64">
<Value>
<Obj>
<type>2</type>
<id>445</id>
<name>response_f</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:response_f></content>
</item>
<item class_id_reference="16" object_id="_65">
<Value>
<Obj>
<type>2</type>
<id>447</id>
<name>response_r</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:response_r></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_66">
<Obj>
<type>3</type>
<id>382</id>
<name>memcachedPipeline</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>23</count>
<item_version>0</item_version>
<item>235</item>
<item>236</item>
<item>237</item>
<item>362</item>
<item>363</item>
<item>364</item>
<item>365</item>
<item>366</item>
<item>367</item>
<item>368</item>
<item>369</item>
<item>370</item>
<item>371</item>
<item>372</item>
<item>373</item>
<item>374</item>
<item>375</item>
<item>376</item>
<item>377</item>
<item>378</item>
<item>379</item>
<item>380</item>
<item>381</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>330</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_67">
<id>385</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>235</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>387</id>
<edge_type>1</edge_type>
<source_obj>386</source_obj>
<sink_obj>236</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>388</id>
<edge_type>1</edge_type>
<source_obj>386</source_obj>
<sink_obj>237</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>390</id>
<edge_type>1</edge_type>
<source_obj>389</source_obj>
<sink_obj>362</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>391</id>
<edge_type>1</edge_type>
<source_obj>235</source_obj>
<sink_obj>362</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>392</id>
<edge_type>1</edge_type>
<source_obj>236</source_obj>
<sink_obj>362</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>394</id>
<edge_type>1</edge_type>
<source_obj>393</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>395</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>396</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>397</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>398</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>399</id>
<edge_type>1</edge_type>
<source_obj>236</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>400</id>
<edge_type>1</edge_type>
<source_obj>237</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>402</id>
<edge_type>1</edge_type>
<source_obj>401</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>404</id>
<edge_type>1</edge_type>
<source_obj>403</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>406</id>
<edge_type>1</edge_type>
<source_obj>405</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>408</id>
<edge_type>1</edge_type>
<source_obj>407</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>410</id>
<edge_type>1</edge_type>
<source_obj>409</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>412</id>
<edge_type>1</edge_type>
<source_obj>411</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>413</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>415</id>
<edge_type>1</edge_type>
<source_obj>414</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>416</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>418</id>
<edge_type>1</edge_type>
<source_obj>417</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>419</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>420</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>421</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>422</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>423</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>424</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>425</id>
<edge_type>1</edge_type>
<source_obj>237</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>426</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>428</id>
<edge_type>1</edge_type>
<source_obj>427</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>430</id>
<edge_type>1</edge_type>
<source_obj>429</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>432</id>
<edge_type>1</edge_type>
<source_obj>431</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>434</id>
<edge_type>1</edge_type>
<source_obj>433</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>435</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>436</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>438</id>
<edge_type>1</edge_type>
<source_obj>437</source_obj>
<sink_obj>376</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>439</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>376</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>441</id>
<edge_type>1</edge_type>
<source_obj>440</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>442</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>444</id>
<edge_type>1</edge_type>
<source_obj>443</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>446</id>
<edge_type>1</edge_type>
<source_obj>445</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>448</id>
<edge_type>1</edge_type>
<source_obj>447</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>449</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>450</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>451</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>452</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>453</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>454</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>455</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>456</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_119">
<id>457</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_120">
<id>458</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_121">
<id>459</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_122">
<id>460</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_123">
<id>461</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_124">
<id>462</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_125">
<id>463</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_126">
<id>464</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_127">
<id>465</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_128">
<id>466</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_129">
<id>467</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_130">
<id>468</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_131">
<id>469</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_132">
<id>470</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_133">
<id>471</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_134">
<id>472</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_135">
<id>473</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_136">
<id>474</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_137">
<id>475</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_138">
<id>476</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_139">
<id>477</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_140">
<id>478</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_141">
<id>479</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_142">
<id>480</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_143">
<id>481</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_144">
<id>482</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_145">
<id>483</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_146">
<id>484</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_147">
<id>485</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_148">
<id>486</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_149">
<id>487</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_150">
<id>488</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_151">
<id>489</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_152">
<id>490</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_153">
<id>491</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_154">
<id>492</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_155">
<id>493</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_156">
<id>494</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_157">
<id>495</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_158">
<id>496</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_159">
<id>497</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_160">
<id>498</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_161">
<id>499</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_162">
<id>500</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_163">
<id>501</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_164">
<id>502</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_165">
<id>503</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_166">
<id>504</id>
<edge_type>1</edge_type>
<source_obj>68</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_167">
<id>505</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_168">
<id>506</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_169">
<id>507</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_170">
<id>508</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_171">
<id>509</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_172">
<id>510</id>
<edge_type>1</edge_type>
<source_obj>71</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_173">
<id>511</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_174">
<id>512</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_175">
<id>513</id>
<edge_type>1</edge_type>
<source_obj>74</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_176">
<id>514</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_177">
<id>515</id>
<edge_type>1</edge_type>
<source_obj>76</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_178">
<id>516</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_179">
<id>517</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_180">
<id>518</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_181">
<id>519</id>
<edge_type>1</edge_type>
<source_obj>80</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_182">
<id>520</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_183">
<id>521</id>
<edge_type>1</edge_type>
<source_obj>82</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_184">
<id>522</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_185">
<id>523</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_186">
<id>524</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_187">
<id>525</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_188">
<id>526</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_189">
<id>527</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_190">
<id>528</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_191">
<id>529</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_192">
<id>530</id>
<edge_type>1</edge_type>
<source_obj>91</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_193">
<id>531</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_194">
<id>532</id>
<edge_type>1</edge_type>
<source_obj>93</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_195">
<id>533</id>
<edge_type>1</edge_type>
<source_obj>94</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_196">
<id>534</id>
<edge_type>1</edge_type>
<source_obj>95</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_197">
<id>535</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_198">
<id>536</id>
<edge_type>1</edge_type>
<source_obj>97</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_199">
<id>537</id>
<edge_type>1</edge_type>
<source_obj>98</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_200">
<id>538</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_201">
<id>539</id>
<edge_type>1</edge_type>
<source_obj>100</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_202">
<id>540</id>
<edge_type>1</edge_type>
<source_obj>101</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_203">
<id>541</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_204">
<id>542</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_205">
<id>543</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_206">
<id>544</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_207">
<id>545</id>
<edge_type>1</edge_type>
<source_obj>103</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_208">
<id>546</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_209">
<id>547</id>
<edge_type>1</edge_type>
<source_obj>105</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_210">
<id>548</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_211">
<id>549</id>
<edge_type>1</edge_type>
<source_obj>107</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_212">
<id>550</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_213">
<id>551</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_214">
<id>552</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_215">
<id>553</id>
<edge_type>1</edge_type>
<source_obj>111</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_216">
<id>554</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_217">
<id>555</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_218">
<id>556</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_219">
<id>557</id>
<edge_type>1</edge_type>
<source_obj>113</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_220">
<id>558</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_221">
<id>559</id>
<edge_type>1</edge_type>
<source_obj>115</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_222">
<id>560</id>
<edge_type>1</edge_type>
<source_obj>116</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_223">
<id>561</id>
<edge_type>1</edge_type>
<source_obj>117</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_224">
<id>562</id>
<edge_type>1</edge_type>
<source_obj>118</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_225">
<id>563</id>
<edge_type>1</edge_type>
<source_obj>119</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_226">
<id>564</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_227">
<id>565</id>
<edge_type>1</edge_type>
<source_obj>121</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_228">
<id>566</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_229">
<id>567</id>
<edge_type>1</edge_type>
<source_obj>123</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_230">
<id>568</id>
<edge_type>1</edge_type>
<source_obj>124</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_231">
<id>569</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_232">
<id>570</id>
<edge_type>1</edge_type>
<source_obj>126</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_233">
<id>571</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_234">
<id>572</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_235">
<id>573</id>
<edge_type>1</edge_type>
<source_obj>113</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_236">
<id>574</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_237">
<id>575</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_238">
<id>576</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_239">
<id>577</id>
<edge_type>1</edge_type>
<source_obj>131</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_240">
<id>578</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_241">
<id>579</id>
<edge_type>1</edge_type>
<source_obj>133</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_242">
<id>580</id>
<edge_type>1</edge_type>
<source_obj>134</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_243">
<id>581</id>
<edge_type>1</edge_type>
<source_obj>135</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_244">
<id>582</id>
<edge_type>1</edge_type>
<source_obj>136</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_245">
<id>583</id>
<edge_type>1</edge_type>
<source_obj>137</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_246">
<id>584</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_247">
<id>585</id>
<edge_type>1</edge_type>
<source_obj>139</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_248">
<id>586</id>
<edge_type>1</edge_type>
<source_obj>140</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_249">
<id>587</id>
<edge_type>1</edge_type>
<source_obj>141</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_250">
<id>588</id>
<edge_type>1</edge_type>
<source_obj>142</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_251">
<id>589</id>
<edge_type>1</edge_type>
<source_obj>143</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_252">
<id>590</id>
<edge_type>1</edge_type>
<source_obj>144</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_253">
<id>591</id>
<edge_type>1</edge_type>
<source_obj>145</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_254">
<id>592</id>
<edge_type>1</edge_type>
<source_obj>146</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_255">
<id>593</id>
<edge_type>1</edge_type>
<source_obj>147</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_256">
<id>594</id>
<edge_type>1</edge_type>
<source_obj>148</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_257">
<id>595</id>
<edge_type>1</edge_type>
<source_obj>131</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_258">
<id>596</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_259">
<id>597</id>
<edge_type>1</edge_type>
<source_obj>149</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_260">
<id>598</id>
<edge_type>1</edge_type>
<source_obj>150</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_261">
<id>599</id>
<edge_type>1</edge_type>
<source_obj>151</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_262">
<id>600</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_263">
<id>601</id>
<edge_type>1</edge_type>
<source_obj>152</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_264">
<id>602</id>
<edge_type>1</edge_type>
<source_obj>101</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_265">
<id>603</id>
<edge_type>1</edge_type>
<source_obj>153</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_266">
<id>604</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_267">
<id>605</id>
<edge_type>1</edge_type>
<source_obj>154</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_268">
<id>606</id>
<edge_type>1</edge_type>
<source_obj>155</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_269">
<id>607</id>
<edge_type>1</edge_type>
<source_obj>156</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_270">
<id>608</id>
<edge_type>1</edge_type>
<source_obj>152</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_271">
<id>609</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_272">
<id>610</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_273">
<id>611</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_274">
<id>612</id>
<edge_type>1</edge_type>
<source_obj>157</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_275">
<id>613</id>
<edge_type>1</edge_type>
<source_obj>158</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_276">
<id>614</id>
<edge_type>1</edge_type>
<source_obj>159</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_277">
<id>615</id>
<edge_type>1</edge_type>
<source_obj>160</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_278">
<id>616</id>
<edge_type>1</edge_type>
<source_obj>161</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_279">
<id>617</id>
<edge_type>1</edge_type>
<source_obj>162</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_280">
<id>618</id>
<edge_type>1</edge_type>
<source_obj>163</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_281">
<id>619</id>
<edge_type>1</edge_type>
<source_obj>164</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_282">
<id>620</id>
<edge_type>1</edge_type>
<source_obj>165</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_283">
<id>621</id>
<edge_type>1</edge_type>
<source_obj>166</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_284">
<id>622</id>
<edge_type>1</edge_type>
<source_obj>167</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_285">
<id>623</id>
<edge_type>1</edge_type>
<source_obj>168</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_286">
<id>624</id>
<edge_type>1</edge_type>
<source_obj>169</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_287">
<id>625</id>
<edge_type>1</edge_type>
<source_obj>170</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_288">
<id>626</id>
<edge_type>1</edge_type>
<source_obj>171</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_289">
<id>627</id>
<edge_type>1</edge_type>
<source_obj>172</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_290">
<id>628</id>
<edge_type>1</edge_type>
<source_obj>173</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_291">
<id>629</id>
<edge_type>1</edge_type>
<source_obj>174</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_292">
<id>630</id>
<edge_type>1</edge_type>
<source_obj>175</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_293">
<id>631</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_294">
<id>632</id>
<edge_type>1</edge_type>
<source_obj>177</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_295">
<id>633</id>
<edge_type>1</edge_type>
<source_obj>178</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_296">
<id>634</id>
<edge_type>1</edge_type>
<source_obj>179</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_297">
<id>635</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_298">
<id>636</id>
<edge_type>1</edge_type>
<source_obj>181</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_299">
<id>637</id>
<edge_type>1</edge_type>
<source_obj>182</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_300">
<id>638</id>
<edge_type>1</edge_type>
<source_obj>183</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_301">
<id>639</id>
<edge_type>1</edge_type>
<source_obj>184</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_302">
<id>640</id>
<edge_type>1</edge_type>
<source_obj>185</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_303">
<id>641</id>
<edge_type>1</edge_type>
<source_obj>186</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_304">
<id>642</id>
<edge_type>1</edge_type>
<source_obj>187</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_305">
<id>643</id>
<edge_type>1</edge_type>
<source_obj>188</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_306">
<id>644</id>
<edge_type>1</edge_type>
<source_obj>189</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_307">
<id>645</id>
<edge_type>1</edge_type>
<source_obj>157</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_308">
<id>646</id>
<edge_type>1</edge_type>
<source_obj>190</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_309">
<id>647</id>
<edge_type>1</edge_type>
<source_obj>191</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_310">
<id>648</id>
<edge_type>1</edge_type>
<source_obj>192</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_311">
<id>649</id>
<edge_type>1</edge_type>
<source_obj>193</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_312">
<id>650</id>
<edge_type>1</edge_type>
<source_obj>194</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_313">
<id>651</id>
<edge_type>1</edge_type>
<source_obj>195</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_314">
<id>652</id>
<edge_type>1</edge_type>
<source_obj>196</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_315">
<id>653</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_316">
<id>654</id>
<edge_type>1</edge_type>
<source_obj>198</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_317">
<id>655</id>
<edge_type>1</edge_type>
<source_obj>199</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_318">
<id>656</id>
<edge_type>1</edge_type>
<source_obj>200</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_319">
<id>657</id>
<edge_type>1</edge_type>
<source_obj>201</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_320">
<id>658</id>
<edge_type>1</edge_type>
<source_obj>202</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_321">
<id>659</id>
<edge_type>1</edge_type>
<source_obj>198</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_322">
<id>660</id>
<edge_type>1</edge_type>
<source_obj>203</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_323">
<id>661</id>
<edge_type>1</edge_type>
<source_obj>204</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_324">
<id>662</id>
<edge_type>1</edge_type>
<source_obj>205</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_325">
<id>663</id>
<edge_type>1</edge_type>
<source_obj>206</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_326">
<id>664</id>
<edge_type>1</edge_type>
<source_obj>207</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_327">
<id>665</id>
<edge_type>1</edge_type>
<source_obj>208</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_328">
<id>666</id>
<edge_type>1</edge_type>
<source_obj>209</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_329">
<id>667</id>
<edge_type>1</edge_type>
<source_obj>210</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_330">
<id>668</id>
<edge_type>1</edge_type>
<source_obj>211</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_331">
<id>669</id>
<edge_type>1</edge_type>
<source_obj>212</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_332">
<id>670</id>
<edge_type>1</edge_type>
<source_obj>206</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_333">
<id>671</id>
<edge_type>1</edge_type>
<source_obj>207</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_334">
<id>672</id>
<edge_type>1</edge_type>
<source_obj>188</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_335">
<id>673</id>
<edge_type>1</edge_type>
<source_obj>205</source_obj>
<sink_obj>376</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_336">
<id>674</id>
<edge_type>1</edge_type>
<source_obj>213</source_obj>
<sink_obj>376</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_337">
<id>675</id>
<edge_type>1</edge_type>
<source_obj>214</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_338">
<id>676</id>
<edge_type>1</edge_type>
<source_obj>215</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_339">
<id>677</id>
<edge_type>1</edge_type>
<source_obj>216</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_340">
<id>678</id>
<edge_type>1</edge_type>
<source_obj>213</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_341">
<id>679</id>
<edge_type>1</edge_type>
<source_obj>217</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_342">
<id>680</id>
<edge_type>1</edge_type>
<source_obj>218</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_343">
<id>681</id>
<edge_type>1</edge_type>
<source_obj>189</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_344">
<id>682</id>
<edge_type>1</edge_type>
<source_obj>219</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_345">
<id>683</id>
<edge_type>1</edge_type>
<source_obj>220</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_346">
<id>684</id>
<edge_type>1</edge_type>
<source_obj>221</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_347">
<id>685</id>
<edge_type>1</edge_type>
<source_obj>222</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_348">
<id>686</id>
<edge_type>1</edge_type>
<source_obj>203</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_349">
<id>687</id>
<edge_type>1</edge_type>
<source_obj>204</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_350">
<id>688</id>
<edge_type>1</edge_type>
<source_obj>223</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_351">
<id>689</id>
<edge_type>1</edge_type>
<source_obj>218</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_352">
<id>690</id>
<edge_type>1</edge_type>
<source_obj>224</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_353">
<id>691</id>
<edge_type>1</edge_type>
<source_obj>225</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_354">
<id>692</id>
<edge_type>1</edge_type>
<source_obj>223</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_355">
<id>693</id>
<edge_type>1</edge_type>
<source_obj>226</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_356">
<id>694</id>
<edge_type>1</edge_type>
<source_obj>227</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_357">
<id>695</id>
<edge_type>1</edge_type>
<source_obj>228</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_358">
<id>696</id>
<edge_type>1</edge_type>
<source_obj>229</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_359">
<id>697</id>
<edge_type>1</edge_type>
<source_obj>230</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_360">
<id>698</id>
<edge_type>1</edge_type>
<source_obj>225</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_361">
<id>699</id>
<edge_type>1</edge_type>
<source_obj>231</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_362">
<id>700</id>
<edge_type>1</edge_type>
<source_obj>232</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_363">
<id>701</id>
<edge_type>1</edge_type>
<source_obj>233</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_364">
<id>702</id>
<edge_type>1</edge_type>
<source_obj>224</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_365">
<id>703</id>
<edge_type>1</edge_type>
<source_obj>234</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_366">
<id>2491</id>
<edge_type>4</edge_type>
<source_obj>379</source_obj>
<sink_obj>380</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_367">
<id>2492</id>
<edge_type>4</edge_type>
<source_obj>378</source_obj>
<sink_obj>379</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_368">
<id>2493</id>
<edge_type>4</edge_type>
<source_obj>377</source_obj>
<sink_obj>378</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_369">
<id>2494</id>
<edge_type>4</edge_type>
<source_obj>376</source_obj>
<sink_obj>377</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_370">
<id>2495</id>
<edge_type>4</edge_type>
<source_obj>374</source_obj>
<sink_obj>375</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_371">
<id>2496</id>
<edge_type>4</edge_type>
<source_obj>374</source_obj>
<sink_obj>376</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_372">
<id>2497</id>
<edge_type>4</edge_type>
<source_obj>373</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_373">
<id>2498</id>
<edge_type>4</edge_type>
<source_obj>372</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_374">
<id>2499</id>
<edge_type>4</edge_type>
<source_obj>371</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_375">
<id>2500</id>
<edge_type>4</edge_type>
<source_obj>370</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_376">
<id>2501</id>
<edge_type>4</edge_type>
<source_obj>369</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_377">
<id>2502</id>
<edge_type>4</edge_type>
<source_obj>368</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_378">
<id>2503</id>
<edge_type>4</edge_type>
<source_obj>367</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_379">
<id>2504</id>
<edge_type>4</edge_type>
<source_obj>366</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_380">
<id>2505</id>
<edge_type>4</edge_type>
<source_obj>365</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_381">
<id>2506</id>
<edge_type>4</edge_type>
<source_obj>364</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_382">
<id>2507</id>
<edge_type>4</edge_type>
<source_obj>363</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_383">
<id>2508</id>
<edge_type>4</edge_type>
<source_obj>362</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_384">
<id>2509</id>
<edge_type>4</edge_type>
<source_obj>362</source_obj>
<sink_obj>363</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_385">
<id>2510</id>
<edge_type>4</edge_type>
<source_obj>363</source_obj>
<sink_obj>364</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_386">
<id>2511</id>
<edge_type>4</edge_type>
<source_obj>364</source_obj>
<sink_obj>365</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_387">
<id>2512</id>
<edge_type>4</edge_type>
<source_obj>365</source_obj>
<sink_obj>366</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_388">
<id>2513</id>
<edge_type>4</edge_type>
<source_obj>366</source_obj>
<sink_obj>367</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_389">
<id>2514</id>
<edge_type>4</edge_type>
<source_obj>367</source_obj>
<sink_obj>368</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_390">
<id>2515</id>
<edge_type>4</edge_type>
<source_obj>368</source_obj>
<sink_obj>369</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_391">
<id>2516</id>
<edge_type>4</edge_type>
<source_obj>369</source_obj>
<sink_obj>370</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_392">
<id>2517</id>
<edge_type>4</edge_type>
<source_obj>370</source_obj>
<sink_obj>371</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_393">
<id>2518</id>
<edge_type>4</edge_type>
<source_obj>371</source_obj>
<sink_obj>372</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_394">
<id>2519</id>
<edge_type>4</edge_type>
<source_obj>372</source_obj>
<sink_obj>373</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_395">
<id>2520</id>
<edge_type>4</edge_type>
<source_obj>373</source_obj>
<sink_obj>374</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_396">
<id>2521</id>
<edge_type>4</edge_type>
<source_obj>374</source_obj>
<sink_obj>375</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="_397">
<mId>1</mId>
<mTag>memcachedPipeline</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>382</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>37</mMinLatency>
<mMaxLatency>37</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_398">
<port_list class_id="24" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port_list>
<process_list class_id="25" tracking_level="0" version="0">
<count>19</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_399">
<type>0</type>
<name>memcachedPipeline_en_U0</name>
<ssdmobj_id>362</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_400">
<port class_id="29" tracking_level="1" version="0" object_id="_401">
<name>flushAck_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_402">
<type>0</type>
<name>memcachedPipeline_en_U0</name>
<ssdmobj_id>362</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_403">
<port class_id_reference="29" object_id="_404">
<name>flushAck_V_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_402"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_405">
<type>0</type>
<name>bp_f1244_U0</name>
<ssdmobj_id>363</ssdmobj_id>
<pins>
<count>19</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_406">
<port class_id_reference="29" object_id="_407">
<name>feInput_V_data_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_408">
<type>0</type>
<name>bp_f1244_U0</name>
<ssdmobj_id>363</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_409">
<port class_id_reference="29" object_id="_410">
<name>feInput_V_user_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_411">
<port class_id_reference="29" object_id="_412">
<name>feInput_V_keep_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_413">
<port class_id_reference="29" object_id="_414">
<name>feInput_V_last_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_415">
<port class_id_reference="29" object_id="_416">
<name>flushAck_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_417">
<port class_id_reference="29" object_id="_418">
<name>flushAck_V_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_419">
<port class_id_reference="29" object_id="_420">
<name>lastValueWord</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_421">
<port class_id_reference="29" object_id="_422">
<name>bpf_wordCounter</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_423">
<port class_id_reference="29" object_id="_424">
<name>valueTempBuffer_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_425">
<port class_id_reference="29" object_id="_426">
<name>metadataTempBuffer_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_427">
<port class_id_reference="29" object_id="_428">
<name>bpf_keyLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_429">
<port class_id_reference="29" object_id="_430">
<name>keyLengthBuffer</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_431">
<port class_id_reference="29" object_id="_432">
<name>bpf_opCode_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_433">
<port class_id_reference="29" object_id="_434">
<name>protocol_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_435">
<port class_id_reference="29" object_id="_436">
<name>bpf_valueLengthBuffe</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_437">
<port class_id_reference="29" object_id="_438">
<name>metadataBuffer_rp_V_s</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_439">
<port class_id_reference="29" object_id="_440">
<name>valueBuffer_rp_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_441">
<port class_id_reference="29" object_id="_442">
<name>valueShift</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
<item class_id_reference="28" object_id="_443">
<port class_id_reference="29" object_id="_444">
<name>keyBuffer_rp_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_445">
<type>0</type>
<name>bp_r_U0</name>
<ssdmobj_id>364</ssdmobj_id>
<pins>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_446">
<port class_id_reference="29" object_id="_447">
<name>binaryParserRearStat</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_448">
<type>0</type>
<name>bp_r_U0</name>
<ssdmobj_id>364</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_449">
<port class_id_reference="29" object_id="_450">
<name>outMetadataBuffer_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_451">
<port class_id_reference="29" object_id="_452">
<name>bpr_opCode</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_453">
<port class_id_reference="29" object_id="_454">
<name>bpr_valueLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_455">
<port class_id_reference="29" object_id="_456">
<name>bpr_keyLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_457">
<port class_id_reference="29" object_id="_458">
<name>metadataBuffer_rp_V_s</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_459">
<port class_id_reference="29" object_id="_460">
<name>keyBuffer_rp_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_461">
<port class_id_reference="29" object_id="_462">
<name>valueBuffer_rp_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_463">
<port class_id_reference="29" object_id="_464">
<name>requestParser2hashTa_1</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
<item class_id_reference="28" object_id="_465">
<port class_id_reference="29" object_id="_466">
<name>bpr_wordCounter_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_467">
<type>0</type>
<name>ht_inputLogic_U0</name>
<ssdmobj_id>365</ssdmobj_id>
<pins>
<count>16</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_468">
<port class_id_reference="29" object_id="_469">
<name>iState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_470">
<type>0</type>
<name>ht_inputLogic_U0</name>
<ssdmobj_id>365</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_471">
<port class_id_reference="29" object_id="_472">
<name>requestParser2hashTa_1</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_473">
<port class_id_reference="29" object_id="_474">
<name>bufferWordMd_keyLeng</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_475">
<port class_id_reference="29" object_id="_476">
<name>wordCounter_V_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_477">
<port class_id_reference="29" object_id="_478">
<name>keyLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_479">
<port class_id_reference="29" object_id="_480">
<name>keyWordCounter_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_481">
<port class_id_reference="29" object_id="_482">
<name>bufferWord_data_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_483">
<port class_id_reference="29" object_id="_484">
<name>bufferWordMd_operati</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_485">
<port class_id_reference="29" object_id="_486">
<name>bufferWordMd_valueLe</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_487">
<port class_id_reference="29" object_id="_488">
<name>hashKeyBuffer_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_489">
<port class_id_reference="29" object_id="_490">
<name>in2hashKeyLength_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_491">
<port class_id_reference="29" object_id="_492">
<name>in2cc_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_493">
<port class_id_reference="29" object_id="_494">
<name>in2ccMd_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_495">
<port class_id_reference="29" object_id="_496">
<name>in2hash_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_497">
<port class_id_reference="29" object_id="_498">
<name>hashValueBuffer_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
<item class_id_reference="28" object_id="_499">
<port class_id_reference="29" object_id="_500">
<name>hashMdBuffer_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_501">
<type>0</type>
<name>hashKeyResizer_U0</name>
<ssdmobj_id>366</ssdmobj_id>
<pins>
<count>9</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_502">
<port class_id_reference="29" object_id="_503">
<name>keyResizerState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_504">
<type>0</type>
<name>hashKeyResizer_U0</name>
<ssdmobj_id>366</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_505">
<port class_id_reference="29" object_id="_506">
<name>keyResizerLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_507">
<port class_id_reference="29" object_id="_508">
<name>tempInput_data_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_509">
<port class_id_reference="29" object_id="_510">
<name>resizedKeyOutput_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_511">
<port class_id_reference="29" object_id="_512">
<name>in2hashKeyLength_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_513">
<port class_id_reference="29" object_id="_514">
<name>in2hash_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_515">
<port class_id_reference="29" object_id="_516">
<name>resizedKeyLength_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_517">
<port class_id_reference="29" object_id="_518">
<name>resizedInitValue_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
<item class_id_reference="28" object_id="_519">
<port class_id_reference="29" object_id="_520">
<name>resizedKey_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_521">
<type>0</type>
<name>bobj_U0</name>
<ssdmobj_id>367</ssdmobj_id>
<pins>
<count>9</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_522">
<port class_id_reference="29" object_id="_523">
<name>hashState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_524">
<type>0</type>
<name>bobj_U0</name>
<ssdmobj_id>367</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_525">
<port class_id_reference="29" object_id="_526">
<name>length</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_527">
<port class_id_reference="29" object_id="_528">
<name>c</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_529">
<port class_id_reference="29" object_id="_530">
<name>b</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_531">
<port class_id_reference="29" object_id="_532">
<name>a</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_533">
<port class_id_reference="29" object_id="_534">
<name>resizedKeyLength_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_535">
<port class_id_reference="29" object_id="_536">
<name>resizedInitValue_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_537">
<port class_id_reference="29" object_id="_538">
<name>resizedKey_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
<item class_id_reference="28" object_id="_539">
<port class_id_reference="29" object_id="_540">
<name>hash2cc_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_541">
<type>0</type>
<name>concurrencyControl_U0</name>
<ssdmobj_id>368</ssdmobj_id>
<pins>
<count>43</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_542">
<port class_id_reference="29" object_id="_543">
<name>ccState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_544">
<type>0</type>
<name>concurrencyControl_U0</name>
<ssdmobj_id>368</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_545">
<port class_id_reference="29" object_id="_546">
<name>ccInputWord_EOP_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_547">
<port class_id_reference="29" object_id="_548">
<name>ccCompareElement_add</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_549">
<port class_id_reference="29" object_id="_550">
<name>hashFilter_filterEnt_7</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_551">
<port class_id_reference="29" object_id="_552">
<name>hashFilter_filterEnt_23</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_553">
<port class_id_reference="29" object_id="_554">
<name>hashFilter_filterEnt_15</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_555">
<port class_id_reference="29" object_id="_556">
<name>hashFilter_filterEnt_14</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_557">
<port class_id_reference="29" object_id="_558">
<name>hashFilter_filterEnt_6</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_559">
<port class_id_reference="29" object_id="_560">
<name>hashFilter_filterEnt_22</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_561">
<port class_id_reference="29" object_id="_562">
<name>hashFilter_filterEnt_13</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_563">
<port class_id_reference="29" object_id="_564">
<name>hashFilter_filterEnt_5</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_565">
<port class_id_reference="29" object_id="_566">
<name>hashFilter_filterEnt_21</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_567">
<port class_id_reference="29" object_id="_568">
<name>hashFilter_filterEnt_12</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_569">
<port class_id_reference="29" object_id="_570">
<name>hashFilter_filterEnt_4</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_571">
<port class_id_reference="29" object_id="_572">
<name>hashFilter_filterEnt_20</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_573">
<port class_id_reference="29" object_id="_574">
<name>hashFilter_filterEnt_11</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_575">
<port class_id_reference="29" object_id="_576">
<name>hashFilter_filterEnt_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_577">
<port class_id_reference="29" object_id="_578">
<name>hashFilter_filterEnt_19</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_579">
<port class_id_reference="29" object_id="_580">
<name>hashFilter_filterEnt_10</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_581">
<port class_id_reference="29" object_id="_582">
<name>hashFilter_filterEnt_2</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_583">
<port class_id_reference="29" object_id="_584">
<name>hashFilter_filterEnt_18</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_585">
<port class_id_reference="29" object_id="_586">
<name>hashFilter_filterEnt_9</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_587">
<port class_id_reference="29" object_id="_588">
<name>hashFilter_filterEnt_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_589">
<port class_id_reference="29" object_id="_590">
<name>hashFilter_filterEnt_17</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_591">
<port class_id_reference="29" object_id="_592">
<name>hashFilter_filterEnt_8</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_593">
<port class_id_reference="29" object_id="_594">
<name>hashFilter_filterEnt</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_595">
<port class_id_reference="29" object_id="_596">
<name>hashFilter_filterEnt_16</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_597">
<port class_id_reference="29" object_id="_598">
<name>hashFilter_level</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_599">
<port class_id_reference="29" object_id="_600">
<name>hashFilter_rdPtr</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_601">
<port class_id_reference="29" object_id="_602">
<name>ccCompareElement_ope</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_603">
<port class_id_reference="29" object_id="_604">
<name>dec2cc_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_605">
<port class_id_reference="29" object_id="_606">
<name>in2ccMd_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_607">
<port class_id_reference="29" object_id="_608">
<name>in2cc_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_609">
<port class_id_reference="29" object_id="_610">
<name>hash2cc_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_611">
<port class_id_reference="29" object_id="_612">
<name>ccInputWordMd_operat</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_613">
<port class_id_reference="29" object_id="_614">
<name>ccInputWordMd_keyLen</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_615">
<port class_id_reference="29" object_id="_616">
<name>ccInputWordMd_valueL</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_617">
<port class_id_reference="29" object_id="_618">
<name>ccInputWord_data_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_619">
<port class_id_reference="29" object_id="_620">
<name>ccInputWord_SOP_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_621">
<port class_id_reference="29" object_id="_622">
<name>ccInputWordMd_metada</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_623">
<port class_id_reference="29" object_id="_624">
<name>hashFilter_wrPtr</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_625">
<port class_id_reference="29" object_id="_626">
<name>cc2memReadMd_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
<item class_id_reference="28" object_id="_627">
<port class_id_reference="29" object_id="_628">
<name>cc2memRead_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_629">
<type>0</type>
<name>memRead_U0</name>
<ssdmobj_id>369</ssdmobj_id>
<pins>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_630">
<port class_id_reference="29" object_id="_631">
<name>memRdCtrl_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_632">
<type>0</type>
<name>memRead_U0</name>
<ssdmobj_id>369</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_633">
<port class_id_reference="29" object_id="_634">
<name>memRdState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</item>
<item class_id_reference="28" object_id="_635">
<port class_id_reference="29" object_id="_636">
<name>cc2memReadMd_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</item>
<item class_id_reference="28" object_id="_637">
<port class_id_reference="29" object_id="_638">
<name>cc2memRead_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</item>
<item class_id_reference="28" object_id="_639">
<port class_id_reference="29" object_id="_640">
<name>memRd2comp_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</item>
<item class_id_reference="28" object_id="_641">
<port class_id_reference="29" object_id="_642">
<name>memRd2compMd_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_643">
<type>0</type>
<name>ht_compare_U0</name>
<ssdmobj_id>370</ssdmobj_id>
<pins>
<count>22</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_644">
<port class_id_reference="29" object_id="_645">
<name>memRdData_V_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_646">
<type>0</type>
<name>ht_compare_U0</name>
<ssdmobj_id>370</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_647">
<port class_id_reference="29" object_id="_648">
<name>guard_variable_for_h</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_649">
<port class_id_reference="29" object_id="_650">
<name>statusOutput_bin_fre_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_651">
<port class_id_reference="29" object_id="_652">
<name>statusOutput_bin_mat_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_653">
<port class_id_reference="29" object_id="_654">
<name>statusOutput_bin_fre_2</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_655">
<port class_id_reference="29" object_id="_656">
<name>statusOutput_bin_mat_2</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_657">
<port class_id_reference="29" object_id="_658">
<name>statusOutput_bin_fre_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_659">
<port class_id_reference="29" object_id="_660">
<name>statusOutput_bin_mat_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_661">
<port class_id_reference="29" object_id="_662">
<name>statusOutput_bin_fre</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_663">
<port class_id_reference="29" object_id="_664">
<name>statusOutput_bin_mat</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_665">
<port class_id_reference="29" object_id="_666">
<name>cmpState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_667">
<port class_id_reference="29" object_id="_668">
<name>cmp_inDataMd_operati</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_669">
<port class_id_reference="29" object_id="_670">
<name>cmp_inDataMd_metadat</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_671">
<port class_id_reference="29" object_id="_672">
<name>cmp_inDataMd_keyLeng</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_673">
<port class_id_reference="29" object_id="_674">
<name>cmp_inDataMd_valueLe</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_675">
<port class_id_reference="29" object_id="_676">
<name>cmp_keyLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_677">
<port class_id_reference="29" object_id="_678">
<name>memRd2compMd_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_679">
<port class_id_reference="29" object_id="_680">
<name>comp2memWrMemData_V_s</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_681">
<port class_id_reference="29" object_id="_682">
<name>memRd2comp_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_683">
<port class_id_reference="29" object_id="_684">
<name>comp2memWrKey_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_685">
<port class_id_reference="29" object_id="_686">
<name>comp2memWrMd_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
<item class_id_reference="28" object_id="_687">
<port class_id_reference="29" object_id="_688">
<name>comp2memWrStatus_V_b</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_689">
<type>0</type>
<name>memWrite_U0</name>
<ssdmobj_id>371</ssdmobj_id>
<pins>
<count>34</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_690">
<port class_id_reference="29" object_id="_691">
<name>memWrCtrl_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_692">
<type>0</type>
<name>memWrite_U0</name>
<ssdmobj_id>371</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_693">
<port class_id_reference="29" object_id="_694">
<name>memWrData_V_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_695">
<port class_id_reference="29" object_id="_696">
<name>addressReturnOut_V_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_697">
<port class_id_reference="29" object_id="_698">
<name>addressAssignDramIn_s</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_699">
<port class_id_reference="29" object_id="_700">
<name>addressAssignFlashIn</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_701">
<port class_id_reference="29" object_id="_702">
<name>flushReq_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_703">
<port class_id_reference="29" object_id="_704">
<name>flushAck_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_705">
<port class_id_reference="29" object_id="_706">
<name>flushDone_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_707">
<port class_id_reference="29" object_id="_708">
<name>guard_variable_for_m</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_709">
<port class_id_reference="29" object_id="_710">
<name>htMemWriteInputStatu_7</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_711">
<port class_id_reference="29" object_id="_712">
<name>htMemWriteInputStatu_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_713">
<port class_id_reference="29" object_id="_714">
<name>htMemWriteInputStatu_6</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_715">
<port class_id_reference="29" object_id="_716">
<name>htMemWriteInputStatu_2</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_717">
<port class_id_reference="29" object_id="_718">
<name>htMemWriteInputStatu_5</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_719">
<port class_id_reference="29" object_id="_720">
<name>htMemWriteInputStatu_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_721">
<port class_id_reference="29" object_id="_722">
<name>htMemWriteInputStatu_4</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_723">
<port class_id_reference="29" object_id="_724">
<name>htMemWriteInputStatu</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_725">
<port class_id_reference="29" object_id="_726">
<name>memWrState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_727">
<port class_id_reference="29" object_id="_728">
<name>memWriteAddress_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_729">
<port class_id_reference="29" object_id="_730">
<name>htMemWriteInputWordM_4</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_731">
<port class_id_reference="29" object_id="_732">
<name>htMemWriteInputWordM_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_733">
<port class_id_reference="29" object_id="_734">
<name>htMemWriteInputWordM</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_735">
<port class_id_reference="29" object_id="_736">
<name>memWr_location_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_737">
<port class_id_reference="29" object_id="_738">
<name>memWr_memInitialized</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_739">
<port class_id_reference="29" object_id="_740">
<name>comp2memWrMd_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_741">
<port class_id_reference="29" object_id="_742">
<name>comp2memWrStatus_V_b</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_743">
<port class_id_reference="29" object_id="_744">
<name>htMemWriteInputWordM_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_745">
<port class_id_reference="29" object_id="_746">
<name>memWr_flushReq_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_747">
<port class_id_reference="29" object_id="_748">
<name>memWr_flushDone_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_749">
<port class_id_reference="29" object_id="_750">
<name>comp2memWrMemData_V_s</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_751">
<port class_id_reference="29" object_id="_752">
<name>memWr2out_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_753">
<port class_id_reference="29" object_id="_754">
<name>dec2cc_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_755">
<port class_id_reference="29" object_id="_756">
<name>memWr_replaceLocatio</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
<item class_id_reference="28" object_id="_757">
<port class_id_reference="29" object_id="_758">
<name>comp2memWrKey_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_759">
<type>0</type>
<name>ht_outputLogic_U0</name>
<ssdmobj_id>372</ssdmobj_id>
<pins>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_760">
<port class_id_reference="29" object_id="_761">
<name>olState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_762">
<type>0</type>
<name>ht_outputLogic_U0</name>
<ssdmobj_id>372</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_763">
<port class_id_reference="29" object_id="_764">
<name>ol_keyLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_765">
<port class_id_reference="29" object_id="_766">
<name>ol_valueLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_767">
<port class_id_reference="29" object_id="_768">
<name>memWr2out_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_769">
<port class_id_reference="29" object_id="_770">
<name>hashMdBuffer_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_771">
<port class_id_reference="29" object_id="_772">
<name>hashKeyBuffer_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_773">
<port class_id_reference="29" object_id="_774">
<name>hashValueBuffer_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
<item class_id_reference="28" object_id="_775">
<port class_id_reference="29" object_id="_776">
<name>hashTable2Dram_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_777">
<type>0</type>
<name>accessControl_U0</name>
<ssdmobj_id>373</ssdmobj_id>
<pins>
<count>43</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_778">
<port class_id_reference="29" object_id="_779">
<name>accState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_780">
<type>0</type>
<name>accessControl_U0</name>
<ssdmobj_id>373</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_781">
<port class_id_reference="29" object_id="_782">
<name>streamToPop_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_783">
<port class_id_reference="29" object_id="_784">
<name>pushWord_address_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_785">
<port class_id_reference="29" object_id="_786">
<name>pushWord_operation_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_787">
<port class_id_reference="29" object_id="_788">
<name>accessCtrl_filterEnt_7</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_789">
<port class_id_reference="29" object_id="_790">
<name>accessCtrl_filterEnt_23</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_791">
<port class_id_reference="29" object_id="_792">
<name>accessCtrl_filterEnt_15</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_793">
<port class_id_reference="29" object_id="_794">
<name>accessCtrl_filterEnt_6</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_795">
<port class_id_reference="29" object_id="_796">
<name>accessCtrl_filterEnt_22</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_797">
<port class_id_reference="29" object_id="_798">
<name>accessCtrl_filterEnt_14</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_799">
<port class_id_reference="29" object_id="_800">
<name>accessCtrl_filterEnt_5</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_801">
<port class_id_reference="29" object_id="_802">
<name>accessCtrl_filterEnt_21</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_803">
<port class_id_reference="29" object_id="_804">
<name>accessCtrl_filterEnt_13</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_805">
<port class_id_reference="29" object_id="_806">
<name>accessCtrl_filterEnt_4</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_807">
<port class_id_reference="29" object_id="_808">
<name>accessCtrl_filterEnt_20</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_809">
<port class_id_reference="29" object_id="_810">
<name>accessCtrl_filterEnt_12</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_811">
<port class_id_reference="29" object_id="_812">
<name>accessCtrl_filterEnt_3</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_813">
<port class_id_reference="29" object_id="_814">
<name>accessCtrl_filterEnt_19</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_815">
<port class_id_reference="29" object_id="_816">
<name>accessCtrl_filterEnt_11</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_817">
<port class_id_reference="29" object_id="_818">
<name>accessCtrl_filterEnt_2</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_819">
<port class_id_reference="29" object_id="_820">
<name>accessCtrl_filterEnt_18</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_821">
<port class_id_reference="29" object_id="_822">
<name>accessCtrl_filterEnt_10</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_823">
<port class_id_reference="29" object_id="_824">
<name>accessCtrl_filterEnt_1</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_825">
<port class_id_reference="29" object_id="_826">
<name>accessCtrl_filterEnt_17</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_827">
<port class_id_reference="29" object_id="_828">
<name>accessCtrl_filterEnt_9</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_829">
<port class_id_reference="29" object_id="_830">
<name>accessCtrl_filterEnt</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_831">
<port class_id_reference="29" object_id="_832">
<name>accessCtrl_filterEnt_16</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_833">
<port class_id_reference="29" object_id="_834">
<name>accessCtrl_filterEnt_8</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_835">
<port class_id_reference="29" object_id="_836">
<name>accessCtrl_level</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_837">
<port class_id_reference="29" object_id="_838">
<name>accessCtrl_rdPtr</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_839">
<port class_id_reference="29" object_id="_840">
<name>filterPopSet_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_841">
<port class_id_reference="29" object_id="_842">
<name>filterPopGet_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_843">
<port class_id_reference="29" object_id="_844">
<name>hashTable2Dram_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_845">
<port class_id_reference="29" object_id="_846">
<name>filterSeq_V_V</name>
<dir>0</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_847">
<port class_id_reference="29" object_id="_848">
<name>inputWord_metadata_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_849">
<port class_id_reference="29" object_id="_850">
<name>inputWord_SOP_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_851">
<port class_id_reference="29" object_id="_852">
<name>inputWord_keyValid_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_853">
<port class_id_reference="29" object_id="_854">
<name>inputWord_valueValid</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_855">
<port class_id_reference="29" object_id="_856">
<name>inputWord_EOP_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_857">
<port class_id_reference="29" object_id="_858">
<name>inputWord_value_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_859">
<port class_id_reference="29" object_id="_860">
<name>inputWord_key_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_861">
<port class_id_reference="29" object_id="_862">
<name>accCtrl2demux_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
<item class_id_reference="28" object_id="_863">
<port class_id_reference="29" object_id="_864">
<name>accessCtrl_wrPtr</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_865">
<type>0</type>
<name>demux_U0</name>
<ssdmobj_id>374</ssdmobj_id>
<pins>
<count>9</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_866">
<port class_id_reference="29" object_id="_867">
<name>demuxState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_868">
<type>0</type>
<name>demux_U0</name>
<ssdmobj_id>374</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_869">
<port class_id_reference="29" object_id="_870">
<name>wordCounter_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_871">
<port class_id_reference="29" object_id="_872">
<name>valueLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_873">
<port class_id_reference="29" object_id="_874">
<name>accCtrl2demux_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_875">
<port class_id_reference="29" object_id="_876">
<name>metadataBuffer_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_877">
<port class_id_reference="29" object_id="_878">
<name>keyBuffer_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_879">
<port class_id_reference="29" object_id="_880">
<name>demux2getPath_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_881">
<port class_id_reference="29" object_id="_882">
<name>demux2setPathMetadat_1</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
<item class_id_reference="28" object_id="_883">
<port class_id_reference="29" object_id="_884">
<name>demux2setPathValue_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_885">
<type>0</type>
<name>setPath_U0</name>
<ssdmobj_id>375</ssdmobj_id>
<pins>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_886">
<port class_id_reference="29" object_id="_887">
<name>memWrCmd_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_888">
<type>0</type>
<name>setPath_U0</name>
<ssdmobj_id>375</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_889">
<port class_id_reference="29" object_id="_890">
<name>memWrData_V_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_891">
<port class_id_reference="29" object_id="_892">
<name>setState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_893">
<port class_id_reference="29" object_id="_894">
<name>setValueBuffer_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_895">
<port class_id_reference="29" object_id="_896">
<name>setMdBuffer_address_s</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_897">
<port class_id_reference="29" object_id="_898">
<name>setNumOfWords</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_899">
<port class_id_reference="29" object_id="_900">
<name>counter</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_901">
<port class_id_reference="29" object_id="_902">
<name>demux2setPathMetadat_1</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_903">
<port class_id_reference="29" object_id="_904">
<name>demux2setPathValue_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
<item class_id_reference="28" object_id="_905">
<port class_id_reference="29" object_id="_906">
<name>filterPopSet_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_907">
<type>0</type>
<name>dispatch_U0</name>
<ssdmobj_id>376</ssdmobj_id>
<pins>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_908">
<port class_id_reference="29" object_id="_909">
<name>memRdCmd_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_910">
<type>0</type>
<name>dispatch_U0</name>
<ssdmobj_id>376</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_911">
<port class_id_reference="29" object_id="_912">
<name>demux2getPath_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_910"/>
</item>
<item class_id_reference="28" object_id="_913">
<port class_id_reference="29" object_id="_914">
<name>disp2rec_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_910"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_915">
<type>0</type>
<name>receive_U0</name>
<ssdmobj_id>377</ssdmobj_id>
<pins>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_916">
<port class_id_reference="29" object_id="_917">
<name>memRdData_V_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_918">
<type>0</type>
<name>receive_U0</name>
<ssdmobj_id>377</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_919">
<port class_id_reference="29" object_id="_920">
<name>getState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_921">
<port class_id_reference="29" object_id="_922">
<name>getValueLength_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_923">
<port class_id_reference="29" object_id="_924">
<name>getCounter</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_925">
<port class_id_reference="29" object_id="_926">
<name>disp2rec_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_927">
<port class_id_reference="29" object_id="_928">
<name>memInputWord_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_929">
<port class_id_reference="29" object_id="_930">
<name>getPath2remux_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
<item class_id_reference="28" object_id="_931">
<port class_id_reference="29" object_id="_932">
<name>filterPopGet_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_933">
<type>0</type>
<name>remux_U0</name>
<ssdmobj_id>378</ssdmobj_id>
<pins>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_934">
<port class_id_reference="29" object_id="_935">
<name>remuxState</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id="_936">
<type>0</type>
<name>remux_U0</name>
<ssdmobj_id>378</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_937">
<port class_id_reference="29" object_id="_938">
<name>rmMdBuffer_metadata_s</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_939">
<port class_id_reference="29" object_id="_940">
<name>rmKeyLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_941">
<port class_id_reference="29" object_id="_942">
<name>rmValueLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_943">
<port class_id_reference="29" object_id="_944">
<name>metadataBuffer_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_945">
<port class_id_reference="29" object_id="_946">
<name>keyBuffer_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_947">
<port class_id_reference="29" object_id="_948">
<name>valueStoreDram2merge_1</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
<item class_id_reference="28" object_id="_949">
<port class_id_reference="29" object_id="_950">
<name>getPath2remux_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_951">
<type>0</type>
<name>response_f_U0</name>
<ssdmobj_id>379</ssdmobj_id>
<pins>
<count>5</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_952">
<port class_id_reference="29" object_id="_953">
<name>valueBuffer_rf_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_954">
<type>0</type>
<name>response_f_U0</name>
<ssdmobj_id>379</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_955">
<port class_id_reference="29" object_id="_956">
<name>metadataBuffer_rf_V_s</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</item>
<item class_id_reference="28" object_id="_957">
<port class_id_reference="29" object_id="_958">
<name>valueStoreDram2merge_1</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</item>
<item class_id_reference="28" object_id="_959">
<port class_id_reference="29" object_id="_960">
<name>inWordCounter_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</item>
<item class_id_reference="28" object_id="_961">
<port class_id_reference="29" object_id="_962">
<name>bf_metadataTempBuffe</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_963">
<type>0</type>
<name>response_r_U0</name>
<ssdmobj_id>380</ssdmobj_id>
<pins>
<count>13</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_964">
<port class_id_reference="29" object_id="_965">
<name>respOutput_V_data_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_966">
<type>0</type>
<name>response_r_U0</name>
<ssdmobj_id>380</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_967">
<port class_id_reference="29" object_id="_968">
<name>respOutput_V_user_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_969">
<port class_id_reference="29" object_id="_970">
<name>respOutput_V_keep_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_971">
<port class_id_reference="29" object_id="_972">
<name>respOutput_V_last_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_973">
<port class_id_reference="29" object_id="_974">
<name>br_outWordCounter</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_975">
<port class_id_reference="29" object_id="_976">
<name>outOpCode</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_977">
<port class_id_reference="29" object_id="_978">
<name>errorCode</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_979">
<port class_id_reference="29" object_id="_980">
<name>metadataBuffer_rf_V_s</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_981">
<port class_id_reference="29" object_id="_982">
<name>outMetadataTempBuffe</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_983">
<port class_id_reference="29" object_id="_984">
<name>valueLength</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_985">
<port class_id_reference="29" object_id="_986">
<name>xtrasBuffer_V</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_987">
<port class_id_reference="29" object_id="_988">
<name>valueBuffer_rf_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
<item class_id_reference="28" object_id="_989">
<port class_id_reference="29" object_id="_990">
<name>resp_ValueConvertTem</name>
<dir>3</dir>
<type>2</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>41</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_991">
<type>1</type>
<name>flushAck_V_c1</name>
<ssdmobj_id>236</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>1</bitwidth>
<source class_id_reference="28" object_id="_992">
<port class_id_reference="29" object_id="_993">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_402"/>
</source>
<sink class_id_reference="28" object_id="_994">
<port class_id_reference="29" object_id="_995">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</sink>
</item>
<item class_id_reference="32" object_id="_996">
<type>1</type>
<name>flushAck_V_c</name>
<ssdmobj_id>237</ssdmobj_id>
<ctype>0</ctype>
<depth>9</depth>
<bitwidth>1</bitwidth>
<source class_id_reference="28" object_id="_997">
<port class_id_reference="29" object_id="_998">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</source>
<sink class_id_reference="28" object_id="_999">
<port class_id_reference="29" object_id="_1000">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1001">
<type>1</type>
<name>metadataBuffer_rp_V_s</name>
<ssdmobj_id>32</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>248</bitwidth>
<source class_id_reference="28" object_id="_1002">
<port class_id_reference="29" object_id="_1003">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</source>
<sink class_id_reference="28" object_id="_1004">
<port class_id_reference="29" object_id="_1005">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1006">
<type>1</type>
<name>valueBuffer_rp_V_V</name>
<ssdmobj_id>33</ssdmobj_id>
<ctype>0</ctype>
<depth>1024</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1007">
<port class_id_reference="29" object_id="_1008">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</source>
<sink class_id_reference="28" object_id="_1009">
<port class_id_reference="29" object_id="_1010">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1011">
<type>1</type>
<name>keyBuffer_rp_V_V</name>
<ssdmobj_id>35</ssdmobj_id>
<ctype>0</ctype>
<depth>128</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1012">
<port class_id_reference="29" object_id="_1013">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_408"/>
</source>
<sink class_id_reference="28" object_id="_1014">
<port class_id_reference="29" object_id="_1015">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1016">
<type>1</type>
<name>requestParser2hashTa_1</name>
<ssdmobj_id>41</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>256</bitwidth>
<source class_id_reference="28" object_id="_1017">
<port class_id_reference="29" object_id="_1018">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_448"/>
</source>
<sink class_id_reference="28" object_id="_1019">
<port class_id_reference="29" object_id="_1020">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1021">
<type>1</type>
<name>hashKeyBuffer_V_V</name>
<ssdmobj_id>51</ssdmobj_id>
<ctype>0</ctype>
<depth>128</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1022">
<port class_id_reference="29" object_id="_1023">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1024">
<port class_id_reference="29" object_id="_1025">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1026">
<type>1</type>
<name>in2hashKeyLength_V_V</name>
<ssdmobj_id>52</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_1027">
<port class_id_reference="29" object_id="_1028">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1029">
<port class_id_reference="29" object_id="_1030">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1031">
<type>1</type>
<name>in2cc_V</name>
<ssdmobj_id>53</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>130</bitwidth>
<source class_id_reference="28" object_id="_1032">
<port class_id_reference="29" object_id="_1033">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1034">
<port class_id_reference="29" object_id="_1035">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1036">
<type>1</type>
<name>in2ccMd_V</name>
<ssdmobj_id>54</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1037">
<port class_id_reference="29" object_id="_1038">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1039">
<port class_id_reference="29" object_id="_1040">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1041">
<type>1</type>
<name>in2hash_V</name>
<ssdmobj_id>55</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>130</bitwidth>
<source class_id_reference="28" object_id="_1042">
<port class_id_reference="29" object_id="_1043">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1044">
<port class_id_reference="29" object_id="_1045">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1046">
<type>1</type>
<name>hashValueBuffer_V_V</name>
<ssdmobj_id>56</ssdmobj_id>
<ctype>0</ctype>
<depth>1024</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1047">
<port class_id_reference="29" object_id="_1048">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1049">
<port class_id_reference="29" object_id="_1050">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1051">
<type>1</type>
<name>hashMdBuffer_V_V</name>
<ssdmobj_id>57</ssdmobj_id>
<ctype>0</ctype>
<depth>32</depth>
<bitwidth>128</bitwidth>
<source class_id_reference="28" object_id="_1052">
<port class_id_reference="29" object_id="_1053">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_470"/>
</source>
<sink class_id_reference="28" object_id="_1054">
<port class_id_reference="29" object_id="_1055">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1056">
<type>1</type>
<name>resizedKeyLength_V</name>
<ssdmobj_id>62</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_1057">
<port class_id_reference="29" object_id="_1058">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</source>
<sink class_id_reference="28" object_id="_1059">
<port class_id_reference="29" object_id="_1060">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1061">
<type>1</type>
<name>resizedInitValue_V</name>
<ssdmobj_id>63</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_1062">
<port class_id_reference="29" object_id="_1063">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</source>
<sink class_id_reference="28" object_id="_1064">
<port class_id_reference="29" object_id="_1065">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1066">
<type>1</type>
<name>resizedKey_V_V</name>
<ssdmobj_id>64</ssdmobj_id>
<ctype>0</ctype>
<depth>8</depth>
<bitwidth>96</bitwidth>
<source class_id_reference="28" object_id="_1067">
<port class_id_reference="29" object_id="_1068">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_504"/>
</source>
<sink class_id_reference="28" object_id="_1069">
<port class_id_reference="29" object_id="_1070">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1071">
<type>1</type>
<name>hash2cc_V_V</name>
<ssdmobj_id>70</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_1072">
<port class_id_reference="29" object_id="_1073">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_524"/>
</source>
<sink class_id_reference="28" object_id="_1074">
<port class_id_reference="29" object_id="_1075">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1076">
<type>1</type>
<name>dec2cc_V_V</name>
<ssdmobj_id>101</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>1</bitwidth>
<source class_id_reference="28" object_id="_1077">
<port class_id_reference="29" object_id="_1078">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</source>
<sink class_id_reference="28" object_id="_1079">
<port class_id_reference="29" object_id="_1080">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1081">
<type>1</type>
<name>cc2memReadMd_V</name>
<ssdmobj_id>109</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1082">
<port class_id_reference="29" object_id="_1083">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</source>
<sink class_id_reference="28" object_id="_1084">
<port class_id_reference="29" object_id="_1085">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1086">
<type>1</type>
<name>cc2memRead_V</name>
<ssdmobj_id>110</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>130</bitwidth>
<source class_id_reference="28" object_id="_1087">
<port class_id_reference="29" object_id="_1088">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_544"/>
</source>
<sink class_id_reference="28" object_id="_1089">
<port class_id_reference="29" object_id="_1090">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1091">
<type>1</type>
<name>memRd2comp_V</name>
<ssdmobj_id>112</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>130</bitwidth>
<source class_id_reference="28" object_id="_1092">
<port class_id_reference="29" object_id="_1093">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</source>
<sink class_id_reference="28" object_id="_1094">
<port class_id_reference="29" object_id="_1095">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1096">
<type>1</type>
<name>memRd2compMd_V</name>
<ssdmobj_id>113</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1097">
<port class_id_reference="29" object_id="_1098">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_632"/>
</source>
<sink class_id_reference="28" object_id="_1099">
<port class_id_reference="29" object_id="_1100">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1101">
<type>1</type>
<name>comp2memWrMemData_V_s</name>
<ssdmobj_id>129</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>512</bitwidth>
<source class_id_reference="28" object_id="_1102">
<port class_id_reference="29" object_id="_1103">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</source>
<sink class_id_reference="28" object_id="_1104">
<port class_id_reference="29" object_id="_1105">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1106">
<type>1</type>
<name>comp2memWrKey_V</name>
<ssdmobj_id>130</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>130</bitwidth>
<source class_id_reference="28" object_id="_1107">
<port class_id_reference="29" object_id="_1108">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</source>
<sink class_id_reference="28" object_id="_1109">
<port class_id_reference="29" object_id="_1110">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1111">
<type>1</type>
<name>comp2memWrMd_V</name>
<ssdmobj_id>131</ssdmobj_id>
<ctype>0</ctype>
<depth>10</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1112">
<port class_id_reference="29" object_id="_1113">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</source>
<sink class_id_reference="28" object_id="_1114">
<port class_id_reference="29" object_id="_1115">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1116">
<type>1</type>
<name>comp2memWrStatus_V_b</name>
<ssdmobj_id>132</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_1117">
<port class_id_reference="29" object_id="_1118">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_646"/>
</source>
<sink class_id_reference="28" object_id="_1119">
<port class_id_reference="29" object_id="_1120">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1121">
<type>1</type>
<name>memWr2out_V</name>
<ssdmobj_id>152</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>57</bitwidth>
<source class_id_reference="28" object_id="_1122">
<port class_id_reference="29" object_id="_1123">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_692"/>
</source>
<sink class_id_reference="28" object_id="_1124">
<port class_id_reference="29" object_id="_1125">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1126">
<type>1</type>
<name>hashTable2Dram_V</name>
<ssdmobj_id>157</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>256</bitwidth>
<source class_id_reference="28" object_id="_1127">
<port class_id_reference="29" object_id="_1128">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_762"/>
</source>
<sink class_id_reference="28" object_id="_1129">
<port class_id_reference="29" object_id="_1130">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1131">
<type>1</type>
<name>filterPopSet_V_V</name>
<ssdmobj_id>188</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>1</bitwidth>
<source class_id_reference="28" object_id="_1132">
<port class_id_reference="29" object_id="_1133">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</source>
<sink class_id_reference="28" object_id="_1134">
<port class_id_reference="29" object_id="_1135">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1136">
<type>1</type>
<name>filterPopGet_V_V</name>
<ssdmobj_id>189</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>1</bitwidth>
<source class_id_reference="28" object_id="_1137">
<port class_id_reference="29" object_id="_1138">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</source>
<sink class_id_reference="28" object_id="_1139">
<port class_id_reference="29" object_id="_1140">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1141">
<type>1</type>
<name>accCtrl2demux_V</name>
<ssdmobj_id>198</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>256</bitwidth>
<source class_id_reference="28" object_id="_1142">
<port class_id_reference="29" object_id="_1143">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_780"/>
</source>
<sink class_id_reference="28" object_id="_1144">
<port class_id_reference="29" object_id="_1145">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1146">
<type>1</type>
<name>metadataBuffer_V</name>
<ssdmobj_id>203</ssdmobj_id>
<ctype>0</ctype>
<depth>24</depth>
<bitwidth>128</bitwidth>
<source class_id_reference="28" object_id="_1147">
<port class_id_reference="29" object_id="_1148">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</source>
<sink class_id_reference="28" object_id="_1149">
<port class_id_reference="29" object_id="_1150">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1151">
<type>1</type>
<name>keyBuffer_V_V</name>
<ssdmobj_id>204</ssdmobj_id>
<ctype>0</ctype>
<depth>48</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1152">
<port class_id_reference="29" object_id="_1153">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</source>
<sink class_id_reference="28" object_id="_1154">
<port class_id_reference="29" object_id="_1155">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1156">
<type>1</type>
<name>demux2getPath_V</name>
<ssdmobj_id>205</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>45</bitwidth>
<source class_id_reference="28" object_id="_1157">
<port class_id_reference="29" object_id="_1158">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</source>
<sink class_id_reference="28" object_id="_1159">
<port class_id_reference="29" object_id="_1160">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_910"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1161">
<type>1</type>
<name>demux2setPathMetadat_1</name>
<ssdmobj_id>206</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>45</bitwidth>
<source class_id_reference="28" object_id="_1162">
<port class_id_reference="29" object_id="_1163">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</source>
<sink class_id_reference="28" object_id="_1164">
<port class_id_reference="29" object_id="_1165">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1166">
<type>1</type>
<name>demux2setPathValue_V</name>
<ssdmobj_id>207</ssdmobj_id>
<ctype>0</ctype>
<depth>96</depth>
<bitwidth>66</bitwidth>
<source class_id_reference="28" object_id="_1167">
<port class_id_reference="29" object_id="_1168">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_868"/>
</source>
<sink class_id_reference="28" object_id="_1169">
<port class_id_reference="29" object_id="_1170">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_888"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1171">
<type>1</type>
<name>disp2rec_V_V</name>
<ssdmobj_id>213</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_1172">
<port class_id_reference="29" object_id="_1173">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_910"/>
</source>
<sink class_id_reference="28" object_id="_1174">
<port class_id_reference="29" object_id="_1175">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1176">
<type>1</type>
<name>getPath2remux_V_V</name>
<ssdmobj_id>218</ssdmobj_id>
<ctype>0</ctype>
<depth>96</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1177">
<port class_id_reference="29" object_id="_1178">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_918"/>
</source>
<sink class_id_reference="28" object_id="_1179">
<port class_id_reference="29" object_id="_1180">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1181">
<type>1</type>
<name>valueStoreDram2merge_1</name>
<ssdmobj_id>223</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>256</bitwidth>
<source class_id_reference="28" object_id="_1182">
<port class_id_reference="29" object_id="_1183">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_936"/>
</source>
<sink class_id_reference="28" object_id="_1184">
<port class_id_reference="29" object_id="_1185">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1186">
<type>1</type>
<name>valueBuffer_rf_V_V</name>
<ssdmobj_id>224</ssdmobj_id>
<ctype>0</ctype>
<depth>1024</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_1187">
<port class_id_reference="29" object_id="_1188">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</source>
<sink class_id_reference="28" object_id="_1189">
<port class_id_reference="29" object_id="_1190">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</sink>
</item>
<item class_id_reference="32" object_id="_1191">
<type>1</type>
<name>metadataBuffer_rf_V_s</name>
<ssdmobj_id>225</ssdmobj_id>
<ctype>0</ctype>
<depth>8</depth>
<bitwidth>248</bitwidth>
<source class_id_reference="28" object_id="_1192">
<port class_id_reference="29" object_id="_1193">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_954"/>
</source>
<sink class_id_reference="28" object_id="_1194">
<port class_id_reference="29" object_id="_1195">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_966"/>
</sink>
</item>
</channel_list>
<net_list class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="34" tracking_level="1" version="0" object_id="_1196">
<states class_id="35" tracking_level="0" version="0">
<count>43</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_1197">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_1198">
<id>235</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_1199">
<id>236</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1200">
<id>237</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1201">
<id>2</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1202">
<id>235</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_1203">
<id>362</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1204">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1205">
<id>363</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1206">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1207">
<id>363</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1208">
<id>5</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1209">
<id>364</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1210">
<id>6</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1211">
<id>364</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1212">
<id>7</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1213">
<id>365</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1214">
<id>8</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1215">
<id>365</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1216">
<id>9</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1217">
<id>365</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1218">
<id>10</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1219">
<id>366</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1220">
<id>11</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1221">
<id>366</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1222">
<id>12</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1223">
<id>367</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1224">
<id>13</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1225">
<id>367</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1226">
<id>14</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1227">
<id>368</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1228">
<id>15</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1229">
<id>368</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1230">
<id>16</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1231">
<id>369</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1232">
<id>17</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1233">
<id>369</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1234">
<id>18</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1235">
<id>369</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1236">
<id>19</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1237">
<id>370</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1238">
<id>20</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1239">
<id>370</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1240">
<id>21</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1241">
<id>371</id>
<stage>5</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1242">
<id>22</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1243">
<id>371</id>
<stage>4</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1244">
<id>23</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1245">
<id>371</id>
<stage>3</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1246">
<id>24</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1247">
<id>371</id>
<stage>2</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1248">
<id>25</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1249">
<id>371</id>
<stage>1</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1250">
<id>26</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1251">
<id>372</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1252">
<id>27</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1253">
<id>372</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1254">
<id>28</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1255">
<id>373</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1256">
<id>29</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1257">
<id>373</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1258">
<id>30</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1259">
<id>374</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1260">
<id>31</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1261">
<id>374</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1262">
<id>32</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1263">
<id>376</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1264">
<id>33</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1265">
<id>376</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1266">
<id>34</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1267">
<id>376</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1268">
<id>35</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1269">
<id>377</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1270">
<id>36</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1271">
<id>377</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1272">
<id>37</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1273">
<id>378</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1274">
<id>38</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1275">
<id>378</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1276">
<id>39</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1277">
<id>379</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1278">
<id>40</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1279">
<id>375</id>
<stage>3</stage>
<latency>3</latency>
</item>
<item class_id_reference="38" object_id="_1280">
<id>380</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1281">
<id>41</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1282">
<id>375</id>
<stage>2</stage>
<latency>3</latency>
</item>
<item class_id_reference="38" object_id="_1283">
<id>380</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1284">
<id>42</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1285">
<id>375</id>
<stage>1</stage>
<latency>3</latency>
</item>
<item class_id_reference="38" object_id="_1286">
<id>380</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_1287">
<id>43</id>
<operations>
<count>125</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_1288">
<id>238</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1289">
<id>239</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1290">
<id>240</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1291">
<id>241</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1292">
<id>242</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1293">
<id>243</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1294">
<id>244</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1295">
<id>245</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1296">
<id>246</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1297">
<id>247</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1298">
<id>248</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1299">
<id>249</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1300">
<id>250</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1301">
<id>251</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1302">
<id>252</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1303">
<id>253</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1304">
<id>254</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1305">
<id>255</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1306">
<id>256</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1307">
<id>257</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1308">
<id>258</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1309">
<id>259</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1310">
<id>260</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1311">
<id>261</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1312">
<id>262</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1313">
<id>263</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1314">
<id>264</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1315">
<id>265</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1316">
<id>266</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1317">
<id>267</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1318">
<id>268</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1319">
<id>269</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1320">
<id>270</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1321">
<id>271</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1322">
<id>272</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1323">
<id>273</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1324">
<id>274</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1325">
<id>275</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1326">
<id>276</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1327">
<id>277</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1328">
<id>278</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1329">
<id>279</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1330">
<id>280</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1331">
<id>281</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1332">
<id>282</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1333">
<id>283</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1334">
<id>284</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1335">
<id>285</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1336">
<id>286</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1337">
<id>287</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1338">
<id>288</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1339">
<id>289</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1340">
<id>290</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1341">
<id>291</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1342">
<id>292</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1343">
<id>293</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1344">
<id>294</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1345">
<id>295</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1346">
<id>296</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1347">
<id>297</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1348">
<id>298</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1349">
<id>299</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1350">
<id>300</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1351">
<id>301</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1352">
<id>302</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1353">
<id>303</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1354">
<id>304</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1355">
<id>305</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1356">
<id>306</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1357">
<id>307</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1358">
<id>308</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1359">
<id>309</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1360">
<id>310</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1361">
<id>311</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1362">
<id>312</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1363">
<id>313</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1364">
<id>314</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1365">
<id>315</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1366">
<id>316</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1367">
<id>317</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1368">
<id>318</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1369">
<id>319</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1370">
<id>320</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1371">
<id>321</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1372">
<id>322</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1373">
<id>323</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1374">
<id>324</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1375">
<id>325</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1376">
<id>326</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1377">
<id>327</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1378">
<id>328</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1379">
<id>329</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1380">
<id>330</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1381">
<id>331</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1382">
<id>332</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1383">
<id>333</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1384">
<id>334</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1385">
<id>335</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1386">
<id>336</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1387">
<id>337</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1388">
<id>338</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1389">
<id>339</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1390">
<id>340</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1391">
<id>341</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1392">
<id>342</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1393">
<id>343</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1394">
<id>344</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1395">
<id>345</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1396">
<id>346</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1397">
<id>347</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1398">
<id>348</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1399">
<id>349</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1400">
<id>350</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1401">
<id>351</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1402">
<id>352</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1403">
<id>353</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1404">
<id>354</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1405">
<id>355</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1406">
<id>356</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1407">
<id>357</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1408">
<id>358</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1409">
<id>359</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1410">
<id>360</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1411">
<id>361</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_1412">
<id>381</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>42</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_1413">
<inState>1</inState>
<outState>2</outState>
<condition class_id="41" tracking_level="0" version="0">
<id>0</id>
<sop class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1414">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1415">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>2</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1416">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>3</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1417">
<inState>5</inState>
<outState>6</outState>
<condition>
<id>4</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1418">
<inState>6</inState>
<outState>7</outState>
<condition>
<id>5</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1419">
<inState>7</inState>
<outState>8</outState>
<condition>
<id>6</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1420">
<inState>8</inState>
<outState>9</outState>
<condition>
<id>7</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1421">
<inState>9</inState>
<outState>10</outState>
<condition>
<id>8</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1422">
<inState>10</inState>
<outState>11</outState>
<condition>
<id>9</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1423">
<inState>11</inState>
<outState>12</outState>
<condition>
<id>10</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1424">
<inState>12</inState>
<outState>13</outState>
<condition>
<id>11</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1425">
<inState>13</inState>
<outState>14</outState>
<condition>
<id>12</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1426">
<inState>14</inState>
<outState>15</outState>
<condition>
<id>13</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1427">
<inState>15</inState>
<outState>16</outState>
<condition>
<id>14</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1428">
<inState>16</inState>
<outState>17</outState>
<condition>
<id>15</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1429">
<inState>17</inState>
<outState>18</outState>
<condition>
<id>16</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1430">
<inState>18</inState>
<outState>19</outState>
<condition>
<id>17</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1431">
<inState>19</inState>
<outState>20</outState>
<condition>
<id>18</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1432">
<inState>20</inState>
<outState>21</outState>
<condition>
<id>19</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1433">
<inState>21</inState>
<outState>22</outState>
<condition>
<id>20</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1434">
<inState>22</inState>
<outState>23</outState>
<condition>
<id>21</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1435">
<inState>23</inState>
<outState>24</outState>
<condition>
<id>22</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1436">
<inState>24</inState>
<outState>25</outState>
<condition>
<id>23</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1437">
<inState>25</inState>
<outState>26</outState>
<condition>
<id>24</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1438">
<inState>26</inState>
<outState>27</outState>
<condition>
<id>25</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1439">
<inState>27</inState>
<outState>28</outState>
<condition>
<id>26</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1440">
<inState>28</inState>
<outState>29</outState>
<condition>
<id>27</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1441">
<inState>29</inState>
<outState>30</outState>
<condition>
<id>28</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1442">
<inState>30</inState>
<outState>31</outState>
<condition>
<id>29</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1443">
<inState>31</inState>
<outState>32</outState>
<condition>
<id>30</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1444">
<inState>32</inState>
<outState>33</outState>
<condition>
<id>31</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1445">
<inState>33</inState>
<outState>34</outState>
<condition>
<id>32</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1446">
<inState>34</inState>
<outState>35</outState>
<condition>
<id>33</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1447">
<inState>35</inState>
<outState>36</outState>
<condition>
<id>34</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1448">
<inState>36</inState>
<outState>37</outState>
<condition>
<id>35</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1449">
<inState>37</inState>
<outState>38</outState>
<condition>
<id>36</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1450">
<inState>38</inState>
<outState>39</outState>
<condition>
<id>37</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1451">
<inState>39</inState>
<outState>40</outState>
<condition>
<id>38</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1452">
<inState>40</inState>
<outState>41</outState>
<condition>
<id>39</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1453">
<inState>41</inState>
<outState>42</outState>
<condition>
<id>40</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_1454">
<inState>42</inState>
<outState>43</outState>
<condition>
<id>41</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="44" tracking_level="1" version="0" object_id="_1455">
<dp_component_resource class_id="45" tracking_level="0" version="0">
<count>33</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>accessControl_U0 (accessControl)</first>
<second class_id="47" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>932</second>
</item>
<item>
<first>LUT</first>
<second>841</second>
</item>
</second>
</item>
<item>
<first>bobj_U0 (bobj)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>801</second>
</item>
<item>
<first>LUT</first>
<second>2644</second>
</item>
</second>
</item>
<item>
<first>bp_f1244_U0 (bp_f1244)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>779</second>
</item>
<item>
<first>LUT</first>
<second>5335</second>
</item>
</second>
</item>
<item>
<first>bp_r_U0 (bp_r)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>809</second>
</item>
<item>
<first>LUT</first>
<second>806</second>
</item>
</second>
</item>
<item>
<first>concurrencyControl_U0 (concurrencyControl)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>494</second>
</item>
<item>
<first>LUT</first>
<second>964</second>
</item>
</second>
</item>
<item>
<first>demux_U0 (demux)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>599</second>
</item>
<item>
<first>LUT</first>
<second>366</second>
</item>
</second>
</item>
<item>
<first>dispatch_U0 (dispatch)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>144</second>
</item>
<item>
<first>LUT</first>
<second>146</second>
</item>
</second>
</item>
<item>
<first>hashKeyResizer_U0 (hashKeyResizer)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>672</second>
</item>
<item>
<first>LUT</first>
<second>345</second>
</item>
</second>
</item>
<item>
<first>ht_compare_U0 (ht_compare)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>840</second>
</item>
<item>
<first>LUT</first>
<second>1179</second>
</item>
</second>
</item>
<item>
<first>ht_inputLogic_U0 (ht_inputLogic)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>1157</second>
</item>
<item>
<first>LUT</first>
<second>6086</second>
</item>
</second>
</item>
<item>
<first>ht_outputLogic_U0 (ht_outputLogic)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>851</second>
</item>
<item>
<first>LUT</first>
<second>786</second>
</item>
</second>
</item>
<item>
<first>memRead_U0 (memRead)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>428</second>
</item>
<item>
<first>LUT</first>
<second>1469</second>
</item>
</second>
</item>
<item>
<first>memWrite_U0 (memWrite)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>9473</second>
</item>
<item>
<first>LUT</first>
<second>83515</second>
</item>
</second>
</item>
<item>
<first>memcachedPipeline_en_U0 (memcachedPipeline_en)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>20</second>
</item>
</second>
</item>
<item>
<first>receive_U0 (receive)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>1127</second>
</item>
<item>
<first>LUT</first>
<second>5731</second>
</item>
</second>
</item>
<item>
<first>remux_U0 (remux)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>1005</second>
</item>
<item>
<first>LUT</first>
<second>1053</second>
</item>
</second>
</item>
<item>
<first>response_f_U0 (response_f)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>253</second>
</item>
<item>
<first>LUT</first>
<second>155</second>
</item>
</second>
</item>
<item>
<first>response_r_U0 (response_r)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>1186</second>
</item>
<item>
<first>LUT</first>
<second>7385</second>
</item>
</second>
</item>
<item>
<first>setPath_U0 (setPath)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>2328</second>
</item>
<item>
<first>LUT</first>
<second>19721</second>
</item>
</second>
</item>
<item>
<first>start_for_accessChbi_U (start_for_accessChbi)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_bobj_U0_U (start_for_bobj_U0)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_bp_r_U0_U (start_for_bp_r_U0)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_concurreOg_U (start_for_concurreOg)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_demux_U0_U (start_for_demux_U0)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_dispatcjbC_U (start_for_dispatcjbC)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_hashKeydEe_U (start_for_hashKeydEe)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_ht_inpucud_U (start_for_ht_inpucud)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_ht_outpg8j_U (start_for_ht_outpg8j)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_memReadfYi_U (start_for_memReadfYi)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_remux_U0_U (start_for_remux_U0)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_responskbM_U (start_for_responskbM)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_responslbW_U (start_for_responslbW)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_setPathibs_U (start_for_setPathibs)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
</dp_component_resource>
<dp_expression_resource>
<count>2</count>
<item_version>0</item_version>
<item>
<first>demux_U0_start_full_n ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ht_inputLogic_U0_start_full_n ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
</dp_expression_resource>
<dp_fifo_resource>
<count>41</count>
<item_version>0</item_version>
<item>
<first>accCtrl2demux_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>256</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>4096</second>
</item>
<item>
<first>BRAM</first>
<second>15</second>
</item>
<item>
<first>FF</first>
<second>272</second>
</item>
<item>
<first>LUT</first>
<second>126</second>
</item>
</second>
</item>
<item>
<first>cc2memReadMd_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>640</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>77</second>
</item>
<item>
<first>LUT</first>
<second>67</second>
</item>
</second>
</item>
<item>
<first>cc2memRead_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>130</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>1300</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>143</second>
</item>
<item>
<first>LUT</first>
<second>115</second>
</item>
</second>
</item>
<item>
<first>comp2memWrKey_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>130</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>1300</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>143</second>
</item>
<item>
<first>LUT</first>
<second>115</second>
</item>
</second>
</item>
<item>
<first>comp2memWrMd_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>640</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>77</second>
</item>
<item>
<first>LUT</first>
<second>67</second>
</item>
</second>
</item>
<item>
<first>comp2memWrMemData_V_s_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>512</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>5120</second>
</item>
<item>
<first>BRAM</first>
<second>29</second>
</item>
<item>
<first>FF</first>
<second>525</second>
</item>
<item>
<first>LUT</first>
<second>396</second>
</item>
</second>
</item>
<item>
<first>comp2memWrStatus_V_b_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>8</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>20</second>
</item>
</second>
</item>
<item>
<first>dec2cc_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>2</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>16</second>
</item>
</second>
</item>
<item>
<first>demux2getPath_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>45</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>720</second>
</item>
<item>
<first>BRAM</first>
<second>3</second>
</item>
<item>
<first>FF</first>
<second>61</second>
</item>
<item>
<first>LUT</first>
<second>47</second>
</item>
</second>
</item>
<item>
<first>demux2setPathMetadat_1_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>45</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>720</second>
</item>
<item>
<first>BRAM</first>
<second>3</second>
</item>
<item>
<first>FF</first>
<second>61</second>
</item>
<item>
<first>LUT</first>
<second>47</second>
</item>
</second>
</item>
<item>
<first>demux2setPathValue_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>96</second>
</item>
<item>
<first>(1Bits)</first>
<second>66</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>6336</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>86</second>
</item>
<item>
<first>LUT</first>
<second>91</second>
</item>
</second>
</item>
<item>
<first>disp2rec_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>192</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>7</second>
</item>
<item>
<first>LUT</first>
<second>28</second>
</item>
</second>
</item>
<item>
<first>filterPopGet_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>7</second>
</item>
<item>
<first>LUT</first>
<second>20</second>
</item>
</second>
</item>
<item>
<first>filterPopSet_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>7</second>
</item>
<item>
<first>LUT</first>
<second>20</second>
</item>
</second>
</item>
<item>
<first>flushAck_V_c1_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>2</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>16</second>
</item>
</second>
</item>
<item>
<first>flushAck_V_c_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>9</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>9</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>6</second>
</item>
<item>
<first>LUT</first>
<second>18</second>
</item>
</second>
</item>
<item>
<first>getPath2remux_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>96</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>6144</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>84</second>
</item>
<item>
<first>LUT</first>
<second>89</second>
</item>
</second>
</item>
<item>
<first>hash2cc_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>32</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>64</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>44</second>
</item>
</second>
</item>
<item>
<first>hashKeyBuffer_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>128</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>8192</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>85</second>
</item>
<item>
<first>LUT</first>
<second>85</second>
</item>
</second>
</item>
<item>
<first>hashMdBuffer_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>32</second>
</item>
<item>
<first>(1Bits)</first>
<second>128</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>4096</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>145</second>
</item>
<item>
<first>LUT</first>
<second>106</second>
</item>
</second>
</item>
<item>
<first>hashTable2Dram_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>256</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>4096</second>
</item>
<item>
<first>BRAM</first>
<second>15</second>
</item>
<item>
<first>FF</first>
<second>272</second>
</item>
<item>
<first>LUT</first>
<second>126</second>
</item>
</second>
</item>
<item>
<first>hashValueBuffer_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>1024</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>65536</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>98</second>
</item>
<item>
<first>LUT</first>
<second>138</second>
</item>
</second>
</item>
<item>
<first>in2ccMd_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>640</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>77</second>
</item>
<item>
<first>LUT</first>
<second>67</second>
</item>
</second>
</item>
<item>
<first>in2cc_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>130</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>1300</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>143</second>
</item>
<item>
<first>LUT</first>
<second>115</second>
</item>
</second>
</item>
<item>
<first>in2hashKeyLength_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>8</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>20</second>
</item>
</second>
</item>
<item>
<first>in2hash_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>130</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>260</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>142</second>
</item>
</second>
</item>
<item>
<first>keyBuffer_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>48</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>3072</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>82</second>
</item>
<item>
<first>LUT</first>
<second>80</second>
</item>
</second>
</item>
<item>
<first>keyBuffer_rp_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>128</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>8192</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>85</second>
</item>
<item>
<first>LUT</first>
<second>85</second>
</item>
</second>
</item>
<item>
<first>memRd2compMd_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>640</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>77</second>
</item>
<item>
<first>LUT</first>
<second>67</second>
</item>
</second>
</item>
<item>
<first>memRd2comp_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>10</second>
</item>
<item>
<first>(1Bits)</first>
<second>130</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>1300</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>143</second>
</item>
<item>
<first>LUT</first>
<second>115</second>
</item>
</second>
</item>
<item>
<first>memWr2out_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>57</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>114</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>69</second>
</item>
</second>
</item>
<item>
<first>metadataBuffer_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>24</second>
</item>
<item>
<first>(1Bits)</first>
<second>128</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>3072</second>
</item>
<item>
<first>BRAM</first>
<second>8</second>
</item>
<item>
<first>FF</first>
<second>145</second>
</item>
<item>
<first>LUT</first>
<second>92</second>
</item>
</second>
</item>
<item>
<first>metadataBuffer_rf_V_s_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>8</second>
</item>
<item>
<first>(1Bits)</first>
<second>248</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>1984</second>
</item>
<item>
<first>BRAM</first>
<second>14</second>
</item>
<item>
<first>FF</first>
<second>260</second>
</item>
<item>
<first>LUT</first>
<second>229</second>
</item>
</second>
</item>
<item>
<first>metadataBuffer_rp_V_s_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>248</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>3968</second>
</item>
<item>
<first>BRAM</first>
<second>14</second>
</item>
<item>
<first>FF</first>
<second>264</second>
</item>
<item>
<first>LUT</first>
<second>123</second>
</item>
</second>
</item>
<item>
<first>requestParser2hashTa_1_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>256</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>4096</second>
</item>
<item>
<first>BRAM</first>
<second>15</second>
</item>
<item>
<first>FF</first>
<second>272</second>
</item>
<item>
<first>LUT</first>
<second>126</second>
</item>
</second>
</item>
<item>
<first>resizedInitValue_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>32</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>64</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>44</second>
</item>
</second>
</item>
<item>
<first>resizedKeyLength_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>32</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>64</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>44</second>
</item>
</second>
</item>
<item>
<first>resizedKey_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>8</second>
</item>
<item>
<first>(1Bits)</first>
<second>96</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>768</second>
</item>
<item>
<first>BRAM</first>
<second>6</second>
</item>
<item>
<first>FF</first>
<second>108</second>
</item>
<item>
<first>LUT</first>
<second>99</second>
</item>
</second>
</item>
<item>
<first>valueBuffer_rf_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>1024</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>65536</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>98</second>
</item>
<item>
<first>LUT</first>
<second>138</second>
</item>
</second>
</item>
<item>
<first>valueBuffer_rp_V_V_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>1024</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>65536</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>98</second>
</item>
<item>
<first>LUT</first>
<second>138</second>
</item>
</second>
</item>
<item>
<first>valueStoreDram2merge_1_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>256</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>4096</second>
</item>
<item>
<first>BRAM</first>
<second>15</second>
</item>
<item>
<first>FF</first>
<second>272</second>
</item>
<item>
<first>LUT</first>
<second>126</second>
</item>
</second>
</item>
</dp_fifo_resource>
<dp_memory_resource>
<count>0</count>
<item_version>0</item_version>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>0</count>
<item_version>0</item_version>
</dp_multiplexer_resource>
<dp_register_resource>
<count>0</count>
<item_version>0</item_version>
</dp_register_resource>
<dp_dsp_resource>
<count>33</count>
<item_version>0</item_version>
<item>
<first>accessControl_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>bobj_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>bp_f1244_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>bp_r_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>concurrencyControl_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>demux_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>dispatch_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>hashKeyResizer_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>ht_compare_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>ht_inputLogic_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>ht_outputLogic_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>memRead_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>memWrite_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>memcachedPipeline_en_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>receive_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>remux_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>response_f_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>response_r_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>setPath_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_accessChbi_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_bobj_U0_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_bp_r_U0_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_concurreOg_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_demux_U0_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_dispatcjbC_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_hashKeydEe_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_ht_inpucud_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_ht_outpg8j_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_memReadfYi_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_remux_U0_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_responskbM_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_responslbW_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_setPathibs_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
</dp_dsp_resource>
<dp_component_map class_id="49" tracking_level="0" version="0">
<count>19</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>accessControl_U0 (accessControl)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>373</item>
</second>
</item>
<item>
<first>bobj_U0 (bobj)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>367</item>
</second>
</item>
<item>
<first>bp_f1244_U0 (bp_f1244)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>363</item>
</second>
</item>
<item>
<first>bp_r_U0 (bp_r)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>364</item>
</second>
</item>
<item>
<first>concurrencyControl_U0 (concurrencyControl)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>368</item>
</second>
</item>
<item>
<first>demux_U0 (demux)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>374</item>
</second>
</item>
<item>
<first>dispatch_U0 (dispatch)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>376</item>
</second>
</item>
<item>
<first>hashKeyResizer_U0 (hashKeyResizer)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>366</item>
</second>
</item>
<item>
<first>ht_compare_U0 (ht_compare)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>370</item>
</second>
</item>
<item>
<first>ht_inputLogic_U0 (ht_inputLogic)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>365</item>
</second>
</item>
<item>
<first>ht_outputLogic_U0 (ht_outputLogic)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>372</item>
</second>
</item>
<item>
<first>memRead_U0 (memRead)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>369</item>
</second>
</item>
<item>
<first>memWrite_U0 (memWrite)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
<item>
<first>memcachedPipeline_en_U0 (memcachedPipeline_en)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>362</item>
</second>
</item>
<item>
<first>receive_U0 (receive)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>377</item>
</second>
</item>
<item>
<first>remux_U0 (remux)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>378</item>
</second>
</item>
<item>
<first>response_f_U0 (response_f)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>379</item>
</second>
</item>
<item>
<first>response_r_U0 (response_r)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>380</item>
</second>
</item>
<item>
<first>setPath_U0 (setPath)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>375</item>
</second>
</item>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>41</count>
<item_version>0</item_version>
<item>
<first>accCtrl2demux_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>842</item>
</second>
</item>
<item>
<first>cc2memReadMd_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>719</item>
</second>
</item>
<item>
<first>cc2memRead_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>729</item>
</second>
</item>
<item>
<first>comp2memWrKey_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>770</item>
</second>
</item>
<item>
<first>comp2memWrMd_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>780</item>
</second>
</item>
<item>
<first>comp2memWrMemData_V_s_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>760</item>
</second>
</item>
<item>
<first>comp2memWrStatus_V_b_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>790</item>
</second>
</item>
<item>
<first>dec2cc_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>709</item>
</second>
</item>
<item>
<first>demux2getPath_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>875</item>
</second>
</item>
<item>
<first>demux2setPathMetadat_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>885</item>
</second>
</item>
<item>
<first>demux2setPathValue_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>896</item>
</second>
</item>
<item>
<first>disp2rec_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>907</item>
</second>
</item>
<item>
<first>filterPopGet_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>832</item>
</second>
</item>
<item>
<first>filterPopSet_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>822</item>
</second>
</item>
<item>
<first>flushAck_V_c1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>527</item>
</second>
</item>
<item>
<first>flushAck_V_c_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>538</item>
</second>
</item>
<item>
<first>getPath2remux_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>918</item>
</second>
</item>
<item>
<first>hash2cc_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>699</item>
</second>
</item>
<item>
<first>hashKeyBuffer_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>592</item>
</second>
</item>
<item>
<first>hashMdBuffer_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>657</item>
</second>
</item>
<item>
<first>hashTable2Dram_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>811</item>
</second>
</item>
<item>
<first>hashValueBuffer_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>646</item>
</second>
</item>
<item>
<first>in2ccMd_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>625</item>
</second>
</item>
<item>
<first>in2cc_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>614</item>
</second>
</item>
<item>
<first>in2hashKeyLength_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>603</item>
</second>
</item>
<item>
<first>in2hash_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>636</item>
</second>
</item>
<item>
<first>keyBuffer_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>864</item>
</second>
</item>
<item>
<first>keyBuffer_rp_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>571</item>
</second>
</item>
<item>
<first>memRd2compMd_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>749</item>
</second>
</item>
<item>
<first>memRd2comp_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>739</item>
</second>
</item>
<item>
<first>memWr2out_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>801</item>
</second>
</item>
<item>
<first>metadataBuffer_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>853</item>
</second>
</item>
<item>
<first>metadataBuffer_rf_V_s_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>949</item>
</second>
</item>
<item>
<first>metadataBuffer_rp_V_s_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>549</item>
</second>
</item>
<item>
<first>requestParser2hashTa_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>582</item>
</second>
</item>
<item>
<first>resizedInitValue_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>678</item>
</second>
</item>
<item>
<first>resizedKeyLength_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>668</item>
</second>
</item>
<item>
<first>resizedKey_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>689</item>
</second>
</item>
<item>
<first>valueBuffer_rf_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>938</item>
</second>
</item>
<item>
<first>valueBuffer_rp_V_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>560</item>
</second>
</item>
<item>
<first>valueStoreDram2merge_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>928</item>
</second>
</item>
</dp_fifo_map>
<dp_memory_map>
<count>0</count>
<item_version>0</item_version>
</dp_memory_map>
</res>
<node_label_latency class_id="51" tracking_level="0" version="0">
<count>23</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>235</first>
<second class_id="53" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>236</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>237</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>362</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>363</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>364</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>365</first>
<second>
<first>6</first>
<second>2</second>
</second>
</item>
<item>
<first>366</first>
<second>
<first>9</first>
<second>1</second>
</second>
</item>
<item>
<first>367</first>
<second>
<first>11</first>
<second>1</second>
</second>
</item>
<item>
<first>368</first>
<second>
<first>13</first>
<second>1</second>
</second>
</item>
<item>
<first>369</first>
<second>
<first>15</first>
<second>2</second>
</second>
</item>
<item>
<first>370</first>
<second>
<first>18</first>
<second>1</second>
</second>
</item>
<item>
<first>371</first>
<second>
<first>20</first>
<second>4</second>
</second>
</item>
<item>
<first>372</first>
<second>
<first>25</first>
<second>1</second>
</second>
</item>
<item>
<first>373</first>
<second>
<first>27</first>
<second>1</second>
</second>
</item>
<item>
<first>374</first>
<second>
<first>29</first>
<second>1</second>
</second>
</item>
<item>
<first>375</first>
<second>
<first>39</first>
<second>2</second>
</second>
</item>
<item>
<first>376</first>
<second>
<first>31</first>
<second>2</second>
</second>
</item>
<item>
<first>377</first>
<second>
<first>34</first>
<second>1</second>
</second>
</item>
<item>
<first>378</first>
<second>
<first>36</first>
<second>1</second>
</second>
</item>
<item>
<first>379</first>
<second>
<first>38</first>
<second>0</second>
</second>
</item>
<item>
<first>380</first>
<second>
<first>39</first>
<second>2</second>
</second>
</item>
<item>
<first>381</first>
<second>
<first>42</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="54" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="55" tracking_level="0" version="0">
<first>382</first>
<second class_id="56" tracking_level="0" version="0">
<first>0</first>
<second>42</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="57" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="58" tracking_level="1" version="0" object_id="_1456">
<region_name>memcachedPipeline</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>382</item>
</basic_blocks>
<nodes>
<count>147</count>
<item_version>0</item_version>
<item>235</item>
<item>236</item>
<item>237</item>
<item>238</item>
<item>239</item>
<item>240</item>
<item>241</item>
<item>242</item>
<item>243</item>
<item>244</item>
<item>245</item>
<item>246</item>
<item>247</item>
<item>248</item>
<item>249</item>
<item>250</item>
<item>251</item>
<item>252</item>
<item>253</item>
<item>254</item>
<item>255</item>
<item>256</item>
<item>257</item>
<item>258</item>
<item>259</item>
<item>260</item>
<item>261</item>
<item>262</item>
<item>263</item>
<item>264</item>
<item>265</item>
<item>266</item>
<item>267</item>
<item>268</item>
<item>269</item>
<item>270</item>
<item>271</item>
<item>272</item>
<item>273</item>
<item>274</item>
<item>275</item>
<item>276</item>
<item>277</item>
<item>278</item>
<item>279</item>
<item>280</item>
<item>281</item>
<item>282</item>
<item>283</item>
<item>284</item>
<item>285</item>
<item>286</item>
<item>287</item>
<item>288</item>
<item>289</item>
<item>290</item>
<item>291</item>
<item>292</item>
<item>293</item>
<item>294</item>
<item>295</item>
<item>296</item>
<item>297</item>
<item>298</item>
<item>299</item>
<item>300</item>
<item>301</item>
<item>302</item>
<item>303</item>
<item>304</item>
<item>305</item>
<item>306</item>
<item>307</item>
<item>308</item>
<item>309</item>
<item>310</item>
<item>311</item>
<item>312</item>
<item>313</item>
<item>314</item>
<item>315</item>
<item>316</item>
<item>317</item>
<item>318</item>
<item>319</item>
<item>320</item>
<item>321</item>
<item>322</item>
<item>323</item>
<item>324</item>
<item>325</item>
<item>326</item>
<item>327</item>
<item>328</item>
<item>329</item>
<item>330</item>
<item>331</item>
<item>332</item>
<item>333</item>
<item>334</item>
<item>335</item>
<item>336</item>
<item>337</item>
<item>338</item>
<item>339</item>
<item>340</item>
<item>341</item>
<item>342</item>
<item>343</item>
<item>344</item>
<item>345</item>
<item>346</item>
<item>347</item>
<item>348</item>
<item>349</item>
<item>350</item>
<item>351</item>
<item>352</item>
<item>353</item>
<item>354</item>
<item>355</item>
<item>356</item>
<item>357</item>
<item>358</item>
<item>359</item>
<item>360</item>
<item>361</item>
<item>362</item>
<item>363</item>
<item>364</item>
<item>365</item>
<item>366</item>
<item>367</item>
<item>368</item>
<item>369</item>
<item>370</item>
<item>371</item>
<item>372</item>
<item>373</item>
<item>374</item>
<item>375</item>
<item>376</item>
<item>377</item>
<item>378</item>
<item>379</item>
<item>380</item>
<item>381</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>16</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="59" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>1230</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>236</item>
</second>
</item>
<item>
<first>1234</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>237</item>
</second>
</item>
<item>
<first>1238</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>235</item>
<item>235</item>
</second>
</item>
<item>
<first>1244</first>
<second>
<count>5</count>
<item_version>0</item_version>
<item>371</item>
<item>371</item>
<item>371</item>
<item>371</item>
<item>371</item>
</second>
</item>
<item>
<first>1315</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>375</item>
<item>375</item>
<item>375</item>
</second>
</item>
<item>
<first>1339</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>380</item>
<item>380</item>
<item>380</item>
</second>
</item>
<item>
<first>1369</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>363</item>
<item>363</item>
</second>
</item>
<item>
<first>1409</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>377</item>
<item>377</item>
</second>
</item>
<item>
<first>1429</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>365</item>
<item>365</item>
<item>365</item>
</second>
</item>
<item>
<first>1465</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>367</item>
<item>367</item>
</second>
</item>
<item>
<first>1487</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>372</item>
<item>372</item>
</second>
</item>
<item>
<first>1507</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>378</item>
<item>378</item>
</second>
</item>
<item>
<first>1527</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>370</item>
<item>370</item>
</second>
</item>
<item>
<first>1575</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>364</item>
<item>364</item>
</second>
</item>
<item>
<first>1599</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>368</item>
<item>368</item>
</second>
</item>
<item>
<first>1689</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>373</item>
<item>373</item>
</second>
</item>
<item>
<first>1779</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>369</item>
<item>369</item>
<item>369</item>
</second>
</item>
<item>
<first>1795</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>374</item>
<item>374</item>
</second>
</item>
<item>
<first>1817</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>366</item>
<item>366</item>
</second>
</item>
<item>
<first>1839</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>376</item>
<item>376</item>
<item>376</item>
</second>
</item>
<item>
<first>1849</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>379</item>
</second>
</item>
<item>
<first>1863</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>362</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="62" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="63" tracking_level="0" version="0">
<first>flushAck_V_c1_fu_1230</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>236</item>
</second>
</item>
<item>
<first>flushAck_V_c_fu_1234</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>237</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>19</count>
<item_version>0</item_version>
<item>
<first>StgValue_48_memcachedPipeline_en_fu_1863</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>362</item>
</second>
</item>
<item>
<first>StgValue_85_response_f_fu_1849</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>379</item>
</second>
</item>
<item>
<first>grp_accessControl_fu_1689</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>373</item>
<item>373</item>
</second>
</item>
<item>
<first>grp_bobj_fu_1465</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>367</item>
<item>367</item>
</second>
</item>
<item>
<first>grp_bp_f1244_fu_1369</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>363</item>
<item>363</item>
</second>
</item>
<item>
<first>grp_bp_r_fu_1575</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>364</item>
<item>364</item>
</second>
</item>
<item>
<first>grp_concurrencyControl_fu_1599</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>368</item>
<item>368</item>
</second>
</item>
<item>
<first>grp_demux_fu_1795</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>374</item>
<item>374</item>
</second>
</item>
<item>
<first>grp_dispatch_fu_1839</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>376</item>
<item>376</item>
<item>376</item>
</second>
</item>
<item>
<first>grp_hashKeyResizer_fu_1817</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>366</item>
<item>366</item>
</second>
</item>
<item>
<first>grp_ht_compare_fu_1527</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>370</item>
<item>370</item>
</second>
</item>
<item>
<first>grp_ht_inputLogic_fu_1429</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>365</item>
<item>365</item>
<item>365</item>
</second>
</item>
<item>
<first>grp_ht_outputLogic_fu_1487</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>372</item>
<item>372</item>
</second>
</item>
<item>
<first>grp_memRead_fu_1779</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>369</item>
<item>369</item>
<item>369</item>
</second>
</item>
<item>
<first>grp_memWrite_fu_1244</first>
<second>
<count>5</count>
<item_version>0</item_version>
<item>371</item>
<item>371</item>
<item>371</item>
<item>371</item>
<item>371</item>
</second>
</item>
<item>
<first>grp_receive_fu_1409</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>377</item>
<item>377</item>
</second>
</item>
<item>
<first>grp_remux_fu_1507</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>378</item>
<item>378</item>
</second>
</item>
<item>
<first>grp_response_r_fu_1339</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>380</item>
<item>380</item>
<item>380</item>
</second>
</item>
<item>
<first>grp_setPath_fu_1315</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>375</item>
<item>375</item>
<item>375</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>1</count>
<item_version>0</item_version>
<item>
<first>grp_read_fu_1238</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>235</item>
<item>235</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="64" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>2</count>
<item_version>0</item_version>
<item>
<first>1870</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>236</item>
</second>
</item>
<item>
<first>1876</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>237</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>2</count>
<item_version>0</item_version>
<item>
<first>flushAck_V_c1_reg_1870</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>236</item>
</second>
</item>
<item>
<first>flushAck_V_c_reg_1876</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>237</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="65" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="66" tracking_level="0" version="0">
<first>addressAssignDramIn_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>addressAssignFlashIn_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>addressReturnOut_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>dramValueStoreMemRdCmd_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>376</item>
</second>
</item>
</second>
</item>
<item>
<first>dramValueStoreMemRdData_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>377</item>
</second>
</item>
</second>
</item>
<item>
<first>dramValueStoreMemWrCmd_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>375</item>
</second>
</item>
</second>
</item>
<item>
<first>dramValueStoreMemWrData_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>375</item>
</second>
</item>
</second>
</item>
<item>
<first>flushAck_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>235</item>
</second>
</item>
</second>
</item>
<item>
<first>flushDone_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>flushReq_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>hashTableMemRdCmd_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>369</item>
</second>
</item>
</second>
</item>
<item>
<first>hashTableMemRdData_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>370</item>
</second>
</item>
</second>
</item>
<item>
<first>hashTableMemWrCmd_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>hashTableMemWrData_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</second>
</item>
</second>
</item>
<item>
<first>inData_V_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>363</item>
</second>
</item>
</second>
</item>
<item>
<first>inData_V_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>363</item>
</second>
</item>
</second>
</item>
<item>
<first>inData_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>363</item>
</second>
</item>
</second>
</item>
<item>
<first>inData_V_user_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>363</item>
</second>
</item>
</second>
</item>
<item>
<first>outData_V_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>380</item>
</second>
</item>
</second>
</item>
<item>
<first>outData_V_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>380</item>
</second>
</item>
</second>
</item>
<item>
<first>outData_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>380</item>
</second>
</item>
</second>
</item>
<item>
<first>outData_V_user_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>380</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="67" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>2</count>
<item_version>0</item_version>
<item class_id="68" tracking_level="0" version="0">
<first>236</first>
<second>FIFO</second>
</item>
<item>
<first>237</first>
<second>FIFO</second>
</item>
</node2core>
</syndb>
</boost_serialization>
|
-------------------------------------------------------------------------------
-- package Disorderly.Random, Non-linear Random Number Generator
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-------------------------------------------------------------------------------
-- PACKAGE Disorderly.Random
--
-- Procedure Disorderly.Random.Get_Random is a non-linear pseudo random number
-- generator designed to be task-safe, and optimized for high statistical quality.
--
-- 1. Uniform output in the range 0 .. 2**61-1.
-- (ie, 61 random bits per call.)
-- (2**61-1 is a Mersenne Prime; explanation below.)
-- 2. Period > 2^246. (Actually, period is about 1.813381 * 2^246.)
-- 3. Period is the product of 4 large (19 decimal digit) prime numbers:
-- 4192767015302299403 * 3625455516735504383 * 5866200191975030783 * (2^61-1).
-- 4. Generator is non-linear.
-- 5. Generator is full-period, and 2 of the 3 component generators are
-- full-period. (The 3rd, the non-linear one, is optionally full-period.)
-- 6. Generator is pure (the package is stateless) for convenient use
-- in multi-tasking simulations.
-- 7. CPU time per call is constant (again for multi-tasking simulations).
-- 8. Size of state per generator is 4 x 64 bits.
-- 9. Speed: Typical benchmarks (on a 64-bit intel PC) measure CPU time per
-- call at around 1/2 to 2/3 that of a call to a 64-bit Sin(x).
-- 10. The State can be initialized by a version of procedure Reset that calls
-- Ada.Calendar.Clock. This version of Reset is confined to a child package,
-- since its not pure. The child package is called Random.Clock_Entropy.
--
-- Items 1-5 are general characteristics of good generators.
-- Items 6-8 are attributes that are desirable in a language with built-in
-- concurrency.
--
-- For a general RATIONALE, see the parent package: Disorderly.ads
--
package Disorderly.Random
with Spark_Mode => On
is
pragma Pure (Disorderly.Random);
type Parent_Random_Int is mod 2**64;
-- Internally, all arithmetic is done on this type. The generator
-- is designed for machines with efficient 64-bit integer arithmetic.
Bits_per_Random_Number : constant := 61;
subtype Random_Int is Parent_Random_Int range 0 .. 2**Bits_per_Random_Number-1;
-- The random number generator returns Ints of this type. Its
-- best to think of these Ints as 61 bins, each containing a random bit.
-- Notice that it is *not* a mod 2**61 type.
--
-- The number p = 61 is a special kind of prime that makes 2**p-1 a
-- prime number. Primality of 2**p-1 is a basic requirement of the
-- algorithm that generates the random numbers.
--
-- The number of bits returned by a RNG is rarely the actual
-- number required by a particular application. Additional
-- work is necessary to put the random stream into the desired range
-- and numeric type.
subtype Seed_Random_Int is Random_Int range 1 .. Random_Int'Last;
-- Seeds (Initiators) must never be 0.
type State is private;
procedure Get_Random
(Random_x : out Random_Int;
S : in out State);
procedure Reset
(S : out State;
Initiator1 : in Seed_Random_Int := 1111;
Initiator2 : in Seed_Random_Int := 2222;
Initiator3 : in Seed_Random_Int := 3333;
Initiator4 : in Seed_Random_Int := 4444);
-- procedure Reset initializes State S.
-- There are no calls to Calendar, so it is reproducible: use the same
-- seeds each time and you get the same state S each time.
-- The following routines translate state S into text, and back again.
-- Useful for saving state S on HD in text format.
No_Of_Seeds : constant := 4;
Rand_Image_Width : constant := 20; -- 2^64-1 = 1.8446744073709551615 * 10^19
Max_Image_Width : constant := Rand_Image_Width * No_Of_Seeds;
subtype State_String is String(1 .. Max_Image_Width);
function Value (Coded_State : State_String) return State with
Pre => (for all i in State_String'Range => Coded_State(i) in '0' .. '9');
function Image (Of_State : State) return State_String;
-- Detect invalid States, for example after input from HDD.
function Valid_State (S : in State) return Boolean;
-- Make an easier to read version of State_String by putting a space in front
-- of each of the 20 digit numbers: Formatted_Image().
Leading_Spaces : constant := 1;
Formatted_State_String_Width : constant := (Rand_Image_Width + Leading_Spaces)*No_Of_Seeds;
subtype Formatted_State_String is String(1 .. Formatted_State_String_Width);
function Formatted_Image (Of_State : State) return Formatted_State_String;
function Are_Equal (State_1, State_2 : State) return Boolean;
private
subtype State_Index is Integer range 0..No_Of_Seeds-1;
type Vals is array(State_Index) of Parent_Random_Int;
type State is record
X : Vals := (others => 701);
end Record;
end Disorderly.Random;
|
package FLTK.Images.RGB.PNG is
type PNG_Image is new RGB_Image with private;
type PNG_Image_Reference (Data : not null access PNG_Image'Class) is limited null record
with Implicit_Dereference => Data;
package Forge is
function Create
(Filename : in String)
return PNG_Image;
end Forge;
private
type PNG_Image is new RGB_Image with null record;
overriding procedure Finalize
(This : in out PNG_Image);
end FLTK.Images.RGB.PNG;
|
package Bubble with SPARK_Mode is
type Arr is array (Integer range <>) of Integer;
function Sorted (A : Arr) return Boolean is
(for all I in A'First .. A'Last - 1 => A(I) <= A(I + 1))
with
Ghost,
Pre => A'Last > Integer'First,
Post => Sorted'Result = (for all I in A'First .. A'Last - 1 => A(I) <= A(I + 1));
function Bubbled (A : Arr) return Boolean is
(for all I in A'First .. A'Last - 1 => A(I) <= A(A'Last))
with
Ghost,
Pre => A'Last > Integer'First,
Post => Bubbled'Result = (for all I in A'First .. A'Last - 1 => A(I) <= A(A'Last));
procedure Sort (A : in out Arr)
with
Pre => A'Last > Integer'First and A'Last < Integer'Last,
Post => Sorted(A);
end Bubble;
|
with Histograms;
with Memory.Container; use Memory.Container;
package Memory.Stats is
type Stats_Type is new Container_Type with private;
type Stats_Pointer is access all Stats_Type'Class;
function Create_Stats(mem : access Memory_Type'Class) return Stats_Pointer;
overriding
function Clone(mem : Stats_Type) return Memory_Pointer;
overriding
procedure Reset(mem : in out Stats_Type;
context : in Natural);
overriding
procedure Read(mem : in out Stats_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Write(mem : in out Stats_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Show_Access_Stats(mem : in out Stats_Type);
private
package Address_Histograms is new Histograms(Address_Type);
package Stride_Histograms is new Histograms(Integer);
type Stats_Type is new Container_Type with record
last_address : Address_Type := 0;
last_stride : Integer := 0;
reads : Long_Integer := 0;
min_address : Address_Type := Address_Type'Last;
max_address : Address_Type := Address_Type'First;
addresses : Address_Histograms.Histogram_Type;
strides : Stride_Histograms.Histogram_Type;
multipliers : Stride_Histograms.Histogram_Type;
end record;
end Memory.Stats;
|
---------------------------------
-- GID - Generic Image Decoder --
---------------------------------
--
-- Purpose:
--
-- The Generic Image Decoder is a package for decoding a broad
-- variety of image formats, from any data stream, to any kind
-- of medium, be it an in-memory bitmap, a GUI object,
-- some other stream, arrays of floating-point initial data
-- for scientific calculations, a browser element, a device,...
-- Animations are supported.
--
-- The code is unconditionally portable, independent of the
-- choice of operating system, processor, endianess and compiler.
--
-- Image types currently supported:
--
-- BMP, GIF, JPEG, PNG, PNM, TGA
--
-- Credits:
--
-- - André van Splunter: GIF's LZW decoder in Ada
-- - Martin J. Fiedler: most of the JPEG decoder (from NanoJPEG)
--
-- More credits in gid_work.xls, sheet "credits".
--
-- Copyright (c) Gautier de Montmollin 2010 .. 2018
--
-- 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.
--
-- NB: this is the MIT License, as found 2-May-2010 on the site
-- http://www.opensource.org/licenses/mit-license.php
with Ada.Calendar, Ada.Streams, Ada.Strings.Bounded, Ada.Finalization;
with Interfaces;
with System;
package GID is
type Image_descriptor is private;
---------------------------------------------------
-- 1) Load the image header from the data stream --
---------------------------------------------------
procedure Load_image_header (
image : out Image_descriptor;
from : in out Ada.Streams.Root_Stream_Type'Class;
try_tga : Boolean:= False
);
-- try_tga: if no known signature is found, assume it might be
-- the TGA format (which hasn't a signature) and try to load an
-- image of this format
unknown_image_format,
known_but_unsupported_image_format,
unsupported_image_subformat,
error_in_image_data,
invalid_primary_color_range: exception;
----------------------------------------------------------------------
-- 2) If needed, use dimensions to prepare the retrieval of the --
-- image, for instance: reserving an in-memory bitmap, sizing a --
-- GUI object, defining a browser element, setting up a device --
----------------------------------------------------------------------
function Pixel_width (image: Image_descriptor) return Positive;
function Pixel_height (image: Image_descriptor) return Positive;
-- "Unchanged" orientation has origin at top left
type Orientation is (
Unchanged,
Rotation_90, Rotation_180, Rotation_270
);
function Display_orientation (image: Image_descriptor) return Orientation;
--------------------------------------------------------------------
-- 3) Load and decode the image itself. If the image is animated, --
-- call Load_image_contents until next_frame is 0.0 --
--------------------------------------------------------------------
type Display_mode is (fast, nice);
-- For bitmap pictures, the result is exactly the same, but
-- interlaced images' larger pixels are drawn in full during decoding.
generic
type Primary_color_range is mod <>;
-- Coding of primary colors (red, green or blue)
-- and of opacity (also known as alpha channel), on the target "device".
-- Currently, only 8-bit and 16-bit are admitted.
-- 8-bit coding is usual: TrueColor, PC graphics, etc.;
-- 16-bit coding is seen in some high-end apps/devices/formats.
--
with procedure Set_X_Y (x, y: Natural);
-- After Set_X_Y, next pixel is meant to be displayed at position (x,y)
with procedure Put_Pixel (
red, green, blue : Primary_color_range;
alpha : Primary_color_range
);
-- Called with each byte that was read from the image block section.
with procedure Raw_Byte (Byte : in Interfaces.Unsigned_8);
-- When Put_Pixel is called twice without a Set_X_Y inbetween,
-- the pixel must be displayed on the next X position after the last one.
-- [ Rationale: if the image lands into an array with contiguous pixels
-- on the X axis, this approach allows full address calculation to be
-- made only at the beginning of each row, which is much faster ]
--
with procedure Feedback (percents: Natural);
--
mode: Display_mode;
--
procedure Load_image_contents (
image : in out Image_descriptor;
next_frame: out Ada.Calendar.Day_Duration
-- ^ animation: real time lapse foreseen between the first image
-- and the image right after this one; 0.0 if no next frame
);
-------------------------------------------------------------------
-- Some informations about the image, not necessary for decoding --
-------------------------------------------------------------------
type Image_format_type is
( -- Bitmap formats
BMP, FITS, GIF, JPEG, PNG, PNM, TGA, TIFF
);
function Format (image: Image_descriptor) return Image_format_type;
function Detailed_format (image: Image_descriptor) return String;
-- example: "GIF89a, interlaced"
function Subformat (image: Image_descriptor) return Integer;
-- example the 'color type' in PNG
function Bits_per_pixel (image: Image_descriptor) return Positive;
function RLE_encoded (image: Image_descriptor) return Boolean;
function Interlaced (image: Image_descriptor) return Boolean;
function Greyscale (image: Image_descriptor) return Boolean;
function Has_palette (image: Image_descriptor) return Boolean;
function Expect_transparency (image: Image_descriptor) return Boolean;
generic
with procedure Get_color (Red, Green, Blue : Interfaces.Unsigned_8);
procedure Get_palette (image : Image_descriptor);
----------------------------------------------------------------
-- Information about this package - e.g. for an "about" box --
----------------------------------------------------------------
version : constant String:= "008";
reference : constant String:= "28-Jun-2018";
web: constant String:= "http://gen-img-dec.sf.net/";
-- Hopefully the latest version is at that URL..^
private
use Interfaces;
subtype U8 is Unsigned_8;
subtype U16 is Unsigned_16;
subtype U32 is Unsigned_32;
package Bounded_255 is
new Ada.Strings.Bounded.Generic_Bounded_Length(255);
type Stream_Access is access all Ada.Streams.Root_Stream_Type'Class;
type RGB_color is record
red, green, blue : U8;
end record;
type Color_table is array (Integer range <>) of RGB_color;
type p_Color_table is access Color_table;
min_bits: constant:= Integer'Max(32, System.Word_Size);
-- 13.3(8): A word is the largest amount of storage that can be
-- conveniently and efficiently manipulated by the hardware,
-- given the implementation's run-time model.
type Integer_M32 is range -2**(min_bits-1) .. 2**(min_bits-1) - 1;
-- We define an Integer type which is at least 32 bits, but n bits
-- on a native n > 32 bits architecture (no performance hit on 64+
-- bits architectures).
subtype Natural_M32 is Integer_M32 range 0..Integer_M32'Last;
subtype Positive_M32 is Integer_M32 range 1..Integer_M32'Last;
type Byte_array is array(Integer range <>) of U8;
type Input_buffer is record
data : Byte_array(1..1024);
stream : Stream_Access:= null;
InBufIdx : Positive:= 1; -- Points to next char in buffer to be read
MaxInBufIdx: Natural := 0; -- Count of valid chars in input buffer
InputEoF : Boolean; -- End of file indicator
end record;
-- Initial values ensure call to Fill_Buffer on first Get_Byte
-- JPEG may store data _before_ any image header (SOF), then we have
-- to make the image descriptor store that information, alas...
package JPEG_defs is
type Component is
(Y, -- brightness
Cb, -- hue
Cr, -- saturation
I, -- ??
Q -- ??
);
type QT is array(0..63) of Natural;
type QT_list is array(0..7) of QT;
type Compo_set is array(Component) of Boolean;
type Info_per_component_A is record -- B is defined inside the decoder
qt_assoc : Natural;
samples_hor : Natural;
samples_ver : Natural;
up_factor_x : Natural; -- how much we must repeat horizontally
up_factor_y : Natural; -- how much we must repeat vertically
shift_x : Natural; -- shift for repeating pixels horizontally
shift_y : Natural; -- shift for repeating pixels vertically
end record;
type Component_info_A is array(Component) of Info_per_component_A;
type Supported_color_space is (
YCbCr, -- 3-dim color space
Y_Grey, -- 1-dim greyscale
CMYK -- 4-dim Cyan, Magenta, Yellow, blacK
);
type AC_DC is (AC, DC);
type VLC_code is record
bits, code: U8;
end record;
type VLC_table is array(0..65_535) of VLC_code;
type p_VLC_table is access VLC_table;
type VLC_defs_type is array(AC_DC, 0..7) of p_VLC_table;
end JPEG_defs;
type JPEG_stuff_type is record
components : JPEG_defs.Compo_set:= (others => False);
color_space : JPEG_defs.Supported_color_space;
info : JPEG_defs.Component_info_A;
max_samples_hor : Natural;
max_samples_ver : Natural;
qt_list : JPEG_defs.QT_list;
vlc_defs : JPEG_defs.VLC_defs_type:= (others => (others => null));
restart_interval : Natural; -- predictor restarts every... (0: never)
end record;
type Endianess_type is (little, big); -- for TIFF images
type Image_descriptor is new Ada.Finalization.Controlled with record
format : Image_format_type;
detailed_format : Bounded_255.Bounded_String; -- for humans only!
subformat_id : Integer:= 0;
width, height : Positive;
display_orientation: Orientation;
top_first : Boolean; -- data orientation in TGA
bits_per_pixel : Positive;
RLE_encoded : Boolean:= False;
transparency : Boolean:= False;
greyscale : Boolean:= False;
interlaced : Boolean:= False; -- GIF or PNG
endianess : Endianess_type; -- TIFF
JPEG_stuff : JPEG_stuff_type;
stream : Stream_Access;
buffer : Input_buffer;
palette : p_Color_table:= null;
first_byte : U8;
next_frame : Ada.Calendar.Day_Duration;
end record;
procedure Adjust (Object : in out Image_descriptor);
procedure Finalize (Object : in out Image_descriptor);
to_be_done: exception;
-- this exception should not happen, even with malformed files
-- its role is to pop up when a feature is set as implemented
-- but one aspect (e.g. palette) was forgotten.
--
-- Primitive tracing using Ada.Text_IO, for debugging,
-- or explaining internals.
--
type Trace_type is (
none, -- No trace at all, no use of console from the library
some_t, -- Image / frame technical informations
full -- Byte / pixel / compressed block details
);
trace: constant Trace_type:= none; -- <== Choice here
no_trace : constant Boolean:= trace=none;
full_trace: constant Boolean:= trace=full;
some_trace: constant Boolean:= trace>=some_t;
end GID;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.