CombinedText stringlengths 4 3.42M |
|---|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package SDL_scancode_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.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.
--
--*
-- * \file SDL_scancode.h
-- *
-- * Defines keyboard scancodes.
--
--*
-- * \brief The SDL keyboard scancode representation.
-- *
-- * Values of this type are used to represent keyboard keys, among other places
-- * in the \link SDL_Keysym::scancode key.keysym.scancode \endlink field of the
-- * SDL_Event structure.
-- *
-- * The values in this enumeration are based on the USB usage page standard:
-- * http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
--
--*
-- * \name Usage page 0x07
-- *
-- * These values are from usage page 0x07 (USB keyboard page).
--
-- @{
--*< Located at the lower left of the return
-- * key on ISO keyboards and at the right end
-- * of the QWERTY row on ANSI keyboards.
-- * Produces REVERSE SOLIDUS (backslash) and
-- * VERTICAL LINE in a US layout, REVERSE
-- * SOLIDUS and VERTICAL LINE in a UK Mac
-- * layout, NUMBER SIGN and TILDE in a UK
-- * Windows layout, DOLLAR SIGN and POUND SIGN
-- * in a Swiss German layout, NUMBER SIGN and
-- * APOSTROPHE in a German layout, GRAVE
-- * ACCENT and POUND SIGN in a French Mac
-- * layout, and ASTERISK and MICRO SIGN in a
-- * French Windows layout.
--
--*< ISO USB keyboards actually use this code
-- * instead of 49 for the same key, but all
-- * OSes I've seen treat the two codes
-- * identically. So, as an implementor, unless
-- * your keyboard generates both of those
-- * codes and your OS treats them differently,
-- * you should generate SDL_SCANCODE_BACKSLASH
-- * instead of this code. As a user, you
-- * should not rely on this code because SDL
-- * will never generate it with most (all?)
-- * keyboards.
--
--*< Located in the top left corner (on both ANSI
-- * and ISO keyboards). Produces GRAVE ACCENT and
-- * TILDE in a US Windows layout and in US and UK
-- * Mac layouts on ANSI keyboards, GRAVE ACCENT
-- * and NOT SIGN in a UK Windows layout, SECTION
-- * SIGN and PLUS-MINUS SIGN in US and UK Mac
-- * layouts on ISO keyboards, SECTION SIGN and
-- * DEGREE SIGN in a Swiss German layout (Mac:
-- * only on ISO keyboards), CIRCUMFLEX ACCENT and
-- * DEGREE SIGN in a German layout (Mac: only on
-- * ISO keyboards), SUPERSCRIPT TWO and TILDE in a
-- * French Windows layout, COMMERCIAL AT and
-- * NUMBER SIGN in a French Mac layout on ISO
-- * keyboards, and LESS-THAN SIGN and GREATER-THAN
-- * SIGN in a Swiss German, German, or French Mac
-- * layout on ANSI keyboards.
--
--*< insert on PC, help on some Mac keyboards (but
-- does send code 73, not 117)
--*< num lock on PC, clear on Mac keyboards
--
--*< This is the additional key that ISO
-- * keyboards have over ANSI ones,
-- * located between left shift and Y.
-- * Produces GRAVE ACCENT and TILDE in a
-- * US or UK Mac layout, REVERSE SOLIDUS
-- * (backslash) and VERTICAL LINE in a
-- * US or UK Windows layout, and
-- * LESS-THAN SIGN and GREATER-THAN SIGN
-- * in a Swiss German, German, or French
-- * layout.
--*< windows contextual menu, compose
--*< The USB document says this is a status flag,
-- * not a physical key - but some Mac keyboards
-- * do have a power key.
--*< redo
-- not sure whether there's a reason to enable these
-- SDL_SCANCODE_LOCKINGCAPSLOCK = 130,
-- SDL_SCANCODE_LOCKINGNUMLOCK = 131,
-- SDL_SCANCODE_LOCKINGSCROLLLOCK = 132,
--*< used on Asian keyboards, see
-- footnotes in USB doc
--*< Yen
--*< Hangul/English toggle
--*< Hanja conversion
--*< Katakana
--*< Hiragana
--*< Zenkaku/Hankaku
--*< reserved
--*< reserved
--*< reserved
--*< reserved
--*< Erase-Eaze
--*< alt, option
--*< windows, command (apple), meta
--*< alt gr, option
--*< windows, command (apple), meta
--*< I'm not sure if this is really not covered
-- * by any of the above, but since there's a
-- * special KMOD_MODE for it I'm adding it here
--
-- @}
-- Usage page 0x07
--*
-- * \name Usage page 0x0C
-- *
-- * These values are mapped from usage page 0x0C (USB consumer page).
--
-- @{
-- @}
-- Usage page 0x0C
--*
-- * \name Walther keys
-- *
-- * These are values that Christian Walther added (for mac keyboard?).
--
-- @{
--*< display mirroring/dual display
-- switch, video mode switch
-- @}
-- Walther keys
--*
-- * \name Usage page 0x0C (additional media keys)
-- *
-- * These values are mapped from usage page 0x0C (USB consumer page).
--
-- @{
-- @}
-- Usage page 0x0C (additional media keys)
-- Add any other keys here.
--*< not a key, just marks the number of scancodes
-- for array bounds
subtype SDL_Scancode is unsigned;
SDL_SCANCODE_UNKNOWN : constant unsigned := 0;
SDL_SCANCODE_A : constant unsigned := 4;
SDL_SCANCODE_B : constant unsigned := 5;
SDL_SCANCODE_C : constant unsigned := 6;
SDL_SCANCODE_D : constant unsigned := 7;
SDL_SCANCODE_E : constant unsigned := 8;
SDL_SCANCODE_F : constant unsigned := 9;
SDL_SCANCODE_G : constant unsigned := 10;
SDL_SCANCODE_H : constant unsigned := 11;
SDL_SCANCODE_I : constant unsigned := 12;
SDL_SCANCODE_J : constant unsigned := 13;
SDL_SCANCODE_K : constant unsigned := 14;
SDL_SCANCODE_L : constant unsigned := 15;
SDL_SCANCODE_M : constant unsigned := 16;
SDL_SCANCODE_N : constant unsigned := 17;
SDL_SCANCODE_O : constant unsigned := 18;
SDL_SCANCODE_P : constant unsigned := 19;
SDL_SCANCODE_Q : constant unsigned := 20;
SDL_SCANCODE_R : constant unsigned := 21;
SDL_SCANCODE_S : constant unsigned := 22;
SDL_SCANCODE_T : constant unsigned := 23;
SDL_SCANCODE_U : constant unsigned := 24;
SDL_SCANCODE_V : constant unsigned := 25;
SDL_SCANCODE_W : constant unsigned := 26;
SDL_SCANCODE_X : constant unsigned := 27;
SDL_SCANCODE_Y : constant unsigned := 28;
SDL_SCANCODE_Z : constant unsigned := 29;
SDL_SCANCODE_1 : constant unsigned := 30;
SDL_SCANCODE_2 : constant unsigned := 31;
SDL_SCANCODE_3 : constant unsigned := 32;
SDL_SCANCODE_4 : constant unsigned := 33;
SDL_SCANCODE_5 : constant unsigned := 34;
SDL_SCANCODE_6 : constant unsigned := 35;
SDL_SCANCODE_7 : constant unsigned := 36;
SDL_SCANCODE_8 : constant unsigned := 37;
SDL_SCANCODE_9 : constant unsigned := 38;
SDL_SCANCODE_0 : constant unsigned := 39;
SDL_SCANCODE_RETURN : constant unsigned := 40;
SDL_SCANCODE_ESCAPE : constant unsigned := 41;
SDL_SCANCODE_BACKSPACE : constant unsigned := 42;
SDL_SCANCODE_TAB : constant unsigned := 43;
SDL_SCANCODE_SPACE : constant unsigned := 44;
SDL_SCANCODE_MINUS : constant unsigned := 45;
SDL_SCANCODE_EQUALS : constant unsigned := 46;
SDL_SCANCODE_LEFTBRACKET : constant unsigned := 47;
SDL_SCANCODE_RIGHTBRACKET : constant unsigned := 48;
SDL_SCANCODE_BACKSLASH : constant unsigned := 49;
SDL_SCANCODE_NONUSHASH : constant unsigned := 50;
SDL_SCANCODE_SEMICOLON : constant unsigned := 51;
SDL_SCANCODE_APOSTROPHE : constant unsigned := 52;
SDL_SCANCODE_GRAVE : constant unsigned := 53;
SDL_SCANCODE_COMMA : constant unsigned := 54;
SDL_SCANCODE_PERIOD : constant unsigned := 55;
SDL_SCANCODE_SLASH : constant unsigned := 56;
SDL_SCANCODE_CAPSLOCK : constant unsigned := 57;
SDL_SCANCODE_F1 : constant unsigned := 58;
SDL_SCANCODE_F2 : constant unsigned := 59;
SDL_SCANCODE_F3 : constant unsigned := 60;
SDL_SCANCODE_F4 : constant unsigned := 61;
SDL_SCANCODE_F5 : constant unsigned := 62;
SDL_SCANCODE_F6 : constant unsigned := 63;
SDL_SCANCODE_F7 : constant unsigned := 64;
SDL_SCANCODE_F8 : constant unsigned := 65;
SDL_SCANCODE_F9 : constant unsigned := 66;
SDL_SCANCODE_F10 : constant unsigned := 67;
SDL_SCANCODE_F11 : constant unsigned := 68;
SDL_SCANCODE_F12 : constant unsigned := 69;
SDL_SCANCODE_PRINTSCREEN : constant unsigned := 70;
SDL_SCANCODE_SCROLLLOCK : constant unsigned := 71;
SDL_SCANCODE_PAUSE : constant unsigned := 72;
SDL_SCANCODE_INSERT : constant unsigned := 73;
SDL_SCANCODE_HOME : constant unsigned := 74;
SDL_SCANCODE_PAGEUP : constant unsigned := 75;
SDL_SCANCODE_DELETE : constant unsigned := 76;
SDL_SCANCODE_END : constant unsigned := 77;
SDL_SCANCODE_PAGEDOWN : constant unsigned := 78;
SDL_SCANCODE_RIGHT : constant unsigned := 79;
SDL_SCANCODE_LEFT : constant unsigned := 80;
SDL_SCANCODE_DOWN : constant unsigned := 81;
SDL_SCANCODE_UP : constant unsigned := 82;
SDL_SCANCODE_NUMLOCKCLEAR : constant unsigned := 83;
SDL_SCANCODE_KP_DIVIDE : constant unsigned := 84;
SDL_SCANCODE_KP_MULTIPLY : constant unsigned := 85;
SDL_SCANCODE_KP_MINUS : constant unsigned := 86;
SDL_SCANCODE_KP_PLUS : constant unsigned := 87;
SDL_SCANCODE_KP_ENTER : constant unsigned := 88;
SDL_SCANCODE_KP_1 : constant unsigned := 89;
SDL_SCANCODE_KP_2 : constant unsigned := 90;
SDL_SCANCODE_KP_3 : constant unsigned := 91;
SDL_SCANCODE_KP_4 : constant unsigned := 92;
SDL_SCANCODE_KP_5 : constant unsigned := 93;
SDL_SCANCODE_KP_6 : constant unsigned := 94;
SDL_SCANCODE_KP_7 : constant unsigned := 95;
SDL_SCANCODE_KP_8 : constant unsigned := 96;
SDL_SCANCODE_KP_9 : constant unsigned := 97;
SDL_SCANCODE_KP_0 : constant unsigned := 98;
SDL_SCANCODE_KP_PERIOD : constant unsigned := 99;
SDL_SCANCODE_NONUSBACKSLASH : constant unsigned := 100;
SDL_SCANCODE_APPLICATION : constant unsigned := 101;
SDL_SCANCODE_POWER : constant unsigned := 102;
SDL_SCANCODE_KP_EQUALS : constant unsigned := 103;
SDL_SCANCODE_F13 : constant unsigned := 104;
SDL_SCANCODE_F14 : constant unsigned := 105;
SDL_SCANCODE_F15 : constant unsigned := 106;
SDL_SCANCODE_F16 : constant unsigned := 107;
SDL_SCANCODE_F17 : constant unsigned := 108;
SDL_SCANCODE_F18 : constant unsigned := 109;
SDL_SCANCODE_F19 : constant unsigned := 110;
SDL_SCANCODE_F20 : constant unsigned := 111;
SDL_SCANCODE_F21 : constant unsigned := 112;
SDL_SCANCODE_F22 : constant unsigned := 113;
SDL_SCANCODE_F23 : constant unsigned := 114;
SDL_SCANCODE_F24 : constant unsigned := 115;
SDL_SCANCODE_EXECUTE : constant unsigned := 116;
SDL_SCANCODE_HELP : constant unsigned := 117;
SDL_SCANCODE_MENU : constant unsigned := 118;
SDL_SCANCODE_SELECT : constant unsigned := 119;
SDL_SCANCODE_STOP : constant unsigned := 120;
SDL_SCANCODE_AGAIN : constant unsigned := 121;
SDL_SCANCODE_UNDO : constant unsigned := 122;
SDL_SCANCODE_CUT : constant unsigned := 123;
SDL_SCANCODE_COPY : constant unsigned := 124;
SDL_SCANCODE_PASTE : constant unsigned := 125;
SDL_SCANCODE_FIND : constant unsigned := 126;
SDL_SCANCODE_MUTE : constant unsigned := 127;
SDL_SCANCODE_VOLUMEUP : constant unsigned := 128;
SDL_SCANCODE_VOLUMEDOWN : constant unsigned := 129;
SDL_SCANCODE_KP_COMMA : constant unsigned := 133;
SDL_SCANCODE_KP_EQUALSAS400 : constant unsigned := 134;
SDL_SCANCODE_INTERNATIONAL1 : constant unsigned := 135;
SDL_SCANCODE_INTERNATIONAL2 : constant unsigned := 136;
SDL_SCANCODE_INTERNATIONAL3 : constant unsigned := 137;
SDL_SCANCODE_INTERNATIONAL4 : constant unsigned := 138;
SDL_SCANCODE_INTERNATIONAL5 : constant unsigned := 139;
SDL_SCANCODE_INTERNATIONAL6 : constant unsigned := 140;
SDL_SCANCODE_INTERNATIONAL7 : constant unsigned := 141;
SDL_SCANCODE_INTERNATIONAL8 : constant unsigned := 142;
SDL_SCANCODE_INTERNATIONAL9 : constant unsigned := 143;
SDL_SCANCODE_LANG1 : constant unsigned := 144;
SDL_SCANCODE_LANG2 : constant unsigned := 145;
SDL_SCANCODE_LANG3 : constant unsigned := 146;
SDL_SCANCODE_LANG4 : constant unsigned := 147;
SDL_SCANCODE_LANG5 : constant unsigned := 148;
SDL_SCANCODE_LANG6 : constant unsigned := 149;
SDL_SCANCODE_LANG7 : constant unsigned := 150;
SDL_SCANCODE_LANG8 : constant unsigned := 151;
SDL_SCANCODE_LANG9 : constant unsigned := 152;
SDL_SCANCODE_ALTERASE : constant unsigned := 153;
SDL_SCANCODE_SYSREQ : constant unsigned := 154;
SDL_SCANCODE_CANCEL : constant unsigned := 155;
SDL_SCANCODE_CLEAR : constant unsigned := 156;
SDL_SCANCODE_PRIOR : constant unsigned := 157;
SDL_SCANCODE_RETURN2 : constant unsigned := 158;
SDL_SCANCODE_SEPARATOR : constant unsigned := 159;
SDL_SCANCODE_OUT : constant unsigned := 160;
SDL_SCANCODE_OPER : constant unsigned := 161;
SDL_SCANCODE_CLEARAGAIN : constant unsigned := 162;
SDL_SCANCODE_CRSEL : constant unsigned := 163;
SDL_SCANCODE_EXSEL : constant unsigned := 164;
SDL_SCANCODE_KP_00 : constant unsigned := 176;
SDL_SCANCODE_KP_000 : constant unsigned := 177;
SDL_SCANCODE_THOUSANDSSEPARATOR : constant unsigned := 178;
SDL_SCANCODE_DECIMALSEPARATOR : constant unsigned := 179;
SDL_SCANCODE_CURRENCYUNIT : constant unsigned := 180;
SDL_SCANCODE_CURRENCYSUBUNIT : constant unsigned := 181;
SDL_SCANCODE_KP_LEFTPAREN : constant unsigned := 182;
SDL_SCANCODE_KP_RIGHTPAREN : constant unsigned := 183;
SDL_SCANCODE_KP_LEFTBRACE : constant unsigned := 184;
SDL_SCANCODE_KP_RIGHTBRACE : constant unsigned := 185;
SDL_SCANCODE_KP_TAB : constant unsigned := 186;
SDL_SCANCODE_KP_BACKSPACE : constant unsigned := 187;
SDL_SCANCODE_KP_A : constant unsigned := 188;
SDL_SCANCODE_KP_B : constant unsigned := 189;
SDL_SCANCODE_KP_C : constant unsigned := 190;
SDL_SCANCODE_KP_D : constant unsigned := 191;
SDL_SCANCODE_KP_E : constant unsigned := 192;
SDL_SCANCODE_KP_F : constant unsigned := 193;
SDL_SCANCODE_KP_XOR : constant unsigned := 194;
SDL_SCANCODE_KP_POWER : constant unsigned := 195;
SDL_SCANCODE_KP_PERCENT : constant unsigned := 196;
SDL_SCANCODE_KP_LESS : constant unsigned := 197;
SDL_SCANCODE_KP_GREATER : constant unsigned := 198;
SDL_SCANCODE_KP_AMPERSAND : constant unsigned := 199;
SDL_SCANCODE_KP_DBLAMPERSAND : constant unsigned := 200;
SDL_SCANCODE_KP_VERTICALBAR : constant unsigned := 201;
SDL_SCANCODE_KP_DBLVERTICALBAR : constant unsigned := 202;
SDL_SCANCODE_KP_COLON : constant unsigned := 203;
SDL_SCANCODE_KP_HASH : constant unsigned := 204;
SDL_SCANCODE_KP_SPACE : constant unsigned := 205;
SDL_SCANCODE_KP_AT : constant unsigned := 206;
SDL_SCANCODE_KP_EXCLAM : constant unsigned := 207;
SDL_SCANCODE_KP_MEMSTORE : constant unsigned := 208;
SDL_SCANCODE_KP_MEMRECALL : constant unsigned := 209;
SDL_SCANCODE_KP_MEMCLEAR : constant unsigned := 210;
SDL_SCANCODE_KP_MEMADD : constant unsigned := 211;
SDL_SCANCODE_KP_MEMSUBTRACT : constant unsigned := 212;
SDL_SCANCODE_KP_MEMMULTIPLY : constant unsigned := 213;
SDL_SCANCODE_KP_MEMDIVIDE : constant unsigned := 214;
SDL_SCANCODE_KP_PLUSMINUS : constant unsigned := 215;
SDL_SCANCODE_KP_CLEAR : constant unsigned := 216;
SDL_SCANCODE_KP_CLEARENTRY : constant unsigned := 217;
SDL_SCANCODE_KP_BINARY : constant unsigned := 218;
SDL_SCANCODE_KP_OCTAL : constant unsigned := 219;
SDL_SCANCODE_KP_DECIMAL : constant unsigned := 220;
SDL_SCANCODE_KP_HEXADECIMAL : constant unsigned := 221;
SDL_SCANCODE_LCTRL : constant unsigned := 224;
SDL_SCANCODE_LSHIFT : constant unsigned := 225;
SDL_SCANCODE_LALT : constant unsigned := 226;
SDL_SCANCODE_LGUI : constant unsigned := 227;
SDL_SCANCODE_RCTRL : constant unsigned := 228;
SDL_SCANCODE_RSHIFT : constant unsigned := 229;
SDL_SCANCODE_RALT : constant unsigned := 230;
SDL_SCANCODE_RGUI : constant unsigned := 231;
SDL_SCANCODE_MODE : constant unsigned := 257;
SDL_SCANCODE_AUDIONEXT : constant unsigned := 258;
SDL_SCANCODE_AUDIOPREV : constant unsigned := 259;
SDL_SCANCODE_AUDIOSTOP : constant unsigned := 260;
SDL_SCANCODE_AUDIOPLAY : constant unsigned := 261;
SDL_SCANCODE_AUDIOMUTE : constant unsigned := 262;
SDL_SCANCODE_MEDIASELECT : constant unsigned := 263;
SDL_SCANCODE_WWW : constant unsigned := 264;
SDL_SCANCODE_MAIL : constant unsigned := 265;
SDL_SCANCODE_CALCULATOR : constant unsigned := 266;
SDL_SCANCODE_COMPUTER : constant unsigned := 267;
SDL_SCANCODE_AC_SEARCH : constant unsigned := 268;
SDL_SCANCODE_AC_HOME : constant unsigned := 269;
SDL_SCANCODE_AC_BACK : constant unsigned := 270;
SDL_SCANCODE_AC_FORWARD : constant unsigned := 271;
SDL_SCANCODE_AC_STOP : constant unsigned := 272;
SDL_SCANCODE_AC_REFRESH : constant unsigned := 273;
SDL_SCANCODE_AC_BOOKMARKS : constant unsigned := 274;
SDL_SCANCODE_BRIGHTNESSDOWN : constant unsigned := 275;
SDL_SCANCODE_BRIGHTNESSUP : constant unsigned := 276;
SDL_SCANCODE_DISPLAYSWITCH : constant unsigned := 277;
SDL_SCANCODE_KBDILLUMTOGGLE : constant unsigned := 278;
SDL_SCANCODE_KBDILLUMDOWN : constant unsigned := 279;
SDL_SCANCODE_KBDILLUMUP : constant unsigned := 280;
SDL_SCANCODE_EJECT : constant unsigned := 281;
SDL_SCANCODE_SLEEP : constant unsigned := 282;
SDL_SCANCODE_APP1 : constant unsigned := 283;
SDL_SCANCODE_APP2 : constant unsigned := 284;
SDL_SCANCODE_AUDIOREWIND : constant unsigned := 285;
SDL_SCANCODE_AUDIOFASTFORWARD : constant unsigned := 286;
SDL_NUM_SCANCODES : constant unsigned := 512; -- ..\SDL2_tmp\SDL_scancode.h:409
-- vi: set ts=4 sw=4 expandtab:
end SDL_scancode_h;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S T R E A M S . S T R E A M _ I O . C _ S T R E A M 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. --
-- --
------------------------------------------------------------------------------
with Interfaces.C_Streams; use Interfaces.C_Streams;
with System.File_IO;
with System.File_Control_Block;
with Ada.Unchecked_Conversion;
package body Ada.Streams.Stream_IO.C_Streams is
package FIO renames System.File_IO;
package FCB renames System.File_Control_Block;
subtype AP is FCB.AFCB_Ptr;
function To_FCB is new Ada.Unchecked_Conversion (File_Mode, FCB.File_Mode);
--------------
-- C_Stream --
--------------
function C_Stream (F : File_Type) return FILEs is
begin
FIO.Check_File_Open (AP (F));
return F.Stream;
end C_Stream;
----------
-- Open --
----------
procedure Open
(File : in out File_Type;
Mode : File_Mode;
C_Stream : FILEs;
Form : String := "";
Name : String := "")
is
Dummy_File_Control_Block : Stream_AFCB;
pragma Warnings (Off, Dummy_File_Control_Block);
-- Yes, we know this is never assigned a value, only the tag
-- is used for dispatching purposes, so that's expected.
begin
FIO.Open (File_Ptr => AP (File),
Dummy_FCB => Dummy_File_Control_Block,
Mode => To_FCB (Mode),
Name => Name,
Form => Form,
Amethod => 'S',
Creat => False,
Text => False,
C_Stream => C_Stream);
File.Last_Op := (if Mode = Out_File then Op_Write else Op_Read);
-- See comment in Ada.Streams.Stream_IO.Open for the reason
end Open;
end Ada.Streams.Stream_IO.C_Streams;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>linebuffer_2</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>in_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>in_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</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>out_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>128</bitwidth>
</Value>
<direction>1</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name></name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>403</lineNumber>
<contextFuncName>linebuffer_2D&lt;1918, 1078, 1, 1, 1, 1, 2, 2, int&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second class_id="11" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>../../../lib_files/Linebuffer.h</first>
<second>linebuffer&lt;1918, 1078, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&gt;</second>
</first>
<second>530</second>
</item>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>linebuffer_2D&lt;1918, 1078, 1, 1, 1, 1, 2, 2, int&gt;</second>
</first>
<second>403</second>
</item>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>linebuffer_3D&lt;1918, 1078, 1, 1, 1, 2, 2, 1, 1, int&gt;</second>
</first>
<second>492</second>
</item>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>linebuffer_4D&lt;1918, 1078, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&gt;</second>
</first>
<second>505</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>16</item>
<item>17</item>
<item>18</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name></name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>531</lineNumber>
<contextFuncName>linebuffer&lt;1918, 1078, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>linebuffer&lt;1918, 1078, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&gt;</second>
</first>
<second>531</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_5">
<Value>
<Obj>
<type>2</type>
<id>15</id>
<name>call_1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:call.1></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="_6">
<Obj>
<type>3</type>
<id>14</id>
<name>linebuffer.2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>12</item>
<item>13</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_7">
<id>16</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_8">
<id>17</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_9">
<id>18</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>12</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_10">
<mId>1</mId>
<mTag>linebuffer.2</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2071917</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_11">
<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>1</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_12">
<type>0</type>
<name>call_1_U0</name>
<ssdmobj_id>12</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="_13">
<port class_id="29" tracking_level="1" version="0" object_id="_14">
<name>in_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_15">
<type>0</type>
<name>call_1_U0</name>
<ssdmobj_id>12</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_16">
<port class_id_reference="29" object_id="_17">
<name>out_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_15"></inst>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</channel_list>
<net_list class_id="32" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="35" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="0" version="0">
<first>12</first>
<second class_id="37" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="38" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="39" tracking_level="0" version="0">
<first>14</first>
<second class_id="40" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="41" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="42" tracking_level="1" version="0" object_id="_18">
<region_name>linebuffer.2</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</basic_blocks>
<nodes>
<count>11</count>
<item_version>0</item_version>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</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="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="44" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="45" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_reg_nodes>
<dp_regname_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="46" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="47" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4xx_hal_rng.c --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief RNG HAL module driver. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
with Ada.Interrupts.Names;
with STM32.Device;
package body STM32.RNG.Interrupts is
type Buffer_Content is array (Integer range <>) of UInt32;
type Ring_Buffer is record
Content : Buffer_Content (0 .. 9);
Head : Integer := 0;
Tail : Integer := 0;
end record;
--------------
-- Receiver --
--------------
protected Receiver is
pragma Interrupt_Priority;
entry Get_Random_32 (Value : out UInt32);
private
Last : UInt32 := 0;
Buffer : Ring_Buffer;
Data_Available : Boolean := False;
procedure Interrupt_Handler;
pragma Attach_Handler
(Interrupt_Handler,
Ada.Interrupts.Names.RNG_Interrupt);
end Receiver;
--------------
-- Receiver --
--------------
protected body Receiver is
-------------------
-- Get_Random_32 --
-------------------
entry Get_Random_32 (Value : out UInt32)
when Data_Available
is
use STM32.Device;
Next : constant Integer :=
(Buffer.Tail + 1) mod Buffer.Content'Length;
begin
-- Remove an item from our ring buffer.
Value := Buffer.Content (Next);
Buffer.Tail := Next;
-- If the buffer is empty, make sure we block subsequent callers
-- until the buffer has something in it.
if Buffer.Tail = Buffer.Head then
Data_Available := False;
end if;
Enable (RNG_Unit);
end Get_Random_32;
-----------------------
-- Interrupt_Handler --
-----------------------
procedure Interrupt_Handler is
use STM32.Device;
Current : UInt32;
begin
if Status (RNG_Unit, Flag => Seed_Error_Interrupt) then
Clear_Interrupt_Pending (RNG_Unit, Flag => Seed_Error_Interrupt);
-- Clear then set the RNGEN bit to reinitialize and restart
-- the RNG.
Disable (RNG_Unit);
Initialize (RNG_Unit);
end if;
if Status (RNG_Unit, Flag => Clock_Error_Interrupt) then
-- TODO: reconfigure the clock and make sure it's okay
-- Clear the bit.
Clear_Interrupt_Pending (RNG_Unit, Flag => Clock_Error_Interrupt);
end if;
if Status (RNG_Unit, Flag => Data_Ready) then
Current := Read_Data (RNG_Unit);
if Current /= Last then
-- This number is good.
if (Buffer.Head + 1) mod Buffer.Content'Length = Buffer.Tail
then
-- But our buffer is full. Turn off the RNG.
Disable (RNG_Unit);
else
-- Add this new data to our buffer.
Buffer.Head := (Buffer.Head + 1) mod Buffer.Content'Length;
Buffer.Content (Buffer.Head) := Current;
Data_Available := True;
Last := Current;
end if;
end if;
end if;
end Interrupt_Handler;
end Receiver;
----------------
-- Initialize --
----------------
procedure Initialize (This : in out RNG_Generator) is
Discard : UInt32;
begin
STM32.Device.Enable_Clock (This);
Enable_Interrupt (This);
Enable (This);
-- Discard the first four randomly generated number, according to
-- RM0440 rev 6 section 26.3.5.
for I in 1 .. 4 loop
Receiver.Get_Random_32 (Discard);
end loop;
end Initialize;
------------
-- Random --
------------
function Random (This : RNG_Generator) return UInt32 is
pragma Unreferenced (This);
Result : UInt32;
begin
Receiver.Get_Random_32 (Result);
return Result;
end Random;
end STM32.RNG.Interrupts;
|
-- Copyright 2008-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
function Ident (P : Parameter) return Parameter is
begin
return P;
end Ident;
procedure Do_Nothing (P : in out Parameter) is
begin
null;
end Do_Nothing;
end Pck;
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ncurses --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 2000-2004,2006 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- "Software"), to deal in the Software without restriction, including --
-- without limitation the rights to use, copy, modify, merge, publish, --
-- distribute, distribute with modifications, sublicense, and/or sell --
-- copies of the Software, and to permit persons to whom the Software is --
-- furnished to do so, subject to the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000
-- Version Control
-- $Revision: 1.5 $
-- $Date: 2006/06/25 14:24:40 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with ncurses2.util; use ncurses2.util;
with ncurses2.genericPuts;
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
procedure ncurses2.acs_display is
use Int_IO;
procedure show_upper_chars (first : Integer);
function show_1_acs (N : Integer;
name : String;
code : Attributed_Character)
return Integer;
procedure show_acs_chars;
procedure show_upper_chars (first : Integer) is
C1 : constant Boolean := (first = 128);
last : constant Integer := first + 31;
package p is new ncurses2.genericPuts (200);
use p;
use p.BS;
use Ada.Strings.Unbounded;
tmpa : Unbounded_String;
tmpb : BS.Bounded_String;
begin
Erase;
Switch_Character_Attribute
(Attr => (Bold_Character => True, others => False));
Move_Cursor (Line => 0, Column => 20);
tmpa := To_Unbounded_String ("Display of ");
if C1 then
tmpa := tmpa & "C1";
else
tmpa := tmpa & "GR";
end if;
tmpa := tmpa & " Character Codes ";
myPut (tmpb, first);
Append (tmpa, To_String (tmpb));
Append (tmpa, " to ");
myPut (tmpb, last);
Append (tmpa, To_String (tmpb));
Add (Str => To_String (tmpa));
Switch_Character_Attribute
(On => False,
Attr => (Bold_Character => True, others => False));
Refresh;
for code in first .. last loop
declare
row : constant Line_Position
:= Line_Position (4 + ((code - first) mod 16));
col : constant Column_Position
:= Column_Position (((code - first) / 16) *
Integer (Columns) / 2);
tmp3 : String (1 .. 3);
tmpx : String (1 .. Integer (Columns / 4));
reply : Key_Code;
begin
Put (tmp3, code);
myPut (tmpb, code, 16);
tmpa := To_Unbounded_String (tmp3 & " (" & To_String (tmpb) & ')');
Ada.Strings.Fixed.Move (To_String (tmpa), tmpx,
Justify => Ada.Strings.Right);
Add (Line => row, Column => col,
Str => tmpx & ' ' & ':' & ' ');
if C1 then
Set_NoDelay_Mode (Mode => True);
end if;
Add_With_Immediate_Echo (Ch => Code_To_Char (Key_Code (code)));
-- TODO check this
if C1 then
reply := Getchar;
while reply /= Key_None loop
Add (Ch => Code_To_Char (reply));
Nap_Milli_Seconds (10);
reply := Getchar;
end loop;
Set_NoDelay_Mode (Mode => False);
end if;
end;
end loop;
end show_upper_chars;
function show_1_acs (N : Integer;
name : String;
code : Attributed_Character)
return Integer is
height : constant Integer := 16;
row : constant Line_Position := Line_Position (4 + (N mod height));
col : constant Column_Position := Column_Position ((N / height) *
Integer (Columns) / 2);
tmpx : String (1 .. Integer (Columns) / 3);
begin
Ada.Strings.Fixed.Move (name, tmpx,
Justify => Ada.Strings.Right,
Drop => Ada.Strings.Left);
Add (Line => row, Column => col, Str => tmpx & ' ' & ':' & ' ');
-- we need more room than C because our identifiers are longer
-- 22 chars actually
Add (Ch => code);
return N + 1;
end show_1_acs;
procedure show_acs_chars is
n : Integer;
begin
Erase;
Switch_Character_Attribute
(Attr => (Bold_Character => True, others => False));
Add (Line => 0, Column => 20,
Str => "Display of the ACS Character Set");
Switch_Character_Attribute (On => False,
Attr => (Bold_Character => True,
others => False));
Refresh;
-- the following is useful to generate the below
-- grep '^[ ]*ACS_' ../src/terminal_interface-curses.ads |
-- awk '{print "n := show_1_acs(n, \""$1"\", ACS_Map("$1"));"}'
n := show_1_acs (0, "ACS_Upper_Left_Corner",
ACS_Map (ACS_Upper_Left_Corner));
n := show_1_acs (n, "ACS_Lower_Left_Corner",
ACS_Map (ACS_Lower_Left_Corner));
n := show_1_acs (n, "ACS_Upper_Right_Corner",
ACS_Map (ACS_Upper_Right_Corner));
n := show_1_acs (n, "ACS_Lower_Right_Corner",
ACS_Map (ACS_Lower_Right_Corner));
n := show_1_acs (n, "ACS_Left_Tee", ACS_Map (ACS_Left_Tee));
n := show_1_acs (n, "ACS_Right_Tee", ACS_Map (ACS_Right_Tee));
n := show_1_acs (n, "ACS_Bottom_Tee", ACS_Map (ACS_Bottom_Tee));
n := show_1_acs (n, "ACS_Top_Tee", ACS_Map (ACS_Top_Tee));
n := show_1_acs (n, "ACS_Horizontal_Line",
ACS_Map (ACS_Horizontal_Line));
n := show_1_acs (n, "ACS_Vertical_Line", ACS_Map (ACS_Vertical_Line));
n := show_1_acs (n, "ACS_Plus_Symbol", ACS_Map (ACS_Plus_Symbol));
n := show_1_acs (n, "ACS_Scan_Line_1", ACS_Map (ACS_Scan_Line_1));
n := show_1_acs (n, "ACS_Scan_Line_9", ACS_Map (ACS_Scan_Line_9));
n := show_1_acs (n, "ACS_Diamond", ACS_Map (ACS_Diamond));
n := show_1_acs (n, "ACS_Checker_Board", ACS_Map (ACS_Checker_Board));
n := show_1_acs (n, "ACS_Degree", ACS_Map (ACS_Degree));
n := show_1_acs (n, "ACS_Plus_Minus", ACS_Map (ACS_Plus_Minus));
n := show_1_acs (n, "ACS_Bullet", ACS_Map (ACS_Bullet));
n := show_1_acs (n, "ACS_Left_Arrow", ACS_Map (ACS_Left_Arrow));
n := show_1_acs (n, "ACS_Right_Arrow", ACS_Map (ACS_Right_Arrow));
n := show_1_acs (n, "ACS_Down_Arrow", ACS_Map (ACS_Down_Arrow));
n := show_1_acs (n, "ACS_Up_Arrow", ACS_Map (ACS_Up_Arrow));
n := show_1_acs (n, "ACS_Board_Of_Squares",
ACS_Map (ACS_Board_Of_Squares));
n := show_1_acs (n, "ACS_Lantern", ACS_Map (ACS_Lantern));
n := show_1_acs (n, "ACS_Solid_Block", ACS_Map (ACS_Solid_Block));
n := show_1_acs (n, "ACS_Scan_Line_3", ACS_Map (ACS_Scan_Line_3));
n := show_1_acs (n, "ACS_Scan_Line_7", ACS_Map (ACS_Scan_Line_7));
n := show_1_acs (n, "ACS_Less_Or_Equal", ACS_Map (ACS_Less_Or_Equal));
n := show_1_acs (n, "ACS_Greater_Or_Equal",
ACS_Map (ACS_Greater_Or_Equal));
n := show_1_acs (n, "ACS_PI", ACS_Map (ACS_PI));
n := show_1_acs (n, "ACS_Not_Equal", ACS_Map (ACS_Not_Equal));
n := show_1_acs (n, "ACS_Sterling", ACS_Map (ACS_Sterling));
end show_acs_chars;
c1 : Key_Code;
c : Character := 'a';
begin
loop
case c is
when 'a' =>
show_acs_chars;
when '0' | '1' | '2' | '3' =>
show_upper_chars (ctoi (c) * 32 + 128);
when others =>
null;
end case;
Add (Line => Lines - 3, Column => 0,
Str => "Note: ANSI terminals may not display C1 characters.");
Add (Line => Lines - 2, Column => 0,
Str => "Select: a=ACS, 0=C1, 1,2,3=GR characters, q=quit");
Refresh;
c1 := Getchar;
c := Code_To_Char (c1);
exit when c = 'q' or c = 'x';
end loop;
Pause;
Erase;
End_Windows;
end ncurses2.acs_display;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Internals.Links;
with AMF.Internals.Tables.MOFEXT_Element_Table;
with AMF.Internals.Tables.MOFEXT_Types;
with AMF.Internals.Tables.MOF_Metamodel;
with AMF.Internals.Tables.UML_Metamodel;
separate (AMF.Internals.Factories.MOFEXT_Module_Factory)
procedure Construct_Union
(Element : AMF.Internals.AMF_Element;
Property : AMF.Internals.CMOF_Element;
Link : AMF.Internals.AMF_Link)
is
Element_Kind : constant AMF.Internals.Tables.MOFEXT_Types.Element_Kinds
:= AMF.Internals.Tables.MOFEXT_Element_Table.Table (Element).Kind;
Opposite : constant AMF.Internals.AMF_Element
:= AMF.Internals.Links.Opposite_Element (Link, Element);
begin
case Element_Kind is
when AMF.Internals.Tables.MOFEXT_Types.E_MOF_Tag =>
if Property = AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Comment_A_Owning_Element then
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.UML_Metamodel.MA_UML_Element_Owned_Element_Owner,
Element,
Opposite,
Link);
elsif Property = AMF.Internals.Tables.MOF_Metamodel.MP_MOF_Tag_Tag_Owner_A_Owned_Tag then
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.UML_Metamodel.MA_UML_Element_Owned_Element_Owner,
Opposite,
Element,
Link);
end if;
when others =>
null;
end case;
end Construct_Union;
|
with Ada.Text_IO; use Ada.Text_IO;
with Account.Default_Account; use Account.Default_Account;
With Account.Vector; use Account.Vector;
package body Cocount is
procedure Main is
DA: Account.Default_Account.Instance;
AS: Account.Vector.Account_Stack;
begin
-- Set_Name(DA, "tom");
DA.Set_Name("Tom");
Add(AS, DA);
-- Put_Line("Cocount..." & Name(DA) & " , " & AS.Length'Image);
Put_Line("Delete...");
Delete(AS, DA);
AS.Delete(0); -- OK
-- Put_Line("Cocount..." & Name(DA) & " , " & AS.Length'Image);
end Main;
end Cocount;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . C A S E _ U T I L --
-- --
-- B o d y --
-- --
-- Copyright (C) 1995-2013, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
package body System.Case_Util is
--------------
-- To_Lower --
--------------
function To_Lower (A : Character) return Character is
A_Val : constant Natural := Character'Pos (A);
begin
if A in 'A' .. 'Z'
or else A_Val in 16#C0# .. 16#D6#
or else A_Val in 16#D8# .. 16#DE#
then
return Character'Val (A_Val + 16#20#);
else
return A;
end if;
end To_Lower;
procedure To_Lower (A : in out String) is
begin
for J in A'Range loop
A (J) := To_Lower (A (J));
end loop;
end To_Lower;
--------------
-- To_Mixed --
--------------
procedure To_Mixed (A : in out String) is
Ucase : Boolean := True;
begin
for J in A'Range loop
if Ucase then
A (J) := To_Upper (A (J));
else
A (J) := To_Lower (A (J));
end if;
Ucase := A (J) = '_';
end loop;
end To_Mixed;
--------------
-- To_Upper --
--------------
function To_Upper (A : Character) return Character is
A_Val : constant Natural := Character'Pos (A);
begin
if A in 'a' .. 'z'
or else A_Val in 16#E0# .. 16#F6#
or else A_Val in 16#F8# .. 16#FE#
then
return Character'Val (A_Val - 16#20#);
else
return A;
end if;
end To_Upper;
procedure To_Upper (A : in out String) is
begin
for J in A'Range loop
A (J) := To_Upper (A (J));
end loop;
end To_Upper;
end System.Case_Util;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . V X W O R K S . E X T --
-- --
-- S p e c --
-- --
-- Copyright (C) 2008-2020, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- This package provides vxworks specific support functions needed
-- by System.OS_Interface.
-- This is the VxWorks 6 RTP version of this package
with Interfaces.C;
package System.VxWorks.Ext is
pragma Preelaborate;
subtype SEM_ID is Long_Integer;
-- typedef struct semaphore *SEM_ID;
type sigset_t is mod 2 ** Long_Long_Integer'Size;
type t_id is new Long_Integer;
subtype int is Interfaces.C.int;
subtype unsigned is Interfaces.C.unsigned;
type Interrupt_Handler is access procedure (parameter : System.Address);
pragma Convention (C, Interrupt_Handler);
type Interrupt_Vector is new System.Address;
function Int_Lock return int;
pragma Inline (Int_Lock);
function Int_Unlock (Old : int) return int;
pragma Inline (Int_Unlock);
function Interrupt_Connect
(Vector : Interrupt_Vector;
Handler : Interrupt_Handler;
Parameter : System.Address := System.Null_Address) return int;
pragma Convention (C, Interrupt_Connect);
function Interrupt_Context return int;
pragma Convention (C, Interrupt_Context);
function Interrupt_Number_To_Vector
(intNum : int) return Interrupt_Vector;
pragma Convention (C, Interrupt_Number_To_Vector);
function semDelete (Sem : SEM_ID) return int;
pragma Convention (C, semDelete);
function Task_Cont (tid : t_id) return int;
pragma Import (C, Task_Cont, "taskResume");
function Task_Stop (tid : t_id) return int;
pragma Import (C, Task_Stop, "taskSuspend");
function kill (pid : t_id; sig : int) return int;
pragma Import (C, kill, "taskKill");
function getpid return t_id;
pragma Import (C, getpid, "getpid");
function Set_Time_Slice (ticks : int) return int;
pragma Inline (Set_Time_Slice);
--------------------------------
-- Processor Affinity for SMP --
--------------------------------
function taskCpuAffinitySet (tid : t_id; CPU : int) return int;
pragma Convention (C, taskCpuAffinitySet);
-- For SMP run-times set the CPU affinity.
-- For uniprocessor systems return ERROR status.
function taskMaskAffinitySet (tid : t_id; CPU_Set : unsigned) return int;
pragma Convention (C, taskMaskAffinitySet);
-- For SMP run-times set the CPU mask affinity.
-- For uniprocessor systems return ERROR status.
end System.VxWorks.Ext;
|
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ top level iterator package --
-- |___/_|\_\_|_|____| by: Timm Felden --
-- --
pragma Ada_2012;
package Skill.Iterators is
pragma Pure;
end Skill.Iterators;
|
with GL.Buffer.general; pragma Elaborate_All (GL.Buffer.general);
with GL.Geometry;
package GL.Buffer.normals is new GL.Buffer.general (base_object => GL.Buffer.array_Object,
index => GL.Geometry.positive_vertex_Id,
element => GL.Geometry.GL_Normal,
element_array => GL.Geometry.GL_Normals_Vertex_Id);
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
with Ada.Finalization;
package body SDL.Video.Surfaces.Makers is
procedure Create (Self : in out Surface;
Size : in SDL.Sizes;
BPP : in Pixel_Depths;
Red_Mask : in Colour_Masks;
Blue_Mask : in Colour_Masks;
Green_Mask : in Colour_Masks;
Alpha_Mask : in Colour_Masks) is
function SDL_Create_RGB_Surface
(Flags : in Surface_Flags := 0; -- TODO: Is this the correct type?
Width : in C.int := 0;
Height : in C.int := 0;
Depth : in Pixel_Depths := 1;
Red_Mask : in Colour_Masks := 0;
Green_Mask : in Colour_Masks := 0;
Blue_Mask : in Colour_Masks := 0;
Alpha_Mask : in Colour_Masks := 0) return Internal_Surface_Pointer with
Import => True,
Convention => C,
External_Name => "SDL_CreateRGBSurface";
begin
Self.Internal := SDL_Create_RGB_Surface (Width => Size.Width,
Height => Size.Height,
Depth => BPP,
Red_Mask => Red_Mask,
Green_Mask => Green_Mask,
Blue_Mask => Blue_Mask,
Alpha_Mask => Alpha_Mask);
end Create;
-- TODO: SDL_CreateRGBSurfaceFrom
-- procedure Create (Self : in out Surface; File_Name : in String) is
-- -- This is actually a macro in the header.
-- function SDL_Load_BMP (File_Name : in C.char_array) return Internal_Surface_Pointer with
-- Import => True,
-- Convention => C,
-- External_Name => "SDL_LoadBMP";
-- begin
-- Self.Internal := SDL_Load_BMP (C.To_C (File_Name));
-- end Create;
function Get_Internal_Surface (Self : in Surface) return Internal_Surface_Pointer is
begin
return Self.Internal;
end Get_Internal_Surface;
function Make_Surface_From_Pointer (S : in Internal_Surface_Pointer; Owns : in Boolean := False) return Surface is
begin
return (Ada.Finalization.Controlled with Internal => S, Owns => Owns);
end Make_Surface_From_Pointer;
end SDL.Video.Surfaces.Makers;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ D E C --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Val_Real; use System.Val_Real;
package body System.Val_Dec is
------------------
-- Scan_Decimal --
------------------
-- For decimal types where Size < Integer'Size, it is fine to use
-- the floating-point circuit, since it certainly has sufficient
-- precision for any reasonable hardware, and we just don't support
-- things on junk hardware.
function Scan_Decimal
(Str : String;
Ptr : not null access Integer;
Max : Integer;
Scale : Integer) return Integer
is
Val : Long_Long_Float;
begin
Val := Scan_Real (Str, Ptr, Max);
return Integer (Val * 10.0 ** Scale);
end Scan_Decimal;
-------------------
-- Value_Decimal --
-------------------
-- Again, we use the real circuit for this purpose
function Value_Decimal (Str : String; Scale : Integer) return Integer is
begin
return Integer (Value_Real (Str) * 10.0 ** Scale);
end Value_Decimal;
end System.Val_Dec;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- A D A . N U M E R I C S . D I S C R E T E _ R A N D O M --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-1999 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. --
-- --
------------------------------------------------------------------------------
with Ada.Calendar;
with Interfaces; use Interfaces;
package body Ada.Numerics.Discrete_Random is
-------------------------
-- Implementation Note --
-------------------------
-- The design of this spec is very awkward, as a result of Ada 95 not
-- permitting in-out parameters for function formals (most naturally
-- Generator values would be passed this way). In pure Ada 95, the only
-- solution is to use the heap and pointers, and, to avoid memory leaks,
-- controlled types.
-- This is awfully heavy, so what we do is to use Unrestricted_Access to
-- get a pointer to the state in the passed Generator. This works because
-- Generator is a limited type and will thus always be passed by reference.
type Pointer is access all State;
Need_64 : constant Boolean := Rst'Pos (Rst'Last) > Int'Last;
-----------------------
-- Local Subprograms --
-----------------------
function Square_Mod_N (X, N : Int) return Int;
pragma Inline (Square_Mod_N);
-- Computes X**2 mod N avoiding intermediate overflow
-----------
-- Image --
-----------
function Image (Of_State : State) return String is
begin
return Int'Image (Of_State.X1) &
',' &
Int'Image (Of_State.X2) &
',' &
Int'Image (Of_State.Q);
end Image;
------------
-- Random --
------------
function Random (Gen : Generator) return Rst is
Genp : constant Pointer := Gen.Gen_State'Unrestricted_Access;
Temp : Int;
TF : Flt;
begin
-- Check for flat range here, since we are typically run with checks
-- off, note that in practice, this condition will usually be static
-- so we will not actually generate any code for the normal case.
if Rst'Last < Rst'First then
raise Constraint_Error;
end if;
-- Continue with computation if non-flat range
Genp.X1 := Square_Mod_N (Genp.X1, Genp.P);
Genp.X2 := Square_Mod_N (Genp.X2, Genp.Q);
Temp := Genp.X2 - Genp.X1;
-- Following duplication is not an error, it is a loop unwinding!
if Temp < 0 then
Temp := Temp + Genp.Q;
end if;
if Temp < 0 then
Temp := Temp + Genp.Q;
end if;
TF := Offs + (Flt (Temp) * Flt (Genp.P) + Flt (Genp.X1)) * Genp.Scl;
-- Pathological, but there do exist cases where the rounding implicit
-- in calculating the scale factor will cause rounding to 'Last + 1.
-- In those cases, returning 'First results in the least bias.
if TF >= Flt (Rst'Pos (Rst'Last)) + 0.5 then
return Rst'First;
elsif Need_64 then
return Rst'Val (Interfaces.Integer_64 (TF));
else
return Rst'Val (Int (TF));
end if;
end Random;
-----------
-- Reset --
-----------
procedure Reset (Gen : Generator; Initiator : Integer) is
Genp : constant Pointer := Gen.Gen_State'Unrestricted_Access;
X1, X2 : Int;
begin
X1 := 2 + Int (Initiator) mod (K1 - 3);
X2 := 2 + Int (Initiator) mod (K2 - 3);
for J in 1 .. 5 loop
X1 := Square_Mod_N (X1, K1);
X2 := Square_Mod_N (X2, K2);
end loop;
-- eliminate effects of small Initiators.
Genp.all :=
(X1 => X1,
X2 => X2,
P => K1,
Q => K2,
FP => K1F,
Scl => Scal);
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Gen : Generator) is
Genp : constant Pointer := Gen.Gen_State'Unrestricted_Access;
Now : constant Calendar.Time := Calendar.Clock;
X1 : Int;
X2 : Int;
begin
X1 := Int (Calendar.Year (Now)) * 12 * 31 +
Int (Calendar.Month (Now) * 31) +
Int (Calendar.Day (Now));
X2 := Int (Calendar.Seconds (Now) * Duration (1000.0));
X1 := 2 + X1 mod (K1 - 3);
X2 := 2 + X2 mod (K2 - 3);
-- Eliminate visible effects of same day starts
for J in 1 .. 5 loop
X1 := Square_Mod_N (X1, K1);
X2 := Square_Mod_N (X2, K2);
end loop;
Genp.all :=
(X1 => X1,
X2 => X2,
P => K1,
Q => K2,
FP => K1F,
Scl => Scal);
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Gen : Generator; From_State : State) is
Genp : constant Pointer := Gen.Gen_State'Unrestricted_Access;
begin
Genp.all := From_State;
end Reset;
----------
-- Save --
----------
procedure Save (Gen : Generator; To_State : out State) is
begin
To_State := Gen.Gen_State;
end Save;
------------------
-- Square_Mod_N --
------------------
function Square_Mod_N (X, N : Int) return Int is
begin
return Int ((Integer_64 (X) ** 2) mod (Integer_64 (N)));
end Square_Mod_N;
-----------
-- Value --
-----------
function Value (Coded_State : String) return State is
Start : Positive := Coded_State'First;
Stop : Positive := Coded_State'First;
Outs : State;
begin
while Coded_State (Stop) /= ',' loop
Stop := Stop + 1;
end loop;
Outs.X1 := Int'Value (Coded_State (Start .. Stop - 1));
Start := Stop + 1;
loop
Stop := Stop + 1;
exit when Coded_State (Stop) = ',';
end loop;
Outs.X2 := Int'Value (Coded_State (Start .. Stop - 1));
Outs.Q := Int'Value (Coded_State (Stop + 1 .. Coded_State'Last));
Outs.P := Outs.Q * 2 + 1;
Outs.FP := Flt (Outs.P);
Outs.Scl := (RstL - RstF + 1.0) / (Flt (Outs.P) * Flt (Outs.Q));
-- Now do *some* sanity checks.
if Outs.Q < 31
or else Outs.X1 not in 2 .. Outs.P - 1
or else Outs.X2 not in 2 .. Outs.Q - 1
then
raise Constraint_Error;
end if;
return Outs;
end Value;
end Ada.Numerics.Discrete_Random;
|
-----------------------------------------------------------------------
-- babel-streams-refs -- Stream management
-- Copyright (C) 2016 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Refs;
package Babel.Streams.Refs is
package Stream_Refs is
new Util.Refs.Indefinite_References (Element_Type => Stream_Type'Class,
Element_Access => Stream_Access);
subtype Stream_Ref is Stream_Refs.Ref;
procedure Copy (From : in Stream_Ref;
Into : in Stream_Ref);
end Babel.Streams.Refs;
|
-- { dg-do run }
with Init11; use Init11;
with Text_IO; use Text_IO;
with Dump;
procedure Q11 is
A1 : R1 := My_R1;
B1 : R1 := My_R1;
A2 : R2 := My_R2;
B2 : R2 := My_R2;
begin
Put ("A1 :");
Dump (A1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "A1 : 78 56 34 12 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" }
Put ("B1 :");
Dump (B1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "B1 : 78 56 34 12 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" }
Put ("A2 :");
Dump (A2'Address, R2'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "A2 : 12 34 56 78 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" }
Put ("B2 :");
Dump (B2'Address, R2'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "B2 : 12 34 56 78 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n"}
if A1.I /= B1.I or A1.A(1) /= B1.A(1) then
raise Program_Error;
end if;
if A2.I /= B2.I or A2.A(1) /= B2.A(1) then
raise Program_Error;
end if;
end;
|
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with CONFIG; use CONFIG;
with PREFACE;
pragma Elaborate(PREFACE);
package body WORD_PARAMETERS is
use TEXT_IO;
type HELP_TYPE is array (NATURAL range <>) of STRING(1..70);
BLANK_HELP_LINE : constant STRING(1..70) := (others => ' ');
NO_HELP : constant HELP_TYPE := (2..1 => BLANK_HELP_LINE);
type REPLY_TYPE is (N, Y);
package REPLY_TYPE_IO is new TEXT_IO.ENUMERATION_IO(REPLY_TYPE);
REPLY : array (BOOLEAN) of REPLY_TYPE := (N, Y);
MODE_OF_REPLY : array (REPLY_TYPE) of BOOLEAN := (FALSE, TRUE);
BLANK_INPUT : exception;
-- The default modes are set in the body so that they can be changed
-- with only this being recompiled, not the rest of the with'ing system
DEFAULT_MODE_ARRAY : constant MODE_ARRAY := (
TRIM_OUTPUT => TRUE,
HAVE_OUTPUT_FILE => FALSE,
WRITE_OUTPUT_TO_FILE => FALSE,
DO_UNKNOWNS_ONLY => FALSE,
WRITE_UNKNOWNS_TO_FILE => FALSE,
IGNORE_UNKNOWN_NAMES => TRUE,
IGNORE_UNKNOWN_CAPS => TRUE,
DO_COMPOUNDS => TRUE,
DO_FIXES => TRUE,
DO_TRICKS => TRUE,
DO_DICTIONARY_FORMS => TRUE,
SHOW_AGE => FALSE,
SHOW_FREQUENCY => FALSE,
DO_EXAMPLES => FALSE,
DO_ONLY_MEANINGS => FALSE,
DO_STEMS_FOR_UNKNOWN => FALSE );
BAD_MODE_FILE : exception;
TRIM_OUTPUT_HELP : constant HELP_TYPE := (
"This option instructs the program to remove from the output list of ",
"possible constructs those which are least likely. There is now a fair",
"amount of trimming, killing LOC and VOC plus removing Uncommon and ",
"non-classical (Archaic/Medieval) when more common results are found ",
"and this action is requested (turn it off in MDV (!) parameters). ",
"When a TRIM has been done, output is usually followed by asterix (*). ",
"The asterix may be missing depending on where the TRIM is done. ",
"There certainly is no absolute assurence that the items removed are ",
"not correct, just that they are statistically less likely. ",
"Note that poets are likely to employ unusual words and inflections for",
"various reasons. These may be trimmed out if this parameter in on. ",
"When in English mode, trim just reduces the output to the top six ",
"results, if there are that many. Asterix means there are more ",
" The default is Y(es) " );
HAVE_OUTPUT_FILE_HELP : constant HELP_TYPE := (
"This option instructs the program to create a file which can hold the ",
"output for later study, otherwise the results are just displayed on ",
"the screen. The output file is named " & OUTPUT_FULL_NAME
& (39+OUTPUT_FULL_NAME'LENGTH..70 => ' '),
"This means that one run will necessarily overwrite a previous run, ",
"unless the previous results are renamed or copied to a file of another",
"name. This is available if the METHOD is INTERACTIVE, no parameters. ",
"The default is N(o), since this prevents the program from overwriting ",
"previous work unintentionally. Y(es) creates the output file. " );
WRITE_OUTPUT_TO_FILE_HELP : constant HELP_TYPE := (
"This option instructs the program, when HAVE_OUTPUT_FILE is on, to ",
"write results to the file " & OUTPUT_FULL_NAME
& (27+OUTPUT_FULL_NAME'LENGTH..70 => ' '),
"This option may be turned on and off during running of the program, ",
"thereby capturing only certain desired results. If the option ",
"HAVE_OUTPUT_FILE is off, the user will not be given a chance to turn ",
"this one on. Only for INTERACTIVE running. Default is N(o). ",
"This works in English mode, but output in somewhat diffeent so far. " );
DO_UNKNOWNS_ONLY_HELP : constant HELP_TYPE := (
"This option instructs the program to only output those words that it ",
"cannot resolve. Of course, it has to do processing on all words, but ",
"those that are found (with prefix/suffix, if that option in on) will ",
"be ignored. The purpose of this option is t allow a quick look to ",
"determine if the dictionary and process is going to do an acceptable ",
"job on the current text. It also allows the user to assemble a list ",
"of unknown words to look up manually, and perhaps augment the system ",
"dictionary. For those purposes, the system is usually run with the ",
"MINIMIZE_OUTPUT option, just producing a list. Another use is to run ",
"without MINIMIZE to an output file. This gives a list of the input ",
"text with the unknown words, by line. This functions as a spelling ",
"checker for Latin texts. The default is N(o). ",
"This does not work in English mode, but may in the future. " );
WRITE_UNKNOWNS_TO_FILE_HELP : constant HELP_TYPE := (
"This option instructs the program to write all unresolved words to a ",
"UNKNOWNS file named " & UNKNOWNS_FULL_NAME
& (21+UNKNOWNS_FULL_NAME'LENGTH..70 => ' '),
"With this option on , the file of unknowns is written, even though ",
"the main output contains both known and unknown (unresolved) words. ",
"One may wish to save the unknowns for later analysis, testing, or to ",
"form the basis for dictionary additions. When this option is turned ",
"on, the UNKNOWNS file is written, destroying any file from a previous ",
"run. However, the write may be turned on and off during a single run ",
"without destroying the information written in that run. ",
"This option is for specialized use, so its default is N(o). ",
"This does not work in English mode, but may in the future. " );
IGNORE_UNKNOWN_NAMES_HELP : constant HELP_TYPE := (
"This option instructs the program to assume that any capitalized word ",
"longer than three letters is a proper name. As no dictionary can be ",
"expected to account for many proper names, many such occur that would ",
"be called UNKNOWN. This contaminates the output in most cases, and ",
"it is often convenient to ignore these sperious UNKNOWN hits. This ",
"option implements that mode, and calls such words proper names. ",
"Any proper names that are in the dictionary are handled in the normal ",
"manner. The default is Y(es). " );
IGNORE_UNKNOWN_CAPS_HELP : constant HELP_TYPE := (
"This option instructs the program to assume that any all caps word ",
"is a proper name or similar designation. This convention is often ",
"used to designate speakers in a discussion or play. No dictionary can",
"claim to be exaustive on proper names, so many such occur that would ",
"be called UNKNOWN. This contaminates the output in most cases, and ",
"it is often convenient to ignore these sperious UNKNOWN hits. This ",
"option implements that mode, and calls such words names. Any similar ",
"designations that are in the dictionary are handled in the normal ",
"manner, as are normal words in all caps. The default is Y(es). " );
DO_COMPOUNDS_HELP : constant HELP_TYPE := (
"This option instructs the program to look ahead for the verb TO_BE (or",
"iri) when it finds a verb participle, with the expectation of finding ",
"a compound perfect tense or periphastic. This option can also be a ",
"trimming of the output, in that VPAR that do not fit (not NOM) will be",
"excluded, possible interpretations are lost. Default choice is Y(es).",
"This processing is turned off with the choice of N(o). " );
DO_FIXES_HELP : constant HELP_TYPE := (
"This option instructs the program, when it is unable to find a proper ",
"match in the dictionary, to attach various prefixes and suffixes and ",
"try again. This effort is successful in about a quarter of the cases ",
"which would otherwise give UNKNOWN results, or so it seems in limited ",
"tests. For those cases in which a result is produced, about half give",
"easily interpreted output; many of the rest are etymologically true, ",
"but not necessarily obvious; about a tenth give entirely spurious ",
"derivations. The user must proceed with caution. ",
"The default choice is Y(es), since the results are generally useful. ",
"This processing can be turned off with the choice of N(o). " );
DO_TRICKS_HELP : constant HELP_TYPE := (
"This option instructs the program, when it is unable to find a proper ",
"match in the dictionary, and after various prefixes and suffixes, to ",
"try every dirty Latin trick it can think of, mainly common letter ",
"replacements like cl -> cul, vul -> vol, ads -> ass, inp -> imp, etc. ",
"Together these tricks are useful, but may give false positives (>10%).",
"They provide for recognized varients in classical spelling. Most of ",
"the texts with which this program will be used have been well edited ",
"and standardized in spelling. Now, moreover, the dictionary is being",
"populated to such a state that the hit rate on tricks has fallen to a ",
"low level. It is very seldom productive, and it is always expensive. ",
"The only excuse for keeping it as default is that now the dictionary ",
"is quite extensive and misses are rare. Default is now Y(es). ") ;
DO_DICTIONARY_FORMS_HELP : constant HELP_TYPE := (
"This option instructs the program to output a line with the forms ",
"normally associated with a dictionary entry (NOM and GEN of a noun, ",
"the four principal parts of a verb, M-F-N NOM of an adjective, ...). ",
"This occurs when there is other output (i.e., not with UNKNOWNS_ONLY).",
"The default choice is N(o), but it can be turned on with a Y(es). " );
SHOW_AGE_HELP : constant HELP_TYPE := (
"This option causes a flag, like '<Late>' to appear for inflection or ",
"form in the output. The AGE indicates when this word/inflection was ",
"in use, at least from indications is dictionary citations. It is ",
"just an indication, not controlling, useful when there are choices. ",
"No indication means that it is common throughout all periods. ",
"The default choice is Y(es), but it can be turned off with a N(o). " );
SHOW_FREQUENCY_HELP : constant HELP_TYPE := (
"This option causes a flag, like '<rare>' to appear for inflection or ",
"form in the output. The FREQ is indicates the relative usage of the ",
"word or inflection, from indications is dictionary citations. It is ",
"just an indication, not controlling, useful when there are choices. ",
"No indication means that it is common throughout all periods. ",
"The default choice is Y(es), but it can be turned off with a N(o). " );
DO_EXAMPLES_HELP : constant HELP_TYPE := (
"This option instructs the program to provide examples of usage of the ",
"cases/tenses/etc. that were constructed. The default choice is N(o). ",
"This produces lengthly output and is turned on with the choice Y(es). " );
DO_ONLY_MEANINGS_HELP : constant HELP_TYPE := (
"This option instructs the program to only output the MEANING for a ",
"word, and omit the inflection details. This is primarily used in ",
"analyzing new dictionary material, comparing with the existing. ",
"However it may be of use for the translator who knows most all of ",
"the words and just needs a little reminder for a few. ",
"The default choice is N(o), but it can be turned on with a Y(es). " );
DO_STEMS_FOR_UNKNOWN_HELP : constant HELP_TYPE := (
"This option instructs the program, when it is unable to find a proper ",
"match in the dictionary, and after various prefixes and suffixes, to ",
"list the dictionary entries around the unknown. This will likely ",
"catch a substantive for which only the ADJ stem appears in dictionary,",
"an ADJ for which there is only a N stem, etc. This option should ",
"probably only be used with individual UNKNOWN words, and off-line ",
"from full translations, therefore the default choice is N(o). ",
"This processing can be turned on with the choice of Y(es). " );
SAVE_PARAMETERS_HELP : constant HELP_TYPE := (
"This option instructs the program, to save the current parameters, as ",
"just established by the user, in a file WORD.MOD. If such a file ",
"exists, the program will load those parameters at the start. If no ",
"such file can be found in the current subdirectory, the program will ",
"start with a default set of parameters. Since this parameter file is ",
"human-readable ASCII, it may also be created with a text editor. If ",
"the file found has been improperly created, is in the wrong format, or",
"otherwise uninterpretable by the program, it will be ignored and the ",
"default parameters used, until a proper parameter file in written by ",
"the program. Since one may want to make temporary changes during a ",
"run, but revert to the usual set, the default is N(o). " );
procedure PUT(HELP : HELP_TYPE) is
begin
NEW_LINE;
for I in HELP'FIRST..HELP'LAST loop
PUT_LINE(HELP(I));
end loop;
NEW_LINE;
end PUT;
procedure PUT_MODES is
use MODE_TYPE_IO;
use REPLY_TYPE_IO;
begin
if IS_OPEN(MODE_FILE) then
CLOSE(MODE_FILE);
end if;
CREATE(MODE_FILE, OUT_FILE, MODE_FULL_NAME);
for I in WORDS_MODE'RANGE loop
PUT(MODE_FILE, I);
SET_COL(MODE_FILE, 35);
PUT(MODE_FILE, REPLY(WORDS_MODE(I)));
NEW_LINE(MODE_FILE);
end loop;
CLOSE(MODE_FILE);
end PUT_MODES;
procedure GET_MODES is --(M : out MODE_ARRAY) is
use MODE_TYPE_IO;
use REPLY_TYPE_IO;
MO : MODE_TYPE;
REP : REPLY_TYPE;
begin
OPEN(MODE_FILE, IN_FILE, MODE_FULL_NAME);
while not END_OF_FILE(MODE_FILE) loop
GET(MODE_FILE, MO);
GET(MODE_FILE, REP);
WORDS_MODE(MO) := MODE_OF_REPLY(REP);
end loop;
CLOSE(MODE_FILE);
exception
when NAME_ERROR =>
raise;
when others =>
raise BAD_MODE_FILE;
end GET_MODES;
procedure INQUIRE(MO : MODE_TYPE; HELP : in HELP_TYPE := NO_HELP) is
use MODE_TYPE_IO;
use REPLY_TYPE_IO;
L1 : STRING(1..100) := (others => ' ');
LL : NATURAL;
R : REPLY_TYPE;
begin
PUT(MO);
PUT(" ? "); SET_COL(45); PUT("(Currently ");
PUT(REPLY(WORDS_MODE(MO))); PUT(" =>");
GET_LINE(L1, LL);
if LL /= 0 then
if TRIM(L1(1..LL)) = "" then
PUT_LINE("Blank input, skipping the rest of CHANGE_PARAMETERS");
raise BLANK_INPUT;
elsif L1(1) = '?' then
PUT(HELP);
INQUIRE(MO, HELP);
else
GET(L1(1..LL), R, LL);
WORDS_MODE(MO) := MODE_OF_REPLY(R);
end if;
end if;
NEW_LINE;
end INQUIRE;
procedure CHANGE_PARAMETERS is
L1 : STRING(1..100) := (others => ' ');
LL : NATURAL;
R : REPLY_TYPE;
begin
PUT_LINE("To set/change parameters reply Y/y or N/n. Return accepts current value.");
PUT_LINE("A '?' reply gives infomation/help on that parameter. A space skips the rest.");
NEW_LINE;
-- Interactive mode - lets you do things on unknown words
-- You can say it is a noun and then look at the endings
-- Or look all the endings and guess what part of speech
-- You can look at the dictionary items that are close to the word
-- There may be cases in which the stem is found but is not of right part
-- So maybe the word list is deficient and that root goes also to a ADJ
-- even if it is listed only for a N.
-- One can also look for ADV here with ending 'e', etc.
-- You can look up the word in a paper dictionary (with the help of ending)
-- And then enter the word into DICT.LOC, so it will hit next time
-- All unknowns could be recorded in a file for later reference
-- A '?' gives information (help) about the item in question
-- One can change the symbol that the main program uses for change and file
-- One can save the new parameters or let them revert to previous
-- There should be a basic set of parameters that one can always go to
-- There should be moods of translation, maybe to switch dictionaries
-- Maybe to turn on or off pre/suffix
-- Maybe to allow the user to look at just all the prefixes that match
INQUIRE(TRIM_OUTPUT, TRIM_OUTPUT_HELP);
INQUIRE(HAVE_OUTPUT_FILE, HAVE_OUTPUT_FILE_HELP);
if IS_OPEN(OUTPUT) and then not WORDS_MODE(HAVE_OUTPUT_FILE) then
CLOSE(OUTPUT);
WORDS_MODE(WRITE_OUTPUT_TO_FILE) := FALSE;
end if;
if not IS_OPEN(OUTPUT) and then WORDS_MODE(HAVE_OUTPUT_FILE) then
begin
CREATE(OUTPUT, OUT_FILE, OUTPUT_FULL_NAME);
exception
when others =>
PUT_LINE("Cannot CREATE WORD.OUT - Check if it is in use elsewhere");
end;
end if;
if WORDS_MODE(HAVE_OUTPUT_FILE) then
INQUIRE(WRITE_OUTPUT_TO_FILE, WRITE_OUTPUT_TO_FILE_HELP);
end if;
INQUIRE(DO_UNKNOWNS_ONLY, DO_UNKNOWNS_ONLY_HELP);
INQUIRE(WRITE_UNKNOWNS_TO_FILE, WRITE_UNKNOWNS_TO_FILE_HELP);
-- If there is an open file then OK
-- If not open and you now want to start writing to UNKNOWNS, the CREATE
if not IS_OPEN(UNKNOWNS) and then WORDS_MODE(WRITE_UNKNOWNS_TO_FILE) then
begin
CREATE(UNKNOWNS, OUT_FILE, UNKNOWNS_FULL_NAME);
exception
when others =>
PUT_LINE("Cannot CREATE WORD.UNK - Check if it is in use elsewhere");
end;
end if;
INQUIRE(IGNORE_UNKNOWN_NAMES, IGNORE_UNKNOWN_NAMES_HELP);
INQUIRE(IGNORE_UNKNOWN_CAPS, IGNORE_UNKNOWN_CAPS_HELP);
INQUIRE(DO_COMPOUNDS, DO_COMPOUNDS_HELP);
INQUIRE(DO_FIXES, DO_FIXES_HELP);
INQUIRE(DO_TRICKS, DO_TRICKS_HELP);
INQUIRE(DO_DICTIONARY_FORMS, DO_DICTIONARY_FORMS_HELP);
INQUIRE(SHOW_AGE, SHOW_AGE_HELP);
INQUIRE(SHOW_FREQUENCY, SHOW_FREQUENCY_HELP);
INQUIRE(DO_EXAMPLES, DO_EXAMPLES_HELP);
INQUIRE(DO_ONLY_MEANINGS, DO_ONLY_MEANINGS_HELP);
INQUIRE(DO_STEMS_FOR_UNKNOWN, DO_STEMS_FOR_UNKNOWN_HELP);
PUT("Do you wish to save this set of parameters? Y or N (Default) ");
PUT(" =>");
GET_LINE(L1, LL);
if LL /= 0 then
if L1(1) = '?' then
PUT(SAVE_PARAMETERS_HELP);
PUT("Do you wish to save this set of parameters? Y or N (Default) ");
PUT(" =>");
GET_LINE(L1, LL);
end if;
REPLY_TYPE_IO.GET(L1(1..LL), R, LL);
if MODE_OF_REPLY(R) then
PUT_MODES;
PUT_LINE("MODE_ARRAY saved in file " & MODE_FULL_NAME);
end if;
end if;
NEW_LINE;
exception
when BLANK_INPUT =>
null;
when others =>
PUT_LINE("Bad input - terminating CHANGE_PARAMETERS");
end CHANGE_PARAMETERS;
procedure INITIALIZE_WORD_PARAMETERS is
begin
WORDS_MODE := DEFAULT_MODE_ARRAY;
--TEXT_IO.PUT_LINE("Initializing WORD_PARAMETERS");
DO_MODE_FILE:
begin
-- Read the mode file
GET_MODES; --(WORDS_MODE);
PREFACE.PUT_LINE("MODE_FILE found - Using those modes and parameters");
exception
-- If there is any problem
-- Put that the mode file is corrupted and the options are:
-- to proceed with default parameters
-- to set parameters with a CHANGE (SET) PARAMETERS and save
-- to examine the mode file with a text editor and try to repair it
when NAME_ERROR =>
WORDS_MODE := DEFAULT_MODE_ARRAY;
when BAD_MODE_FILE =>
PUT_LINE("MODE_FILE exists, but empty or corupted - Default modes used");
PUT_LINE("You can set new parameters with CHANGE PARAMETERS and save.");
WORDS_MODE := DEFAULT_MODE_ARRAY;
when others =>
PUT_LINE("MODE_FILE others ERROR");
WORDS_MODE := DEFAULT_MODE_ARRAY;
end DO_MODE_FILE;
if ((METHOD = INTERACTIVE) or (METHOD = COMMAND_LINE_INPUT)) and then
(not TEXT_IO.IS_OPEN(OUTPUT)) and then
(WORDS_MODE(HAVE_OUTPUT_FILE)) then
TEXT_IO.CREATE(OUTPUT, TEXT_IO.OUT_FILE, OUTPUT_FULL_NAME);
--TEXT_IO.PUT_LINE("WORD.OUT Created at Initialization");
PREFACE.PUT_LINE("WORD.OUT Created at Initialization");
end if;
if not TEXT_IO.IS_OPEN(UNKNOWNS) and then WORDS_MODE(WRITE_UNKNOWNS_TO_FILE) then
TEXT_IO.CREATE(UNKNOWNS, TEXT_IO.OUT_FILE, UNKNOWNS_FULL_NAME);
PREFACE.PUT_LINE("WORD.UNK Created at Initialization");
end if;
end INITIALIZE_WORD_PARAMETERS;
end WORD_PARAMETERS;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . A S Y N C H R O N O U S _ T A S K _ C O N T R O L --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- This is a dummy body, which will not normally be compiled when used with
-- standard versions of GNAT, which do not support this package. See comments
-- in spec for further details.
package body Ada.Asynchronous_Task_Control is
--------------
-- Continue --
--------------
procedure Continue (T : Ada.Task_Identification.Task_Id) is
begin
null;
end Continue;
----------
-- Hold --
----------
procedure Hold (T : Ada.Task_Identification.Task_Id) is
begin
raise Program_Error;
end Hold;
-------------
-- Is_Held --
-------------
function Is_Held (T : Ada.Task_Identification.Task_Id) return Boolean is
begin
return False;
end Is_Held;
end Ada.Asynchronous_Task_Control;
|
-- Copyright 2015 Steven Stewart-Gallus
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-- implied. See the License for the specific language governing
-- permissions and limitations under the License.
with Interfaces.C.Strings;
with System;
package Libc.Locale.GNU with
Spark_Mode => Off is
pragma Preelaborate;
type uu_locale_struct_uu_locales_array is array (0 .. 12) of System.Address;
type uu_locale_struct_uu_names_array is
array (0 .. 12) of Interfaces.C.Strings.chars_ptr;
type uu_locale_struct is record
uu_locales : aliased uu_locale_struct_uu_locales_array; -- /usr/include/xlocale.h:30
uu_ctype_b : access unsigned_short; -- /usr/include/xlocale.h:33
uu_ctype_tolower : access int; -- /usr/include/xlocale.h:34
uu_ctype_toupper : access int; -- /usr/include/xlocale.h:35
uu_names : aliased uu_locale_struct_uu_names_array; -- /usr/include/xlocale.h:38
end record;
pragma Convention
(C_Pass_By_Copy,
uu_locale_struct); -- /usr/include/xlocale.h:27
-- skipped empty struct uu_locale_data
type uu_locale_t is
access all uu_locale_struct; -- /usr/include/xlocale.h:39
subtype locale_t is uu_locale_t; -- /usr/include/xlocale.h:42
-- unsupported macro: LC_MESSAGES __LC_MESSAGES
-- unsupported macro: LC_PAPER __LC_PAPER
-- unsupported macro: LC_NAME __LC_NAME
-- unsupported macro: LC_ADDRESS __LC_ADDRESS
-- unsupported macro: LC_TELEPHONE __LC_TELEPHONE
-- unsupported macro: LC_MEASUREMENT __LC_MEASUREMENT
-- unsupported macro: LC_IDENTIFICATION __LC_IDENTIFICATION
-- unsupported macro: LC_CTYPE_MASK (1 << __LC_CTYPE)
-- unsupported macro: LC_NUMERIC_MASK (1 << __LC_NUMERIC)
-- unsupported macro: LC_TIME_MASK (1 << __LC_TIME)
-- unsupported macro: LC_COLLATE_MASK (1 << __LC_COLLATE)
-- unsupported macro: LC_MONETARY_MASK (1 << __LC_MONETARY)
-- unsupported macro: LC_MESSAGES_MASK (1 << __LC_MESSAGES)
-- unsupported macro: LC_PAPER_MASK (1 << __LC_PAPER)
-- unsupported macro: LC_NAME_MASK (1 << __LC_NAME)
-- unsupported macro: LC_ADDRESS_MASK (1 << __LC_ADDRESS)
-- unsupported macro: LC_TELEPHONE_MASK (1 << __LC_TELEPHONE)
-- unsupported macro: LC_MEASUREMENT_MASK (1 << __LC_MEASUREMENT)
-- unsupported macro: LC_IDENTIFICATION_MASK (1 << __LC_IDENTIFICATION)
-- unsupported macro: LC_ALL_MASK (LC_CTYPE_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_COLLATE_MASK | LC_MONETARY_MASK | LC_MESSAGES_MASK | LC_PAPER_MASK | LC_NAME_MASK | LC_ADDRESS_MASK | LC_TELEPHONE_MASK | LC_MEASUREMENT_MASK | LC_IDENTIFICATION_MASK )
-- unsupported macro: LC_GLOBAL_LOCALE ((__locale_t) -1L)
function newlocale
(category_mask : int;
locale : Interfaces.C.Strings.chars_ptr;
base : locale_t) return locale_t; -- /usr/include/locale.h:151
pragma Import (C, newlocale, "newlocale");
function duplocale
(dataset : locale_t) return locale_t; -- /usr/include/locale.h:186
pragma Import (C, duplocale, "duplocale");
procedure freelocale (dataset : locale_t); -- /usr/include/locale.h:190
pragma Import (C, freelocale, "freelocale");
function uselocale
(dataset : locale_t) return locale_t; -- /usr/include/locale.h:197
pragma Import (C, uselocale, "uselocale");
end Libc.Locale.GNU;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- G E T _ S P A R K _ X R E F S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2011-2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the function used to read SPARK cross-reference
-- information from an ALI file and populate the tables defined in package
-- SPARK_Xrefs with the result.
generic
-- These subprograms provide access to the ALI file. Locating, opening and
-- providing access to the ALI file is the callers' responsibility.
with function Getc return Character is <>;
-- Get next character, positioning the ALI file ready to read the following
-- character (equivalent to calling Nextc, then Skipc). If the end of file
-- is encountered, the value Types.EOF is returned.
with function Nextc return Character is <>;
-- Look at the next character, and return it, leaving the position of the
-- file unchanged, so that a subsequent call to Getc or Nextc will return
-- this same character. If the file is positioned at the end of file, then
-- Types.EOF is returned.
with procedure Skipc is <>;
-- Skip past the current character (which typically was read with Nextc),
-- and position to the next character, which will be returned by the next
-- call to Getc or Nextc.
procedure Get_SPARK_Xrefs;
-- Load SPARK cross-reference information from ALI file text format into
-- internal SPARK tables (SPARK_Xrefs.SPARK_Xref_Table,
-- SPARK_Xrefs.SPARK_Scope_Table and SPARK_Xrefs.SPARK_File_Table). On entry
-- the input file is positioned to the initial 'F' of the first SPARK specific
-- line in the ALI file. On return, the file is positioned either to the end
-- of file, or to the first character of the line following the SPARK specific
-- information (which will never start with an 'F').
--
-- If a format error is detected in the input, then an exception is raised
-- (Ada.IO_Exceptions.Data_Error), with the file positioned to the error.
|
pragma Ada_2012;
with Protypo.Code_Trees.Interpreter.Compiled_Functions;
with Protypo.Code_Trees.Interpreter.Names;
with Protypo.Code_Trees.Interpreter.Expressions;
with Protypo.Api.Engine_Values.Handlers;
with Ada.Exceptions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_Io; use Ada.Text_Io;
package body Protypo.Code_Trees.Interpreter.Statements is
use type Names.Name_Reference;
---------
-- Run --
---------
procedure Run (Status : Interpreter_Access;
Program : Node_Vectors.Vector)
is
begin
for Statement of Program loop
Run (Status, Statement);
if Status.Break.Breaking_Reason /= None then
return;
end if;
end loop;
end Run;
function Is_True (X : Engine_Value) return Boolean
is (if X.Class in Numeric_Classes then
(case Numeric_Classes (X.Class) is
when Int => Get_Integer (X) /= 0,
when Real => Get_Float (X) /= 0.0)
else
raise Run_Time_Error
with "Trying to convert non-numeric value ("
& X.Class'Image & ") to Boolean");
package Lhs_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Names.Name_Reference);
procedure Do_Procedure_Call (Status : Interpreter_Access;
Name : Unbounded_Id;
Params : Node_Vectors.Vector)
is
use Api.Symbols.Protypo_Tables;
use type Ada.Containers.Count_Type;
Position : constant Cursor :=
Status.Symbol_Table.Find (Id (To_String (Name)));
begin
if Position = No_Element then
raise Constraint_Error with
"Unknown function '" & To_String (Name) & "'";
end if;
declare
Proc_Handler : constant Engine_Value := Value (Position);
begin
if Proc_Handler.Class /= Function_Handler then
raise Constraint_Error;
end if;
declare
Funct : constant Protypo.Api.Engine_Values.Handlers.Function_Interface_Access :=
Handlers.Get_Function (Proc_Handler);
Parameters : constant Engine_Value_Vectors.Vector :=
Expressions.Eval_Vector (Status, Params);
Call_Ref : constant Names.Name_Reference :=
(Class => Names.Function_Call,
Function_Handler => Funct,
Parameters => Parameters);
Result : constant Engine_Value_Vectors.Vector :=
Expressions.Call_Function (Call_Ref);
begin
if Result.Length /= 0 then
raise Run_Time_Error with "Procedure call returns a value";
end if;
end;
end;
end Do_Procedure_Call;
---------
-- Run --
---------
procedure Run (Status : Interpreter_Access;
Program : not null Node_Access)
is
use Compiled_Functions;
subtype Lhs_Array is Lhs_Vectors.Vector;
type Continue_Or_Stop is (Continue, Stop);
function Run_Loop_Body (Status : Interpreter_Access;
Program : not null Node_Access)
return Continue_Or_Stop
with Pre => Program.Class in Loop_Block .. While_Block;
function Run_Loop_Body (Status : Interpreter_Access;
Program : not null Node_Access)
return Continue_Or_Stop
is
begin
Run (Status, Program.Loop_Body);
case Status.Break.Breaking_Reason is
when None =>
return Continue;
when Return_Statement =>
return Stop;
when Exit_Statement =>
if Status.Break.Loop_Label = Program.Labl
or Status.Break.Loop_Label = Null_Unbounded_String
then
Status.Break := No_Break;
end if;
return Stop;
end case;
end Run_Loop_Body;
begin
if Program.Class not in Statement_Classes then
raise Program_Error
with "Trying to execute a non-statment node ("
& Program.Class'Image & ")";
end if;
case Statement_Classes (Program.Class) is
when Statement_Sequence =>
Run (Status, Program.Statements);
when Defun =>
Status.Symbol_Table.Create
(Name =>
Id (To_String (Program.Definition_Name)),
Initial_Value =>
Handlers.Create (new Compiled_Function'(Function_Body => Program.Function_Body,
Parameters => Program.Parameters,
Status => Status)));
when Assignment =>
declare
use type Ada.Containers.Count_Type;
use type Names.Value_Name_Class;
Values : Engine_Value_Vectors.Vector;
Lhs : Lhs_Array;
begin
Values := Expressions.Eval_Vector (Status, Program.Rvalues);
if Program.Lhs.Length /= Values.Length then
raise Run_Time_Error
with "Assignment with "
& Program.Lhs.Length'Image & " LHS terms and "
& Values.Length'Image & " RHS terms";
end if;
-- Put_Line ("[" & Program.Lhs.First_Index'Image & Program.Lhs.Last_Index'Image);
for Name of Program.Lhs loop
--
-- We first evaluate all the names and only after we do all
-- the assignment because we could have something like
--
-- n := 3;
-- n, x(n) := 4, 7;
--
-- In this case, with the separation of name evaluation and
-- assignment, 7 is assigned to x(3), while if we did not
-- do this, 7 would be assigned to x(4).
--
-- To be honest, there is not anything deeply wrong with
-- second option (that assigns to x(4)), as long as
-- we know it. However, I think that the first one is
-- more intuitive: first all the left hand names are
-- evaluated, then the RHS expressions are computed
-- (with the variable values still unchanged) and finally
-- the assigment is done-
--
-- Put_Line ("@@@");
Lhs.Append (Names.Eval_Name (Status, Name));
-- Put_Line ("@@@ 1");
if Lhs.Last_Element.Class /= Names.Variable_Reference then
--
-- Only reference handlers (that allow for both reading
-- and writing) can be on the LHS
--
raise Run_Time_Error
with
"Found " & Lhs.Last_Element.Class'Image & " on LHS";
end if;
end loop;
-- Put_Line ("@@@ xx");
declare
Shift : constant Integer := Values.First_Index - Lhs.First_Index;
begin
for K in Lhs.First_Index .. Lhs.Last_Index loop
Lhs (K).Variable_Handler.Write (Values (K + Shift));
end loop;
-- Put_Line ("@@@ uu");
end;
end;
when Return_Statement =>
Status.Break :=
Break_Status'(Breaking_Reason => Return_Statement,
Result => Expressions.Eval_Vector (Status, Program.Return_Values));
return;
when Procedure_Call =>
Do_Procedure_Call (Status, Program.Name, Program.Params);
when Exit_Statement =>
Status.Break :=
Break_Status'(Breaking_Reason => Exit_Statement,
Loop_Label => Program.Loop_Label);
return;
when If_Block =>
for Branch of Program.Branches loop
if Is_True (Expressions.Eval_Scalar (Status, Branch.Condition)) then
Run (Status, Branch.Code);
return;
end if;
end loop;
if Program.Else_Branch /= null then
Run (Status, Program.Else_Branch);
end if;
when Loop_Block =>
loop
exit when Run_Loop_Body (Status, Program) = Stop;
end loop;
when For_Block =>
declare
use Api.Symbols;
Iterator_Ref : constant handlers.Iterator_Interface_Access :=
Expressions.Eval_Iterator (Status, Program.Iterator);
Variable : constant Id := Id (To_String (Program.Variable));
Position : Protypo_Tables.Cursor;
begin
Iterator_Ref.Reset;
Status.Symbol_Table.Open_Internal_Namespace;
Status.Symbol_Table.Create
(Name => Variable,
Initial_Value => Void_Value,
Position => Position);
loop
exit when Iterator_Ref.End_Of_Iteration;
Protypo_Tables.Update (Pos => Position,
New_Value => Iterator_Ref.Element);
exit when Run_Loop_Body (Status, Program) = Stop;
Iterator_Ref.Next;
end loop;
Status.Symbol_Table.Close_Namespace;
end;
when While_Block =>
loop
exit when not Is_True (Expressions.Eval_Scalar (Status, Program.Condition));
exit when Run_Loop_Body (Status, Program) = Stop;
end loop;
end case;
exception
when E : Bad_Iterator | Bad_Field =>
raise Run_Time_Error with Ada.Exceptions.Exception_Message (E)
& " at "
& Tokens.Image (Program.Source_Position, False);
when E : Run_Time_Error =>
raise Run_Time_Error with Ada.Exceptions.Exception_Message (E)
& ", "
& Tokens.Image (Program.Source_Position, False);
end Run;
end Protypo.Code_Trees.Interpreter.Statements;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- A D A B K E N D --
-- --
-- B o d y --
-- --
-- Copyright (C) 2001-2019, 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
------------------------------------------------------------------------------
-- This is the version of the Back_End package for back ends written in Ada
with Atree; use Atree;
with Debug;
with Lib;
with Opt; use Opt;
with Output; use Output;
with Osint; use Osint;
with Osint.C; use Osint.C;
with Switch.C; use Switch.C;
with Types; use Types;
with System.OS_Lib; use System.OS_Lib;
package body Adabkend is
use Switch;
-------------------
-- Call_Back_End --
-------------------
procedure Call_Back_End is
begin
if (Opt.Verbose_Mode or Opt.Full_List)
and then not Debug.Debug_Flag_7
then
Write_Eol;
Write_Str (Product_Name);
Write_Str (", Copyright ");
Write_Str (Copyright_Years);
Write_Str (" Ada Core Technologies, Inc.");
Write_Str (" (http://www.adacore.com)");
Write_Eol;
Write_Eol;
end if;
-- The front end leaves the Current_Error_Node at a location that is
-- meaningless and confusing when emitting bug boxes from the back end.
-- Reset the global variable in order to emit "No source file position
-- information available" messages on back end crashes.
Current_Error_Node := Empty;
Driver (Lib.Cunit (Types.Main_Unit));
end Call_Back_End;
-----------------------------
-- Scan_Compiler_Arguments --
-----------------------------
procedure Scan_Compiler_Arguments is
Output_File_Name_Seen : Boolean := False;
-- Set to True after having scanned the file_name for switch
-- "-gnatO file_name"
Argument_Count : constant Integer := Arg_Count - 1;
-- Number of arguments (excluding program name)
Args : Argument_List (1 .. Argument_Count);
Next_Arg : Positive := 1;
procedure Scan_Back_End_Switches (Switch_Chars : String);
-- Procedure to scan out switches stored in Switch_Chars. The first
-- character is known to be a valid switch character, and there are no
-- blanks or other switch terminator characters in the string, so the
-- entire string should consist of valid switch characters, except that
-- an optional terminating NUL character is allowed.
--
-- If the switch is not valid, control will not return. The switches
-- must still be scanned to skip the "-o" arguments, or internal GCC
-- switches, which may be safely ignored by other back ends.
----------------------------
-- Scan_Back_End_Switches --
----------------------------
procedure Scan_Back_End_Switches (Switch_Chars : String) is
First : constant Positive := Switch_Chars'First + 1;
Last : constant Natural := Switch_Last (Switch_Chars);
begin
-- Process any back end switches, returning if the switch does not
-- affect code generation or falling through if it does, so the
-- switch will get stored.
-- Skip -o, -G or internal GCC switches together with their argument.
if Switch_Chars (First .. Last) = "o"
or else Switch_Chars (First .. Last) = "G"
or else Is_Internal_GCC_Switch (Switch_Chars)
then
Next_Arg := Next_Arg + 1;
return; -- ignore this switch
-- Set optimization indicators appropriately. In gcc-based GNAT this
-- is picked up from imported variables set by the gcc driver, but
-- for compilers with non-gcc back ends we do it here to allow use
-- of these switches by the front end. Allowed optimization switches
-- are -Os (optimize for size), -O[0123], and -O (same as -O1).
elsif Switch_Chars (First) = 'O' then
if First = Last then
Optimization_Level := 1;
elsif Last - First = 1 then
if Switch_Chars (Last) = 's' then
Optimize_Size := 1;
Optimization_Level := 2; -- Consistent with gcc setting
elsif Switch_Chars (Last) in '0' .. '3' then
Optimization_Level :=
Character'Pos (Switch_Chars (Last)) - Character'Pos ('0');
else
Fail ("invalid switch: " & Switch_Chars);
end if;
else
Fail ("invalid switch: " & Switch_Chars);
end if;
elsif Switch_Chars (First .. Last) = "quiet" then
return; -- ignore this switch
elsif Switch_Chars (First .. Last) = "c" then
return; -- ignore this switch
-- The -x switch and its language name argument will generally be
-- ignored by non-gcc back ends. In any case, we save the switch and
-- argument in the compilation switches.
elsif Switch_Chars (First .. Last) = "x" then
Lib.Store_Compilation_Switch (Switch_Chars);
Next_Arg := Next_Arg + 1;
declare
Argv : constant String := Args (Next_Arg).all;
begin
if Is_Switch (Argv) then
Fail ("language name missing after -x");
else
Lib.Store_Compilation_Switch (Argv);
end if;
end;
return;
-- Special check, the back end switch -fno-inline also sets the
-- front end flags to entirely inhibit all inlining. So we store it
-- and set the appropriate flags.
elsif Switch_Chars (First .. Last) = "fno-inline" then
Lib.Store_Compilation_Switch (Switch_Chars);
Opt.Disable_FE_Inline := True;
Opt.Disable_FE_Inline_Always := True;
return;
-- Similar processing for -fpreserve-control-flow
elsif Switch_Chars (First .. Last) = "fpreserve-control-flow" then
Lib.Store_Compilation_Switch (Switch_Chars);
Opt.Suppress_Control_Flow_Optimizations := True;
return;
-- Recognize -gxxx switches
elsif Switch_Chars (First) = 'g' then
Debugger_Level := 2;
if First < Last then
case Switch_Chars (First + 1) is
when '0' =>
Debugger_Level := 0;
when '1' =>
Debugger_Level := 1;
when '2' =>
Debugger_Level := 2;
when '3' =>
Debugger_Level := 3;
when others =>
null;
end case;
end if;
-- Ignore all other back end switches
elsif Is_Back_End_Switch (Switch_Chars) then
null;
-- Give error for junk switch
else
Fail ("invalid switch: " & Switch_Chars);
end if;
-- Store any other GCC switches
Lib.Store_Compilation_Switch (Switch_Chars);
end Scan_Back_End_Switches;
-- Start of processing for Scan_Compiler_Args
begin
-- Put all the arguments in argument list Args
for Arg in 1 .. Argument_Count loop
declare
Argv : String (1 .. Len_Arg (Arg));
begin
Fill_Arg (Argv'Address, Arg);
Args (Arg) := new String'(Argv);
end;
end loop;
-- Loop through command line arguments, storing them for later access
while Next_Arg <= Argument_Count loop
Look_At_Arg : declare
Argv : constant String := Args (Next_Arg).all;
begin
if Argv'Length = 0 then
Fail ("Empty argument");
end if;
-- If the previous switch has set the Output_File_Name_Present
-- flag (that is we have seen a -gnatO), then the next argument
-- is the name of the output object file.
if Opt.Output_File_Name_Present
and then not Output_File_Name_Seen
then
if Is_Switch (Argv) then
Fail ("Object file name missing after -gnatO");
else
Set_Output_Object_File_Name (Argv);
Output_File_Name_Seen := True;
end if;
-- If the previous switch has set the Search_Directory_Present
-- flag (that is if we have just seen -I), then the next
-- argument is a search directory path.
elsif Search_Directory_Present then
if Is_Switch (Argv) then
Fail ("search directory missing after -I");
else
Add_Src_Search_Dir (Argv);
-- Add directory to lib search so that back end can take as
-- input ALI files if needed. Otherwise this won't have any
-- impact on the compiler.
Add_Lib_Search_Dir (Argv);
Search_Directory_Present := False;
end if;
-- If not a switch, must be a file name
elsif not Is_Switch (Argv) then
Add_File (Argv);
-- We must recognize -nostdinc to suppress visibility on the
-- standard GNAT RTL sources.
elsif Argv (Argv'First + 1 .. Argv'Last) = "nostdinc" then
Opt.No_Stdinc := True;
-- Front end switch
elsif Is_Front_End_Switch (Argv) then
Scan_Front_End_Switches (Argv, Args, Next_Arg);
-- All non-front-end switches are back-end switches
else
Scan_Back_End_Switches (Argv);
end if;
end Look_At_Arg;
Next_Arg := Next_Arg + 1;
end loop;
end Scan_Compiler_Arguments;
end Adabkend; |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2015, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This package provides implementation of codecs for 'baseXX' encoding
-- according to RFC 4648.
--
-- Supported encodings:
-- - base64
-- - base64url
------------------------------------------------------------------------------
with League.Stream_Element_Vectors;
with League.Strings;
package League.Base_Codecs is
pragma Preelaborate;
------------
-- base64 --
------------
function To_Base_64
(Data : League.Stream_Element_Vectors.Stream_Element_Vector)
return League.Strings.Universal_String;
-- Converts binary data into base64 textual representation. It doesn't
-- insert any line feeds.
function From_Base_64
(Data : League.Strings.Universal_String)
return League.Stream_Element_Vectors.Stream_Element_Vector;
-- Converts base64 textual representation of data into original binary
-- form. This subprogram doesn't handle line feed. Raises Constraint_Error
-- when Data can't be converted.
procedure From_Base_64
(Data : League.Strings.Universal_String;
Value : in out League.Stream_Element_Vectors.Stream_Element_Vector;
Success : out Boolean);
-- Converts base64 textual representation of data into original binary
-- form. This subprogram doesn't handle line feed. Sets Success to False
-- when Data can't be converted.
---------------
-- base64url --
---------------
function To_Base_64_URL
(Data : League.Stream_Element_Vectors.Stream_Element_Vector)
return League.Strings.Universal_String;
-- Converts binary data into base64 textual representation. It doesn't
-- insert any line feeds.
function From_Base_64_URL
(Data : League.Strings.Universal_String)
return League.Stream_Element_Vectors.Stream_Element_Vector;
-- Converts base64url textual representation of data into original binary
-- form. This subprogram doesn't handle line feed. Raises Constraint_Error
-- when Data can't be converted.
procedure From_Base_64_URL
(Data : League.Strings.Universal_String;
Value : in out League.Stream_Element_Vectors.Stream_Element_Vector;
Success : out Boolean);
-- Converts base64url textual representation of data into original binary
-- form. This subprogram doesn't handle line feed. Sets Success to False
-- when Data can't be converted.
end League.Base_Codecs;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . F A T _ G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- The implementation here is portable to any IEEE implementation. It does
-- not handle nonbinary radix, and also assumes that model numbers and
-- machine numbers are basically identical, which is not true of all possible
-- floating-point implementations. On a non-IEEE machine, this body must be
-- specialized appropriately, or better still, its generic instantiations
-- should be replaced by efficient machine-specific code.
with Ada.Unchecked_Conversion;
with System;
package body System.Fat_Gen is
Float_Radix : constant T := T (T'Machine_Radix);
Radix_To_M_Minus_1 : constant T := Float_Radix ** (T'Machine_Mantissa - 1);
pragma Assert (T'Machine_Radix = 2);
-- This version does not handle radix 16
-- Constants for Decompose and Scaling
Rad : constant T := T (T'Machine_Radix);
Invrad : constant T := 1.0 / Rad;
subtype Expbits is Integer range 0 .. 6;
-- 2 ** (2 ** 7) might overflow. How big can radix-16 exponents get?
Log_Power : constant array (Expbits) of Integer := (1, 2, 4, 8, 16, 32, 64);
R_Power : constant array (Expbits) of T :=
(Rad ** 1,
Rad ** 2,
Rad ** 4,
Rad ** 8,
Rad ** 16,
Rad ** 32,
Rad ** 64);
R_Neg_Power : constant array (Expbits) of T :=
(Invrad ** 1,
Invrad ** 2,
Invrad ** 4,
Invrad ** 8,
Invrad ** 16,
Invrad ** 32,
Invrad ** 64);
-----------------------
-- Local Subprograms --
-----------------------
procedure Decompose (XX : T; Frac : out T; Expo : out UI);
-- Decomposes a floating-point number into fraction and exponent parts.
-- Both results are signed, with Frac having the sign of XX, and UI has
-- the sign of the exponent. The absolute value of Frac is in the range
-- 0.0 <= Frac < 1.0. If Frac = 0.0 or -0.0, then Expo is always zero.
function Gradual_Scaling (Adjustment : UI) return T;
-- Like Scaling with a first argument of 1.0, but returns the smallest
-- denormal rather than zero when the adjustment is smaller than
-- Machine_Emin. Used for Succ and Pred.
--------------
-- Adjacent --
--------------
function Adjacent (X, Towards : T) return T is
begin
if Towards = X then
return X;
elsif Towards > X then
return Succ (X);
else
return Pred (X);
end if;
end Adjacent;
-------------
-- Ceiling --
-------------
function Ceiling (X : T) return T is
XT : constant T := Truncation (X);
begin
if X <= 0.0 then
return XT;
elsif X = XT then
return X;
else
return XT + 1.0;
end if;
end Ceiling;
-------------
-- Compose --
-------------
function Compose (Fraction : T; Exponent : UI) return T is
Arg_Frac : T;
Arg_Exp : UI;
pragma Unreferenced (Arg_Exp);
begin
Decompose (Fraction, Arg_Frac, Arg_Exp);
return Scaling (Arg_Frac, Exponent);
end Compose;
---------------
-- Copy_Sign --
---------------
function Copy_Sign (Value, Sign : T) return T is
Result : T;
function Is_Negative (V : T) return Boolean;
pragma Import (Intrinsic, Is_Negative);
begin
Result := abs Value;
if Is_Negative (Sign) then
return -Result;
else
return Result;
end if;
end Copy_Sign;
---------------
-- Decompose --
---------------
procedure Decompose (XX : T; Frac : out T; Expo : out UI) is
X : constant T := T'Machine (XX);
begin
if X = 0.0 then
-- The normalized exponent of zero is zero, see RM A.5.2(15)
Frac := X;
Expo := 0;
-- Check for infinities, transfinites, whatnot
elsif X > T'Safe_Last then
Frac := Invrad;
Expo := T'Machine_Emax + 1;
elsif X < T'Safe_First then
Frac := -Invrad;
Expo := T'Machine_Emax + 2; -- how many extra negative values?
else
-- Case of nonzero finite x. Essentially, we just multiply
-- by Rad ** (+-2**N) to reduce the range.
declare
Ax : T := abs X;
Ex : UI := 0;
-- Ax * Rad ** Ex is invariant
begin
if Ax >= 1.0 then
while Ax >= R_Power (Expbits'Last) loop
Ax := Ax * R_Neg_Power (Expbits'Last);
Ex := Ex + Log_Power (Expbits'Last);
end loop;
-- Ax < Rad ** 64
for N in reverse Expbits'First .. Expbits'Last - 1 loop
if Ax >= R_Power (N) then
Ax := Ax * R_Neg_Power (N);
Ex := Ex + Log_Power (N);
end if;
-- Ax < R_Power (N)
end loop;
-- 1 <= Ax < Rad
Ax := Ax * Invrad;
Ex := Ex + 1;
else
-- 0 < ax < 1
while Ax < R_Neg_Power (Expbits'Last) loop
Ax := Ax * R_Power (Expbits'Last);
Ex := Ex - Log_Power (Expbits'Last);
end loop;
-- Rad ** -64 <= Ax < 1
for N in reverse Expbits'First .. Expbits'Last - 1 loop
if Ax < R_Neg_Power (N) then
Ax := Ax * R_Power (N);
Ex := Ex - Log_Power (N);
end if;
-- R_Neg_Power (N) <= Ax < 1
end loop;
end if;
Frac := (if X > 0.0 then Ax else -Ax);
Expo := Ex;
end;
end if;
end Decompose;
--------------
-- Exponent --
--------------
function Exponent (X : T) return UI is
X_Frac : T;
X_Exp : UI;
pragma Unreferenced (X_Frac);
begin
Decompose (X, X_Frac, X_Exp);
return X_Exp;
end Exponent;
-----------
-- Floor --
-----------
function Floor (X : T) return T is
XT : constant T := Truncation (X);
begin
if X >= 0.0 then
return XT;
elsif XT = X then
return X;
else
return XT - 1.0;
end if;
end Floor;
--------------
-- Fraction --
--------------
function Fraction (X : T) return T is
X_Frac : T;
X_Exp : UI;
pragma Unreferenced (X_Exp);
begin
Decompose (X, X_Frac, X_Exp);
return X_Frac;
end Fraction;
---------------------
-- Gradual_Scaling --
---------------------
function Gradual_Scaling (Adjustment : UI) return T is
Y : T;
Y1 : T;
Ex : UI := Adjustment;
begin
if Adjustment < T'Machine_Emin - 1 then
Y := 2.0 ** T'Machine_Emin;
Y1 := Y;
Ex := Ex - T'Machine_Emin;
while Ex < 0 loop
Y := T'Machine (Y / 2.0);
if Y = 0.0 then
return Y1;
end if;
Ex := Ex + 1;
Y1 := Y;
end loop;
return Y1;
else
return Scaling (1.0, Adjustment);
end if;
end Gradual_Scaling;
------------------
-- Leading_Part --
------------------
function Leading_Part (X : T; Radix_Digits : UI) return T is
L : UI;
Y, Z : T;
begin
if Radix_Digits >= T'Machine_Mantissa then
return X;
elsif Radix_Digits <= 0 then
raise Constraint_Error;
else
L := Exponent (X) - Radix_Digits;
Y := Truncation (Scaling (X, -L));
Z := Scaling (Y, L);
return Z;
end if;
end Leading_Part;
-------------
-- Machine --
-------------
-- The trick with Machine is to force the compiler to store the result
-- in memory so that we do not have extra precision used. The compiler
-- is clever, so we have to outwit its possible optimizations. We do
-- this by using an intermediate pragma Volatile location.
function Machine (X : T) return T is
Temp : T;
pragma Volatile (Temp);
begin
Temp := X;
return Temp;
end Machine;
----------------------
-- Machine_Rounding --
----------------------
-- For now, the implementation is identical to that of Rounding, which is
-- a permissible behavior, but is not the most efficient possible approach.
function Machine_Rounding (X : T) return T is
Result : T;
Tail : T;
begin
Result := Truncation (abs X);
Tail := abs X - Result;
if Tail >= 0.5 then
Result := Result + 1.0;
end if;
if X > 0.0 then
return Result;
elsif X < 0.0 then
return -Result;
-- For zero case, make sure sign of zero is preserved
else
return X;
end if;
end Machine_Rounding;
-----------
-- Model --
-----------
-- We treat Model as identical to Machine. This is true of IEEE and other
-- nice floating-point systems, but not necessarily true of all systems.
function Model (X : T) return T is
begin
return Machine (X);
end Model;
----------
-- Pred --
----------
function Pred (X : T) return T is
X_Frac : T;
X_Exp : UI;
begin
-- Zero has to be treated specially, since its exponent is zero
if X = 0.0 then
return -Succ (X);
-- Special treatment for most negative number
elsif X = T'First then
-- If not generating infinities, we raise a constraint error
if T'Machine_Overflows then
raise Constraint_Error with "Pred of largest negative number";
-- Otherwise generate a negative infinity
else
return X / (X - X);
end if;
-- For infinities, return unchanged
elsif X < T'First or else X > T'Last then
return X;
-- Subtract from the given number a number equivalent to the value
-- of its least significant bit. Given that the most significant bit
-- represents a value of 1.0 * radix ** (exp - 1), the value we want
-- is obtained by shifting this by (mantissa-1) bits to the right,
-- i.e. decreasing the exponent by that amount.
else
Decompose (X, X_Frac, X_Exp);
-- A special case, if the number we had was a positive power of
-- two, then we want to subtract half of what we would otherwise
-- subtract, since the exponent is going to be reduced.
-- Note that X_Frac has the same sign as X, so if X_Frac is 0.5,
-- then we know that we have a positive number (and hence a
-- positive power of 2).
if X_Frac = 0.5 then
return X - Gradual_Scaling (X_Exp - T'Machine_Mantissa - 1);
-- Otherwise the exponent is unchanged
else
return X - Gradual_Scaling (X_Exp - T'Machine_Mantissa);
end if;
end if;
end Pred;
---------------
-- Remainder --
---------------
function Remainder (X, Y : T) return T is
A : T;
B : T;
Arg : T;
P : T;
P_Frac : T;
Sign_X : T;
IEEE_Rem : T;
Arg_Exp : UI;
P_Exp : UI;
K : UI;
P_Even : Boolean;
Arg_Frac : T;
pragma Unreferenced (Arg_Frac);
begin
if Y = 0.0 then
raise Constraint_Error;
end if;
if X > 0.0 then
Sign_X := 1.0;
Arg := X;
else
Sign_X := -1.0;
Arg := -X;
end if;
P := abs Y;
if Arg < P then
P_Even := True;
IEEE_Rem := Arg;
P_Exp := Exponent (P);
else
Decompose (Arg, Arg_Frac, Arg_Exp);
Decompose (P, P_Frac, P_Exp);
P := Compose (P_Frac, Arg_Exp);
K := Arg_Exp - P_Exp;
P_Even := True;
IEEE_Rem := Arg;
for Cnt in reverse 0 .. K loop
if IEEE_Rem >= P then
P_Even := False;
IEEE_Rem := IEEE_Rem - P;
else
P_Even := True;
end if;
P := P * 0.5;
end loop;
end if;
-- That completes the calculation of modulus remainder. The final
-- step is get the IEEE remainder. Here we need to compare Rem with
-- (abs Y) / 2. We must be careful of unrepresentable Y/2 value
-- caused by subnormal numbers
if P_Exp >= 0 then
A := IEEE_Rem;
B := abs Y * 0.5;
else
A := IEEE_Rem * 2.0;
B := abs Y;
end if;
if A > B or else (A = B and then not P_Even) then
IEEE_Rem := IEEE_Rem - abs Y;
end if;
return Sign_X * IEEE_Rem;
end Remainder;
--------------
-- Rounding --
--------------
function Rounding (X : T) return T is
Result : T;
Tail : T;
begin
Result := Truncation (abs X);
Tail := abs X - Result;
if Tail >= 0.5 then
Result := Result + 1.0;
end if;
if X > 0.0 then
return Result;
elsif X < 0.0 then
return -Result;
-- For zero case, make sure sign of zero is preserved
else
return X;
end if;
end Rounding;
-------------
-- Scaling --
-------------
-- Return x * rad ** adjustment quickly, or quietly underflow to zero,
-- or overflow naturally.
function Scaling (X : T; Adjustment : UI) return T is
begin
if X = 0.0 or else Adjustment = 0 then
return X;
end if;
-- Nonzero x essentially, just multiply repeatedly by Rad ** (+-2**n)
declare
Y : T := X;
Ex : UI := Adjustment;
-- Y * Rad ** Ex is invariant
begin
if Ex < 0 then
while Ex <= -Log_Power (Expbits'Last) loop
Y := Y * R_Neg_Power (Expbits'Last);
Ex := Ex + Log_Power (Expbits'Last);
end loop;
-- -64 < Ex <= 0
for N in reverse Expbits'First .. Expbits'Last - 1 loop
if Ex <= -Log_Power (N) then
Y := Y * R_Neg_Power (N);
Ex := Ex + Log_Power (N);
end if;
-- -Log_Power (N) < Ex <= 0
end loop;
-- Ex = 0
else
-- Ex >= 0
while Ex >= Log_Power (Expbits'Last) loop
Y := Y * R_Power (Expbits'Last);
Ex := Ex - Log_Power (Expbits'Last);
end loop;
-- 0 <= Ex < 64
for N in reverse Expbits'First .. Expbits'Last - 1 loop
if Ex >= Log_Power (N) then
Y := Y * R_Power (N);
Ex := Ex - Log_Power (N);
end if;
-- 0 <= Ex < Log_Power (N)
end loop;
-- Ex = 0
end if;
return Y;
end;
end Scaling;
----------
-- Succ --
----------
function Succ (X : T) return T is
X_Frac : T;
X_Exp : UI;
X1, X2 : T;
begin
-- Treat zero specially since it has a zero exponent
if X = 0.0 then
X1 := 2.0 ** T'Machine_Emin;
-- Following loop generates smallest denormal
loop
X2 := T'Machine (X1 / 2.0);
exit when X2 = 0.0;
X1 := X2;
end loop;
return X1;
-- Special treatment for largest positive number
elsif X = T'Last then
-- If not generating infinities, we raise a constraint error
if T'Machine_Overflows then
raise Constraint_Error with "Succ of largest negative number";
-- Otherwise generate a positive infinity
else
return X / (X - X);
end if;
-- For infinities, return unchanged
elsif X < T'First or else X > T'Last then
return X;
-- Add to the given number a number equivalent to the value
-- of its least significant bit. Given that the most significant bit
-- represents a value of 1.0 * radix ** (exp - 1), the value we want
-- is obtained by shifting this by (mantissa-1) bits to the right,
-- i.e. decreasing the exponent by that amount.
else
Decompose (X, X_Frac, X_Exp);
-- A special case, if the number we had was a negative power of two,
-- then we want to add half of what we would otherwise add, since the
-- exponent is going to be reduced.
-- Note that X_Frac has the same sign as X, so if X_Frac is -0.5,
-- then we know that we have a negative number (and hence a negative
-- power of 2).
if X_Frac = -0.5 then
return X + Gradual_Scaling (X_Exp - T'Machine_Mantissa - 1);
-- Otherwise the exponent is unchanged
else
return X + Gradual_Scaling (X_Exp - T'Machine_Mantissa);
end if;
end if;
end Succ;
----------------
-- Truncation --
----------------
-- The basic approach is to compute
-- T'Machine (RM1 + N) - RM1
-- where N >= 0.0 and RM1 = radix ** (mantissa - 1)
-- This works provided that the intermediate result (RM1 + N) does not
-- have extra precision (which is why we call Machine). When we compute
-- RM1 + N, the exponent of N will be normalized and the mantissa shifted
-- shifted appropriately so the lower order bits, which cannot contribute
-- to the integer part of N, fall off on the right. When we subtract RM1
-- again, the significant bits of N are shifted to the left, and what we
-- have is an integer, because only the first e bits are different from
-- zero (assuming binary radix here).
function Truncation (X : T) return T is
Result : T;
begin
Result := abs X;
if Result >= Radix_To_M_Minus_1 then
return Machine (X);
else
Result := Machine (Radix_To_M_Minus_1 + Result) - Radix_To_M_Minus_1;
if Result > abs X then
Result := Result - 1.0;
end if;
if X > 0.0 then
return Result;
elsif X < 0.0 then
return -Result;
-- For zero case, make sure sign of zero is preserved
else
return X;
end if;
end if;
end Truncation;
-----------------------
-- Unbiased_Rounding --
-----------------------
function Unbiased_Rounding (X : T) return T is
Abs_X : constant T := abs X;
Result : T;
Tail : T;
begin
Result := Truncation (Abs_X);
Tail := Abs_X - Result;
if Tail > 0.5 then
Result := Result + 1.0;
elsif Tail = 0.5 then
Result := 2.0 * Truncation ((Result / 2.0) + 0.5);
end if;
if X > 0.0 then
return Result;
elsif X < 0.0 then
return -Result;
-- For zero case, make sure sign of zero is preserved
else
return X;
end if;
end Unbiased_Rounding;
-----------
-- Valid --
-----------
function Valid (X : not null access T) return Boolean is
IEEE_Emin : constant Integer := T'Machine_Emin - 1;
IEEE_Emax : constant Integer := T'Machine_Emax - 1;
IEEE_Bias : constant Integer := -(IEEE_Emin - 1);
subtype IEEE_Exponent_Range is
Integer range IEEE_Emin - 1 .. IEEE_Emax + 1;
-- The implementation of this floating point attribute uses a
-- representation type Float_Rep that allows direct access to the
-- exponent and mantissa parts of a floating point number.
-- The Float_Rep type is an array of Float_Word elements. This
-- representation is chosen to make it possible to size the type based
-- on a generic parameter. Since the array size is known at compile
-- time, efficient code can still be generated. The size of Float_Word
-- elements should be large enough to allow accessing the exponent in
-- one read, but small enough so that all floating point object sizes
-- are a multiple of the Float_Word'Size.
-- The following conditions must be met for all possible instantiations
-- of the attributes package:
-- - T'Size is an integral multiple of Float_Word'Size
-- - The exponent and sign are completely contained in a single
-- component of Float_Rep, named Most_Significant_Word (MSW).
-- - The sign occupies the most significant bit of the MSW and the
-- exponent is in the following bits. Unused bits (if any) are in
-- the least significant part.
type Float_Word is mod 2**Positive'Min (System.Word_Size, 32);
type Rep_Index is range 0 .. 7;
Rep_Words : constant Positive :=
(T'Size + Float_Word'Size - 1) / Float_Word'Size;
Rep_Last : constant Rep_Index :=
Rep_Index'Min
(Rep_Index (Rep_Words - 1),
(T'Mantissa + 16) / Float_Word'Size);
-- Determine the number of Float_Words needed for representing the
-- entire floating-point value. Do not take into account excessive
-- padding, as occurs on IA-64 where 80 bits floats get padded to 128
-- bits. In general, the exponent field cannot be larger than 15 bits,
-- even for 128-bit floating-point types, so the final format size
-- won't be larger than T'Mantissa + 16.
type Float_Rep is
array (Rep_Index range 0 .. Rep_Index (Rep_Words - 1)) of Float_Word;
pragma Suppress_Initialization (Float_Rep);
-- This pragma suppresses the generation of an initialization procedure
-- for type Float_Rep when operating in Initialize/Normalize_Scalars
-- mode. This is not just a matter of efficiency, but of functionality,
-- since Valid has a pragma Inline_Always, which is not permitted if
-- there are nested subprograms present.
Most_Significant_Word : constant Rep_Index :=
Rep_Last * Standard'Default_Bit_Order;
-- Finding the location of the Exponent_Word is a bit tricky. In general
-- we assume Word_Order = Bit_Order.
Exponent_Factor : constant Float_Word :=
2**(Float_Word'Size - 1) /
Float_Word (IEEE_Emax - IEEE_Emin + 3) *
Boolean'Pos (Most_Significant_Word /= 2) +
Boolean'Pos (Most_Significant_Word = 2);
-- Factor that the extracted exponent needs to be divided by to be in
-- range 0 .. IEEE_Emax - IEEE_Emin + 2. Special case: Exponent_Factor
-- is 1 for x86/IA64 double extended (GCC adds unused bits to the type).
Exponent_Mask : constant Float_Word :=
Float_Word (IEEE_Emax - IEEE_Emin + 2) *
Exponent_Factor;
-- Value needed to mask out the exponent field. This assumes that the
-- range IEEE_Emin - 1 .. IEEE_Emax + contains 2**N values, for some N
-- in Natural.
function To_Float is new Ada.Unchecked_Conversion (Float_Rep, T);
type Float_Access is access all T;
function To_Address is
new Ada.Unchecked_Conversion (Float_Access, System.Address);
XA : constant System.Address := To_Address (Float_Access (X));
R : Float_Rep;
pragma Import (Ada, R);
for R'Address use XA;
-- R is a view of the input floating-point parameter. Note that we
-- must avoid copying the actual bits of this parameter in float
-- form (since it may be a signalling NaN).
E : constant IEEE_Exponent_Range :=
Integer ((R (Most_Significant_Word) and Exponent_Mask) /
Exponent_Factor)
- IEEE_Bias;
-- Mask/Shift T to only get bits from the exponent. Then convert biased
-- value to integer value.
SR : Float_Rep;
-- Float_Rep representation of significant of X.all
begin
if T'Denorm then
-- All denormalized numbers are valid, so the only invalid numbers
-- are overflows and NaNs, both with exponent = Emax + 1.
return E /= IEEE_Emax + 1;
end if;
-- All denormalized numbers except 0.0 are invalid
-- Set exponent of X to zero, so we end up with the significand, which
-- definitely is a valid number and can be converted back to a float.
SR := R;
SR (Most_Significant_Word) :=
(SR (Most_Significant_Word)
and not Exponent_Mask) + Float_Word (IEEE_Bias) * Exponent_Factor;
return (E in IEEE_Emin .. IEEE_Emax) or else
((E = IEEE_Emin - 1) and then abs To_Float (SR) = 1.0);
end Valid;
end System.Fat_Gen;
|
-----------------------------------------------------------------------
-- ado-cache-discrete -- Simple cache management for discrete types
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
package body ADO.Caches.Discrete is
-- ------------------------------
-- Expand the name into a target parameter value to be used in the SQL query.
-- The Expander can return a T_NULL when a value is not found or
-- it may also raise some exception.
-- ------------------------------
overriding
function Expand (Instance : in out Cache_Type;
Name : in String) return ADO.Parameters.Parameter is
Value : Element_Type;
begin
Value := Instance.Find (Name);
return ADO.Parameters.Parameter '(T => ADO.Parameters.T_LONG_INTEGER,
Len => 0, Value_Len => 0, Position => 0,
Name => "",
Long_Num => Element_Type'Pos (Value));
end Expand;
-- ------------------------------
-- Find the value associated with the given name.
-- Raises the No_Value exception if no such mapping exist.
-- ------------------------------
function Find (Cache : in out Cache_Type;
Name : in String) return Element_Type is
begin
return Cache.Controller.Find (Name);
end Find;
-- ------------------------------
-- Insert the value associated with the given name in the cache.
-- When <tt>Override</tt> is set, override existing values otherwise raise an exception.
-- ------------------------------
procedure Insert (Cache : in out Cache_Type;
Name : in String;
Value : in Element_Type;
Override : in Boolean := False) is
begin
Cache.Controller.Insert (Name, Value, Override);
end Insert;
-- ------------------------------
-- Delete the value associated with the given name in the cache.
-- Raise the No_Value exception if the value is not found and <tt>Ignore</tt> is not set.
-- ------------------------------
procedure Delete (Cache : in out Cache_Type;
Name : in String;
Ignore : in Boolean := False) is
begin
Cache.Controller.Delete (Name, Ignore);
end Delete;
-- ------------------------------
-- Initialize the entity cache by reading the database entity table.
-- ------------------------------
procedure Initialize (Cache : in out Cache_Type;
Session : in out ADO.Sessions.Session'Class) is
begin
null;
end Initialize;
protected body Cache_Controller is
-- ------------------------------
-- Find the value associated with the given name.
-- Raises the No_Value exception if no such mapping exist.
-- ------------------------------
function Find (Name : in String) return Element_Type is
Pos : constant Cache_Map.Cursor := Values.Find (Name);
begin
if Cache_Map.Has_Element (Pos) then
return Cache_Map.Element (Pos);
else
Log.Info ("Unknown cached value {0}", Name);
raise No_Value with "Value '" & Name & "' not found";
end if;
end Find;
-- ------------------------------
-- Insert the value associated with the given name in the cache.
-- When <tt>Override</tt> is set, override existing values otherwise raise an exception.
-- ------------------------------
procedure Insert (Name : in String;
Value : in Element_Type;
Override : in Boolean := False) is
Pos : constant Cache_Map.Cursor := Values.Find (Name);
begin
if Cache_Map.Has_Element (Pos) then
if not Override then
raise No_Value;
end if;
Values.Replace_Element (Pos, Value);
else
Values.Insert (Name, Value);
end if;
end Insert;
-- ------------------------------
-- Delete the value associated with the given name in the cache.
-- Raise the No_Value exception if the value is not found and <tt>Ignore</tt> is not set.
-- ------------------------------
procedure Delete (Name : in String;
Ignore : in Boolean := False) is
Pos : Cache_Map.Cursor := Values.Find (Name);
begin
if Cache_Map.Has_Element (Pos) then
Values.Delete (Pos);
elsif not Ignore then
raise No_Value;
end if;
end Delete;
end Cache_Controller;
end ADO.Caches.Discrete;
|
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Ike.Esa_Select.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Esa_Select.Request_Type,
Target => Request.Data_Type);
function From_Request is new Ada.Unchecked_Conversion (
Source => Request.Data_Type,
Target => Esa_Select.Request_Type);
end Tkmrpc.Request.Ike.Esa_Select.Convert;
|
-- see OpenUxAS\src\Communications\ZeroMqFabric.h
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with ZMQ.Sockets; use ZMQ.Sockets;
with ZMQ.Contexts; use ZMQ.Contexts;
package UxAS.Comms.Transport.ZeroMQ_Fabric is
type ZMQ_Fabric (<>) is tagged limited private;
type Any_Manager is access all ZMQ_Fabric'Class;
type ZMQ_Fabric_Reference is access all ZMQ_Fabric;
function Instance return not null ZMQ_Fabric_Reference;
procedure Destroy;
-- TODO: the C++ version uses pointers to the context and result
--
-- std::unique_ptr<zmq::socket_t>
-- createSocket(ZeroMqSocketConfiguration& socketConfiguration);
procedure Create_Socket
(This : ZMQ_Fabric_Reference;
Config : ZeroMq_Socket_Configuration;
Result : out Socket);
private
type ZMQ_Fabric is tagged limited record
-- std::unique_ptr<zmq::context_t> m_zmqContext;
zmQContext : Context;
end record;
The_Instance : ZMQ_Fabric_Reference;
-- we use lazy allocation...
end UxAS.Comms.Transport.ZeroMQ_Fabric;
|
<?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>hls_video_processor</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>16</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>stream_in_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>stream_in.V.data.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>24</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>stream_in_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.V.keep.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>3</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>stream_in_V_strb_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.V.strb.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>3</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>stream_in_V_user_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.V.user.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>stream_in_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.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="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>stream_in_V_id_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.V.id.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="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>stream_in_V_dest_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_in.V.dest.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="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>stream_out_V_data_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.data.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>24</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>stream_out_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.keep.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>3</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>stream_out_V_strb_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.strb.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_11">
<Value>
<Obj>
<type>1</type>
<id>11</id>
<name>stream_out_V_user_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.user.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="_12">
<Value>
<Obj>
<type>1</type>
<id>12</id>
<name>stream_out_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.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="_13">
<Value>
<Obj>
<type>1</type>
<id>13</id>
<name>stream_out_V_id_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.id.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="_14">
<Value>
<Obj>
<type>1</type>
<id>14</id>
<name>stream_out_V_dest_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream_out.V.dest.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="_15">
<Value>
<Obj>
<type>1</type>
<id>15</id>
<name>brightness_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_16">
<Value>
<Obj>
<type>1</type>
<id>16</id>
<name>color_correct_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>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>34</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>color_correct_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>124</item>
<item>125</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>brightness_V_read</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>127</item>
<item>128</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>30</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>img_input_cols_V_c20</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>img_input_cols_V_c20_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>130</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>img_input_cols_V_c</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>img_input_cols_V_c_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>131</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>img_input_rows_V_c20</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>img_input_rows_V_c20_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>132</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>img_input_rows_V_c</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>img_input_rows_V_c_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>133</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>img_input_data_strea</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>405</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>C:\Users\byronxu\Documents\6.S193</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>405</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_input.data_stream[0].V</originalName>
<rtlName>img_input_data_strea_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>134</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>img_input_data_strea_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>405</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>405</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_input.data_stream[1].V</originalName>
<rtlName>img_input_data_strea_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>135</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>img_input_data_strea_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>405</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>405</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_input.data_stream[2].V</originalName>
<rtlName>img_input_data_strea_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>136</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name>img_crop_data_stream</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>406</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>406</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_crop.data_stream[0].V</originalName>
<rtlName>img_crop_data_stream_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>137</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>img_crop_data_stream_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>406</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>406</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_crop.data_stream[1].V</originalName>
<rtlName>img_crop_data_stream_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>138</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>img_crop_data_stream_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>406</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>406</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_crop.data_stream[2].V</originalName>
<rtlName>img_crop_data_stream_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>139</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>img_nogamma_data_str</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>408</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>408</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_nogamma.data_stream[0].V</originalName>
<rtlName>img_nogamma_data_str_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>140</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>img_nogamma_data_str_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>408</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>408</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_nogamma.data_stream[1].V</originalName>
<rtlName>img_nogamma_data_str_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>141</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>img_nogamma_data_str_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>408</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>408</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_nogamma.data_stream[2].V</originalName>
<rtlName>img_nogamma_data_str_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>142</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>img_scaled_data_stre</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>409</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>409</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_scaled.data_stream[0].V</originalName>
<rtlName>img_scaled_data_stre_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>143</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name>img_scaled_data_stre_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>409</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>409</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_scaled.data_stream[1].V</originalName>
<rtlName>img_scaled_data_stre_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>144</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name>img_scaled_data_stre_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>409</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>409</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_scaled.data_stream[2].V</originalName>
<rtlName>img_scaled_data_stre_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>145</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>81</id>
<name>img_adjusted_data_st</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>410</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>410</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_adjusted.data_stream[0].V</originalName>
<rtlName>img_adjusted_data_st_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>146</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>17</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>84</id>
<name>img_adjusted_data_st_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>410</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>410</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_adjusted.data_stream[1].V</originalName>
<rtlName>img_adjusted_data_st_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>147</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>87</id>
<name>img_adjusted_data_st_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>410</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>410</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_adjusted.data_stream[2].V</originalName>
<rtlName>img_adjusted_data_st_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>148</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>90</id>
<name>img_out_data_stream_s</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>412</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>412</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_out.data_stream[0].V</originalName>
<rtlName>img_out_data_stream_s_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>149</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>93</id>
<name>img_out_data_stream_1</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>412</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>412</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_out.data_stream[1].V</originalName>
<rtlName>img_out_data_stream_1_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>150</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>21</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>96</id>
<name>img_out_data_stream_2</name>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>412</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>412</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_out.data_stream[2].V</originalName>
<rtlName>img_out_data_stream_2_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>151</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>22</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>110</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>Block_proc_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>153</item>
<item>154</item>
<item>155</item>
<item>156</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>113</id>
<name/>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>416</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>416</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>AXIvideo2Mat_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>16</count>
<item_version>0</item_version>
<item>158</item>
<item>159</item>
<item>160</item>
<item>161</item>
<item>162</item>
<item>163</item>
<item>164</item>
<item>165</item>
<item>166</item>
<item>167</item>
<item>168</item>
<item>169</item>
<item>170</item>
<item>171</item>
<item>987</item>
<item>989</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>114</id>
<name>extLd_loc_channel</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>extLd_loc_channel_U</rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>173</item>
<item>174</item>
<item>988</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>25</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>115</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>Loop_loop_height_pro_2_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>11</count>
<item_version>0</item_version>
<item>176</item>
<item>177</item>
<item>178</item>
<item>179</item>
<item>180</item>
<item>181</item>
<item>182</item>
<item>183</item>
<item>184</item>
<item>986</item>
<item>990</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>26</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>116</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>Loop_loop_height_pro_1_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>10</count>
<item_version>0</item_version>
<item>186</item>
<item>187</item>
<item>188</item>
<item>189</item>
<item>190</item>
<item>191</item>
<item>192</item>
<item>231</item>
<item>985</item>
<item>991</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>27</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>117</id>
<name/>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>425</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>425</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>video_scale_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>9</count>
<item_version>0</item_version>
<item>194</item>
<item>195</item>
<item>196</item>
<item>197</item>
<item>198</item>
<item>199</item>
<item>200</item>
<item>984</item>
<item>992</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>28</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>118</id>
<name/>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>428</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>428</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>brightness_color_adj_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>14</count>
<item_version>0</item_version>
<item>202</item>
<item>203</item>
<item>204</item>
<item>205</item>
<item>206</item>
<item>207</item>
<item>208</item>
<item>209</item>
<item>210</item>
<item>232</item>
<item>233</item>
<item>234</item>
<item>983</item>
<item>993</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>3.25</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>119</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>Loop_loop_height_pro_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>9</count>
<item_version>0</item_version>
<item>212</item>
<item>213</item>
<item>214</item>
<item>215</item>
<item>216</item>
<item>217</item>
<item>218</item>
<item>982</item>
<item>994</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>120</id>
<name/>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>437</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>437</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>Mat2AXIvideo_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>13</count>
<item_version>0</item_version>
<item>220</item>
<item>221</item>
<item>222</item>
<item>223</item>
<item>224</item>
<item>225</item>
<item>226</item>
<item>227</item>
<item>228</item>
<item>229</item>
<item>230</item>
<item>981</item>
<item>995</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>121</id>
<name/>
<fileName>hls_video_processor/hls_video_processor.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>448</lineNumber>
<contextFuncName>hls_video_processor</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\byronxu\Documents\6.S193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_video_processor/hls_video_processor.cpp</first>
<second>hls_video_processor</second>
</first>
<second>448</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_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_51">
<Value>
<Obj>
<type>2</type>
<id>129</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="_52">
<Value>
<Obj>
<type>2</type>
<id>152</id>
<name>Block_proc</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:Block__proc></content>
</item>
<item class_id_reference="16" object_id="_53">
<Value>
<Obj>
<type>2</type>
<id>157</id>
<name>AXIvideo2Mat</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:AXIvideo2Mat></content>
</item>
<item class_id_reference="16" object_id="_54">
<Value>
<Obj>
<type>2</type>
<id>172</id>
<name>Block_proc55</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Block__proc55></content>
</item>
<item class_id_reference="16" object_id="_55">
<Value>
<Obj>
<type>2</type>
<id>175</id>
<name>Loop_loop_height_pro_2</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:Loop_loop_height_pro.2></content>
</item>
<item class_id_reference="16" object_id="_56">
<Value>
<Obj>
<type>2</type>
<id>185</id>
<name>Loop_loop_height_pro_1</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:Loop_loop_height_pro.1></content>
</item>
<item class_id_reference="16" object_id="_57">
<Value>
<Obj>
<type>2</type>
<id>193</id>
<name>video_scale</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:video_scale></content>
</item>
<item class_id_reference="16" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>201</id>
<name>brightness_color_adj</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:brightness_color_adj></content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>211</id>
<name>Loop_loop_height_pro</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:Loop_loop_height_pro></content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>219</id>
<name>Mat2AXIvideo</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:Mat2AXIvideo></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="_61">
<Obj>
<type>3</type>
<id>122</id>
<name>hls_video_processor</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>34</count>
<item_version>0</item_version>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>45</item>
<item>48</item>
<item>51</item>
<item>54</item>
<item>57</item>
<item>60</item>
<item>63</item>
<item>66</item>
<item>69</item>
<item>72</item>
<item>75</item>
<item>78</item>
<item>81</item>
<item>84</item>
<item>87</item>
<item>90</item>
<item>93</item>
<item>96</item>
<item>110</item>
<item>113</item>
<item>114</item>
<item>115</item>
<item>116</item>
<item>117</item>
<item>118</item>
<item>119</item>
<item>120</item>
<item>121</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>113</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_62">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>128</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_64">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>134</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>136</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>138</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>140</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>142</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>143</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>144</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>78</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>146</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>81</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>84</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>148</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>87</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>149</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>90</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>150</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>93</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>96</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>152</source_obj>
<sink_obj>110</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>154</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>110</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>110</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>156</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>110</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>157</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>159</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>166</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>172</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>174</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>175</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>178</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>180</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>181</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>182</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>183</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>185</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_119">
<id>190</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_120">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_121">
<id>192</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_122">
<id>194</id>
<edge_type>1</edge_type>
<source_obj>193</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_123">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_124">
<id>196</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_125">
<id>197</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_126">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_127">
<id>199</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_128">
<id>200</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_129">
<id>202</id>
<edge_type>1</edge_type>
<source_obj>201</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_130">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_131">
<id>204</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_132">
<id>205</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_133">
<id>206</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_134">
<id>207</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_135">
<id>208</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_136">
<id>209</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_137">
<id>210</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_138">
<id>212</id>
<edge_type>1</edge_type>
<source_obj>211</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_139">
<id>213</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_140">
<id>214</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_141">
<id>215</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_142">
<id>216</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_143">
<id>217</id>
<edge_type>1</edge_type>
<source_obj>93</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_144">
<id>218</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_145">
<id>220</id>
<edge_type>1</edge_type>
<source_obj>219</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_146">
<id>221</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_147">
<id>222</id>
<edge_type>1</edge_type>
<source_obj>93</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_148">
<id>223</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_149">
<id>224</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_150">
<id>225</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_151">
<id>226</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_152">
<id>227</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_153">
<id>228</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_154">
<id>229</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_155">
<id>230</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_156">
<id>231</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_157">
<id>232</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_158">
<id>233</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_159">
<id>234</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_160">
<id>981</id>
<edge_type>4</edge_type>
<source_obj>119</source_obj>
<sink_obj>120</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_161">
<id>982</id>
<edge_type>4</edge_type>
<source_obj>118</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_162">
<id>983</id>
<edge_type>4</edge_type>
<source_obj>117</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_163">
<id>984</id>
<edge_type>4</edge_type>
<source_obj>116</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_164">
<id>985</id>
<edge_type>4</edge_type>
<source_obj>115</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_165">
<id>986</id>
<edge_type>4</edge_type>
<source_obj>113</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_166">
<id>987</id>
<edge_type>4</edge_type>
<source_obj>110</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_167">
<id>988</id>
<edge_type>4</edge_type>
<source_obj>110</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_168">
<id>989</id>
<edge_type>4</edge_type>
<source_obj>110</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_169">
<id>990</id>
<edge_type>4</edge_type>
<source_obj>113</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_170">
<id>991</id>
<edge_type>4</edge_type>
<source_obj>115</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_171">
<id>992</id>
<edge_type>4</edge_type>
<source_obj>116</source_obj>
<sink_obj>117</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_172">
<id>993</id>
<edge_type>4</edge_type>
<source_obj>117</source_obj>
<sink_obj>118</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_173">
<id>994</id>
<edge_type>4</edge_type>
<source_obj>118</source_obj>
<sink_obj>119</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_174">
<id>995</id>
<edge_type>4</edge_type>
<source_obj>119</source_obj>
<sink_obj>120</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="_175">
<mId>1</mId>
<mTag>hls_video_processor</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>122</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2076845</mMinLatency>
<mMaxLatency>2079004</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_176">
<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>9</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_177">
<type>0</type>
<name>Block_proc_U0</name>
<ssdmobj_id>110</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_178">
<port class_id="29" tracking_level="1" version="0" object_id="_179">
<name>img_input_rows_V_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_180">
<type>0</type>
<name>Block_proc_U0</name>
<ssdmobj_id>110</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_181">
<port class_id_reference="29" object_id="_182">
<name>img_input_rows_V_out1</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_180"/>
</item>
<item class_id_reference="28" object_id="_183">
<port class_id_reference="29" object_id="_184">
<name>img_input_cols_V_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_180"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_185">
<type>0</type>
<name>AXIvideo2Mat_U0</name>
<ssdmobj_id>113</ssdmobj_id>
<pins>
<count>13</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_186">
<port class_id_reference="29" object_id="_187">
<name>AXI_video_strm_V_data_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_188">
<type>0</type>
<name>AXIvideo2Mat_U0</name>
<ssdmobj_id>113</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_189">
<port class_id_reference="29" object_id="_190">
<name>AXI_video_strm_V_keep_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_191">
<port class_id_reference="29" object_id="_192">
<name>AXI_video_strm_V_strb_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_193">
<port class_id_reference="29" object_id="_194">
<name>AXI_video_strm_V_user_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_195">
<port class_id_reference="29" object_id="_196">
<name>AXI_video_strm_V_last_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_197">
<port class_id_reference="29" object_id="_198">
<name>AXI_video_strm_V_id_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_199">
<port class_id_reference="29" object_id="_200">
<name>AXI_video_strm_V_dest_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_201">
<port class_id_reference="29" object_id="_202">
<name>img_rows_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_203">
<port class_id_reference="29" object_id="_204">
<name>img_cols_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_205">
<port class_id_reference="29" object_id="_206">
<name>img_data_stream_0_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_207">
<port class_id_reference="29" object_id="_208">
<name>img_data_stream_1_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_209">
<port class_id_reference="29" object_id="_210">
<name>img_data_stream_2_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
<item class_id_reference="28" object_id="_211">
<port class_id_reference="29" object_id="_212">
<name>img_cols_V_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_213">
<type>0</type>
<name>Block_proc55_U0</name>
<ssdmobj_id>114</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_214">
<port class_id_reference="29" object_id="_215">
<name>img_input_rows_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_216">
<type>0</type>
<name>Block_proc55_U0</name>
<ssdmobj_id>114</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_217">
<port class_id_reference="29" object_id="_218">
<name>ap_return</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_216"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_219">
<type>0</type>
<name>Loop_loop_height_pro_2_U0</name>
<ssdmobj_id>115</ssdmobj_id>
<pins>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_220">
<port class_id_reference="29" object_id="_221">
<name>img_input_cols_V_c20</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_222">
<type>0</type>
<name>Loop_loop_height_pro_2_U0</name>
<ssdmobj_id>115</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_223">
<port class_id_reference="29" object_id="_224">
<name>extLd_loc_channel</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_225">
<port class_id_reference="29" object_id="_226">
<name>img_input_data_strea</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_227">
<port class_id_reference="29" object_id="_228">
<name>img_input_data_strea_1</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_229">
<port class_id_reference="29" object_id="_230">
<name>img_input_data_strea_2</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_231">
<port class_id_reference="29" object_id="_232">
<name>img_crop_data_stream</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_233">
<port class_id_reference="29" object_id="_234">
<name>img_crop_data_stream_1</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
<item class_id_reference="28" object_id="_235">
<port class_id_reference="29" object_id="_236">
<name>img_crop_data_stream_2</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_237">
<type>0</type>
<name>Loop_loop_height_pro_1_U0</name>
<ssdmobj_id>116</ssdmobj_id>
<pins>
<count>7</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_238">
<port class_id_reference="29" object_id="_239">
<name>img_crop_data_stream_0_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_240">
<type>0</type>
<name>Loop_loop_height_pro_1_U0</name>
<ssdmobj_id>116</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_241">
<port class_id_reference="29" object_id="_242">
<name>img_crop_data_stream_1_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
<item class_id_reference="28" object_id="_243">
<port class_id_reference="29" object_id="_244">
<name>img_crop_data_stream_2_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
<item class_id_reference="28" object_id="_245">
<port class_id_reference="29" object_id="_246">
<name>img_nogamma_data_stream_0_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
<item class_id_reference="28" object_id="_247">
<port class_id_reference="29" object_id="_248">
<name>img_nogamma_data_stream_1_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
<item class_id_reference="28" object_id="_249">
<port class_id_reference="29" object_id="_250">
<name>img_nogamma_data_stream_2_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
<item class_id_reference="28" object_id="_251">
<port class_id_reference="29" object_id="_252">
<name>lut_srgb_decode</name>
<dir>2</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_253">
<type>0</type>
<name>video_scale_U0</name>
<ssdmobj_id>117</ssdmobj_id>
<pins>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_254">
<port class_id_reference="29" object_id="_255">
<name>src_data_stream_0_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_256">
<type>0</type>
<name>video_scale_U0</name>
<ssdmobj_id>117</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_257">
<port class_id_reference="29" object_id="_258">
<name>src_data_stream_1_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</item>
<item class_id_reference="28" object_id="_259">
<port class_id_reference="29" object_id="_260">
<name>src_data_stream_2_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</item>
<item class_id_reference="28" object_id="_261">
<port class_id_reference="29" object_id="_262">
<name>dst_data_stream_0_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</item>
<item class_id_reference="28" object_id="_263">
<port class_id_reference="29" object_id="_264">
<name>dst_data_stream_1_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</item>
<item class_id_reference="28" object_id="_265">
<port class_id_reference="29" object_id="_266">
<name>dst_data_stream_2_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_267">
<type>0</type>
<name>brightness_color_adj_U0</name>
<ssdmobj_id>118</ssdmobj_id>
<pins>
<count>11</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_268">
<port class_id_reference="29" object_id="_269">
<name>src_data_stream_0_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_270">
<type>0</type>
<name>brightness_color_adj_U0</name>
<ssdmobj_id>118</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_271">
<port class_id_reference="29" object_id="_272">
<name>src_data_stream_1_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_273">
<port class_id_reference="29" object_id="_274">
<name>src_data_stream_2_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_275">
<port class_id_reference="29" object_id="_276">
<name>dst_data_stream_0_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_277">
<port class_id_reference="29" object_id="_278">
<name>dst_data_stream_1_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_279">
<port class_id_reference="29" object_id="_280">
<name>dst_data_stream_2_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_281">
<port class_id_reference="29" object_id="_282">
<name>brightness_index_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_283">
<port class_id_reference="29" object_id="_284">
<name>color_correct_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_285">
<port class_id_reference="29" object_id="_286">
<name>lut_perceptual_brigh_1</name>
<dir>2</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_287">
<port class_id_reference="29" object_id="_288">
<name>lut_perceptual_brigh</name>
<dir>2</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
<item class_id_reference="28" object_id="_289">
<port class_id_reference="29" object_id="_290">
<name>lut_perceptual_brigh_2</name>
<dir>2</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_291">
<type>0</type>
<name>Loop_loop_height_pro_U0</name>
<ssdmobj_id>119</ssdmobj_id>
<pins>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_292">
<port class_id_reference="29" object_id="_293">
<name>img_adjusted_data_stream_0_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_294">
<type>0</type>
<name>Loop_loop_height_pro_U0</name>
<ssdmobj_id>119</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_295">
<port class_id_reference="29" object_id="_296">
<name>img_adjusted_data_stream_1_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</item>
<item class_id_reference="28" object_id="_297">
<port class_id_reference="29" object_id="_298">
<name>img_adjusted_data_stream_2_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</item>
<item class_id_reference="28" object_id="_299">
<port class_id_reference="29" object_id="_300">
<name>img_out_data_stream_0_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</item>
<item class_id_reference="28" object_id="_301">
<port class_id_reference="29" object_id="_302">
<name>img_out_data_stream_1_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</item>
<item class_id_reference="28" object_id="_303">
<port class_id_reference="29" object_id="_304">
<name>img_out_data_stream_2_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_305">
<type>0</type>
<name>Mat2AXIvideo_U0</name>
<ssdmobj_id>120</ssdmobj_id>
<pins>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_306">
<port class_id_reference="29" object_id="_307">
<name>img_data_stream_0_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_308">
<type>0</type>
<name>Mat2AXIvideo_U0</name>
<ssdmobj_id>120</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_309">
<port class_id_reference="29" object_id="_310">
<name>img_data_stream_1_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_311">
<port class_id_reference="29" object_id="_312">
<name>img_data_stream_2_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_313">
<port class_id_reference="29" object_id="_314">
<name>AXI_video_strm_V_data_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_315">
<port class_id_reference="29" object_id="_316">
<name>AXI_video_strm_V_keep_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_317">
<port class_id_reference="29" object_id="_318">
<name>AXI_video_strm_V_strb_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_319">
<port class_id_reference="29" object_id="_320">
<name>AXI_video_strm_V_user_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_321">
<port class_id_reference="29" object_id="_322">
<name>AXI_video_strm_V_last_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_323">
<port class_id_reference="29" object_id="_324">
<name>AXI_video_strm_V_id_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
<item class_id_reference="28" object_id="_325">
<port class_id_reference="29" object_id="_326">
<name>AXI_video_strm_V_dest_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>23</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_327">
<type>1</type>
<name>img_input_rows_V_c</name>
<ssdmobj_id>26</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_328">
<port class_id_reference="29" object_id="_329">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_180"/>
</source>
<sink class_id_reference="28" object_id="_330">
<port class_id_reference="29" object_id="_331">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</sink>
</item>
<item class_id_reference="32" object_id="_332">
<type>1</type>
<name>img_input_rows_V_c20</name>
<ssdmobj_id>25</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_333">
<port class_id_reference="29" object_id="_334">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_180"/>
</source>
<sink class_id_reference="28" object_id="_335">
<port class_id_reference="29" object_id="_336">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_216"/>
</sink>
</item>
<item class_id_reference="32" object_id="_337">
<type>1</type>
<name>img_input_cols_V_c</name>
<ssdmobj_id>24</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_338">
<port class_id_reference="29" object_id="_339">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_180"/>
</source>
<sink class_id_reference="28" object_id="_340">
<port class_id_reference="29" object_id="_341">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</sink>
</item>
<item class_id_reference="32" object_id="_342">
<type>1</type>
<name>img_input_data_strea</name>
<ssdmobj_id>45</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_343">
<port class_id_reference="29" object_id="_344">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</source>
<sink class_id_reference="28" object_id="_345">
<port class_id_reference="29" object_id="_346">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</sink>
</item>
<item class_id_reference="32" object_id="_347">
<type>1</type>
<name>img_input_data_strea_1</name>
<ssdmobj_id>48</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_348">
<port class_id_reference="29" object_id="_349">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</source>
<sink class_id_reference="28" object_id="_350">
<port class_id_reference="29" object_id="_351">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</sink>
</item>
<item class_id_reference="32" object_id="_352">
<type>1</type>
<name>img_input_data_strea_2</name>
<ssdmobj_id>51</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_353">
<port class_id_reference="29" object_id="_354">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</source>
<sink class_id_reference="28" object_id="_355">
<port class_id_reference="29" object_id="_356">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</sink>
</item>
<item class_id_reference="32" object_id="_357">
<type>1</type>
<name>img_input_cols_V_c20</name>
<ssdmobj_id>23</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_358">
<port class_id_reference="29" object_id="_359">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_188"/>
</source>
<sink class_id_reference="28" object_id="_360">
<port class_id_reference="29" object_id="_361">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</sink>
</item>
<item class_id_reference="32" object_id="_362">
<type>1</type>
<name>extLd_loc_channel</name>
<ssdmobj_id>114</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>12</bitwidth>
<source class_id_reference="28" object_id="_363">
<port class_id_reference="29" object_id="_364">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_216"/>
</source>
<sink class_id_reference="28" object_id="_365">
<port class_id_reference="29" object_id="_366">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</sink>
</item>
<item class_id_reference="32" object_id="_367">
<type>1</type>
<name>img_crop_data_stream</name>
<ssdmobj_id>54</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_368">
<port class_id_reference="29" object_id="_369">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</source>
<sink class_id_reference="28" object_id="_370">
<port class_id_reference="29" object_id="_371">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</sink>
</item>
<item class_id_reference="32" object_id="_372">
<type>1</type>
<name>img_crop_data_stream_1</name>
<ssdmobj_id>57</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_373">
<port class_id_reference="29" object_id="_374">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</source>
<sink class_id_reference="28" object_id="_375">
<port class_id_reference="29" object_id="_376">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</sink>
</item>
<item class_id_reference="32" object_id="_377">
<type>1</type>
<name>img_crop_data_stream_2</name>
<ssdmobj_id>60</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_378">
<port class_id_reference="29" object_id="_379">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_222"/>
</source>
<sink class_id_reference="28" object_id="_380">
<port class_id_reference="29" object_id="_381">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</sink>
</item>
<item class_id_reference="32" object_id="_382">
<type>1</type>
<name>img_nogamma_data_str</name>
<ssdmobj_id>63</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_383">
<port class_id_reference="29" object_id="_384">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</source>
<sink class_id_reference="28" object_id="_385">
<port class_id_reference="29" object_id="_386">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</sink>
</item>
<item class_id_reference="32" object_id="_387">
<type>1</type>
<name>img_nogamma_data_str_1</name>
<ssdmobj_id>66</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_388">
<port class_id_reference="29" object_id="_389">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</source>
<sink class_id_reference="28" object_id="_390">
<port class_id_reference="29" object_id="_391">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</sink>
</item>
<item class_id_reference="32" object_id="_392">
<type>1</type>
<name>img_nogamma_data_str_2</name>
<ssdmobj_id>69</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_393">
<port class_id_reference="29" object_id="_394">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_240"/>
</source>
<sink class_id_reference="28" object_id="_395">
<port class_id_reference="29" object_id="_396">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</sink>
</item>
<item class_id_reference="32" object_id="_397">
<type>1</type>
<name>img_scaled_data_stre</name>
<ssdmobj_id>72</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_398">
<port class_id_reference="29" object_id="_399">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</source>
<sink class_id_reference="28" object_id="_400">
<port class_id_reference="29" object_id="_401">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</sink>
</item>
<item class_id_reference="32" object_id="_402">
<type>1</type>
<name>img_scaled_data_stre_1</name>
<ssdmobj_id>75</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_403">
<port class_id_reference="29" object_id="_404">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</source>
<sink class_id_reference="28" object_id="_405">
<port class_id_reference="29" object_id="_406">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</sink>
</item>
<item class_id_reference="32" object_id="_407">
<type>1</type>
<name>img_scaled_data_stre_2</name>
<ssdmobj_id>78</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_408">
<port class_id_reference="29" object_id="_409">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_256"/>
</source>
<sink class_id_reference="28" object_id="_410">
<port class_id_reference="29" object_id="_411">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</sink>
</item>
<item class_id_reference="32" object_id="_412">
<type>1</type>
<name>img_adjusted_data_st</name>
<ssdmobj_id>81</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_413">
<port class_id_reference="29" object_id="_414">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</source>
<sink class_id_reference="28" object_id="_415">
<port class_id_reference="29" object_id="_416">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</sink>
</item>
<item class_id_reference="32" object_id="_417">
<type>1</type>
<name>img_adjusted_data_st_1</name>
<ssdmobj_id>84</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_418">
<port class_id_reference="29" object_id="_419">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</source>
<sink class_id_reference="28" object_id="_420">
<port class_id_reference="29" object_id="_421">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</sink>
</item>
<item class_id_reference="32" object_id="_422">
<type>1</type>
<name>img_adjusted_data_st_2</name>
<ssdmobj_id>87</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_423">
<port class_id_reference="29" object_id="_424">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_270"/>
</source>
<sink class_id_reference="28" object_id="_425">
<port class_id_reference="29" object_id="_426">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</sink>
</item>
<item class_id_reference="32" object_id="_427">
<type>1</type>
<name>img_out_data_stream_s</name>
<ssdmobj_id>90</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_428">
<port class_id_reference="29" object_id="_429">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</source>
<sink class_id_reference="28" object_id="_430">
<port class_id_reference="29" object_id="_431">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</sink>
</item>
<item class_id_reference="32" object_id="_432">
<type>1</type>
<name>img_out_data_stream_1</name>
<ssdmobj_id>93</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_433">
<port class_id_reference="29" object_id="_434">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</source>
<sink class_id_reference="28" object_id="_435">
<port class_id_reference="29" object_id="_436">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</sink>
</item>
<item class_id_reference="32" object_id="_437">
<type>1</type>
<name>img_out_data_stream_2</name>
<ssdmobj_id>96</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_438">
<port class_id_reference="29" object_id="_439">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_294"/>
</source>
<sink class_id_reference="28" object_id="_440">
<port class_id_reference="29" object_id="_441">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_308"/>
</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="_442">
<states class_id="35" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_443">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>23</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_444">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_445">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_446">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_447">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_448">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_449">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_450">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_451">
<id>54</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_452">
<id>57</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_453">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_454">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_455">
<id>66</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_456">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_457">
<id>72</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_458">
<id>75</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_459">
<id>78</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_460">
<id>81</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_461">
<id>84</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_462">
<id>87</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_463">
<id>90</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_464">
<id>93</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_465">
<id>96</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_466">
<id>110</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_467">
<id>2</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_468">
<id>113</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_469">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_470">
<id>113</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_471">
<id>4</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_472">
<id>114</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_473">
<id>115</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_474">
<id>5</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_475">
<id>115</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_476">
<id>6</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_477">
<id>116</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_478">
<id>7</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_479">
<id>116</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_480">
<id>8</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_481">
<id>117</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_482">
<id>9</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_483">
<id>117</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_484">
<id>10</id>
<operations>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_485">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_486">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_487">
<id>118</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_488">
<id>11</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_489">
<id>118</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_490">
<id>12</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_491">
<id>119</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_492">
<id>13</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_493">
<id>119</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_494">
<id>14</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_495">
<id>120</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_496">
<id>15</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_497">
<id>120</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_498">
<id>16</id>
<operations>
<count>68</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_499">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_500">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_501">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_502">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_503">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_504">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_505">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_506">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_507">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_508">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_509">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_510">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_511">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_512">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_513">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_514">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_515">
<id>43</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_516">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_517">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_518">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_519">
<id>49</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_520">
<id>50</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_521">
<id>52</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_522">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_523">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_524">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_525">
<id>58</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_526">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_527">
<id>61</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_528">
<id>62</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_529">
<id>64</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_530">
<id>65</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_531">
<id>67</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_532">
<id>68</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_533">
<id>70</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_534">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_535">
<id>73</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_536">
<id>74</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_537">
<id>76</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_538">
<id>77</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_539">
<id>79</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_540">
<id>80</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_541">
<id>82</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_542">
<id>83</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_543">
<id>85</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_544">
<id>86</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_545">
<id>88</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_546">
<id>89</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_547">
<id>91</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_548">
<id>92</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_549">
<id>94</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_550">
<id>95</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_551">
<id>97</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_552">
<id>98</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_553">
<id>99</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_554">
<id>100</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_555">
<id>101</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_556">
<id>102</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_557">
<id>103</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_558">
<id>104</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_559">
<id>105</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_560">
<id>106</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_561">
<id>107</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_562">
<id>108</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_563">
<id>109</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_564">
<id>111</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_565">
<id>112</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_566">
<id>121</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>15</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_567">
<inState>1</inState>
<outState>2</outState>
<condition class_id="41" tracking_level="0" version="0">
<id>-1</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="_568">
<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="_569">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_570">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_571">
<inState>5</inState>
<outState>6</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="_572">
<inState>6</inState>
<outState>7</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="_573">
<inState>7</inState>
<outState>8</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="_574">
<inState>8</inState>
<outState>9</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="_575">
<inState>9</inState>
<outState>10</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="_576">
<inState>10</inState>
<outState>11</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="_577">
<inState>11</inState>
<outState>12</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="_578">
<inState>12</inState>
<outState>13</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="_579">
<inState>13</inState>
<outState>14</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="_580">
<inState>14</inState>
<outState>15</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="_581">
<inState>15</inState>
<outState>16</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="44" tracking_level="1" version="0" object_id="_582">
<dp_component_resource class_id="45" tracking_level="0" version="0">
<count>15</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>AXIvideo2Mat_U0 (AXIvideo2Mat)</first>
<second class_id="47" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>FF</first>
<second>390</second>
</item>
<item>
<first>LUT</first>
<second>552</second>
</item>
</second>
</item>
<item>
<first>Block_proc55_U0 (Block_proc55)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>14</second>
</item>
<item>
<first>LUT</first>
<second>29</second>
</item>
</second>
</item>
<item>
<first>Block_proc_U0 (Block_proc)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>3</second>
</item>
<item>
<first>LUT</first>
<second>47</second>
</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_1_U0 (Loop_loop_height_pro_1)</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>BRAM</first>
<second>2</second>
</item>
<item>
<first>FF</first>
<second>167</second>
</item>
<item>
<first>LUT</first>
<second>232</second>
</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_2_U0 (Loop_loop_height_pro_2)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>169</second>
</item>
<item>
<first>LUT</first>
<second>303</second>
</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_U0 (Loop_loop_height_pro)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>25</second>
</item>
<item>
<first>LUT</first>
<second>194</second>
</item>
</second>
</item>
<item>
<first>Mat2AXIvideo_U0 (Mat2AXIvideo)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>104</second>
</item>
<item>
<first>LUT</first>
<second>357</second>
</item>
</second>
</item>
<item>
<first>brightness_color_adj_U0 (brightness_color_adj)</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>DSP48E</first>
<second>6</second>
</item>
<item>
<first>FF</first>
<second>754</second>
</item>
<item>
<first>LUT</first>
<second>376</second>
</item>
</second>
</item>
<item>
<first>start_for_Block_pjbC_U (start_for_Block_pjbC)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Loop_lokbM_U (start_for_Loop_lokbM)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Loop_loncg_U (start_for_Loop_loncg)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Mat2AXIocq_U (start_for_Mat2AXIocq)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_brightnmb6_U (start_for_brightnmb6)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_video_slbW_U (start_for_video_slbW)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>video_scale_U0 (video_scale)</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>BRAM</first>
<second>6</second>
</item>
<item>
<first>FF</first>
<second>1063</second>
</item>
<item>
<first>LUT</first>
<second>751</second>
</item>
</second>
</item>
</dp_component_resource>
<dp_expression_resource>
<count>0</count>
<item_version>0</item_version>
</dp_expression_resource>
<dp_fifo_resource>
<count>23</count>
<item_version>0</item_version>
<item>
<first>extLd_loc_channel_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>24</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>24</second>
</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_1_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>img_adjusted_data_st_2_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>img_adjusted_data_st_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>img_crop_data_stream_1_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>img_crop_data_stream_2_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>img_crop_data_stream_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>img_input_cols_V_c20_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>24</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>24</second>
</item>
</second>
</item>
<item>
<first>img_input_cols_V_c_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>24</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>24</second>
</item>
</second>
</item>
<item>
<first>img_input_data_strea_1_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>img_input_data_strea_2_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>img_input_data_strea_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>img_input_rows_V_c20_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>24</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>24</second>
</item>
</second>
</item>
<item>
<first>img_input_rows_V_c_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>12</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>24</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>24</second>
</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_1_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>img_nogamma_data_str_2_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>img_nogamma_data_str_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>img_out_data_stream_1_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>img_out_data_stream_2_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>img_out_data_stream_s_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>img_scaled_data_stre_1_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>img_scaled_data_stre_2_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>img_scaled_data_stre_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>
</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>15</count>
<item_version>0</item_version>
<item>
<first>AXIvideo2Mat_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Block_proc55_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Block_proc_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Loop_loop_height_pro_1_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Loop_loop_height_pro_2_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Loop_loop_height_pro_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>Mat2AXIvideo_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>brightness_color_adj_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Block_pjbC_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Loop_lokbM_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Loop_loncg_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_Mat2AXIocq_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_brightnmb6_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_video_slbW_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>video_scale_U0</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>9</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>AXIvideo2Mat_U0 (AXIvideo2Mat)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>113</item>
</second>
</item>
<item>
<first>Block_proc55_U0 (Block_proc55)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>Block_proc_U0 (Block_proc)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>110</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_1_U0 (Loop_loop_height_pro_1)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_2_U0 (Loop_loop_height_pro_2)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</second>
</item>
<item>
<first>Loop_loop_height_pro_U0 (Loop_loop_height_pro)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>119</item>
</second>
</item>
<item>
<first>Mat2AXIvideo_U0 (Mat2AXIvideo)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>120</item>
</second>
</item>
<item>
<first>brightness_color_adj_U0 (brightness_color_adj)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>video_scale_U0 (video_scale)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>117</item>
</second>
</item>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>23</count>
<item_version>0</item_version>
<item>
<first>extLd_loc_channel_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>338</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>448</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>458</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>438</item>
</second>
</item>
<item>
<first>img_crop_data_stream_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>357</item>
</second>
</item>
<item>
<first>img_crop_data_stream_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>367</item>
</second>
</item>
<item>
<first>img_crop_data_stream_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>347</item>
</second>
</item>
<item>
<first>img_input_cols_V_c20_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>328</item>
</second>
</item>
<item>
<first>img_input_cols_V_c_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>287</item>
</second>
</item>
<item>
<first>img_input_data_strea_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>308</item>
</second>
</item>
<item>
<first>img_input_data_strea_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>318</item>
</second>
</item>
<item>
<first>img_input_data_strea_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>298</item>
</second>
</item>
<item>
<first>img_input_rows_V_c20_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>277</item>
</second>
</item>
<item>
<first>img_input_rows_V_c_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>267</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>388</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>398</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>378</item>
</second>
</item>
<item>
<first>img_out_data_stream_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>478</item>
</second>
</item>
<item>
<first>img_out_data_stream_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>488</item>
</second>
</item>
<item>
<first>img_out_data_stream_s_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>468</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_1_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>418</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_2_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>428</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>408</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>34</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>21</first>
<second class_id="53" tracking_level="0" version="0">
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>84</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>87</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>90</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>93</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>96</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>110</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>113</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>114</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>115</first>
<second>
<first>3</first>
<second>1</second>
</second>
</item>
<item>
<first>116</first>
<second>
<first>5</first>
<second>1</second>
</second>
</item>
<item>
<first>117</first>
<second>
<first>7</first>
<second>1</second>
</second>
</item>
<item>
<first>118</first>
<second>
<first>9</first>
<second>1</second>
</second>
</item>
<item>
<first>119</first>
<second>
<first>11</first>
<second>1</second>
</second>
</item>
<item>
<first>120</first>
<second>
<first>13</first>
<second>1</second>
</second>
</item>
<item>
<first>121</first>
<second>
<first>15</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>122</first>
<second class_id="56" tracking_level="0" version="0">
<first>0</first>
<second>15</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="_583">
<region_name>hls_video_processor</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</basic_blocks>
<nodes>
<count>101</count>
<item_version>0</item_version>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>64</item>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
<item>78</item>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>92</item>
<item>93</item>
<item>94</item>
<item>95</item>
<item>96</item>
<item>97</item>
<item>98</item>
<item>99</item>
<item>100</item>
<item>101</item>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
<item>108</item>
<item>109</item>
<item>110</item>
<item>111</item>
<item>112</item>
<item>113</item>
<item>114</item>
<item>115</item>
<item>116</item>
<item>117</item>
<item>118</item>
<item>119</item>
<item>120</item>
<item>121</item>
</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>33</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>142</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>158</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>166</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>170</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>174</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>182</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>186</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
<item>
<first>190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>69</item>
</second>
</item>
<item>
<first>194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>202</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>218</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>222</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>226</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>230</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>236</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>242</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>118</item>
<item>118</item>
</second>
</item>
<item>
<first>262</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>117</item>
<item>117</item>
</second>
</item>
<item>
<first>272</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>113</item>
<item>113</item>
</second>
</item>
<item>
<first>296</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>115</item>
<item>115</item>
</second>
</item>
<item>
<first>308</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>116</item>
<item>116</item>
</second>
</item>
<item>
<first>320</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>120</item>
<item>120</item>
</second>
</item>
<item>
<first>341</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>119</item>
<item>119</item>
</second>
</item>
<item>
<first>351</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>110</item>
</second>
</item>
<item>
<first>358</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="62" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="63" tracking_level="0" version="0">
<first>img_adjusted_data_st_1_fu_210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_2_fu_214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_fu_206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>img_crop_data_stream_1_fu_174</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>img_crop_data_stream_2_fu_178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>img_crop_data_stream_fu_170</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>img_input_cols_V_c20_fu_142</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>img_input_cols_V_c_fu_146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>img_input_data_strea_1_fu_162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>img_input_data_strea_2_fu_166</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>img_input_data_strea_fu_158</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>img_input_rows_V_c20_fu_150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>img_input_rows_V_c_fu_154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_1_fu_186</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_2_fu_190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>69</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_fu_182</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>img_out_data_stream_1_fu_222</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>img_out_data_stream_2_fu_226</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>img_out_data_stream_s_fu_218</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_1_fu_198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_2_fu_202</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_fu_194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>9</count>
<item_version>0</item_version>
<item>
<first>StgValue_39_Block_proc_fu_351</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>110</item>
</second>
</item>
<item>
<first>extLd_loc_channel_Block_proc55_fu_358</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>grp_AXIvideo2Mat_fu_272</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>113</item>
<item>113</item>
</second>
</item>
<item>
<first>grp_Loop_loop_height_pro_1_fu_308</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>116</item>
<item>116</item>
</second>
</item>
<item>
<first>grp_Loop_loop_height_pro_2_fu_296</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>115</item>
<item>115</item>
</second>
</item>
<item>
<first>grp_Loop_loop_height_pro_fu_341</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>119</item>
<item>119</item>
</second>
</item>
<item>
<first>grp_Mat2AXIvideo_fu_320</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>120</item>
<item>120</item>
</second>
</item>
<item>
<first>grp_brightness_color_adj_fu_242</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>118</item>
<item>118</item>
</second>
</item>
<item>
<first>grp_video_scale_fu_262</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>117</item>
<item>117</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>2</count>
<item_version>0</item_version>
<item>
<first>brightness_V_read_read_fu_236</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>color_correct_V_read_read_fu_230</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</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>4</count>
<item_version>0</item_version>
<item class_id="65" tracking_level="0" version="0">
<first class_id="66" tracking_level="0" version="0">
<first>lut_perceptual_brigh</first>
<second>100</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>
<first>lut_perceptual_brigh_1</first>
<second>100</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>
<first>lut_perceptual_brigh_2</first>
<second>100</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>
<first>lut_srgb_decode</first>
<second>100</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>25</count>
<item_version>0</item_version>
<item>
<first>364</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>370</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>376</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>382</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>388</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>394</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>400</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>406</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>412</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>418</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>424</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>430</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
<item>
<first>436</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>69</item>
</second>
</item>
<item>
<first>442</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>448</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>454</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>460</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>466</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>472</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>478</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>484</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>490</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>496</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>501</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>506</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>25</count>
<item_version>0</item_version>
<item>
<first>brightness_V_read_reg_506</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>color_correct_V_read_reg_501</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>extLd_loc_channel_reg_496</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_1_reg_466</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_2_reg_472</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>img_adjusted_data_st_reg_460</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>img_crop_data_stream_1_reg_412</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>img_crop_data_stream_2_reg_418</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>img_crop_data_stream_reg_406</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>img_input_cols_V_c20_reg_364</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>img_input_cols_V_c_reg_370</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>img_input_data_strea_1_reg_394</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>img_input_data_strea_2_reg_400</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>img_input_data_strea_reg_388</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>img_input_rows_V_c20_reg_376</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>img_input_rows_V_c_reg_382</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_1_reg_430</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_2_reg_436</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>69</item>
</second>
</item>
<item>
<first>img_nogamma_data_str_reg_424</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>img_out_data_stream_1_reg_484</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>img_out_data_stream_2_reg_490</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>img_out_data_stream_s_reg_478</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_1_reg_448</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_2_reg_454</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>img_scaled_data_stre_reg_442</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</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="67" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="68" tracking_level="0" version="0">
<first>brightness_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>22</item>
</second>
</item>
</second>
</item>
<item>
<first>color_correct_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>21</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_V_dest_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_V_id_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_V_strb_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_in_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>113</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_V_dest_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_V_id_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_V_strb_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>120</item>
</second>
</item>
</second>
</item>
<item>
<first>stream_out_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>120</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="69" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>23</count>
<item_version>0</item_version>
<item class_id="70" tracking_level="0" version="0">
<first>23</first>
<second>FIFO</second>
</item>
<item>
<first>24</first>
<second>FIFO</second>
</item>
<item>
<first>25</first>
<second>FIFO</second>
</item>
<item>
<first>26</first>
<second>FIFO</second>
</item>
<item>
<first>45</first>
<second>FIFO</second>
</item>
<item>
<first>48</first>
<second>FIFO</second>
</item>
<item>
<first>51</first>
<second>FIFO</second>
</item>
<item>
<first>54</first>
<second>FIFO</second>
</item>
<item>
<first>57</first>
<second>FIFO</second>
</item>
<item>
<first>60</first>
<second>FIFO</second>
</item>
<item>
<first>63</first>
<second>FIFO</second>
</item>
<item>
<first>66</first>
<second>FIFO</second>
</item>
<item>
<first>69</first>
<second>FIFO</second>
</item>
<item>
<first>72</first>
<second>FIFO</second>
</item>
<item>
<first>75</first>
<second>FIFO</second>
</item>
<item>
<first>78</first>
<second>FIFO</second>
</item>
<item>
<first>81</first>
<second>FIFO</second>
</item>
<item>
<first>84</first>
<second>FIFO</second>
</item>
<item>
<first>87</first>
<second>FIFO</second>
</item>
<item>
<first>90</first>
<second>FIFO</second>
</item>
<item>
<first>93</first>
<second>FIFO</second>
</item>
<item>
<first>96</first>
<second>FIFO</second>
</item>
<item>
<first>114</first>
<second>FIFO</second>
</item>
</node2core>
</syndb>
</boost_serialization>
|
package GESTE_Fonts.FreeSansOblique6pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeSansOblique6pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#20#, 16#04#,
16#00#, 16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#02#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#80#,
16#50#, 16#0A#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#14#, 16#04#, 16#81#, 16#F8#, 16#14#, 16#04#, 16#81#,
16#F8#, 16#14#, 16#05#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#54#, 16#0A#, 16#01#, 16#40#, 16#3C#,
16#02#, 16#C1#, 16#48#, 16#2A#, 16#03#, 16#80#, 16#40#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#84#, 16#49#, 16#09#, 16#41#,
16#50#, 16#3A#, 16#00#, 16#98#, 16#24#, 16#89#, 16#11#, 16#1C#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#24#,
16#04#, 16#80#, 16#E0#, 16#18#, 16#05#, 16#C1#, 16#18#, 16#23#, 16#03#,
16#A0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#,
16#00#, 16#40#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#80#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#,
16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#08#, 16#00#, 16#80#,
16#10#, 16#02#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#80#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#58#, 16#04#,
16#01#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#01#, 16#01#, 16#F8#, 16#08#,
16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#30#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#0E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#20#,
16#04#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#40#, 16#08#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#C0#, 16#24#, 16#08#, 16#81#, 16#10#, 16#42#, 16#08#, 16#41#, 16#10#,
16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#40#, 16#18#, 16#06#, 16#00#, 16#40#, 16#08#, 16#01#,
16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#44#, 16#00#, 16#80#, 16#10#,
16#04#, 16#03#, 16#00#, 16#80#, 16#20#, 16#07#, 16#C0#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#64#, 16#00#,
16#80#, 16#10#, 16#0C#, 16#00#, 16#C1#, 16#08#, 16#22#, 16#07#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#,
16#08#, 16#03#, 16#00#, 16#A0#, 16#24#, 16#08#, 16#81#, 16#F8#, 16#04#,
16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#E0#, 16#20#, 16#08#, 16#01#, 16#E0#, 16#26#, 16#00#, 16#40#,
16#08#, 16#22#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#E0#, 16#24#, 16#08#, 16#01#, 16#E0#, 16#66#,
16#08#, 16#41#, 16#08#, 16#32#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F0#, 16#04#, 16#00#, 16#80#,
16#20#, 16#08#, 16#02#, 16#00#, 16#40#, 16#10#, 16#02#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#64#,
16#08#, 16#81#, 16#10#, 16#1C#, 16#0C#, 16#C1#, 16#08#, 16#22#, 16#03#,
16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#C0#, 16#44#, 16#08#, 16#81#, 16#10#, 16#26#, 16#07#, 16#40#, 16#10#,
16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#30#, 16#04#, 16#00#, 16#80#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#08#, 16#0E#, 16#06#, 16#01#, 16#80#, 16#0C#, 16#00#, 16#60#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#3F#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#18#, 16#00#, 16#C0#,
16#30#, 16#38#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#66#, 16#00#, 16#80#, 16#10#, 16#0C#,
16#01#, 16#00#, 16#40#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#18#, 16#44#, 16#F1#,
16#26#, 16#48#, 16#89#, 16#11#, 16#24#, 16#A7#, 16#E6#, 16#00#, 16#60#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#60#, 16#1C#,
16#02#, 16#80#, 16#90#, 16#12#, 16#07#, 16#C0#, 16#88#, 16#21#, 16#8C#,
16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#F0#, 16#23#, 16#08#, 16#41#, 16#08#, 16#3E#, 16#04#, 16#21#, 16#84#,
16#21#, 16#87#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#F0#, 16#21#, 16#08#, 16#01#, 16#00#, 16#60#, 16#08#,
16#01#, 16#04#, 16#11#, 16#83#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#23#, 16#08#, 16#21#, 16#04#,
16#20#, 16#84#, 16#31#, 16#84#, 16#21#, 16#07#, 16#C0#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#20#, 16#08#,
16#01#, 16#00#, 16#3F#, 16#04#, 16#01#, 16#80#, 16#20#, 16#07#, 16#E0#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#,
16#20#, 16#08#, 16#01#, 16#00#, 16#3E#, 16#04#, 16#01#, 16#80#, 16#20#,
16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#F8#, 16#21#, 16#88#, 16#01#, 16#00#, 16#63#, 16#88#, 16#11#,
16#82#, 16#10#, 16#C1#, 16#E8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#08#, 16#21#, 16#08#, 16#21#, 16#04#, 16#3F#,
16#84#, 16#21#, 16#84#, 16#20#, 16#84#, 16#10#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#,
16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#04#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#04#,
16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#81#, 16#10#, 16#24#, 16#07#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#08#, 16#22#, 16#09#, 16#81#, 16#60#, 16#34#, 16#04#, 16#81#, 16#88#,
16#21#, 16#04#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#,
16#01#, 16#80#, 16#20#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#01#, 16#06#, 16#30#, 16#CA#, 16#29#, 16#46#,
16#29#, 16#45#, 16#29#, 16#A9#, 16#26#, 16#44#, 16#C8#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#0C#, 16#31#, 16#0A#,
16#21#, 16#44#, 16#24#, 16#84#, 16#B1#, 16#9C#, 16#21#, 16#84#, 16#30#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#,
16#21#, 16#08#, 16#11#, 16#02#, 16#40#, 16#48#, 16#11#, 16#82#, 16#10#,
16#81#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#F0#, 16#23#, 16#08#, 16#61#, 16#08#, 16#3E#, 16#04#, 16#01#,
16#80#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#F0#, 16#21#, 16#08#, 16#11#, 16#02#, 16#40#,
16#48#, 16#11#, 16#82#, 16#11#, 16#81#, 16#F0#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#21#, 16#08#, 16#21#,
16#0C#, 16#3E#, 16#04#, 16#21#, 16#84#, 16#20#, 16#84#, 16#10#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#22#,
16#08#, 16#41#, 16#80#, 16#1E#, 16#00#, 16#61#, 16#04#, 16#21#, 16#03#,
16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#,
16#F8#, 16#08#, 16#03#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#,
16#0C#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#01#, 16#08#, 16#21#, 16#08#, 16#21#, 16#04#, 16#21#, 16#84#,
16#21#, 16#84#, 16#11#, 16#83#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#02#, 16#08#, 16#43#, 16#0C#, 16#40#, 16#98#,
16#12#, 16#02#, 16#80#, 16#50#, 16#0C#, 16#01#, 16#80#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#10#, 16#46#, 16#08#,
16#C1#, 16#29#, 16#25#, 16#25#, 16#28#, 16#A5#, 16#18#, 16#63#, 16#08#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#08#,
16#22#, 16#06#, 16#80#, 16#60#, 16#0C#, 16#03#, 16#80#, 16#D8#, 16#11#,
16#04#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#08#, 16#23#, 16#04#, 16#40#, 16#D0#, 16#0C#, 16#01#, 16#00#,
16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#03#, 16#F8#, 16#02#, 16#00#, 16#80#, 16#20#, 16#08#,
16#02#, 16#00#, 16#80#, 16#20#, 16#0F#, 16#E0#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#40#, 16#08#, 16#01#,
16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#,
16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#02#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#,
16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#80#,
16#10#, 16#02#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#80#, 16#30#, 16#05#, 16#01#, 16#20#, 16#24#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#07#, 16#01#, 16#10#, 16#02#, 16#03#, 16#81#, 16#90#, 16#22#,
16#07#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#02#, 16#00#, 16#40#, 16#0B#, 16#01#, 16#90#, 16#22#, 16#08#, 16#41#,
16#08#, 16#32#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#30#, 16#40#,
16#08#, 16#01#, 16#00#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#10#, 16#02#, 16#07#, 16#81#,
16#30#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#07#, 16#01#, 16#30#, 16#42#, 16#0F#, 16#C1#, 16#00#, 16#22#, 16#03#,
16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#80#, 16#40#, 16#1C#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#,
16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#81#, 16#30#, 16#42#, 16#08#,
16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#08#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#0B#, 16#01#, 16#90#,
16#22#, 16#08#, 16#C1#, 16#10#, 16#22#, 16#04#, 16#40#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#08#,
16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#,
16#00#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#20#,
16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#02#, 16#00#, 16#40#, 16#09#, 16#01#, 16#40#, 16#30#, 16#0D#, 16#01#,
16#20#, 16#24#, 16#04#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#,
16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#71#,
16#32#, 16#24#, 16#48#, 16#89#, 16#11#, 16#22#, 16#44#, 16#C8#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#0F#, 16#01#, 16#10#, 16#22#, 16#08#, 16#C1#, 16#10#, 16#22#, 16#04#,
16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#07#, 16#01#, 16#10#, 16#42#, 16#08#, 16#41#, 16#10#,
16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#01#, 16#10#, 16#22#, 16#08#,
16#41#, 16#08#, 16#32#, 16#07#, 16#80#, 16#80#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#81#, 16#30#,
16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#08#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#,
16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#07#, 16#01#, 16#20#, 16#60#, 16#06#, 16#00#, 16#30#, 16#22#,
16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#40#, 16#1C#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#,
16#00#, 16#20#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#, 16#10#, 16#22#,
16#08#, 16#81#, 16#10#, 16#26#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#,
16#20#, 16#24#, 16#05#, 16#00#, 16#A0#, 16#18#, 16#03#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#09#, 16#11#, 16#64#, 16#2C#, 16#85#, 16#A0#, 16#D4#, 16#19#, 16#02#,
16#20#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#09#, 16#81#, 16#20#, 16#18#, 16#02#, 16#00#, 16#A0#,
16#34#, 16#04#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#, 16#20#, 16#24#, 16#05#,
16#00#, 16#A0#, 16#18#, 16#03#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#20#,
16#08#, 16#02#, 16#00#, 16#80#, 16#20#, 16#0F#, 16#C0#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#20#, 16#04#,
16#00#, 16#80#, 16#20#, 16#08#, 16#00#, 16#80#, 16#10#, 16#04#, 16#00#,
16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#,
16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#,
16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#,
16#40#, 16#10#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#32#,
16#05#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#);
Font_D : aliased constant Bitmap_Font :=
(
Bytes_Per_Glyph => 19,
Glyph_Width => 11,
Glyph_Height => 14,
Data => FreeSansOblique6pt7bBitmaps'Access);
Font : constant Bitmap_Font_Ref := Font_D'Access;
end GESTE_Fonts.FreeSansOblique6pt7b;
|
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 Zane Myers
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
--------------------------------------------------------------------------------
with Ada.Text_IO;
with Ada.Characters.Latin_1;
with Vulkan.Test.Framework;
with Vulkan.Math.GenFMatrix;
with Vulkan.Math.Mat2x3;
with Vulkan.Math.Mat2x2;
with Vulkan.Math.GenFType;
with Vulkan.Math.Vec2;
with Vulkan.Math.Vec3;
use Ada.Text_IO;
use Ada.Characters.Latin_1;
use Vulkan.Math.Mat2x2;
use Vulkan.Math.Mat2x3;
use Vulkan.Math.GenFType;
use Vulkan.Math.Vec2;
use Vulkan.Math.Vec3;
use Vulkan.Test.Framework;
--------------------------------------------------------------------------------
--< @group Vulkan Math Basic Types
--------------------------------------------------------------------------------
--< @summary
--< This package provides tests for single precision floating point mat2x3.
--------------------------------------------------------------------------------
package body Vulkan.Math.Mat2x3.Test is
-- Test Mat2x3
procedure Test_Mat2x3 is
vec1 : Vkm_Vec2 :=
Make_Vec2(1.0, 2.0);
vec2 : Vkm_Vec3 :=
Make_Vec3(1.0, 2.0, 3.0);
mat1 : Vkm_Mat2x3 :=
Make_Mat2x3;
mat2 : Vkm_Mat2x3 :=
Make_Mat2x3(0.0, 1.0, 2.0,
3.0, 4.0, 5.0);
mat3 : Vkm_Mat2x3 :=
Make_Mat2x3(vec2, - vec2);
mat4 : Vkm_Mat2x3 :=
Make_Mat2x3(mat2);
mat5 : Vkm_Mat2x2 :=
Make_Mat2x2(5.0);
mat6 : Vkm_Mat2x3 :=
Make_Mat2x3(mat5);
mat7 : Vkm_Mat2x2 :=
Make_Mat2x2( 1.0, -1.0,
-1.0, 2.0);
begin
Put_Line(LF & "Testing Mat2x3 Constructors...");
Put_Line("mat1 " & mat1.Image);
Assert_Mat2x3_Equals(mat1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
Put_Line("mat2 " & mat2.Image);
Assert_Mat2x3_Equals(mat2, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
Put_Line("mat3 " & mat3.Image);
Assert_Mat2x3_Equals(mat3, 1.0, 2.0, 3.0, -1.0, -2.0, -3.0);
Put_Line("mat4 " & mat4.Image);
Assert_Mat2x3_Equals(mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
Put_Line("mat6 " & mat6.Image);
Assert_Mat2x3_Equals(mat6, 5.0, 0.0, 0.0, 0.0, 5.0, 0.0);
Put_Line("Testing '=' operator...");
Put_Line(" mat2 != mat3");
Assert_Vkm_Bool_Equals(mat2 = mat3, False);
Put_Line(" mat4 != mat5");
Assert_Vkm_Bool_Equals(mat4 = mat5, False);
Put_Line(" mat4 = mat2");
Assert_Vkm_Bool_Equals(mat4 = mat2, True);
Put_Line(" Testing unary '+/-' operator");
Put_Line(" + mat4 = " & Image(+ mat4));
Assert_Mat2x3_Equals(+mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
Put_Line(" - mat4 = " & Image(- mat4));
Assert_Mat2x3_Equals(-mat4, -0.0, -1.0, -2.0, -3.0, -4.0, -5.0);
Put_Line("+(- mat4) = " & Image(+(- mat4)));
Assert_Mat2x3_Equals(-mat4, -0.0, -1.0, -2.0, -3.0, -4.0, -5.0);
Put_Line("Testing 'abs' operator...");
Put_Line(" abs(- mat4) = " & Image(abs(-mat4)));
Assert_Mat2x3_Equals(abs(-mat4), 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
Put_Line("Testing '+' operator...");
Put_Line(" mat4 + mat3 = " & Image(mat4 + mat3));
Assert_Mat2x3_Equals(mat4 + mat3, 1.0, 3.0, 5.0, 2.0, 2.0, 2.0);
Put_Line("Testing '-' operator...");
Put_Line(" mat4 - mat3 = " & Image(mat4 -mat3));
Assert_Mat2x3_Equals(mat4 - mat3, -1.0, -1.0, -1.0,
4.0, 6.0, 8.0);
Put_Line("Testing '*' operator...");
Put_Line(" mat7 * mat4 = " & Image(mat7 * mat4));
Assert_Mat2x3_Equals(mat7 * mat4, -3.0, -3.0, -3.0,
6.0, 7.0, 8.0);
Put_Line(" mat4 * vec2 = " & Image(mat4 * vec2));
Assert_Vec2_Equals(mat4 * vec2, 8.0, 26.0);
Put_Line(" vec1 * mat4 = " & Image(vec1 * mat4));
Assert_Vec3_Equals(vec1 * mat4, 6.0, 9.0, 12.0);
end Test_Mat2x3;
end Vulkan.Math.Mat2x3.Test;
|
with Unicode_Strings; use Unicode_Strings;
with Ada.Command_Line;
with Ada.Task_Termination;
with Ada.Task_Identification;
with Configuration;
with Logging;
with Qweyboard.Emulation;
with Input_Backend;
with Output_Backend;
procedure Main is
use Logging;
Settings : Configuration.Settings;
begin
Ada.Task_Termination.Set_Specific_Handler
(Ada.Task_Identification.Current_Task,
Logging.Logging_Termination_Handler.Log_Termination_Cause'Access);
Ada.Task_Termination.Set_Dependents_Fallback_Handler
(Logging.Logging_Termination_Handler.Log_Termination_Cause'Access);
Configuration.Get_Settings (Settings);
Log.Set_Verbosity (Settings.Log_Level);
Log.Chat ("[Main] Got settings and set log verbosity");
Log.Chat ("[Main] Loading language");
Configuration.Load_Language (Settings);
-- Then kick off the emulation!
--Qweyboard.Emulation.Process.Ready_Wait;
Log.Chat ("[Main] Emulation started");
-- Configure softboard
--Qweyboard.Emulation.Process.Configure (Settings);
Log.Chat ("[Main] Emulation configured");
-- First wait for the output backend to be ready
Output_Backend.Output.Ready_Wait;
Log.Chat ("[Main] Output backend ready");
-- Then wait for input backend to be ready
Input_Backend.Input.Ready_Wait;
Log.Chat ("[Main] Input backend ready");
exception
when Configuration.ARGUMENTS_ERROR =>
Log.Error ("Usage: " & W (Ada.Command_Line.Command_Name) & " [OPTION]");
Log.Error (" ");
Log.Error ("[OPTION] is any combination of the following options: ");
Log.Error (" ");
Log.Error (" -l <language file> : Modifies the standard layout with the ");
Log.Error (" key mappings indicated in the specified ");
Log.Error (" language file. ");
Log.Error (" ");
Log.Error (" -t <milliseconds> : Set the timeout for what counts as one ");
Log.Error (" stroke. If you want 0, NKRO is strongly ");
Log.Error (" recommended. Default value is 500, which ");
Log.Error (" is probably way too high. ");
Log.Error (" ");
Log.Error (" -v,-vv,-vvv : Sets the log level of the software. If you ");
Log.Error (" want to know what goes on inside, this is ");
Log.Error (" where to poke... ");
Ada.Command_Line.Set_Exit_Status (1);
end Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- A D A . S H O R T _ S H O R T _ I N T E G E R _ T E X T _ I O --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- This specification is adapted from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
-- copy and modify this specification, provided that if you redistribute a --
-- modified version, any changes that you have made are clearly indicated. --
-- --
------------------------------------------------------------------------------
with Ada.Text_IO;
package Ada.Short_Short_Integer_Text_IO is
new Ada.Text_IO.Integer_IO (Short_Short_Integer);
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Real_Range_Specifications;
with Program.Elements.Floating_Point_Types;
with Program.Element_Visitors;
package Program.Nodes.Floating_Point_Types is
pragma Preelaborate;
type Floating_Point_Type is
new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
and Program.Elements.Floating_Point_Types.Floating_Point_Type_Text
with private;
function Create
(Digits_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access)
return Floating_Point_Type;
type Implicit_Floating_Point_Type is
new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
with private;
function Create
(Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Floating_Point_Type
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Floating_Point_Type is
abstract new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
with record
Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
end record;
procedure Initialize (Self : aliased in out Base_Floating_Point_Type'Class);
overriding procedure Visit
(Self : not null access Base_Floating_Point_Type;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Digits_Expression
(Self : Base_Floating_Point_Type)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Real_Range
(Self : Base_Floating_Point_Type)
return Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
overriding function Is_Floating_Point_Type_Element
(Self : Base_Floating_Point_Type)
return Boolean;
overriding function Is_Type_Definition_Element
(Self : Base_Floating_Point_Type)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Floating_Point_Type)
return Boolean;
type Floating_Point_Type is
new Base_Floating_Point_Type
and Program.Elements.Floating_Point_Types.Floating_Point_Type_Text
with record
Digits_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Floating_Point_Type_Text
(Self : aliased in out Floating_Point_Type)
return Program.Elements.Floating_Point_Types
.Floating_Point_Type_Text_Access;
overriding function Digits_Token
(Self : Floating_Point_Type)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Floating_Point_Type is
new Base_Floating_Point_Type
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Floating_Point_Type_Text
(Self : aliased in out Implicit_Floating_Point_Type)
return Program.Elements.Floating_Point_Types
.Floating_Point_Type_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Floating_Point_Type)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Floating_Point_Type)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Floating_Point_Type)
return Boolean;
end Program.Nodes.Floating_Point_Types;
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
-- SDL.Inputs.Joysticks.Game_Controllers.Makers
--------------------------------------------------------------------------------------------------------------------
package SDL.Inputs.Joysticks.Game_Controllers.Makers is
function Create (Device : in Devices) return Game_Controller;
procedure Create (Device : in Devices; Actual_Controller : out Game_Controller);
end SDL.Inputs.Joysticks.Game_Controllers.Makers;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K _ P R I M I T I V E S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1991-1994, Florida State University --
-- Copyright (C) 1995-2005, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This is a POSIX-like version of this package
-- Note: this file can only be used for POSIX compliant systems
pragma Polling (Off);
-- Turn off polling, we do not want ATC polling to take place during
-- tasking operations. It causes infinite loops and other problems.
with System.OS_Interface;
-- used for pthread_mutex_t
-- pthread_cond_t
-- pthread_t
package System.Task_Primitives is
pragma Preelaborate;
type Lock is limited private;
-- Should be used for implementation of protected objects
type RTS_Lock is limited private;
-- Should be used inside the runtime system. The difference between Lock
-- and the RTS_Lock is that the later one serves only as a semaphore so
-- that do not check for ceiling violations.
type Suspension_Object is limited private;
-- Should be used for the implementation of Ada.Synchronous_Task_Control
type Task_Body_Access is access procedure;
-- Pointer to the task body's entry point (or possibly a wrapper declared
-- local to the GNARL).
type Private_Data is limited private;
-- Any information that the GNULLI needs maintained on a per-task basis.
-- A component of this type is guaranteed to be included in the
-- Ada_Task_Control_Block.
private
type Lock is new System.OS_Interface.pthread_mutex_t;
type RTS_Lock is new System.OS_Interface.pthread_mutex_t;
type Suspension_Object is record
State : Boolean;
pragma Atomic (State);
-- Boolean that indicates whether the object is open. This field is
-- marked Atomic to ensure that we can read its value without locking
-- the access to the Suspension_Object.
Waiting : Boolean;
-- Flag showing if there is a task already suspended on this object
L : aliased System.OS_Interface.pthread_mutex_t;
-- Protection for ensuring mutual exclusion on the Suspension_Object
CV : aliased System.OS_Interface.pthread_cond_t;
-- Condition variable used to queue threads until condition is signaled
end record;
type Private_Data is record
Thread : aliased System.OS_Interface.pthread_t;
pragma Atomic (Thread);
-- Thread field may be updated by two different threads of control.
-- (See, Enter_Task and Create_Task in s-taprop.adb). They put the same
-- value (thr_self value). We do not want to use lock on those
-- operations and the only thing we have to make sure is that they are
-- updated in atomic fashion.
LWP : aliased System.Address;
-- The purpose of this field is to provide a better tasking support on
-- gdb. The order of the two first fields (Thread and LWP) is important.
-- On targets where lwp is not relevant, this is equivalent to Thread.
CV : aliased System.OS_Interface.pthread_cond_t;
-- Should be commented ??? (in all versions of taspri)
L : aliased RTS_Lock;
-- Protection for all components is lock L
end record;
end System.Task_Primitives;
|
--
-- 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 soc.gpio; use soc.gpio;
with soc.exti; use soc.exti;
with soc.syscfg;
with soc.nvic;
with soc.interrupts;
with ewok.interrupts;
with ewok.exported.gpios; use type ewok.exported.gpios.t_gpio_config_access;
use type ewok.exported.gpios.t_interface_gpio_exti_lock;
with ewok.gpio;
with ewok.tasks_shared;
with ewok.devices_shared;
with ewok.isr;
with ewok.debug;
package body ewok.exti.handler
with spark_mode => off
is
procedure init
is
ok : boolean;
begin
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI0,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI1,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI2,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI3,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI4,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI9_5,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
ewok.interrupts.set_interrupt_handler
(soc.interrupts.INT_EXTI15_10,
exti_handler'access,
ewok.tasks_shared.ID_KERNEL,
ewok.devices_shared.ID_DEV_UNUSED,
ok);
if not ok then raise program_error; end if;
end init;
procedure handle_line
(line : in soc.exti.t_exti_line_index;
interrupt : in soc.interrupts.t_interrupt)
is
ref : ewok.exported.gpios.t_gpio_ref;
conf : ewok.exported.gpios.t_gpio_config_access;
task_id : ewok.tasks_shared.t_task_id;
begin
-- Clear the EXTI pending bit for this line
soc.exti.clear_pending (line);
-- Retrieve the configured GPIO point associated to this line
ref.pin := t_gpio_pin_index'val (t_exti_line_index'pos (line));
ref.port := soc.syscfg.get_exti_port (ref.pin);
-- Retrieving the GPIO configuration associated to that GPIO point.
-- Permit to get the "real" user ISR.
conf := ewok.gpio.get_config (ref);
if conf = NULL then
soc.nvic.clear_pending_irq (soc.nvic.to_irq_number (interrupt));
pragma DEBUG (debug.log (debug.ERROR, "unable to find GPIO informations for port" &
t_gpio_port_index'image (ref.port) & ", pin" &
t_gpio_pin_index'image (ref.pin)));
else
task_id := ewok.gpio.get_task_id (ref);
ewok.isr.postpone_isr
(interrupt,
ewok.interrupts.to_handler_access (conf.all.exti_handler),
task_id);
-- if the EXTI line is configured as lockable by the kernel, the
-- EXTI line is disabled here, and must be unabled later by the
-- userspace using gpio_unlock_exti(). This permit to support
-- external devices that generates regular EXTI events which are
-- not correctly filtered
if conf.all.exti_lock = ewok.exported.gpios.GPIO_EXTI_LOCKED then
ewok.exti.disable(ref);
end if;
end if;
end handle_line;
procedure exti_handler
(frame_a : in ewok.t_stack_frame_access)
is
pragma unreferenced (frame_a);
intr : soc.interrupts.t_interrupt;
begin
intr := soc.interrupts.get_interrupt;
case intr is
when soc.interrupts.INT_EXTI0 =>
handle_line (0, intr);
when soc.interrupts.INT_EXTI1 =>
handle_line (1, intr);
when soc.interrupts.INT_EXTI2 =>
handle_line (2, intr);
when soc.interrupts.INT_EXTI3 =>
handle_line (3, intr);
when soc.interrupts.INT_EXTI4 =>
handle_line (4, intr);
when soc.interrupts.INT_EXTI9_5 =>
for line in t_exti_line_index range 5 .. 9 loop
if soc.exti.is_line_pending (line) then
handle_line (line, intr);
end if;
end loop;
when soc.interrupts.INT_EXTI15_10 =>
for line in t_exti_line_index range 10 .. 15 loop
if soc.exti.is_line_pending (line) then
handle_line (line, intr);
end if;
end loop;
when others => raise program_error;
end case;
end exti_handler;
end ewok.exti.handler;
|
with
gel.Window.sdl,
gel.Applet.gui_world,
gel.Forge,
gel.Sprite,
-- gel.Terrain,
physics.Model,
openGL.Model.box.colored,
openGL.Model.sphere.lit_colored_textured,
openGL.Model.capsule.lit_colored_textured,
openGL.Model.any,
openGL.Model.terrain,
openGL.IO,
openGL.Light,
openGL.Palette;
pragma unreferenced (gel.Window.sdl);
procedure launch_mixed_Shapes
--
-- Drops a variety of shapes onto a terrain.
--
is
use gel.Math,
openGL,
openGL.Model.box,
opengl.Palette;
the_Applet : constant gel.Applet.gui_World.view := gel.Forge.new_gui_Applet ("mixed Shapes", 1536, 864);
x : math.Real := 0.0;
y : math.Real := 2.0;
-----------
-- Terrain
--
-- Plane
--
-- the_plane_Model : constant openGL.Model.box.colored.view
-- := openGL.Model.box.colored.new_Box (size => (1000.0, 0.05, 1000.0),
-- faces => (front => (colors => (others => (Red, Opaque))),
-- rear => (colors => (others => (Blue, Opaque))),
-- upper => (colors => (others => (Green, Opaque))),
-- lower => (colors => (others => (Yellow, Opaque))),
-- left => (colors => (others => (Cyan, Opaque))),
-- right => (colors => (others => (Magenta, Opaque)))));
-- the_plane_physics_Model : constant physics.Model.view
-- := physics.Model.Forge.new_physics_Model (shape_Info => (kind => physics.Model.Plane,
-- plane_Normal => (0.00, 1.0, 0.00),
-- plane_Offset => 0.0));
-- the_Plane : constant gel.Sprite.view
-- := gel.Sprite.forge.new_Sprite ("demo.Plane",
-- the_Applet.gui_World.all'Access,
-- math.Origin_3d,
-- the_plane_Model.all'Access,
-- the_plane_physics_Model);
-- Heightfield
--
function to_Heightfield (From : in openGL.height_Map) return physics.Heightfield
is
Result : physics.Heightfield (1 .. Integer (From'Last (1)),
1 .. Integer (From'Last (2)));
Last_i : constant Index_t := From'Last (1);
begin
for i in Result'Range (1)
loop
for j in Result'Range (1)
loop
Result (i, j) := math.Real (From (Last_i - Index_t (i) + 1,
Index_t (j)));
end loop;
end loop;
return Result;
end to_Heightfield;
terrain_Heights : constant openGL.asset_Name := to_Asset ("assets/gel/kidwelly-terrain.png");
terrain_Texture : constant openGL.asset_Name := to_Asset ("assets/gel/kidwelly-terrain-texture.png");
hs : constant := 1.0;
gl_Heights : constant openGL.IO.height_Map_view := openGL.IO.to_height_Map (image_Filename => terrain_Heights,
Scale => 2.0);
the_heightfield_Model : constant openGL.Model.terrain.view
:= openGL.Model.terrain.new_Terrain (heights_Asset => terrain_Heights,
Row => 1,
Col => 1,
Heights => openGL.Model.terrain.height_Map_view (gl_Heights),
color_Map => terrain_Texture,
Tiling => (s => (0.0, 1.0),
t => (0.0, 1.0)));
the_heightfield_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.heightfield,
Heights => new physics.Heightfield' (to_Heightfield (gl_Heights.all)),
height_Range => (0.0, 200.0)),
Scale => (hs, 1.0, hs));
the_Heightfield : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Hull",
the_Applet.gui_World.all'Access,
Origin_3D,
the_Heightfield_Model,
the_Heightfield_physics_Model);
begin
-- Applet.
--
the_Applet.gui_Camera.Site_is ((0.0, 4.0, 30.0)); -- Position the camera.
the_Applet.enable_simple_Dolly (in_World => the_Applet.gui_World.Id); -- Enable user camera control via keyboard.
the_Applet.Dolly.Speed_is (0.1);
the_Applet.Renderer.Background_is (Blue);
-- Set the lights position.
--
declare
Light : openGL.Light.item := the_Applet.Renderer.new_Light;
begin
Light.Site_is ((0.0, 1000.0, 0.0));
the_Applet.Renderer.set (Light);
end;
-- Terrain.
--
the_Applet.gui_World.add (the_heightfield); -- Add heightfield.
-- Add several of each shape.
--
for i in 1 .. 5
loop
declare
-- Box
--
the_box_Model : constant openGL.Model.box.colored.view
:= openGL.Model.box.colored.new_Box (Size => (1.0, 1.0, 1.0),
Faces => (Front => (Colors => (others => (Red, Opaque))),
Rear => (Colors => (others => (Blue, Opaque))),
Upper => (Colors => (others => (Violet, Opaque))),
Lower => (Colors => (others => (Yellow, Opaque))),
Left => (Colors => (others => (Cyan, Opaque))),
Right => (Colors => (others => (Magenta, Opaque)))));
the_box_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.Cube,
half_Extents => the_box_Model.Size / 2.0),
Mass => 1.0);
the_Box : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Box",
the_Applet.gui_World.all'Access,
Origin_3D,
the_box_Model.all'Access,
the_box_physics_Model);
-- Ball
--
the_ball_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.a_sphere,
sphere_Radius => 1.0),
Mass => 1.0);
the_ball_Model : constant openGL.Model.sphere.lit_colored_textured.view
:= openGL.Model.sphere.lit_colored_textured.new_Sphere (Radius => 1.0,
Image => openGL.to_Asset ("assets/gel/golf_green-16x16.tga"));
the_Ball : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Ball",
the_Applet.gui_World.all'Access,
Origin_3D,
the_ball_Model,
the_ball_physics_Model);
-- Cone
--
the_cone_Model : constant openGL.Model.any.view
:= openGL.Model.any.new_Model (Model => openGL.to_Asset ("assets/gel/model/unit_cone.obj"),
Texture => openGL.null_Asset,
Texture_is_lucid => False);
the_cone_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.cone),
Mass => 1.0);
the_Cone : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Cone",
the_Applet.gui_World.all'Access,
Origin_3D,
the_cone_Model.all'Access,
the_cone_physics_Model);
-- Cylinder
--
the_cylinder_Model : constant openGL.Model.any.view
:= openGL.Model.any.new_Model (Model => openGL.to_Asset ("assets/gel/model/unit_cylinder.obj"),
Texture => openGL.null_Asset,
Texture_is_lucid => False);
the_cylinder_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.cylinder,
half_Extents => (1.0, 1.0, 1.0) / 2.0),
Mass => 1.0);
the_Cylinder : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Cylinder",
the_Applet.gui_World.all'Access,
Origin_3D,
the_cylinder_Model.all'Access,
the_cylinder_physics_Model);
-- Capsule
--
the_capsule_Model : constant openGL.Model.capsule.lit_colored_textured.view
:= openGL.Model.capsule.lit_colored_textured.new_Capsule (Radius => 0.5,
Height => 0.0,
Color => (palette.Green, Opaque));
the_capsule_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.a_Capsule,
lower_Radius => 0.5,
upper_Radius => 0.5,
Height => 1.0),
Mass => 1.0);
the_Capsule : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Capsule",
the_Applet.gui_World.all'Access,
Origin_3D,
the_capsule_Model.all'Access,
the_capsule_physics_Model);
-- multi_Sphere
--
the_multi_Sphere_Model : constant openGL.Model.capsule.lit_colored_textured.view
:= openGL.Model.capsule.lit_colored_textured.new_Capsule (Radius => 0.5,
Height => 0.0,
Color => (palette.Green, Opaque),
Image => openGL.to_Asset ("assets/gel/golf_green-16x16.tga"));
the_multi_Sphere_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.multi_Sphere,
Sites => new physics.Vector_3_array' ((-0.5, 0.0, 0.0),
( 0.5, 0.0, 0.0)),
Radii => new gel.math.Vector' (1 => 0.5,
2 => 0.5)),
Mass => 1.0);
the_multi_Sphere : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.multi_Sphere",
the_Applet.gui_World.all'Access,
Origin_3D,
the_multi_Sphere_Model.all'Access,
the_multi_Sphere_physics_Model);
-- Hull
--
s : constant := 0.5;
the_hull_Model : constant openGL.Model.box.colored.view
:= openGL.Model.box.colored.new_Box (Size => (s*2.0, s*2.0, s*2.0),
Faces => (Front => (Colors => (others => (Shade_of (Grey, 1.0), Opaque))),
Rear => (Colors => (others => (Shade_of (Grey, 0.5), Opaque))),
Upper => (Colors => (others => (Shade_of (Grey, 0.4), Opaque))),
Lower => (Colors => (others => (Shade_of (Grey, 0.3), Opaque))),
Left => (Colors => (others => (Shade_of (Grey, 0.2), Opaque))),
Right => (Colors => (others => (Shade_of (Grey, 0.1), Opaque)))));
the_hull_physics_Model : constant physics.Model.view
:= physics.Model.forge.new_physics_Model (shape_Info => (Kind => physics.Model.hull,
Points => new physics.Vector_3_array' ((-s, -s, s),
( s, -s, s),
( s, s, s),
(-s, s, s),
(-s, -s, -s),
( s, -s, -s),
( s, s, -s),
(-s, s, -s))),
Mass => 1.0);
the_Hull : constant gel.Sprite.view
:= gel.Sprite.forge.new_Sprite ("demo.Hull",
the_Applet.gui_World.all'Access,
Origin_3D,
the_hull_Model.all'Access,
the_hull_physics_Model);
begin
the_Applet.gui_World.add (the_Ball);
the_Applet.gui_World.add (the_Box);
the_Applet.gui_World.add (the_Cone);
the_Applet.gui_World.add (the_Cylinder);
the_Applet.gui_World.add (the_Capsule);
the_Applet.gui_World.add (the_multi_Sphere);
the_Applet.gui_World.add (the_Hull);
the_Ball .Site_is (( x, y, 0.0));
the_Box .Site_is (( 0.0, y, -2.5));
the_Cone .Site_is (( 0.0, y, 0.0));
the_Capsule .Site_is (( 0.0 + X, y, 0.0 + x));
the_Cylinder .Site_is (( 0.0, y, 4.4));
the_Hull .Site_is (( 4.0, y, 4.4));
the_multi_Sphere.Site_is ((-4.0, y, 4.4));
x := x + 2.0;
y := y + 2.0;
end;
end loop;
while the_Applet.is_open
loop
the_Applet.freshen; -- Handle any new events, evolve physics and update the screen.
end loop;
the_Applet.destroy;
end launch_mixed_Shapes;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . C A L E N D A R --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2000 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is the Alpha/VMS version.
with System.Aux_DEC; use System.Aux_DEC;
package body Ada.Calendar is
------------------------------
-- Use of Pragma Unsuppress --
------------------------------
-- This implementation of Calendar takes advantage of the permission in
-- Ada 95 of using arithmetic overflow checks to check for out of bounds
-- time values. This means that we must catch the constraint error that
-- results from arithmetic overflow, so we use pragma Unsuppress to make
-- sure that overflow is enabled, using software overflow checking if
-- necessary. That way, compiling Calendar with options to suppress this
-- checking will not affect its correctness.
------------------------
-- Local Declarations --
------------------------
Ada_Year_Min : constant := 1901;
Ada_Year_Max : constant := 2099;
-- Some basic constants used throughout
Days_In_Month : constant array (Month_Number) of Day_Number :=
(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
function To_Relative_Time (D : Duration) return Time;
function To_Relative_Time (D : Duration) return Time is
begin
return Time (Long_Integer'Integer_Value (D) / 100);
end To_Relative_Time;
---------
-- "+" --
---------
function "+" (Left : Time; Right : Duration) return Time is
pragma Unsuppress (Overflow_Check);
begin
return (Left + To_Relative_Time (Right));
exception
when Constraint_Error =>
raise Time_Error;
end "+";
function "+" (Left : Duration; Right : Time) return Time is
pragma Unsuppress (Overflow_Check);
begin
return (To_Relative_Time (Left) + Right);
exception
when Constraint_Error =>
raise Time_Error;
end "+";
---------
-- "-" --
---------
function "-" (Left : Time; Right : Duration) return Time is
pragma Unsuppress (Overflow_Check);
begin
return Left - To_Relative_Time (Right);
exception
when Constraint_Error =>
raise Time_Error;
end "-";
function "-" (Left : Time; Right : Time) return Duration is
pragma Unsuppress (Overflow_Check);
begin
return Duration'Fixed_Value
((Long_Integer (Left) - Long_Integer (Right)) * 100);
exception
when Constraint_Error =>
raise Time_Error;
end "-";
---------
-- "<" --
---------
function "<" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) < Long_Integer (Right);
end "<";
----------
-- "<=" --
----------
function "<=" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) <= Long_Integer (Right);
end "<=";
---------
-- ">" --
---------
function ">" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) > Long_Integer (Right);
end ">";
----------
-- ">=" --
----------
function ">=" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) >= Long_Integer (Right);
end ">=";
-----------
-- Clock --
-----------
-- The Ada.Calendar.Clock function gets the time.
-- Note that on other targets a soft-link is used to get a different clock
-- depending whether tasking is used or not. On VMS this isn't needed
-- since all clock calls end up using SYS$GETTIM, so call the
-- OS_Primitives version for efficiency.
function Clock return Time is
begin
return Time (OSP.OS_Clock);
end Clock;
---------
-- Day --
---------
function Day (Date : Time) return Day_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DD;
end Day;
-----------
-- Month --
-----------
function Month (Date : Time) return Month_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DM;
end Month;
-------------
-- Seconds --
-------------
function Seconds (Date : Time) return Day_Duration is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DS;
end Seconds;
-----------
-- Split --
-----------
procedure Split
(Date : Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Seconds : out Day_Duration)
is
procedure Numtim (
Status : out Unsigned_Longword;
Timbuf : out Unsigned_Word_Array;
Timadr : in Time);
pragma Interface (External, Numtim);
pragma Import_Valued_Procedure (Numtim, "SYS$NUMTIM",
(Unsigned_Longword, Unsigned_Word_Array, Time),
(Value, Reference, Reference));
Status : Unsigned_Longword;
Timbuf : Unsigned_Word_Array (1 .. 7);
begin
Numtim (Status, Timbuf, Date);
if Status mod 2 /= 1
or else Timbuf (1) not in Ada_Year_Min .. Ada_Year_Max
then
raise Time_Error;
end if;
Seconds
:= Day_Duration (Timbuf (6) + 60 * (Timbuf (5) + 60 * Timbuf (4)))
+ Day_Duration (Timbuf (7)) / 100.0;
Day := Integer (Timbuf (3));
Month := Integer (Timbuf (2));
Year := Integer (Timbuf (1));
end Split;
-------------
-- Time_Of --
-------------
function Time_Of
(Year : Year_Number;
Month : Month_Number;
Day : Day_Number;
Seconds : Day_Duration := 0.0)
return Time
is
procedure Cvt_Vectim (
Status : out Unsigned_Longword;
Input_Time : in Unsigned_Word_Array;
Resultant_Time : out Time);
pragma Interface (External, Cvt_Vectim);
pragma Import_Valued_Procedure (Cvt_Vectim, "LIB$CVT_VECTIM",
(Unsigned_Longword, Unsigned_Word_Array, Time),
(Value, Reference, Reference));
Status : Unsigned_Longword;
Timbuf : Unsigned_Word_Array (1 .. 7);
Date : Time;
Int_Secs : Integer;
Day_Hack : Boolean := False;
begin
-- The following checks are redundant with respect to the constraint
-- error checks that should normally be made on parameters, but we
-- decide to raise Constraint_Error in any case if bad values come
-- in (as a result of checks being off in the caller, or for other
-- erroneous or bounded error cases).
if not Year 'Valid
or else not Month 'Valid
or else not Day 'Valid
or else not Seconds'Valid
then
raise Constraint_Error;
end if;
-- Truncate seconds value by subtracting 0.5 and rounding,
-- but be careful with 0.0 since that will give -1.0 unless
-- it is treated specially.
if Seconds > 0.0 then
Int_Secs := Integer (Seconds - 0.5);
else
Int_Secs := Integer (Seconds);
end if;
-- Cvt_Vectim barfs on the largest Day_Duration, so trick it by
-- setting it to zero and then adding the difference after conversion.
if Int_Secs = 86_400 then
Int_Secs := 0;
Day_Hack := True;
Timbuf (7) := 0;
else
Timbuf (7) := Unsigned_Word
(100.0 * Duration (Seconds - Day_Duration (Int_Secs)));
-- Cvt_Vectim accurate only to within .01 seconds
end if;
-- Similar hack needed for 86399 and 100/100ths, since that gets
-- treated as 86400 (largest Day_Duration). This can happen because
-- Duration has more accuracy than VMS system time conversion calls
-- can handle.
if Int_Secs = 86_399 and then Timbuf (7) = 100 then
Int_Secs := 0;
Day_Hack := True;
Timbuf (7) := 0;
end if;
Timbuf (6) := Unsigned_Word (Int_Secs mod 60);
Timbuf (5) := Unsigned_Word ((Int_Secs / 60) mod 60);
Timbuf (4) := Unsigned_Word (Int_Secs / 3600);
Timbuf (3) := Unsigned_Word (Day);
Timbuf (2) := Unsigned_Word (Month);
Timbuf (1) := Unsigned_Word (Year);
Cvt_Vectim (Status, Timbuf, Date);
if Status mod 2 /= 1 then
raise Time_Error;
end if;
if Day_Hack then
Date := Date + 10_000_000 * 86_400;
end if;
return Date;
end Time_Of;
----------
-- Year --
----------
function Year (Date : Time) return Year_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DY;
end Year;
end Ada.Calendar;
|
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
with Ada.Numerics.Elementary_Functions;
procedure euler42 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.Stream (Current_Output), To_Ada(s.all));
end;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left));
end;
procedure SkipSpaces is
C : Character;
Eol : Boolean;
begin
loop
Look_Ahead(C, Eol);
exit when Eol or C /= ' ';
Get(C);
end loop;
end;
function is_triangular(n : in Integer) return Boolean is
a : Integer;
begin
--
-- n = k * (k + 1) / 2
-- n * 2 = k * (k + 1)
--
a := Integer(Float'Truncation(Ada.Numerics.Elementary_Functions.Sqrt(Float(n * 2))));
return a * (a + 1) = n * 2;
end;
function score return Integer is
sum : Integer;
len : Integer;
c : Character;
begin
SkipSpaces;
Get(len);
SkipSpaces;
sum := 0;
for i in integer range 1..len loop
Get(c);
sum := sum + Character'Pos(c) - Character'Pos('A') + 1;
-- print c print " " print sum print " "
end loop;
if is_triangular(sum)
then
return 1;
else
return 0;
end if;
end;
sum : Integer;
n : Integer;
begin
for i in integer range 1..55 loop
if is_triangular(i)
then
PInt(i);
PString(new char_array'( To_C(" ")));
end if;
end loop;
PString(new char_array'( To_C("" & Character'Val(10))));
sum := 0;
Get(n);
for i in integer range 1..n loop
sum := sum + score;
end loop;
PInt(sum);
PString(new char_array'( To_C("" & Character'Val(10))));
end;
|
with
ada.Strings.Hash,
ada.unchecked_Conversion;
package body openGL
is
------------
-- Profiles
--
function Profile return profile_Kind
is separate;
-----------
-- Vectors
--
function Scaled (Self : in Vector_3; By : in Vector_3) return Vector_3
is
begin
return (Self (1) * By (1),
Self (2) * By (2),
Self (3) * By (3));
end Scaled;
function Scaled (Self : in Vector_3_array; By : in Vector_3) return Vector_3_array
is
Result : Vector_3_array (Self'Range);
begin
for i in Result'Range
loop
Result (i) := Scaled (Self (i), By);
end loop;
return Result;
end Scaled;
function to_Vector_3_array (Self : Vector_2_array) return Vector_3_array
is
the_Array : Vector_3_array (1 .. Self'Length);
begin
for i in Self'Range
loop
the_Array (Index_t (i)) := Vector_3 (Self (i) & 0.0);
end loop;
return the_Array;
end to_Vector_3_array;
----------
-- Colors
--
function to_color_Value (Self : in unit_Interval) return color_Value
is
Value : constant Real := Real'Rounding (Self * 255.0);
begin
return color_Value (Value);
end to_color_Value;
function to_Real (Self : in color_Value) return unit_Interval
is
begin
return Real (Self) / 255.0;
end to_Real;
function to_Color (R, G, B : in unit_Interval) return Color
is
begin
return (to_color_Value (R),
to_color_Value (G),
to_color_Value (B));
end to_Color;
-------------
-- Heightmap
--
function Scaled (Self : in height_Map; By : in Real) return height_Map
is
begin
return Result : height_Map := Self
do
scale (Result, By);
end return;
end scaled;
procedure scale (Self : in out height_Map; By : in Real)
is
begin
for Row in Self'Range (1)
loop
for Col in Self'Range (1)
loop
Self (Row, Col) := Self (Row, Col) * By;
end loop;
end loop;
end scale;
function height_Extent (Self : in height_Map) return Vector_2
is
Min : Real := Real'Last;
Max : Real := Real'First;
begin
for Row in Self'Range (1)
loop
for Col in Self'Range (2)
loop
Min := Real'Min (Min, Self (Row, Col));
Max := Real'Max (Max, Self (Row, Col));
end loop;
end loop;
return (Min, Max);
end height_Extent;
function Region (Self : in height_Map; Rows, Cols : in index_Pair) return height_Map
is
Width : constant Index_t := Index_t (Rows (2) - Rows (1));
Height : constant Index_t := Index_t (Cols (2) - Cols (1));
the_Region : openGL.height_Map (1 .. Width + 1,
1 .. Height + 1);
begin
for Row in the_Region'Range (1)
loop
for Col in the_Region'Range (2)
loop
the_Region (Row, Col) := Self (Row + Rows (1) - 1,
Col + Cols (1) - 1);
end loop;
end loop;
return the_Region;
end Region;
----------
-- Assets
--
function to_Asset (Self : in String) return asset_Name
is
the_Name : String (asset_Name'Range);
begin
the_Name (1 .. Self'Length) := Self;
the_Name (Self'Length + 1 .. the_Name'Last) := (others => ' ');
return asset_Name (the_Name);
end to_Asset;
function to_String (Self : in asset_Name) return String
is
begin
for Each in reverse Self'Range
loop
if Self (Each) /= ' '
then
return String (Self (1 .. Each));
end if;
end loop;
return "";
end to_String;
function Hash (Self : in asset_Name) return ada.Containers.Hash_type
is
begin
return ada.Strings.Hash (to_String (Self));
end Hash;
---------
-- Bounds
--
function bounding_Box_of (Self : Sites) return Bounds
is
Result : Bounds := null_Bounds;
begin
for Each in Self'Range
loop
Result.Box.Lower (1) := Real'Min (Result.Box.Lower (1), Self (Each)(1));
Result.Box.Lower (2) := Real'Min (Result.Box.Lower (2), Self (Each)(2));
Result.Box.Lower (3) := Real'Min (Result.Box.Lower (3), Self (Each)(3));
Result.Box.Upper (1) := Real'Max (Result.Box.Upper (1), Self (Each)(1));
Result.Box.Upper (2) := Real'Max (Result.Box.Upper (2), Self (Each)(2));
Result.Box.Upper (3) := Real'Max (Result.Box.Upper (3), Self (Each)(3));
Result.Ball := Real'Max (Result.Ball,
abs Self (Each));
end loop;
return Result;
end bounding_Box_of;
procedure set_Ball_from_Box (Self : in out Bounds)
is
begin
Self.Ball := Real'Max (abs Self.Box.Lower,
abs Self.Box.Upper);
end set_Ball_from_Box;
---------
-- Images
--
function to_Image (From : in lucid_Image) return Image
is
the_Image : Image (From'Range (1),
From'Range (2));
begin
for Row in From'Range (1)
loop
for Col in From'Range (2)
loop
the_Image (Row, Col) := From (Row, Col).Primary;
end loop;
end loop;
return the_Image;
end to_Image;
------------
-- safe_Real
--
protected
body safe_Real
is
procedure Value_is (Now : in Real)
is
begin
the_Value := Now;
end Value_is;
function Value return Real
is
begin
return the_Value;
end Value;
end safe_Real;
end openGL;
|
-- CC3007B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT THE NAMES IN A GENERIC INSTANTIATION ARE STATICALLY
-- IDENTIFIED (I.E., BOUND) AT THE TEXTUAL POINT OF THE INSTANTIA-
-- TION, AND ARE BOUND BEFORE BEING "SUBSTITUTED" FOR THE COR-
-- RESPONDING GENERIC FORMAL PARAMETERS IN THE SPECIFICATION AND
-- BODY TEMPLATES.
--
-- SEE AI-00365/05-BI-WJ.
-- HISTORY:
-- EDWARD V. BERARD, 15 AUGUST 1990
-- DAS 08 OCT 90 CHANGED INSTANTIATIONS TO USE VARIABLES
-- M1 AND M2 IN THE FIRST_BLOCK INSTANTIA-
-- TION AND TO ASSIGN THIRD_DATE AND
-- FOURTH_DATE VALUES BEFORE AND AFTER THE
-- SECOND_BLOCK INSTANTIATION.
WITH REPORT;
PROCEDURE CC3007B IS
INCREMENTED_VALUE : NATURAL := 0;
TYPE MONTH_TYPE IS (JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG,
SEP, OCT, NOV, DEC);
TYPE DAY_TYPE IS RANGE 1 .. 31;
TYPE YEAR_TYPE IS RANGE 1904 .. 2050;
TYPE DATE IS RECORD
MONTH : MONTH_TYPE;
DAY : DAY_TYPE;
YEAR : YEAR_TYPE;
END RECORD;
TYPE DATE_ACCESS IS ACCESS DATE;
TODAY : DATE := (MONTH => AUG,
DAY => 8,
YEAR => 1990);
CHRISTMAS : DATE := (MONTH => DEC,
DAY => 25,
YEAR => 1948);
WALL_DATE : DATE := (MONTH => NOV,
DAY => 9,
YEAR => 1989);
BIRTH_DATE : DATE := (MONTH => OCT,
DAY => 3,
YEAR => 1949);
FIRST_DUE_DATE : DATE := (MONTH => JAN,
DAY => 23,
YEAR => 1990);
LAST_DUE_DATE : DATE := (MONTH => DEC,
DAY => 20,
YEAR => 1990);
THIS_MONTH : MONTH_TYPE := AUG;
STORED_RECORD : DATE := TODAY;
STORED_INDEX : MONTH_TYPE := AUG;
FIRST_DATE : DATE_ACCESS := NEW DATE'(WALL_DATE);
SECOND_DATE : DATE_ACCESS := FIRST_DATE;
THIRD_DATE : DATE_ACCESS := NEW DATE'(BIRTH_DATE);
FOURTH_DATE : DATE_ACCESS := NEW DATE'(CHRISTMAS);
TYPE DUE_DATES IS ARRAY (MONTH_TYPE RANGE JAN .. DEC) OF DATE;
REPORT_DATES : DUE_DATES := ((JAN, 23, 1990), (FEB, 23, 1990),
(MAR, 23, 1990), (APR, 23, 1990),
(MAY, 23, 1990), (JUN, 22, 1990),
(JUL, 23, 1990), (AUG, 23, 1990),
(SEP, 24, 1990), (OCT, 23, 1990),
(NOV, 23, 1990), (DEC, 20, 1990));
GENERIC
NATURALLY : IN NATURAL;
FIRST_RECORD : IN OUT DATE;
SECOND_RECORD : IN OUT DATE;
TYPE RECORD_POINTER IS ACCESS DATE;
POINTER : IN OUT RECORD_POINTER;
TYPE ARRAY_TYPE IS ARRAY (MONTH_TYPE) OF DATE;
THIS_ARRAY : IN OUT ARRAY_TYPE;
FIRST_ARRAY_ELEMENT : IN OUT DATE;
SECOND_ARRAY_ELEMENT : IN OUT DATE;
INDEX_ELEMENT : IN OUT MONTH_TYPE;
POINTER_TEST : IN OUT DATE;
ANOTHER_POINTER_TEST : IN OUT DATE;
PACKAGE TEST_ACTUAL_PARAMETERS IS
PROCEDURE EVALUATE_FUNCTION;
PROCEDURE CHECK_RECORDS;
PROCEDURE CHECK_ACCESS;
PROCEDURE CHECK_ARRAY;
PROCEDURE CHECK_ARRAY_ELEMENTS;
PROCEDURE CHECK_SCALAR;
PROCEDURE CHECK_POINTERS;
END TEST_ACTUAL_PARAMETERS;
PACKAGE BODY TEST_ACTUAL_PARAMETERS IS
PROCEDURE EVALUATE_FUNCTION IS
BEGIN -- EVALUATE_FUNCTION
IF (INCREMENTED_VALUE = 0) OR
(NATURALLY /= INCREMENTED_VALUE) THEN
REPORT.FAILED ("PROBLEMS EVALUATING FUNCTION " &
"PARAMETER.");
END IF;
END EVALUATE_FUNCTION;
PROCEDURE CHECK_RECORDS IS
STORE : DATE;
BEGIN -- CHECK_RECORDS
IF STORED_RECORD /= FIRST_RECORD THEN
REPORT.FAILED ("PROBLEM WITH RECORD TYPES");
ELSE
STORED_RECORD := SECOND_RECORD;
STORE := FIRST_RECORD;
FIRST_RECORD := SECOND_RECORD;
SECOND_RECORD := STORE;
END IF;
END CHECK_RECORDS;
PROCEDURE CHECK_ACCESS IS
BEGIN -- CHECK_ACCESS
IF ((INCREMENTED_VALUE / 2) * 2) /= INCREMENTED_VALUE
THEN
IF POINTER.ALL /= DATE'(WALL_DATE) THEN
REPORT.FAILED ("PROBLEM WITH ACCESS TYPES " &
"- 1");
ELSE
POINTER.ALL := DATE'(BIRTH_DATE);
END IF;
ELSE
IF POINTER.ALL /= DATE'(BIRTH_DATE) THEN
REPORT.FAILED ("PROBLEM WITH ACCESS TYPES " &
"- 2");
ELSE
POINTER.ALL := DATE'(WALL_DATE);
END IF;
END IF;
END CHECK_ACCESS;
PROCEDURE CHECK_ARRAY IS
STORE : DATE;
BEGIN -- CHECK_ARRAY
IF ((INCREMENTED_VALUE / 2) * 2) /= INCREMENTED_VALUE
THEN
IF THIS_ARRAY (THIS_ARRAY'FIRST) /= FIRST_DUE_DATE
THEN
REPORT.FAILED ("PROBLEM WITH ARRAY TYPES - 1");
ELSE
THIS_ARRAY (THIS_ARRAY'FIRST) := LAST_DUE_DATE;
THIS_ARRAY (THIS_ARRAY'LAST) := FIRST_DUE_DATE;
END IF;
ELSE
IF THIS_ARRAY (THIS_ARRAY'FIRST) /= LAST_DUE_DATE
THEN
REPORT.FAILED ("PROBLEM WITH ARRAY TYPES - 2");
ELSE
THIS_ARRAY (THIS_ARRAY'FIRST) :=
FIRST_DUE_DATE;
THIS_ARRAY (THIS_ARRAY'LAST) := LAST_DUE_DATE;
END IF;
END IF;
END CHECK_ARRAY;
PROCEDURE CHECK_ARRAY_ELEMENTS IS
STORE : DATE;
BEGIN -- CHECK_ARRAY_ELEMENTS
IF ((INCREMENTED_VALUE / 2) * 2) /= INCREMENTED_VALUE
THEN
IF (FIRST_ARRAY_ELEMENT.MONTH /= MAY) OR
(SECOND_ARRAY_ELEMENT.DAY /= 22) THEN
REPORT.FAILED ("PROBLEM WITH ARRAY ELEMENTS " &
"- 1");
ELSE
STORE := FIRST_ARRAY_ELEMENT;
FIRST_ARRAY_ELEMENT := SECOND_ARRAY_ELEMENT;
SECOND_ARRAY_ELEMENT := STORE;
END IF;
ELSE
IF (FIRST_ARRAY_ELEMENT.MONTH /= JUN) OR
(SECOND_ARRAY_ELEMENT.DAY /= 23) THEN
REPORT.FAILED ("PROBLEM WITH ARRAY ELEMENTS " &
"- 2");
ELSE
STORE := FIRST_ARRAY_ELEMENT;
FIRST_ARRAY_ELEMENT := SECOND_ARRAY_ELEMENT;
SECOND_ARRAY_ELEMENT := STORE;
END IF;
END IF;
END CHECK_ARRAY_ELEMENTS;
PROCEDURE CHECK_SCALAR IS
BEGIN -- CHECK_SCALAR
IF ((INCREMENTED_VALUE / 2) * 2) /= INCREMENTED_VALUE
THEN
IF INDEX_ELEMENT /= STORED_INDEX THEN
REPORT.FAILED ("PROBLEM WITH INDEX TYPES - 1");
ELSE
INDEX_ELEMENT :=
MONTH_TYPE'SUCC(INDEX_ELEMENT);
STORED_INDEX := INDEX_ELEMENT;
END IF;
ELSE
IF INDEX_ELEMENT /= STORED_INDEX THEN
REPORT.FAILED ("PROBLEM WITH INDEX TYPES - 2");
ELSE
INDEX_ELEMENT :=
MONTH_TYPE'PRED (INDEX_ELEMENT);
STORED_INDEX := INDEX_ELEMENT;
END IF;
END IF;
END CHECK_SCALAR;
PROCEDURE CHECK_POINTERS IS
STORE : DATE;
BEGIN -- CHECK_POINTERS
IF ((INCREMENTED_VALUE / 2) * 2) /= INCREMENTED_VALUE
THEN
IF (POINTER_TEST /= DATE'(OCT, 3, 1949)) OR
(ANOTHER_POINTER_TEST /= DATE'(DEC, 25, 1948))
THEN
REPORT.FAILED ("PROBLEM WITH POINTER TEST " &
"- 1");
ELSE
STORE := POINTER_TEST;
POINTER_TEST := ANOTHER_POINTER_TEST;
ANOTHER_POINTER_TEST := STORE;
END IF;
ELSE
IF (POINTER_TEST /= DATE'(DEC, 25, 1948)) OR
(ANOTHER_POINTER_TEST /= DATE'(OCT, 3, 1949))
THEN
REPORT.FAILED ("PROBLEM WITH POINTER TEST " &
"- 2");
ELSE
STORE := POINTER_TEST;
POINTER_TEST := ANOTHER_POINTER_TEST;
ANOTHER_POINTER_TEST := STORE;
END IF;
END IF;
END CHECK_POINTERS;
END TEST_ACTUAL_PARAMETERS;
FUNCTION INC RETURN NATURAL IS
BEGIN -- INC
INCREMENTED_VALUE := NATURAL'SUCC (INCREMENTED_VALUE);
RETURN INCREMENTED_VALUE;
END INC;
BEGIN -- CC3007B
REPORT.TEST ("CC3007B", "CHECK THAT THE NAMES IN A GENERIC " &
"INSTANTIATION ARE STAICALLY IDENTIFIED (I.E., " &
"BOUND) AT THE TEXTUAL POINT OF THE INSTANTIATION" &
", AND ARE BOUND BEFORE BEING SUBSTITUTED FOR " &
"THE CORRESPONDING GENERIC FORMAL PARAMETERS IN " &
"THE SPECIFICATION AND BODY TEMPLATES. " &
"SEE AI-00365/05-BI-WJ.");
FIRST_BLOCK:
DECLARE
M1 : MONTH_TYPE := MAY;
M2 : MONTH_TYPE := JUN;
PACKAGE NEW_TEST_ACTUAL_PARAMETERS IS
NEW TEST_ACTUAL_PARAMETERS (
NATURALLY => INC,
FIRST_RECORD => TODAY,
SECOND_RECORD => CHRISTMAS,
RECORD_POINTER => DATE_ACCESS,
POINTER => SECOND_DATE,
ARRAY_TYPE => DUE_DATES,
THIS_ARRAY => REPORT_DATES,
FIRST_ARRAY_ELEMENT => REPORT_DATES (M1),
SECOND_ARRAY_ELEMENT => REPORT_DATES (M2),
INDEX_ELEMENT => THIS_MONTH,
POINTER_TEST => THIRD_DATE.ALL,
ANOTHER_POINTER_TEST => FOURTH_DATE.ALL);
BEGIN -- FIRST_BLOCK
REPORT.COMMENT ("ENTERING FIRST BLOCK");
NEW_TEST_ACTUAL_PARAMETERS.EVALUATE_FUNCTION;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_SCALAR;
M1 := SEP;
M2 := OCT;
-- NEW_TEST_ACTUAL_PARAMETERS SHOULD USE THE PREVIOUS
-- VALUES OF MAY AND JUN.
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ARRAY;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ARRAY_ELEMENTS;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ACCESS;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_RECORDS;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_POINTERS;
END FIRST_BLOCK;
SECOND_BLOCK:
DECLARE
SAVE_THIRD_DATE : DATE_ACCESS := THIRD_DATE;
SAVE_FOURTH_DATE : DATE_ACCESS := FOURTH_DATE;
PACKAGE NEW_TEST_ACTUAL_PARAMETERS IS
NEW TEST_ACTUAL_PARAMETERS (
NATURALLY => INC,
FIRST_RECORD => TODAY,
SECOND_RECORD => CHRISTMAS,
RECORD_POINTER => DATE_ACCESS,
POINTER => SECOND_DATE,
ARRAY_TYPE => DUE_DATES,
THIS_ARRAY => REPORT_DATES,
FIRST_ARRAY_ELEMENT => REPORT_DATES (MAY),
SECOND_ARRAY_ELEMENT => REPORT_DATES (JUN),
INDEX_ELEMENT => THIS_MONTH,
POINTER_TEST => THIRD_DATE.ALL,
ANOTHER_POINTER_TEST => FOURTH_DATE.ALL);
BEGIN -- SECOND_BLOCK
REPORT.COMMENT ("ENTERING SECOND BLOCK");
NEW_TEST_ACTUAL_PARAMETERS.EVALUATE_FUNCTION;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_SCALAR;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ARRAY;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ARRAY_ELEMENTS;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_ACCESS;
NEW_TEST_ACTUAL_PARAMETERS.CHECK_RECORDS;
THIRD_DATE := NEW DATE'(JUL, 13, 1951);
FOURTH_DATE := NEW DATE'(JUL, 4, 1976);
NEW_TEST_ACTUAL_PARAMETERS.CHECK_POINTERS;
THIRD_DATE := SAVE_THIRD_DATE;
FOURTH_DATE := SAVE_FOURTH_DATE;
END SECOND_BLOCK;
REPORT.RESULT;
END CC3007B;
|
package Forward_AD.Integrator is
type Variable (N2 : Nat) is
record
X : Real_Array (1 .. N2);
T : Real;
end record;
type Control_Type (N : Nat) is
record
Dt : Real := 1.0;
Eps : Real := 1.0e-10;
Err : Real := 1.0;
end record;
function Bogack_Shampine (Hamiltonian : not null access
function (X : Real_Array; N : Nat) return AD_Type;
Var : in Variable;
Control : in out Control_Type)
return Real_Array;
procedure Update (Hamiltonian : not null access
function (X : Real_Array; N : Nat) return AD_Type;
Var : in out Variable;
Control : in out Control_Type);
end Forward_AD.Integrator;
|
package Yeison_Multi with Preelaborate is
type Any is tagged private;
type Scalar is tagged private with
Integer_Literal => To_Int,
String_Literal => To_Str;
function To_Int (Img : String) return Scalar;
function To_Str (Img : Wide_Wide_String) return Scalar;
type Map is tagged private with
Aggregate => (Empty => Empty,
Add_Named => Insert);
function Empty return Map;
procedure Insert (This : in out Map; Key : String; Val : Any'Class);
procedure Insert (This : in out Map; Key : String; Val : Scalar'Class);
procedure Insert (This : in out Map; Key : String; Val : Map);
private
type Any is tagged null record;
type Scalar is tagged null record;
type Map is tagged null record;
end Yeison_Multi;
|
-- C48006A.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 AN ALLOCATOR OF THE FORM "NEW T'(X)" ALLOCATES A NEW
-- OBJECT EACH TIME IT IS EXECUTED AND THAT IF T IS A SCALAR OR ACCESS
-- TYPE, THE ALLOCATED OBJECT HAS THE VALUE OF X.
-- RM 01/14/80
-- RM 01/O1/82
-- SPS 10/27/82
-- EG 07/05/84
WITH REPORT;
PROCEDURE C48006A IS
USE REPORT;
BEGIN
TEST("C48006A","CHECK THAT THE FORM 'NEW T'(X)' " &
"ALLOCATES A NEW OBJECT " &
"AND THAT IF T IS A SCALAR OR ACCESS TYPE, THE " &
"ALLOCATED OBJECT HAS THE VALUE OF X");
DECLARE
TYPE ATA IS ACCESS INTEGER;
TYPE AATA IS ACCESS ATA;
VA1, VA2, VA3 : ATA;
VAA1, VAA2, VAA3 : AATA;
BEGIN
VA1 := NEW INTEGER'(5 + 7);
IF VA1.ALL /= IDENT_INT(12) THEN
FAILED("WRONG VALUES - VA1");
END IF;
VA2 := NEW INTEGER'(1 + 2);
IF (VA1.ALL /= IDENT_INT(12) OR
VA2.ALL /= IDENT_INT( 3)) THEN
FAILED("WRONG VALUES - VA2");
END IF;
VA3 := NEW INTEGER'(IDENT_INT(3) + IDENT_INT(4));
IF (VA1.ALL /= IDENT_INT(12) OR
VA2.ALL /= IDENT_INT( 3) OR
VA3.ALL /= IDENT_INT( 7)) THEN
FAILED("WRONG VALUES - VA3");
END IF;
VAA1 := NEW ATA'(NEW INTEGER'(3));
IF VAA1.ALL.ALL /= IDENT_INT(3) THEN
FAILED ("WRONG VALUES - VAA1");
END IF;
VAA2 := NEW ATA'(NEW INTEGER'(IDENT_INT(5)));
IF (VAA1.ALL.ALL /= 3 OR
VAA2.ALL.ALL /= 5 ) THEN
FAILED ("WRONG VALUES - VAA2");
END IF;
VAA3 := NEW ATA'(NEW INTEGER'(IDENT_INT(6)));
IF (VAA1.ALL.ALL /= 3 OR
VAA2.ALL.ALL /= 5 OR
VAA3.ALL.ALL /= 6 ) THEN
FAILED ("WRONG VALUES - VAA3");
END IF;
END;
RESULT;
END C48006A;
|
-- Generated by utildgen.c from system includes
with Interfaces.C;
package Util.Systems.Constants is
pragma Pure;
-- Flags used when opening a file with open/creat.
O_RDONLY : constant Interfaces.C.int := 8#000000#;
O_WRONLY : constant Interfaces.C.int := 8#000001#;
O_RDWR : constant Interfaces.C.int := 8#000002#;
O_CREAT : constant Interfaces.C.int := 8#000400#;
O_EXCL : constant Interfaces.C.int := 8#002000#;
O_TRUNC : constant Interfaces.C.int := 8#001000#;
O_APPEND : constant Interfaces.C.int := 8#000010#;
O_CLOEXEC : constant Interfaces.C.int := 8#100000#;
O_SYNC : constant Interfaces.C.int := 0;
O_DIRECT : constant Interfaces.C.int := 0;
DLL_OPTIONS : constant String := "-ldl";
SYMBOL_PREFIX : constant String := "";
end Util.Systems.Constants;
|
package Generic_Root is
type Number is range 0 .. 2**63-1;
type Number_Array is array(Positive range <>) of Number;
type Base_Type is range 2 .. 16; -- any reasonable base to write down numb
generic
with function "&"(X, Y: Number) return Number;
-- instantiate with "+" for additive digital roots
-- instantiate with "*" for multiplicative digital roots
procedure Compute_Root(N: Number;
Root, Persistence: out Number;
Base: Base_Type := 10);
-- computes Root and Persistence of N;
end Generic_Root;
|
-- { dg-do compile }
procedure Derived_Type4 is
type Root (D : Positive) is record
S : String (1 .. D);
end record;
subtype Short is Positive range 1 .. 10;
type Derived (N : Short := 1) is new Root (D => N);
Obj : Derived;
begin
Obj := (N => 5, S => "Hello");
end;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- A D A . R E A L _ T I M E . D E L A Y S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- Implements Real_Time.Time absolute delays
-- Note: the compiler generates direct calls to this interface, in the
-- processing of time types.
package Ada.Real_Time.Delays is
function To_Duration (T : Real_Time.Time) return Duration;
-- Convert Time to Duration
procedure Delay_Until (T : Time);
-- Delay until Clock has reached (at least) time T,
-- or the task is aborted to at least the current ATC nesting level.
-- The body of this procedure must perform all the processing
-- required for an abort point.
end Ada.Real_Time.Delays;
|
--
-- Checks if a string is a valid email address.
--
-- Strings for test are located in file <email.txt>
--
with Ada.Text_IO; use Ada.Text_IO;
with AdaPcre; use AdaPcre;
procedure Email is
Email_File : File_Type;
Email_Pattern : constant String :=
"^[A-z0-9._%-]+@[A-z0-9.-]+\.[A-z]{2,4}$";
Email_Str : String (1 .. 100);
Last : Natural;
Regexp : Pcre_Type;
Extra : Extra_type;
Retcode : Integer;
Msg : Message;
Last_Msg, ErrPos : Natural := 0;
Vector : Match_Array (0 .. 2);
begin
Compile (Regexp, Email_Pattern, Msg, Last_Msg, ErrPos);
if Regexp = Null_Pcre then
Put_Line
("PCRE compilation failed at offset " & Natural'Image (ErrPos));
Put_Line (Msg (1 .. Last_Msg));
return;
end if;
Study (Extra, Regexp, Msg, Last_Msg);
Open (Email_File, In_File, "email.txt");
Set_Input (Email_File);
while not End_Of_File (Email_File) loop
Get_Line (Email_Str, Last);
Put (Email_Str (1 .. Last));
Match (Retcode, Vector, Regexp, Extra, Email_Str, Last);
if Retcode = -1 then
Put_Line (" => Invalid Email. No match !");
elsif Retcode < -1 then
Put_Line
("Failure in PCRE ! error number => " & Integer'Image (Retcode));
else
Put_Line (" => Valid Email");
end if;
end loop;
Close (Email_File);
Free (Extra);
Free (Regexp);
end Email;
|
package BitOperations
with SPARK_Mode, Pure, Preelaborate is
end BitOperations;
|
with AFRL.impact.AngledAreaSearchTask;
with AFRL.impact.ImpactLineSearchTask;
with AFRL.impact.ImpactPointSearchTask;
package AFRL.CMASI.lmcptask.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
-- This package introduces a private type hiding an access to a
-- lmcptask.
type Task_Kind is (AngledAreaSearchTask, ImpactLineSearchTask, ImpactPointSearchTask, Other_Task);
type Task_Kind_And_Id (Kind : Task_Kind := Other_Task) is record
case Kind is
when AngledAreaSearchTask =>
SearchAreaID : Int64;
when ImpactLineSearchTask =>
LineID : Int64;
when ImpactPointSearchTask =>
SearchLocationID : Int64;
when Other_Task =>
null;
end case;
end record;
function Get_Kind_And_Id (X : lmcptask_Any) return Task_Kind_And_Id with
Global => null,
SPARK_Mode => Off;
private
pragma SPARK_Mode (Off);
function Get_Kind_And_Id (X : lmcptask_Any) return Task_Kind_And_Id is
(if X.getLMCPTypeName = AFRL.impact.AngledAreaSearchTask.Subscription then
(Kind => AngledAreaSearchTask,
SearchAreaID => AFRL.impact.AngledAreaSearchTask.AngledAreaSearchTask (X.all).getSearchAreaID)
elsif X.getLMCPTypeName = AFRL.impact.ImpactLineSearchTask.Subscription then
(Kind => ImpactLineSearchTask,
LineID => AFRL.impact.ImpactLineSearchTask.ImpactLineSearchTask (X.all).getLineID)
elsif X.getLMCPTypeName = AFRL.impact.ImpactPointSearchTask.Subscription then
(Kind => ImpactPointSearchTask,
SearchLocationID => AFRL.impact.ImpactPointSearchTask.ImpactPointSearchTask (X.all).getSearchLocationID)
else (Kind => Other_Task));
end AFRL.CMASI.lmcptask.SPARK_Boundary;
|
-------------------------------------------------------------------------------
-- Copyright (c) 2016, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * The name of the copyright holder may not be used to endorse or promote
-- Products derived from this software without specific prior written
-- permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
-- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
with Sponge_Tests;
with Keccak.Keccak_1600.Rounds_24;
with Keccak.Keccak_800.Rounds_22;
with Keccak.Keccak_400.Rounds_20;
with Keccak.Keccak_200.Rounds_18;
with Keccak.Keccak_100.Rounds_16;
with Keccak.Keccak_50.Rounds_14;
with Keccak.Keccak_25.Rounds_12;
with Gimli.Sponge;
with AUnit.Test_Caller;
package body Sponge_Suite
is
-- For these tests we need to choose values for the Capacity such that the
-- rate will be a multiple of 8 (required precondition for Sponge.Init).
package Sponge_1600_Tests is new Sponge_Tests
(Keccak.Keccak_1600.Rounds_24.Sponge, 512);
package Sponge_800_Tests is new Sponge_Tests
(Keccak.Keccak_800.Rounds_22.Sponge, 512);
package Sponge_400_Tests is new Sponge_Tests
(Keccak.Keccak_400.Rounds_20.Sponge, 256);
package Sponge_200_Tests is new Sponge_Tests
(Keccak.Keccak_200.Rounds_18.Sponge, 128);
package Sponge_100_Tests is new Sponge_Tests
(Keccak.Keccak_100.Rounds_16.Sponge, 60);
package Sponge_50_Tests is new Sponge_Tests
(Keccak.Keccak_50.Rounds_14.Sponge, 26);
package Sponge_25_Tests is new Sponge_Tests
(Keccak.Keccak_25.Rounds_12.Sponge, 9);
package Sponge_Gimli_Tests is new Sponge_Tests
(Gimli.Sponge, 256);
package Caller_1600 is new AUnit.Test_Caller (Sponge_1600_Tests.Test);
package Caller_800 is new AUnit.Test_Caller (Sponge_800_Tests.Test);
package Caller_400 is new AUnit.Test_Caller (Sponge_400_Tests.Test);
package Caller_200 is new AUnit.Test_Caller (Sponge_200_Tests.Test);
package Caller_100 is new AUnit.Test_Caller (Sponge_100_Tests.Test);
package Caller_50 is new AUnit.Test_Caller (Sponge_50_Tests.Test);
package Caller_25 is new AUnit.Test_Caller (Sponge_25_Tests.Test);
package Caller_Gimli is new AUnit.Test_Caller (Sponge_Gimli_Tests.Test);
function Suite return Access_Test_Suite
is
Ret : constant Access_Test_Suite := new Test_Suite;
begin
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Input streaming test",
Sponge_1600_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Output streaming test",
Sponge_1600_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_1600_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_1600_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Test absorbing 0 bits",
Sponge_1600_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Test absorbing only suffix bits",
Sponge_1600_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_1600.Create
("Sponge[Keccak-f[1600], pad10*1, 512]: Test suffix bits packing",
Sponge_1600_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Input streaming test",
Sponge_800_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Output streaming test",
Sponge_800_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_800_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_800_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Test absorbing 0 bits",
Sponge_800_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Test absorbing only suffix bits",
Sponge_800_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_800.Create
("Sponge[Keccak-f[800], pad10*1, 512]: Test suffix bits packing",
Sponge_800_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Input streaming test",
Sponge_400_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Output streaming test",
Sponge_400_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_400_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_400_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Test absorbing 0 bits",
Sponge_400_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Test absorbing only suffix bits",
Sponge_400_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_400.Create
("Sponge[Keccak-f[400], pad10*1, 256]: Test suffix bits packing",
Sponge_400_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Input streaming test",
Sponge_200_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Output streaming test",
Sponge_200_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_200_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_200_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Test absorbing 0 bits",
Sponge_200_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Test absorbing only suffix bits",
Sponge_200_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_200.Create
("Sponge[Keccak-f[200], pad10*1, 128]: Test suffix bits packing",
Sponge_200_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Input streaming test",
Sponge_100_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Output streaming test",
Sponge_100_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_100_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_100_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Test absorbing 0 bits",
Sponge_100_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Test absorbing only suffix bits",
Sponge_100_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_100.Create
("Sponge[Keccak-f[100], pad10*1, 60]: Test suffix bits packing",
Sponge_100_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Input streaming test",
Sponge_50_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Output streaming test",
Sponge_50_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_50_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_50_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Test absorbing 0 bits",
Sponge_50_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Test absorbing only suffix bits",
Sponge_50_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_50.Create
("Sponge[Keccak-f[50], pad10*1, 26]: Test suffix bits packing",
Sponge_50_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Input streaming test",
Sponge_25_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Output streaming test",
Sponge_25_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_25_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_25_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Test absorbing 0 bits",
Sponge_25_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Test absorbing only suffix bits",
Sponge_25_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_25.Create
("Sponge[Keccak-f[25], pad10*1, 9]: Test suffix bits packing",
Sponge_25_Tests.Test_Suffix_Packing'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Input streaming test",
Sponge_Gimli_Tests.Test_Absorb_Streaming'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Output streaming test",
Sponge_Gimli_Tests.Test_Squeeze_Streaming'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Absorb same as Absorb_With_Suffix with 0 suffix bits",
Sponge_Gimli_Tests.Test_Absorb_No_Suffix'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Absorb_With_Suffix is same as Absorb with suffix bits in message",
Sponge_Gimli_Tests.Test_Suffix_Bits'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Test absorbing 0 bits",
Sponge_Gimli_Tests.Test_Null_Absorb'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Test absorbing only suffix bits",
Sponge_Gimli_Tests.Test_Absorb_Suffix_Only'Access));
Ret.Add_Test
(Caller_Gimli.Create
("Sponge[Gimli, pad10*1, 256]: Test suffix bits packing",
Sponge_Gimli_Tests.Test_Suffix_Packing'Access));
return Ret;
end Suite;
end Sponge_Suite;
|
--------------------------------------------------------------------------
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.GPIO;
with HAL.UART;
with Cortex_M.NVIC;
with RP2040_SVD.Interrupts;
with RP.Device;
with RP.Clock;
with RP.GPIO;
with RP.Timer;
with RP.UART;
with Pico;
with Pico_UART_Interrupt_Handlers;
procedure Pico_Interrupt_Main is
Port : RP.UART.UART_Port renames RP.Device.UART_0;
Config : constant RP.UART.UART_Configuration :=
(Loopback => False,
Enable_FIFOs => False,
others => <>);
Status : HAL.UART.UART_Status;
Data : HAL.UART.UART_Data_8b (1 .. 1) := (others => 16#55#);
Delays : RP.Timer.Delays;
use HAL;
begin
RP.Clock.Initialize (Pico.XOSC_Frequency);
RP.Clock.Enable (RP.Clock.PERI);
Pico.LED.Configure (RP.GPIO.Output);
RP.Device.Timer.Enable;
Port.Configure (Config);
-- Port.Enable_IRQ (RP.UART.Transmit);
Port.Enable_IRQ (RP.UART.Receive);
Port.Clear_IRQ (RP.UART.Transmit);
Port.Clear_IRQ (RP.UART.Receive);
Cortex_M.NVIC.Clear_Pending (RP2040_SVD.Interrupts.UART0_Interrupt);
Cortex_M.NVIC.Enable_Interrupt (RP2040_SVD.Interrupts.UART0_Interrupt);
loop
Port.Transmit (Data, Status);
while not Pico_UART_Interrupt_Handlers.UART0_Data_Received loop
null;
end loop;
Port.Receive (Data, Status);
Data (1) := Data (1) + 1;
end loop;
Cortex_M.NVIC.Disable_Interrupt (RP2040_SVD.Interrupts.UART0_Interrupt);
end Pico_Interrupt_Main;
|
-- C39008C.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT PROGRAM_ERROR IS RAISED WHEN AN ATTEMPT IS MADE TO
-- ACTIVATE A TASK BEFORE ITS BODY HAS BEEN ELABORATED. CHECK THE
-- CASE IN WHICH SEVERAL TASKS ARE TO BE ACTIVATED, AND ONLY SOME
-- HAVE UNELABORATED BODIES; NO TASKS SHOULD BE ACTIVATED.
-- HISTORY:
-- BCB 07/08/88 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
PROCEDURE C39008C IS
BEGIN
TEST ("C39008C", "CHECK THAT PROGRAM_ERROR IS RAISED WHEN AN " &
"ATTEMPT IS MADE TO ACTIVATE A TASK BEFORE ITS " &
"BODY HAS BEEN ELABORATED. CHECK THE CASE IN " &
"WHICH SEVERAL TASKS ARE TO BE ACTIVATED, AND " &
"ONLY SOME HAVE UNELABORATED BODIES; NO TASKS " &
"SHOULD BE ACTIVATED");
BEGIN
DECLARE
TASK TYPE A;
TASK TYPE B;
TASK TYPE C;
TASK TYPE D;
PACKAGE P IS
W : A;
X : B;
Y : C;
Z : D;
END P;
TASK BODY A IS
BEGIN
FAILED ("TASK A ACTIVATED");
END A;
TASK BODY D IS
BEGIN
FAILED ("TASK D ACTIVATED");
END D;
PACKAGE BODY P IS
END P;
TASK BODY B IS
BEGIN
FAILED ("TASK B ACTIVATED");
END B;
TASK BODY C IS
BEGIN
FAILED ("TASK C ACTIVATED");
END C;
BEGIN
FAILED ("PROGRAM_ERROR WAS NOT RAISED");
END;
EXCEPTION
WHEN PROGRAM_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("AN EXCEPTION OTHER THAN PROGRAM_ERROR WAS " &
"RAISED");
END;
RESULT;
END C39008C;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . C A L E N D A R . C O N T R O L --
-- --
-- S p e c --
-- --
-- Copyright (C) 2020-2021, AdaCore --
-- --
-- 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. --
-- --
-- --
-- --
-- --
-- --
-- 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 allows clients to set the current time and date.
package Ada.Calendar.Control is
procedure Set_Clock (Value : Time);
subtype Hour_Number is Integer range 0 .. 23;
subtype Minute_Number is Integer range 0 .. 59;
subtype Second_Number is Integer range 0 .. 59;
subtype Fractional_Seconds is Duration range 0.0 .. 1.0 - Duration'Small;
procedure Set_Clock
(Year : Year_Number;
Month : Month_Number;
Day : Day_Number;
Hour : Hour_Number;
Minute : Minute_Number;
Second : Second_Number;
Fraction : Fractional_Seconds := 0.0);
end Ada.Calendar.Control;
|
with Ada.Text_IO;
with Logging_With_Categories;
procedure TC_Log_Filtering is
type Categories is (Debug, Warning, Error);
procedure Print (Str : String; Prio : Natural);
package Log is new Logging_With_Categories
(Categories => Categories,
Priorities => Natural,
Default_Category => Error,
Default_Priority => 0,
Categories_Enabled_By_Default => False,
Prefix_Enabled_By_Default => False,
Log_Line_Backend => Print);
procedure Print (Str : String; Prio : Natural) is
begin
Ada.Text_IO.Put_Line ("Prio:" & Prio'Img & " -> " & Str);
end Print;
begin
Ada.Text_IO.Put_Line ("--- Log test begin ---");
-- All categories should be disabled so no message is expected here
Log.Log_Line (Debug, "Don't print this");
Log.Log_Line (Warning, "Don't print this");
Log.Log_Line (Error, "Don't print this");
-- Enabled categories one by one and print something
Log.Enable (Debug);
Log.Log_Line (Debug, "This Debug should print");
Log.Log_Line (Warning, "Don't print this");
Log.Log_Line (Error, "Don't print this");
Log.Enable (Warning);
Log.Log_Line (Warning, "This Warning should print");
Log.Log_Line (Error, "Don't print this");
Log.Enable (Error);
Log.Log_Line (Error, "This Error should print");
-- Change priorities
Log.Set_Priority (Debug, 1);
Log.Log_Line (Debug, "This Debug should print prio 1");
Log.Set_Priority (Warning, 2);
Log.Log_Line (Warning, "This Warning should print prio 2");
Log.Set_Priority (Error, 3);
Log.Log_Line (Error, "This Error should print prio 3");
-- Enabled prefixes one by one and print something
Log.Enable_Prefix (Debug);
Log.Log_Line (Debug, "This Debug should print with prefix");
Log.Log_Line (Warning, "This Warning should print without prefix");
Log.Log_Line (Error, "This Error should print without prefix");
Log.Enable_Prefix (Warning);
Log.Log_Line (Warning, "This Warning should print with prefix");
Log.Log_Line (Error, "This Error should print without prefix");
Log.Enable_Prefix (Error);
Log.Log_Line (Error, "This Error should print with prefix");
Log.Log_Line ("This should print in the Error category");
Ada.Text_IO.Put_Line ("--- Log test end ---");
end TC_Log_Filtering;
|
-- Copyright 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package Defs is
type Struct1 is limited record
X : Integer := 13;
Y : Integer := 19;
end record;
function F1 (S : Struct1) return Integer;
S1 : Struct1;
end Defs;
|
with Ada.Text_IO;
procedure Stooge is
type Integer_Array is array (Positive range <>) of Integer;
procedure Swap (Left, Right : in out Integer) is
Temp : Integer := Left;
begin
Left := Right;
Right := Temp;
end Swap;
procedure Stooge_Sort (List : in out Integer_Array) is
T : Natural := List'Length / 3;
begin
if List (List'Last) < List (List'First) then
Swap (List (List'Last), List (List'First));
end if;
if List'Length > 2 then
Stooge_Sort (List (List'First .. List'Last - T));
Stooge_Sort (List (List'First + T .. List'Last));
Stooge_Sort (List (List'First .. List'Last - T));
end if;
end Stooge_Sort;
Test_Array : Integer_Array := (1, 4, 5, 3, -6, 3, 7, 10, -2, -5, 7, 5, 9, -3, 7);
begin
Stooge_Sort (Test_Array);
for I in Test_Array'Range loop
Ada.Text_IO.Put (Integer'Image (Test_Array (I)));
if I /= Test_Array'Last then
Ada.Text_IO.Put (", ");
end if;
end loop;
Ada.Text_IO.New_Line;
end Stooge;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Real_Range_Specifications is
pragma Pure (Program.Elements.Real_Range_Specifications);
type Real_Range_Specification is
limited interface and Program.Elements.Definitions.Definition;
type Real_Range_Specification_Access is
access all Real_Range_Specification'Class with Storage_Size => 0;
not overriding function Lower_Bound
(Self : Real_Range_Specification)
return not null Program.Elements.Expressions.Expression_Access
is abstract;
not overriding function Upper_Bound
(Self : Real_Range_Specification)
return not null Program.Elements.Expressions.Expression_Access
is abstract;
type Real_Range_Specification_Text is limited interface;
type Real_Range_Specification_Text_Access is
access all Real_Range_Specification_Text'Class with Storage_Size => 0;
not overriding function To_Real_Range_Specification_Text
(Self : aliased in out Real_Range_Specification)
return Real_Range_Specification_Text_Access is abstract;
not overriding function Range_Token
(Self : Real_Range_Specification_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Double_Dot_Token
(Self : Real_Range_Specification_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
end Program.Elements.Real_Range_Specifications;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 3 1 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 31
package System.Pack_31 is
pragma Preelaborate;
Bits : constant := 31;
type Bits_31 is mod 2 ** Bits;
for Bits_31'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_31
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_31 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_31
(Arr : System.Address;
N : Natural;
E : Bits_31;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
end System.Pack_31;
|
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package Ada_Pretty.Units is
type Compilation_Unit is new Node with private;
function New_Compilation_Unit
(Root : not null Node_Access;
Clauses : Node_Access := null;
License : League.Strings.Universal_String) return Node'Class;
function New_Subunit
(Parent_Name : not null Node_Access;
Proper_Body : not null Node_Access) return Node'Class;
private
type Compilation_Unit is new Node with record
Root : not null Node_Access;
Clauses : Node_Access;
License : League.Strings.Universal_String;
end record;
overriding function Document
(Self : Compilation_Unit;
Printer : not null access League.Pretty_Printers.Printer'Class;
Pad : Natural)
return League.Pretty_Printers.Document;
type Subunit is new Node with record
Parent_Name : not null Node_Access;
Proper_Body : not null Node_Access;
end record;
overriding function Document
(Self : Subunit;
Printer : not null access League.Pretty_Printers.Printer'Class;
Pad : Natural)
return League.Pretty_Printers.Document;
end Ada_Pretty.Units;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
with GL.Low_Level.Enums;
with GL.Objects.Programs.Uniforms;
with GL.Objects.Textures;
with GL.Pixels.Extensions;
with GL.Types;
with Orka.Rendering.Textures;
with Orka.Types;
package Orka.Rendering.Programs.Uniforms is
pragma Preelaborate;
package LE renames GL.Low_Level.Enums;
package PE renames GL.Pixels.Extensions;
use type LE.Texture_Kind;
use type LE.Resource_Type;
use type PE.Format_Type;
-----------------------------------------------------------------------------
function Texture_Kind (Sampler : LE.Resource_Type) return LE.Texture_Kind;
function Image_Kind (Image : LE.Resource_Type) return LE.Texture_Kind;
function Sampler_Format_Type (Sampler : LE.Resource_Type) return PE.Format_Type;
function Image_Format_Type (Image : LE.Resource_Type) return PE.Format_Type;
-----------------------------------------------------------------------------
type Uniform (Kind : LE.Resource_Type) is tagged private;
procedure Set_Matrix (Object : Uniform; Value : Types.Singles.Matrix4)
with Pre => Object.Kind = LE.Single_Matrix4;
procedure Set_Matrix (Object : Uniform; Value : Types.Doubles.Matrix4)
with Pre => Object.Kind = LE.Double_Matrix4;
procedure Set_Vector (Object : Uniform; Value : Types.Singles.Vector4)
with Pre => Object.Kind = LE.Single_Vec4;
procedure Set_Vector (Object : Uniform; Value : Types.Doubles.Vector4)
with Pre => Object.Kind = LE.Double_Vec4;
-----------------------------------------------------------------------------
procedure Set_Vector
(Object : Uniform;
Data : GL.Types.Int_Array)
with Pre => (case Object.Kind is
when LE.Int_Vec2 => Data'Length = 2,
when LE.Int_Vec3 => Data'Length = 3,
when LE.Int_Vec4 => Data'Length = 4,
when others => raise Constraint_Error);
procedure Set_Vector
(Object : Uniform;
Data : GL.Types.UInt_Array)
with Pre => (case Object.Kind is
when LE.UInt_Vec2 => Data'Length = 2,
when LE.UInt_Vec3 => Data'Length = 3,
when LE.UInt_Vec4 => Data'Length = 4,
when others => raise Constraint_Error);
procedure Set_Vector
(Object : Uniform;
Data : GL.Types.Single_Array)
with Pre => (case Object.Kind is
when LE.Single_Vec2 => Data'Length = 2,
when LE.Single_Vec3 => Data'Length = 3,
when LE.Single_Vec4 => Data'Length = 4,
when others => raise Constraint_Error);
procedure Set_Vector
(Object : Uniform;
Data : GL.Types.Double_Array)
with Pre => (case Object.Kind is
when LE.Double_Vec2 => Data'Length = 2,
when LE.Double_Vec3 => Data'Length = 3,
when LE.Double_Vec4 => Data'Length = 4,
when others => raise Constraint_Error);
-----------------------------------------------------------------------------
procedure Set_Single (Object : Uniform; Value : GL.Types.Single)
with Pre => Object.Kind = LE.Single_Type;
procedure Set_Double (Object : Uniform; Value : GL.Types.Double)
with Pre => Object.Kind = LE.Double_Type;
procedure Set_Int (Object : Uniform; Value : GL.Types.Int)
with Pre => Object.Kind = LE.Int_Type;
procedure Set_UInt (Object : Uniform; Value : GL.Types.UInt)
with Pre => Object.Kind = LE.UInt_Type;
procedure Set_Integer (Object : Uniform; Value : Integer)
with Pre => Object.Kind = LE.Int_Type;
procedure Set_Boolean (Object : Uniform; Value : Boolean)
with Pre => Object.Kind = LE.Bool_Type;
-----------------------------------------------------------------------------
type Uniform_Sampler (Kind : LE.Resource_Type) is tagged private;
procedure Verify_Compatibility
(Object : Uniform_Sampler;
Texture : GL.Objects.Textures.Texture) is null
with Pre'Class =>
(Texture.Kind = Texture_Kind (Object.Kind) or else
raise Constraint_Error with
"Cannot bind " & Rendering.Textures.Image (Texture) & " to " &
Texture_Kind (Object.Kind)'Image & " sampler")
and then
-- If the texture is a depth texture, the sampler can be a normal or shadow sampler
-- (The bound Sampler object must have comparison mode enabled iff the sampler in the
-- shader is a shadow sampler)
(Texture.Compressed
or else
(if PE.Texture_Format_Type (Texture.Internal_Format) = PE.Depth_Type then
Sampler_Format_Type (Object.Kind) in PE.Depth_Type | PE.Float_Or_Normalized_Type
else
Sampler_Format_Type (Object.Kind) =
PE.Texture_Format_Type (Texture.Internal_Format))
or else raise Constraint_Error with
"Cannot bind " & Rendering.Textures.Image (Texture) & " to " &
Object.Kind'Image & " sampler");
-----------------------------------------------------------------------------
type Uniform_Image (Kind : LE.Resource_Type) is tagged private;
procedure Verify_Compatibility
(Object : Uniform_Image;
Texture : GL.Objects.Textures.Texture) is null
with Pre'Class =>
(Texture.Kind = Image_Kind (Object.Kind) or else
raise Constraint_Error with
"Cannot bind " & Rendering.Textures.Image (Texture) & " to " &
Image_Kind (Object.Kind)'Image & " image sampler")
and then
-- If the texture is a depth texture, the sampler can be a normal or shadow sampler
-- (The bound Sampler object must have comparison mode enabled iff the sampler in the
-- shader is a shadow sampler)
(Texture.Compressed
or else
Sampler_Format_Type (Object.Kind) = PE.Image_Format_Type (Texture.Internal_Format)
or else raise Constraint_Error with
"Cannot bind " & Rendering.Textures.Image (Texture) & " to " &
Object.Kind'Image & " image sampler");
-----------------------------------------------------------------------------
function Create_Uniform_Sampler
(Object : Program;
Name : String) return Uniform_Sampler;
function Create_Uniform_Image
(Object : Program;
Name : String) return Uniform_Image;
function Create_Uniform_Variable
(Object : Program;
Name : String) return Uniform;
Uniform_Inactive_Error : exception renames GL.Objects.Programs.Uniform_Inactive_Error;
Uniform_Type_Error : exception;
private
type Uniform (Kind : LE.Resource_Type) is tagged record
GL_Uniform : GL.Objects.Programs.Uniforms.Uniform;
end record;
type Uniform_Sampler (Kind : LE.Resource_Type) is tagged record
GL_Uniform : GL.Objects.Programs.Uniforms.Uniform;
end record;
type Uniform_Image (Kind : LE.Resource_Type) is tagged record
GL_Uniform : GL.Objects.Programs.Uniforms.Uniform;
end record;
end Orka.Rendering.Programs.Uniforms;
|
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * The name of the copyright holder may not be used to endorse or promote
-- Products derived from this software without specific prior written
-- permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
-- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
with Keccak.Generic_KMAC;
generic
with package KMAC is new Keccak.Generic_KMAC(<>);
package KMAC_Runner is
procedure Run_Tests (File_Name : in String;
XOF : in Boolean;
Num_Passed : out Natural;
Num_Failed : out Natural);
end KMAC_Runner;
|
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;
with Ada.Containers.Vectors;
procedure Day15 is
subtype Input_String is String (1 .. 32);
type Grid_Type is array (Input_String'Range) of Input_String;
type Race_Type is (Elf, Goblin);
type Unit_Type is record
Row : Positive;
Col : Positive;
Race : Race_Type;
HP : Integer;
Attack : Natural;
end record;
type Position is record
Row : Positive;
Col : Positive;
end record;
function "<" (Left, Right : Position) return Boolean is
begin
if Left.Row /= Right.Row then
return Left.Row < Right.Row;
else
return Left.Col < Right.Col;
end if;
end "<";
function Get_Race (Tile : Character) return Race_Type is
begin
case Tile is
when 'E' => return Elf;
when 'G' => return Goblin;
when others => raise Constraint_Error with "Invalid Race: " & Tile;
end case;
end Get_Race;
package PV is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Position);
package Pos_Sorter is new PV.Generic_Sorting;
function Get_Neighbors (Row, Col : Positive) return PV.Vector is
Result : PV.Vector;
begin
if Row > 1 then
Result.Append ((Row - 1, Col));
end if;
if Col > 1 then
Result.Append ((Row, Col - 1));
end if;
if Col < Input_String'Last then
Result.Append ((Row, Col + 1));
end if;
if Row < Input_String'Last then
Result.Append ((Row + 1, Col));
end if;
return Result;
end Get_Neighbors;
function Lesser_Pos (Unit1, Unit2 : Unit_Type) return Boolean is
Pos1 : constant Position := (Unit1.Row, Unit1.Col);
Pos2 : constant Position := (Unit2.Row, Unit2.Col);
begin
return Pos1 < Pos2;
end Lesser_Pos;
package UV is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Unit_Type);
package Unit_Sorter is new UV.Generic_Sorting ("<" => Lesser_Pos);
Input_Grid : Grid_Type;
Grid : Grid_Type;
Units : UV.Vector;
procedure Print_Grid (Log : File_Type; Round : Natural) is
begin
Put_Line (Log, "=== Round" & Natural'Image (Round) & " ===");
for Row of Grid loop
Put_Line (Log, Row);
end loop;
Put_Line (Log, "");
end Print_Grid;
function Find_Unit (Pos : Position) return Positive is
begin
for I in Units.First_Index .. Units.Last_Index loop
if Units (I).Row = Pos.Row and
Units (I).Col = Pos.Col and
Units (I).HP > 0
then
return I;
end if;
end loop;
raise Constraint_Error with
"Invalid unit position: " & Positive'Image (Pos.Row) & "," &
Positive'Image (Pos.Col);
end Find_Unit;
function Can_Attack (Row, Col : Positive; Self : Race_Type) return Natural
is
Pos : constant PV.Vector := Get_Neighbors (Row, Col);
Min_HP : Integer := Integer'Last;
Index : Natural := 0;
begin
for I in Pos.First_Index .. Pos.Last_Index loop
if (Self = Elf and Grid (Pos (I).Row) (Pos (I).Col) = 'G') or
(Self = Goblin and Grid (Pos (I).Row) (Pos (I).Col) = 'E')
then
declare
HP : constant Integer := Units (Find_Unit (Pos (I))).HP;
begin
if HP < Min_HP then
Index := I;
Min_HP := HP;
end if;
end;
end if;
end loop;
return Index;
end Can_Attack;
function Find_Target (Row, Col : Positive) return Position is
type Queue_Element is record
Row : Positive;
Col : Positive;
Dist : Natural;
end record;
use Ada.Containers;
package QI is new Synchronized_Queue_Interfaces
(Element_Type => Queue_Element);
package USQ is new Unbounded_Synchronized_Queues
(Queue_Interfaces => QI);
function Pos_Hash (Pos : Position) return Hash_Type is
(Hash_Type ((Pos.Row * Input_String'Last) + Pos.Col));
package HM is new Hashed_Maps
(Key_Type => Position,
Element_Type => Position,
Hash => Pos_Hash,
Equivalent_Keys => "=");
Pred : HM.Map;
Targets : PV.Vector;
Q : USQ.Queue;
E : Queue_Element := (Row, Col, 0);
Target_Dist : Natural := Natural'Last;
Self : constant Race_Type := Get_Race (Grid (Row) (Col));
begin
Q.Enqueue (E);
while Q.Current_Use > 0 loop
Q.Dequeue (E);
exit when E.Dist > Target_Dist;
if Can_Attack (E.Row, E.Col, Self) > 0 then
Targets.Append ((E.Row, E.Col));
Target_Dist := E.Dist;
end if;
for Pos of Get_Neighbors (E.Row, E.Col) loop
if not Pred.Contains (Pos) and Grid (Pos.Row) (Pos.Col) = '.' then
Pred.Insert (Pos, (E.Row, E.Col));
Q.Enqueue ((Pos.Row, Pos.Col, E.Dist + 1));
end if;
end loop;
end loop;
if Targets.Is_Empty then
return (Row, Col);
else
Pos_Sorter.Sort (Targets);
declare
Pos : Position := Targets.First_Element;
begin
if Pos /= (Row, Col) then
while Pred (Pos) /= (Row, Col) loop
Pos := Pred (Pos);
end loop;
end if;
return Pos;
end;
end if;
end Find_Target;
function Play_Game
(Attack_Power : Natural;
Is_Part2 : Boolean;
Create_Log : Boolean) return Boolean
is
Log_File : File_Type;
Elf_Count : Natural := 0;
Goblin_Count : Natural := 0;
Round_Count : Natural := 0;
begin
Grid := Input_Grid;
Units.Clear;
for R in Grid'Range loop
for C in Grid (R)'Range loop
if Grid (R) (C) = 'E' then
Units.Append ((R, C, Elf, 200, Attack_Power));
Elf_Count := Elf_Count + 1;
elsif Grid (R) (C) = 'G' then
Units.Append ((R, C, Goblin, 200, 3));
Goblin_Count := Goblin_Count + 1;
end if;
end loop;
end loop;
Assert (Unit_Sorter.Is_Sorted (Units), "Units should be sorted!");
if Create_Log then
Create (Log_File, Out_File, "combat-log.txt");
end if;
Game_Loop :
loop
if Create_Log then
Print_Grid (Log_File, Round_Count);
end if;
for U in Units.First_Index .. Units.Last_Index loop
declare
Unit : Unit_Type := Units (U);
Old_Pos : constant Position := (Unit.Row, Unit.Col);
Sym : constant Character := Grid (Old_Pos.Row) (Old_Pos.Col);
New_Pos : Position;
Target : Natural;
begin
if Unit.HP > 0 then
exit Game_Loop when Goblin_Count = 0 or Elf_Count = 0;
-- Move Phase
New_Pos := Find_Target (Old_Pos.Row, Old_Pos.Col);
Grid (Old_Pos.Row) (Old_Pos.Col) := '.';
Grid (New_Pos.Row) (New_Pos.Col) := Sym;
Unit.Row := New_Pos.Row;
Unit.Col := New_Pos.Col;
Units.Replace_Element (U, Unit);
-- Attack Phase
Target := Can_Attack (Unit.Row, Unit.Col, Unit.Race);
if Target > 0 then
declare
Pos : constant Position := Get_Neighbors (Unit.Row, Unit.Col) (Target);
Idx : constant Positive := Find_Unit (Pos);
Enemy : Unit_Type := Units (Idx);
begin
Enemy.HP := Enemy.HP - Unit.Attack;
Units.Replace_Element (Idx, Enemy);
if Enemy.HP <= 0 then
Grid (Enemy.Row) (Enemy.Col) := '.';
if Enemy.Race = Elf then
Elf_Count := Elf_Count - 1;
if Is_Part2 then
if Create_Log then
Close (Log_File);
end if;
return False;
end if;
else
Goblin_Count := Goblin_Count - 1;
end if;
end if;
end;
end if;
end if;
end;
end loop;
Unit_Sorter.Sort (Units);
Round_Count := Round_Count + 1;
end loop Game_Loop;
if Create_Log then
Close (Log_File);
else
declare
HP_Total : Natural := 0;
begin
for Unit of Units loop
if Unit.HP > 0 then
HP_Total := HP_Total + Unit.HP;
end if;
end loop;
if Is_Part2 then
Put ("Part 2 =");
else
Put ("Part 1 =");
end if;
Put_Line (Natural'Image (Round_Count * HP_Total));
end;
end if;
return True;
end Play_Game;
begin
Input_Handling :
declare
File : File_Type;
begin
Open (File, In_File, "input.txt");
for R in Input_Grid'Range loop
Input_Grid (R) := Get_Line (File);
end loop;
Assert (End_Of_File (File), "More input than expected!");
Close (File);
end Input_Handling;
-- Part 1
Assert (Play_Game (3, False, False));
-- Part 2
declare
Attack_Power : Natural := 4;
begin
while not Play_Game (Attack_Power, True, False) loop
Attack_Power := Attack_Power + 1;
end loop;
Put_Line ("Creating combat-log.txt...");
Assert (Play_Game (Attack_Power, True, True));
end;
end Day15;
|
with
any_Math.any_Algebra.any_linear.any_d2;
package float_Math.Algebra.linear.d2 is new float_Math.Algebra.linear.any_d2;
pragma Pure (float_Math.Algebra.linear.d2);
|
-- C36205F.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 ATTRIBUTES GIVE THE CORRECT VALUES FOR
-- UNCONSTRAINED FORMAL PARAMETERS.
-- ATTRIBUTES OF STATIC NON-NULL AGGREGATES
-- DAT 2/17/81
-- JBG 9/11/81
-- JWC 6/28/85 RENAMED TO -AB
WITH REPORT;
PROCEDURE C36205F IS
USE REPORT;
TYPE I_A IS ARRAY (INTEGER RANGE <> ) OF INTEGER;
TYPE I_A_2 IS ARRAY (INTEGER RANGE <> ,
INTEGER RANGE <> ) OF INTEGER;
A10 : I_A (1 .. 10);
A20 : I_A (18 .. 20);
I10 : INTEGER := IDENT_INT (10);
A2_10 : I_A_2 (1 .. I10, 3+I10 .. I10*I10); -- 1..10, 13..20
A2_20 : I_A_2 (11 .. 3*I10, I10+11 .. I10+I10); -- 11..30, 21..20
SUBTYPE STR IS STRING;
ALF : CONSTANT STR(IDENT_INT(1)..IDENT_INT(5)) := "ABCDE";
ARF : STR(5 .. 9) := ALF;
PROCEDURE P1 (A : I_A; FIR, LAS: INTEGER; S : STRING) IS
BEGIN
IF A'FIRST /= FIR
OR A'FIRST(1) /= FIR
THEN
FAILED ("'FIRST IS WRONG " & S);
END IF;
IF A'LAST /= LAS
OR A'LAST(1) /= LAS
THEN
FAILED ("'LAST IS WRONG " & S);
END IF;
IF A'LENGTH /= LAS - FIR + 1
OR A'LENGTH /= A'LENGTH(1)
THEN
FAILED ("'LENGTH IS WRONG " & S);
END IF;
IF (LAS NOT IN A'RANGE AND LAS >= FIR)
OR (FIR NOT IN A'RANGE AND LAS >= FIR)
OR FIR - 1 IN A'RANGE
OR LAS + 1 IN A'RANGE(1)
THEN
FAILED ("'RANGE IS WRONG " & S);
END IF;
END P1;
PROCEDURE P2 (A : I_A_2; F1,L1,F2,L2 : INTEGER; S : STRING) IS
BEGIN
IF A'FIRST /= A'FIRST(1)
OR A'FIRST /= F1
THEN
FAILED ("'FIRST(1) IS WRONG " & S);
END IF;
IF A'LAST(1) /= L1 THEN
FAILED ("'LAST(1) IS WRONG " & S);
END IF;
IF A'LENGTH(1) /= A'LENGTH
OR A'LENGTH /= L1 - F1 + 1
THEN
FAILED ("'LENGTH(1) IS WRONG " & S);
END IF;
IF F1 - 1 IN A'RANGE
OR (F1 NOT IN A'RANGE AND F1 <= L1)
OR (L1 NOT IN A'RANGE(1) AND F1 <= L1)
OR L1 + 1 IN A'RANGE(1)
THEN
FAILED ("'RANGE(1) IS WRONG " & S);
END IF;
IF A'FIRST(2) /= F2 THEN
FAILED ("'FIRST(2) IS WRONG " & S);
END IF;
IF A'LAST(2) /= L2 THEN
FAILED ("'LAST(2) IS WRONG " & S);
END IF;
IF L2 - F2 /= A'LENGTH(2) - 1 THEN
FAILED ("'LENGTH(2) IS WRONG " & S);
END IF;
IF F2 - 1 IN A'RANGE(2)
OR (F2 NOT IN A'RANGE(2) AND A'LENGTH(2) > 0)
OR (L2 NOT IN A'RANGE(2) AND A'LENGTH(2) /= 0)
OR L2 + 1 IN A'RANGE(2)
THEN
FAILED ("'RANGE(2) IS WRONG " & S);
END IF;
END P2;
PROCEDURE S1 (S:STR; F,L:INTEGER; MESS:STRING) IS
BEGIN
IF S'FIRST /= F THEN
FAILED ("STRING 'FIRST IS WRONG " & MESS);
END IF;
IF S'LAST(1) /= L THEN
FAILED ("STRING 'LAST IS WRONG " & MESS);
END IF;
IF S'LENGTH /= L - F + 1
OR S'LENGTH(1) /= S'LENGTH
THEN
FAILED ("STRING 'LENGTH IS WRONG " & MESS);
END IF;
IF (F <= L AND
(F NOT IN S'RANGE
OR L NOT IN S'RANGE
OR F NOT IN S'RANGE(1)
OR L NOT IN S'RANGE(1)))
OR F - 1 IN S'RANGE
OR L + 1 IN S'RANGE(1)
THEN
FAILED ("STRING 'RANGE IS WRONG " & MESS);
END IF;
END S1;
BEGIN
TEST ( "C36205F", "CHECKING ATTRIBUTE VALUES POSSESSED BY FORMAL "&
"PARAMETERS WHOSE ACTUALS ARE UNCONSTRAINED " &
"ARRAYS - STATIC NON-NULL AGGREGATES");
P1 ((3 .. 5 => 2), 3, 5, "P1 16");
P1 ((5 .. 5 => 5), 5, 5, "P1 17");
RESULT;
END C36205F;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 Felix Krause <contact@flyx.org>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
package GL.Objects.Vertex_Arrays is
pragma Preelaborate;
type Vertex_Array_Object is new GL_Object with private;
-- A single VAO is manually created and binded after the context
-- is made current.
procedure Create (Object : in out Vertex_Array_Object);
procedure Delete (Object : in out Vertex_Array_Object);
overriding
procedure Initialize_Id (Object : in out Vertex_Array_Object) is null;
-- Null because VAO is created manually
overriding
procedure Delete_Id (Object : in out Vertex_Array_Object) is null;
-- Null because VAO is deleted manually
overriding
function Identifier (Object : Vertex_Array_Object) return Types.Debug.Identifier is
(Types.Debug.Vertex_Array);
private
type Vertex_Array_Object is new GL_Object with null record;
end GL.Objects.Vertex_Arrays;
|
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with divisores;
procedure prueba_divisores is
n1, divisor:integer:=0;
begin
-- caso de prueba 1:
n1:=4;
put("El resultado deberia de ser 1 2 4:");
new_line;
put("Y tu programa dice que:");
divisores(n1);
new_line;
-- caso de prueba 2:
n1:=20;
put("El resultado deberia de ser 1 2 4 5 10 20:");
new_line;
put("Y tu programa dice que:");
divisores(n1);
new_line;
-- caso de prueba 3:
n1:=1;
put("El resultado deberia de ser 1:");
new_line;
put("Y tu programa dice que:");
divisores(n1);
new_line;
-- caso de prueba 4:
n1:=11;
put("El resultado deberia de ser 1 11:");
new_line;
put("Y tu programa dice que:");
divisores(n1);
new_line;
end prueba_divisores;
|
with
openGL.Font,
openGL.Geometry;
package openGL.Model.sphere.textured
--
-- Models a textured sphere.
--
is
type Item is new Model.sphere.item with -- TODO: Make private.
record
Image : asset_Name := null_Asset; -- Usually a mercator projection to be mapped onto the sphere.
is_Skysphere : Boolean := False;
end record;
type View is access all Item'Class;
---------
--- Forge
--
function new_Sphere (Radius : in Real;
Image : in asset_Name := null_Asset;
is_Skysphere : in Boolean := False) return View;
--------------
--- Attributes
--
overriding
function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class;
Fonts : in Font.font_id_Map_of_font) return Geometry.views;
end openGL.Model.sphere.textured;
|
with HAL; use HAL;
package body Inverter_PWM is
--------------------
-- Initialize_PWM --
--------------------
procedure Initialize_PWM (Frequency : Frequency_Hz;
Deadtime : Deadtime_Range;
Alignment : PWM_Alignment)
is
Counter_Mode : constant Timer_Counter_Alignment_Mode :=
(case Alignment is
when Edge => Up,
when Center => Center_Aligned2);
begin
Configure_PWM_Timer (Generator => PWM_Timer_Ref,
Frequency => UInt32 (Frequency));
Set_Counter_Mode (This => PWM_Timer_Ref.all,
Value => Counter_Mode);
Configure_Deadtime (This => PWM_Timer_Ref.all,
Time => Deadtime);
Set_BDTR_Lock (This => PWM_Timer_Ref.all,
Lock => Level_1);
for P in PWM_Phase'Range loop
Modulators (P).Attach_PWM_Channel
(Generator => PWM_Timer_Ref,
Channel => Gate_Phase_Settings (P).Channel,
Point => Gate_Phase_Settings (P).Pin_H,
Complementary_Point => Gate_Phase_Settings (P).Pin_L,
PWM_AF => Gate_Phase_Settings (P).Pin_AF,
Polarity => High,
Idle_State => Disable,
Complementary_Polarity => High,
Complementary_Idle_State => Disable);
Set_Output_Preload_Enable (This => PWM_Timer_Ref.all,
Channel => Gate_Phase_Settings (P).Channel,
Enabled => True);
end loop;
Initialized := True;
end Initialize_PWM;
------------------
-- Enable_Phase --
------------------
procedure Enable_Phase (This : PWM_Phase) is
begin
Modulators (This).Enable_Output;
Modulators (This).Enable_Complementary_Output;
end Enable_Phase;
-------------------
-- Disable_Phase --
-------------------
procedure Disable_Phase (This : PWM_Phase) is
begin
Modulators (This).Disable_Output;
Modulators (This).Disable_Complementary_Output;
end Disable_Phase;
---------------
-- Start_PWM --
---------------
procedure Start_PWM is
begin
Reset_Sine_Step;
for P in PWM_Phase'Range loop
Set_Duty_Cycle (This => P,
Value => 0.0);
Enable_Phase (P);
end loop;
Enable_Interrupt (This => PWM_Timer_Ref.all,
Source => Timer_Update_Interrupt);
end Start_PWM;
--------------
-- Stop_PWM --
--------------
procedure Stop_PWM is
begin
Disable_Interrupt (This => PWM_Timer_Ref.all,
Source => Timer_Update_Interrupt);
for P in PWM_Phase'Range loop
Disable_Phase (P);
Set_Duty_Cycle (This => P,
Value => 0.0);
end loop;
Reset_Sine_Step;
end Stop_PWM;
-------------------------
-- Get_Duty_Resolution --
-------------------------
function Get_Duty_Resolution return Duty_Cycle is
begin
return Duty_Cycle (100.0 / Float (Current_Autoreload (PWM_Timer_Ref.all)));
end Get_Duty_Resolution;
--------------------
-- Set_Duty_Cycle --
--------------------
procedure Set_Duty_Cycle (This : PWM_Phase;
Value : Duty_Cycle)
is
Pulse : UInt16;
begin
Pulse := UInt16 (Value * Float (Current_Autoreload (PWM_Timer_Ref.all)) / 100.0);
Set_Compare_Value
(This => PWM_Timer_Ref.all,
Channel => Gate_Phase_Settings (This).Channel,
Value => Pulse);
end Set_Duty_Cycle;
--------------------
-- Set_Duty_Cycle --
--------------------
procedure Set_Duty_Cycle (This : PWM_Phase;
Amplitude : Table_Amplitude;
Gain : Gain_Range)
is
Pulse : UInt16;
begin
Pulse := UInt16 (Gain * Float (Amplitude) / Float (Table_Amplitude'Last) *
Float (Current_Autoreload (PWM_Timer_Ref.all)));
Set_Compare_Value
(This => PWM_Timer_Ref.all,
Channel => Gate_Phase_Settings (This).Channel,
Value => Pulse);
end Set_Duty_Cycle;
------------------------
-- Set_PWM_Gate_Power --
------------------------
-- This depends on the driver electronic circuit. Actually it is
-- programmed to turn ON the gates driver with a low level.
procedure Set_PWM_Gate_Power (Enabled : in Boolean) is
begin
if Enabled then
PWM_Gate_Power.Clear;
else
PWM_Gate_Power.Set;
end if;
end Set_PWM_Gate_Power;
---------------------
-- Reset_Sine_Step --
---------------------
procedure Reset_Sine_Step is
begin
Sine_Step := 250;
end Reset_Sine_Step;
----------------
-- Safe_State --
----------------
procedure Safe_State is
begin
Set_PWM_Gate_Power (Enabled => False);
Stop_PWM;
end Safe_State;
--------------------
-- Is_Initialized --
--------------------
function Is_Initialized
return Boolean is (Initialized);
-----------------
-- PWM_Handler --
-----------------
protected body PWM_Handler is
---------------------
-- PWM_ISR_Handler --
---------------------
procedure PWM_ISR_Handler is
begin
if Status (PWM_Timer, Timer_Update_Indicated) then
if Interrupt_Enabled (PWM_Timer, Timer_Update_Interrupt) then
Clear_Pending_Interrupt (PWM_Timer, Timer_Update_Interrupt);
if (Semi_Senoid = False) then -- First half cycle
Set_Duty_Cycle (This => A,
Amplitude => Sine_Table (Sine_Step),
Gain => Sine_Gain);
-- Not necessary because the last value of B amplitude was 0
-- Set_Duty_Cycle (This => B,
-- Amplitude => Table_Amplitude'Last, -- Value 0
-- Gain => Gain_Range'First); -- Value 0
else -- Second half cycle
Set_Duty_Cycle (This => B,
Amplitude => Sine_Table (Sine_Step),
Gain => Sine_Gain);
-- Not necessary because the last value of A amplitude was 0
-- Set_Duty_Cycle (This => A,
-- Amplitude => Table_Amplitude'Last, -- Value 0
-- Gain => Gain_Range'First); -- Value 0
end if;
if (Sine_Step + 1) > Sine_Step_Range'Last then
Sine_Step := 1;
Semi_Senoid := not Semi_Senoid;
else
Sine_Step := Sine_Step + 1;
end if;
-- Testing the 30 kHz output with 1 Hz LED blinking.
if Counter = 15_000 then
Set_Toggle (Yellow_LED);
Counter := 0;
end if;
Counter := Counter + 1;
end if;
end if;
end PWM_ISR_Handler;
end PWM_Handler;
end Inverter_PWM;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, Fabien Chouteau --
-- --
-- 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 AGATE_Arch_Parameters;
private package AGATE.Traps is
type Trap_ID is new AGATE_Arch_Parameters.Trap_ID;
type Trap_Priority is new AGATE_Arch_Parameters.Trap_Priority;
type Trap_Handler is access procedure;
procedure Register (Handler : Trap_Handler;
ID : Trap_ID;
Priority : Trap_Priority);
procedure Enable (ID : Trap_ID);
procedure Disable (ID : Trap_ID);
end AGATE.Traps;
|
-- C48004E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT THE FORM "NEW T" IS PERMITTED IF T IS A CONSTRAINED ARRAY
-- TYPE.
-- RM 01/12/80
-- JBG 03/03/83
-- EG 07/05/84
WITH REPORT;
PROCEDURE C48004E IS
USE REPORT;
BEGIN
TEST("C48004E","CHECK THAT THE FORM 'NEW T' IS PERMITTED IF T " &
"IS A CONSTRAINED ARRAY TYPE");
DECLARE
TYPE ARR0 IS ARRAY( INTEGER RANGE <> ) OF BOOLEAN;
SUBTYPE ARR IS ARR0(1 .. 10);
TYPE A_ARR IS ACCESS ARR;
VARR : A_ARR;
PACKAGE P IS
TYPE LPRIV IS LIMITED PRIVATE;
FUNCTION CHECK (X : LPRIV) RETURN INTEGER;
PRIVATE
TYPE LPRIV IS
RECORD
Q : INTEGER := 20;
END RECORD;
END P;
TYPE LPARR IS ARRAY(1 .. 2) OF P.LPRIV;
TYPE A_LPARR IS ACCESS LPARR;
V_A_LPARR : A_LPARR;
PACKAGE BODY P IS
FUNCTION CHECK (X : LPRIV) RETURN INTEGER IS
BEGIN
RETURN X.Q;
END CHECK;
END P;
BEGIN
VARR := NEW ARR;
IF ( VARR'FIRST /= IDENT_INT(1) OR
VARR'LAST /= 10 ) THEN FAILED("WRONG BOUNDS - CASE 1");
END IF;
V_A_LPARR := NEW LPARR;
IF ( P.CHECK(V_A_LPARR.ALL(1)) /= IDENT_INT(20) OR
P.CHECK(V_A_LPARR.ALL(2)) /= IDENT_INT(20) ) THEN
FAILED ("WRONG VALUES - CASE 2");
END IF;
END;
RESULT;
END C48004E;
|
-- { dg-do compile }
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Comparison is
package Bool_IO is new Enumeration_IO (Boolean);
use Bool_IO;
begin
Put (Boolean'Image (True) = "True");
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2013, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package Matreshka.SIMD.ARM.NEON is
function vadd_s8 (A : int8x8_t; B : int8x8_t) return int8x8_t;
pragma Inline_Always (vadd_s8);
function vadd_s16 (A : int16x4_t; B : int16x4_t) return int16x4_t;
pragma Inline_Always (vadd_s16);
function vadd_s32 (A : int32x2_t; B : int32x2_t) return int32x2_t;
pragma Inline_Always (vadd_s32);
-- function vadd_s64 (A : int64x1_t; B : int64x1_t) return int64x1_t;
-- pragma Inline_Always (vadd_s64);
-- XXX GNAT 4.5.0 bug
function vadd_f32 (A : float32x2_t; B : float32x2_t) return float32x2_t;
pragma Inline_Always (vadd_f32);
function vadd_u8 (A : uint8x8_t; B : uint8x8_t) return uint8x8_t;
pragma Inline_Always (vadd_u8);
function vadd_u16 (A : uint16x4_t; B : uint16x4_t) return uint16x4_t;
pragma Inline_Always (vadd_u16);
function vadd_u32 (A : uint32x2_t; B : uint32x2_t) return uint32x2_t;
pragma Inline_Always (vadd_u32);
function vadd_u64 (A : uint64x1_t; B : uint64x1_t) return uint64x1_t;
pragma Inline_Always (vadd_u64);
function vaddq_s8 (A : int8x16_t; B : int8x16_t) return int8x16_t;
pragma Inline_Always (vaddq_s8);
function vaddq_s16 (A : int16x8_t; B : int16x8_t) return int16x8_t;
pragma Inline_Always (vaddq_s16);
function vaddq_s32 (A : int32x4_t; B : int32x4_t) return int32x4_t;
pragma Inline_Always (vaddq_s32);
function vaddq_s64 (A : int64x2_t; B : int64x2_t) return int64x2_t;
pragma Inline_Always (vaddq_s64);
function vaddq_f32 (A : float32x4_t; B : float32x4_t) return float32x4_t;
pragma Inline_Always (vaddq_f32);
end Matreshka.SIMD.ARM.NEON;
|
package body BBqueue.Buffers
with SPARK_Mode
is
function Get_Addr (This : Buffer;
Offset : Buffer_Offset)
return System.Address
with Pre => Offset in 0 .. This.Buf'Last - 1;
--------------
-- Get_Addr --
--------------
function Get_Addr (This : Buffer;
Offset : Buffer_Offset)
return System.Address
is
pragma SPARK_Mode (Off);
begin
return This.Buf (This.Buf'First + Offset)'Address;
end Get_Addr;
-----------
-- Grant --
-----------
procedure Grant (This : in out Buffer;
G : in out Write_Grant;
Size : Count)
is
begin
BBqueue.Grant (This.Offsets, G.Offsets_Grant, Size);
if G.Offsets_Grant.Result = Valid then
G.Slice.Length := G.Offsets_Grant.Slice.Length;
G.Slice.Addr := Get_Addr (This, G.Offsets_Grant.Slice.From);
end if;
end Grant;
------------
-- Commit --
------------
procedure Commit
(This : in out Buffer; G : in out Write_Grant; Size : Count := Count'Last)
is
begin
BBqueue.Commit (This.Offsets, G.Offsets_Grant, Size);
end Commit;
--------------
-- Write_CB --
--------------
procedure Write_CB (This : in out Buffer;
Size : Count;
Result : out Result_Kind)
is
G : Write_Grant := Empty;
begin
Grant (This, G, Size);
Result := State (G);
if Result = Valid then
declare
S : constant BBqueue.Slice_Rec := BBqueue.Slice (G.Offsets_Grant);
B : Storage_Array renames This.Buf;
To_Commit : Count;
begin
Process_Write (B (B'First + S.From .. B'First + S.To),
To_Commit);
Commit (This, G, To_Commit);
pragma Assert (State (G) = Empty);
end;
end if;
end Write_CB;
----------
-- Read --
----------
procedure Read (This : in out Buffer;
G : in out Read_Grant;
Max : Count := Count'Last)
is
begin
BBqueue.Read (This.Offsets, G.Offsets_Grant, Max);
if G.Offsets_Grant.Result = Valid then
G.Slice.Length := G.Offsets_Grant.Slice.Length;
G.Slice.Addr := Get_Addr (This, G.Offsets_Grant.Slice.From);
end if;
end Read;
-------------
-- Release --
-------------
procedure Release
(This : in out Buffer; G : in out Read_Grant; Size : Count := Count'Last)
is
begin
BBqueue.Release (This.Offsets, G.Offsets_Grant, Size);
end Release;
-------------
-- Read_CB --
-------------
procedure Read_CB (This : in out Buffer;
Result : out Result_Kind)
is
pragma SPARK_Mode (Off);
G : Read_Grant := Empty;
begin
Read (This, G);
Result := State (G);
if Result = Valid then
declare
S : constant BBqueue.Slice_Rec := BBqueue.Slice (G.Offsets_Grant);
B : Storage_Array renames This.Buf;
To_Release : Count;
begin
Process_Read (B (B'First + S.From .. B'First + S.To),
To_Release);
Release (This, G, To_Release);
pragma Assert (State (G) = Empty);
end;
end if;
end Read_CB;
end BBqueue.Buffers;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . I N T E R R U P T S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2004 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- Package in charge of implementing the basic routines for interrupt
-- management.
pragma Restrictions (No_Elaboration_Code);
with System;
with System.BB.Parameters;
package System.BB.Interrupts is
pragma Preelaborate;
subtype Interrupt_ID is System.BB.Parameters.Interrupt_Range;
-- Interrupt identifiers.
subtype Any_Interrupt_ID is Integer
range Interrupt_ID'First .. Interrupt_ID'Last + 1;
No_Interrupt : constant Any_Interrupt_ID := Any_Interrupt_ID'Last;
-- Special value indicating no interrupt
type Interrupt_Handler is access procedure (Id : Interrupt_ID);
-- Prototype of procedures used as low level handlers
procedure Initialize_Interrupts;
-- Initialize table containing the pointers to the different interrupt
-- stacks. Should be called before any other subprograms in this package.
procedure Interrupt_Wrapper (Id : Interrupt_ID);
-- This wrapper procedure is in charge of setting the appropriate
-- software priorities before calling the user-defined handler. It is
-- called directly by the Board_Support.
procedure Attach_Handler
(Handler : not null Interrupt_Handler;
Id : Interrupt_ID;
Prio : Interrupt_Priority);
pragma Inline (Attach_Handler);
-- Attach the procedure Handler as handler of the interrupt Id. Prio is
-- the priority of the associated protected object. This priority could be
-- used to program the hardware priority of the interrupt.
function Current_Interrupt return Any_Interrupt_ID;
-- Function that returns the hardware interrupt currently being handled on
-- the current CPU (if any). If no hardware interrupt is being handled the
-- returned value is No_Interrupt.
function Within_Interrupt_Stack
(Stack_Address : System.Address) return Boolean;
pragma Inline (Within_Interrupt_Stack);
-- Function that tells whether the Address passed as argument belongs to
-- the interrupt stack that is currently being used on current CPU (if
-- any). It returns True if Stack_Address is within the range of the
-- interrupt stack being used. False in case Stack_Address is not within
-- the interrupt stack (or no interrupt is being handled).
end System.BB.Interrupts;
|
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Simple PWM
package RP_SVD.PWM is
pragma Preelaborate;
---------------
-- Registers --
---------------
type CH0_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH0_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH0_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH0_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH0_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH0_DIV_FRAC_Field is HAL.UInt4;
subtype CH0_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH0_DIV_Register is record
FRAC : CH0_DIV_FRAC_Field := 16#0#;
INT : CH0_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH0_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH0_CTR_CH0_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH0_CTR_Register is record
CH0_CTR : CH0_CTR_CH0_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH0_CTR_Register use record
CH0_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH0_CC_A_Field is HAL.UInt16;
subtype CH0_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH0_CC_Register is record
A : CH0_CC_A_Field := 16#0#;
B : CH0_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH0_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH0_TOP_CH0_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH0_TOP_Register is record
CH0_TOP : CH0_TOP_CH0_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH0_TOP_Register use record
CH0_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH1_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH1_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH1_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH1_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH1_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH1_DIV_FRAC_Field is HAL.UInt4;
subtype CH1_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH1_DIV_Register is record
FRAC : CH1_DIV_FRAC_Field := 16#0#;
INT : CH1_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH1_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH1_CTR_CH1_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH1_CTR_Register is record
CH1_CTR : CH1_CTR_CH1_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH1_CTR_Register use record
CH1_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH1_CC_A_Field is HAL.UInt16;
subtype CH1_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH1_CC_Register is record
A : CH1_CC_A_Field := 16#0#;
B : CH1_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH1_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH1_TOP_CH1_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH1_TOP_Register is record
CH1_TOP : CH1_TOP_CH1_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH1_TOP_Register use record
CH1_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH2_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH2_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH2_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH2_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH2_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH2_DIV_FRAC_Field is HAL.UInt4;
subtype CH2_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH2_DIV_Register is record
FRAC : CH2_DIV_FRAC_Field := 16#0#;
INT : CH2_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH2_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH2_CTR_CH2_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH2_CTR_Register is record
CH2_CTR : CH2_CTR_CH2_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH2_CTR_Register use record
CH2_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH2_CC_A_Field is HAL.UInt16;
subtype CH2_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH2_CC_Register is record
A : CH2_CC_A_Field := 16#0#;
B : CH2_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH2_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH2_TOP_CH2_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH2_TOP_Register is record
CH2_TOP : CH2_TOP_CH2_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH2_TOP_Register use record
CH2_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH3_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH3_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH3_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH3_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH3_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH3_DIV_FRAC_Field is HAL.UInt4;
subtype CH3_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH3_DIV_Register is record
FRAC : CH3_DIV_FRAC_Field := 16#0#;
INT : CH3_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH3_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH3_CTR_CH3_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH3_CTR_Register is record
CH3_CTR : CH3_CTR_CH3_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH3_CTR_Register use record
CH3_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH3_CC_A_Field is HAL.UInt16;
subtype CH3_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH3_CC_Register is record
A : CH3_CC_A_Field := 16#0#;
B : CH3_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH3_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH3_TOP_CH3_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH3_TOP_Register is record
CH3_TOP : CH3_TOP_CH3_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH3_TOP_Register use record
CH3_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH4_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH4_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH4_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH4_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH4_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH4_DIV_FRAC_Field is HAL.UInt4;
subtype CH4_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH4_DIV_Register is record
FRAC : CH4_DIV_FRAC_Field := 16#0#;
INT : CH4_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH4_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH4_CTR_CH4_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH4_CTR_Register is record
CH4_CTR : CH4_CTR_CH4_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH4_CTR_Register use record
CH4_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH4_CC_A_Field is HAL.UInt16;
subtype CH4_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH4_CC_Register is record
A : CH4_CC_A_Field := 16#0#;
B : CH4_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH4_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH4_TOP_CH4_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH4_TOP_Register is record
CH4_TOP : CH4_TOP_CH4_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH4_TOP_Register use record
CH4_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH5_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH5_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH5_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH5_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH5_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH5_DIV_FRAC_Field is HAL.UInt4;
subtype CH5_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH5_DIV_Register is record
FRAC : CH5_DIV_FRAC_Field := 16#0#;
INT : CH5_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH5_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH5_CTR_CH5_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH5_CTR_Register is record
CH5_CTR : CH5_CTR_CH5_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH5_CTR_Register use record
CH5_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH5_CC_A_Field is HAL.UInt16;
subtype CH5_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH5_CC_Register is record
A : CH5_CC_A_Field := 16#0#;
B : CH5_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH5_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH5_TOP_CH5_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH5_TOP_Register is record
CH5_TOP : CH5_TOP_CH5_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH5_TOP_Register use record
CH5_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH6_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH6_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH6_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH6_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH6_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH6_DIV_FRAC_Field is HAL.UInt4;
subtype CH6_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH6_DIV_Register is record
FRAC : CH6_DIV_FRAC_Field := 16#0#;
INT : CH6_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH6_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH6_CTR_CH6_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH6_CTR_Register is record
CH6_CTR : CH6_CTR_CH6_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH6_CTR_Register use record
CH6_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH6_CC_A_Field is HAL.UInt16;
subtype CH6_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH6_CC_Register is record
A : CH6_CC_A_Field := 16#0#;
B : CH6_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH6_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH6_TOP_CH6_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH6_TOP_Register is record
CH6_TOP : CH6_TOP_CH6_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH6_TOP_Register use record
CH6_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
type CH7_CSR_DIVMODE_Field is
(-- Free-running counting at rate dictated by fractional divider
DIV,
-- Fractional divider operation is gated by the PWM B pin.
LEVEL,
-- Counter advances with each rising edge of the PWM B pin.
RISE,
-- Counter advances with each falling edge of the PWM B pin.
FALL)
with Size => 2;
for CH7_CSR_DIVMODE_Field use
(DIV => 0,
LEVEL => 1,
RISE => 2,
FALL => 3);
-- Control and status register
type CH7_CSR_Register is record
-- Enable the PWM channel.
EN : Boolean := False;
-- 1: Enable phase-correct modulation. 0: Trailing-edge
PH_CORRECT : Boolean := False;
-- Invert output A
A_INV : Boolean := False;
-- Invert output B
B_INV : Boolean := False;
DIVMODE : CH7_CSR_DIVMODE_Field := RP_SVD.PWM.DIV;
-- After a write operation all bits in the field are cleared (set to
-- zero). Retard the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running.
PH_RET : Boolean := False;
-- After a write operation all bits in the field are cleared (set to
-- zero). Advance the phase of the counter by 1 count, while it is
-- running.\n Self-clearing. Write a 1, and poll until low. Counter must
-- be running\n at less than full speed (div_int + div_frac / 16 > 1)
PH_ADV : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH7_CSR_Register use record
EN at 0 range 0 .. 0;
PH_CORRECT at 0 range 1 .. 1;
A_INV at 0 range 2 .. 2;
B_INV at 0 range 3 .. 3;
DIVMODE at 0 range 4 .. 5;
PH_RET at 0 range 6 .. 6;
PH_ADV at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CH7_DIV_FRAC_Field is HAL.UInt4;
subtype CH7_DIV_INT_Field is HAL.UInt8;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
type CH7_DIV_Register is record
FRAC : CH7_DIV_FRAC_Field := 16#0#;
INT : CH7_DIV_INT_Field := 16#1#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH7_DIV_Register use record
FRAC at 0 range 0 .. 3;
INT at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype CH7_CTR_CH7_CTR_Field is HAL.UInt16;
-- Direct access to the PWM counter
type CH7_CTR_Register is record
CH7_CTR : CH7_CTR_CH7_CTR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH7_CTR_Register use record
CH7_CTR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CH7_CC_A_Field is HAL.UInt16;
subtype CH7_CC_B_Field is HAL.UInt16;
-- Counter compare values
type CH7_CC_Register is record
A : CH7_CC_A_Field := 16#0#;
B : CH7_CC_B_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH7_CC_Register use record
A at 0 range 0 .. 15;
B at 0 range 16 .. 31;
end record;
subtype CH7_TOP_CH7_TOP_Field is HAL.UInt16;
-- Counter wrap value
type CH7_TOP_Register is record
CH7_TOP : CH7_TOP_CH7_TOP_Field := 16#FFFF#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CH7_TOP_Register use record
CH7_TOP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- EN_CH array
type EN_CH_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for EN_CH
type EN_CH_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CH as a value
Val : HAL.UInt8;
when True =>
-- CH as an array
Arr : EN_CH_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for EN_CH_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- This register aliases the CSR_EN bits for all channels.\n Writing to
-- this register allows multiple channels to be enabled\n or disabled
-- simultaneously, so they can run in perfect sync.\n For each channel,
-- there is only one physical EN register bit,\n which can be accessed
-- through here or CHx_CSR.
type EN_Register is record
CH : EN_CH_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for EN_Register use record
CH at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- INTR_CH array
type INTR_CH_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for INTR_CH
type INTR_CH_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CH as a value
Val : HAL.UInt8;
when True =>
-- CH as an array
Arr : INTR_CH_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for INTR_CH_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Raw Interrupts
type INTR_Register is record
-- Write data bit of one shall clear (set to zero) the corresponding bit
-- in the field.
CH : INTR_CH_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for INTR_Register use record
CH at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- INTE_CH array
type INTE_CH_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for INTE_CH
type INTE_CH_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CH as a value
Val : HAL.UInt8;
when True =>
-- CH as an array
Arr : INTE_CH_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for INTE_CH_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Interrupt Enable
type INTE_Register is record
CH : INTE_CH_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for INTE_Register use record
CH at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- INTF_CH array
type INTF_CH_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for INTF_CH
type INTF_CH_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CH as a value
Val : HAL.UInt8;
when True =>
-- CH as an array
Arr : INTF_CH_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for INTF_CH_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Interrupt Force
type INTF_Register is record
CH : INTF_CH_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for INTF_Register use record
CH at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- INTS_CH array
type INTS_CH_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for INTS_CH
type INTS_CH_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CH as a value
Val : HAL.UInt8;
when True =>
-- CH as an array
Arr : INTS_CH_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for INTS_CH_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Interrupt status after masking & forcing
type INTS_Register is record
-- Read-only.
CH : INTS_CH_Field;
-- unspecified
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for INTS_Register use record
CH at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Simple PWM
type PWM_Peripheral is record
-- Control and status register
CH0_CSR : aliased CH0_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH0_DIV : aliased CH0_DIV_Register;
-- Direct access to the PWM counter
CH0_CTR : aliased CH0_CTR_Register;
-- Counter compare values
CH0_CC : aliased CH0_CC_Register;
-- Counter wrap value
CH0_TOP : aliased CH0_TOP_Register;
-- Control and status register
CH1_CSR : aliased CH1_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH1_DIV : aliased CH1_DIV_Register;
-- Direct access to the PWM counter
CH1_CTR : aliased CH1_CTR_Register;
-- Counter compare values
CH1_CC : aliased CH1_CC_Register;
-- Counter wrap value
CH1_TOP : aliased CH1_TOP_Register;
-- Control and status register
CH2_CSR : aliased CH2_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH2_DIV : aliased CH2_DIV_Register;
-- Direct access to the PWM counter
CH2_CTR : aliased CH2_CTR_Register;
-- Counter compare values
CH2_CC : aliased CH2_CC_Register;
-- Counter wrap value
CH2_TOP : aliased CH2_TOP_Register;
-- Control and status register
CH3_CSR : aliased CH3_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH3_DIV : aliased CH3_DIV_Register;
-- Direct access to the PWM counter
CH3_CTR : aliased CH3_CTR_Register;
-- Counter compare values
CH3_CC : aliased CH3_CC_Register;
-- Counter wrap value
CH3_TOP : aliased CH3_TOP_Register;
-- Control and status register
CH4_CSR : aliased CH4_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH4_DIV : aliased CH4_DIV_Register;
-- Direct access to the PWM counter
CH4_CTR : aliased CH4_CTR_Register;
-- Counter compare values
CH4_CC : aliased CH4_CC_Register;
-- Counter wrap value
CH4_TOP : aliased CH4_TOP_Register;
-- Control and status register
CH5_CSR : aliased CH5_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH5_DIV : aliased CH5_DIV_Register;
-- Direct access to the PWM counter
CH5_CTR : aliased CH5_CTR_Register;
-- Counter compare values
CH5_CC : aliased CH5_CC_Register;
-- Counter wrap value
CH5_TOP : aliased CH5_TOP_Register;
-- Control and status register
CH6_CSR : aliased CH6_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH6_DIV : aliased CH6_DIV_Register;
-- Direct access to the PWM counter
CH6_CTR : aliased CH6_CTR_Register;
-- Counter compare values
CH6_CC : aliased CH6_CC_Register;
-- Counter wrap value
CH6_TOP : aliased CH6_TOP_Register;
-- Control and status register
CH7_CSR : aliased CH7_CSR_Register;
-- INT and FRAC form a fixed-point fractional number.\n Counting rate is
-- system clock frequency divided by this number.\n Fractional division
-- uses simple 1st-order sigma-delta.
CH7_DIV : aliased CH7_DIV_Register;
-- Direct access to the PWM counter
CH7_CTR : aliased CH7_CTR_Register;
-- Counter compare values
CH7_CC : aliased CH7_CC_Register;
-- Counter wrap value
CH7_TOP : aliased CH7_TOP_Register;
-- This register aliases the CSR_EN bits for all channels.\n Writing to
-- this register allows multiple channels to be enabled\n or disabled
-- simultaneously, so they can run in perfect sync.\n For each channel,
-- there is only one physical EN register bit,\n which can be accessed
-- through here or CHx_CSR.
EN : aliased EN_Register;
-- Raw Interrupts
INTR : aliased INTR_Register;
-- Interrupt Enable
INTE : aliased INTE_Register;
-- Interrupt Force
INTF : aliased INTF_Register;
-- Interrupt status after masking & forcing
INTS : aliased INTS_Register;
end record
with Volatile;
for PWM_Peripheral use record
CH0_CSR at 16#0# range 0 .. 31;
CH0_DIV at 16#4# range 0 .. 31;
CH0_CTR at 16#8# range 0 .. 31;
CH0_CC at 16#C# range 0 .. 31;
CH0_TOP at 16#10# range 0 .. 31;
CH1_CSR at 16#14# range 0 .. 31;
CH1_DIV at 16#18# range 0 .. 31;
CH1_CTR at 16#1C# range 0 .. 31;
CH1_CC at 16#20# range 0 .. 31;
CH1_TOP at 16#24# range 0 .. 31;
CH2_CSR at 16#28# range 0 .. 31;
CH2_DIV at 16#2C# range 0 .. 31;
CH2_CTR at 16#30# range 0 .. 31;
CH2_CC at 16#34# range 0 .. 31;
CH2_TOP at 16#38# range 0 .. 31;
CH3_CSR at 16#3C# range 0 .. 31;
CH3_DIV at 16#40# range 0 .. 31;
CH3_CTR at 16#44# range 0 .. 31;
CH3_CC at 16#48# range 0 .. 31;
CH3_TOP at 16#4C# range 0 .. 31;
CH4_CSR at 16#50# range 0 .. 31;
CH4_DIV at 16#54# range 0 .. 31;
CH4_CTR at 16#58# range 0 .. 31;
CH4_CC at 16#5C# range 0 .. 31;
CH4_TOP at 16#60# range 0 .. 31;
CH5_CSR at 16#64# range 0 .. 31;
CH5_DIV at 16#68# range 0 .. 31;
CH5_CTR at 16#6C# range 0 .. 31;
CH5_CC at 16#70# range 0 .. 31;
CH5_TOP at 16#74# range 0 .. 31;
CH6_CSR at 16#78# range 0 .. 31;
CH6_DIV at 16#7C# range 0 .. 31;
CH6_CTR at 16#80# range 0 .. 31;
CH6_CC at 16#84# range 0 .. 31;
CH6_TOP at 16#88# range 0 .. 31;
CH7_CSR at 16#8C# range 0 .. 31;
CH7_DIV at 16#90# range 0 .. 31;
CH7_CTR at 16#94# range 0 .. 31;
CH7_CC at 16#98# range 0 .. 31;
CH7_TOP at 16#9C# range 0 .. 31;
EN at 16#A0# range 0 .. 31;
INTR at 16#A4# range 0 .. 31;
INTE at 16#A8# range 0 .. 31;
INTF at 16#AC# range 0 .. 31;
INTS at 16#B0# range 0 .. 31;
end record;
-- Simple PWM
PWM_Periph : aliased PWM_Peripheral
with Import, Address => PWM_Base;
end RP_SVD.PWM;
|
-- BSD 2-Clause License
--
-- Copyright (c) 2017, Zack Boll
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- * Redistributions in binary form must reproduce the above copyright notice,
-- this list of conditions and the following disclaimer in the documentation
-- and/or other materials provided with the distribution.
--
-- 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 Interfaces.C.Extensions; use Interfaces.C.Extensions;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Interfaces.C; use Interfaces.C;
package body Interfaces_CPP.Strings is
--
-- Thin bindings to C layer std::string
--
function CPP_Empty_String_Constructor return CPP_String_External;
pragma Import (C, CPP_Empty_String_Constructor,
"Interfaces_CPP_Empty_String_Constructor");
function CPP_Copy_String (Input: CPP_String_External)
return CPP_String_External;
pragma Import (C, CPP_Copy_String, "Interfaces_CPP_Copy_String");
procedure CPP_Delete_String (Input: CPP_String_External);
pragma Import (C, CPP_Delete_String, "Interfaces_CPP_Delete_String");
function CPP_To_C_String (Input: CPP_String_External)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, CPP_To_C_String, "Interfaces_CPP_To_C_String");
procedure C_To_CPP_String (Src: Interfaces.C.Strings.chars_ptr;
Dst: CPP_String_External);
pragma Import (C, C_To_CPP_String, "Interfaces_CPP_To_CPP_String");
-------------------------------------------------------------------------
procedure Initialize (Object : in out CPP_String) is
begin
--
-- Allocate empty string
--
Object.cpp_str := CPP_Empty_String_Constructor;
end Initialize;
procedure Adjust (Object : in out CPP_String) is
begin
Object.cpp_str := CPP_Copy_String (Object.cpp_str);
end Adjust;
procedure Finalize (Object : in out CPP_String) is
begin
CPP_Delete_String (Object.cpp_str);
end Finalize;
function To_Ada (Input: Interfaces.C.Strings.chars_ptr) return String is
begin
return Interfaces.C.Strings.Value (Input);
end To_Ada;
function To_Ada (Object: CPP_String) return String is
begin
return To_Ada (CPP_To_C_String (Object.cpp_str));
end To_Ada;
function To_Ada (External: CPP_String_External) return String is
begin
return To_Ada (CPP_To_C_String (External));
end To_Ada;
function To_CPP (Input: String) return CPP_String is
c_string : aliased Interfaces.C.char_array := To_C (Input);
--
-- :TODO This should probably be done better but wanted to avoid another
-- dynamic memory allocationi
--
c_string_ptr : chars_ptr := To_Chars_Ptr (c_string'Unrestricted_Access);
Object : CPP_String;
begin
C_To_CPP_String (Src => c_string_ptr, Dst => Object.cpp_str);
return Object;
end To_CPP;
function To_CPP_External (Input: CPP_String) return CPP_String_External is
begin
return Input.cpp_str;
end To_CPP_External;
end Interfaces_CPP.Strings;
|
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2016-2021 Vitalii Bondarenko <vibondare@gmail.com> --
-- --
------------------------------------------------------------------------------
-- --
-- The MIT License (MIT) --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- "Software"), to deal in the Software without restriction, including --
-- without limitation the rights to use, copy, modify, merge, publish, --
-- distribute, sublicense, and/or sell copies of the Software, and to --
-- permit persons to whom the Software is furnished to do so, subject to --
-- the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY --
-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, --
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE --
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
------------------------------------------------------------------------------
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
package Formatted_Output is
type Format_Type is private;
Empty_Format : constant Format_Type;
function To_String (Fmt : Format_Type) return String;
-- Convert formatted string to fixed-length string
-- Example:
-- Send_To_Terminal (To_String (+"Hello %s\n" & "world"));
function "-" (Fmt : Format_Type) return String
renames Formatted_Output.To_String;
-- Convert formatted string to fixed-length string
function To_Format (Fmt_String : String) return Format_Type;
-- Converts String to Format_Type
function "+" (Fmt_String : String) return Format_Type
renames Formatted_Output.To_Format;
-- Converts String to Format_Type
function "&" (Fmt : Format_Type; Value : String) return Format_Type;
-- Replaces leftmost formatting sequence in Fmt with formatted Value
-- string, then returns Fmt. Raises exception Format_Error when invalid
-- string formatting sequence is found or no formatting sequence found
-- at all
procedure Put (Fmt : Format_Type);
-- Puts formatted string to console using Ada.Text_IO
-- Defined as Ada.Text_IO.Put (To_String (Fmt));
-- Example:
-- Put (+"%s %s %s\n" & "Just" & "a" & "test");
procedure Put (File : File_Type; Fmt : Format_Type);
-- Puts formatted string to file using Ada.Text_IO
-- Defined as Ada.Text_IO.Put (File, To_String (Fmt));
procedure Put_Line (Fmt : Format_Type);
-- Puts formatted string to console using Ada.Text_IO
procedure Put_Line (File : File_Type; Fmt : Format_Type);
-- Puts formatted string to file using Ada.Text_IO
Format_Error : exception;
-- Format_Error exception raised when bad format detected
Filler : constant Character := ' ';
-- Filling character, used when padding strings
private
type Format_Type is new Ada.Strings.Unbounded.Unbounded_String;
Empty_Format : constant Format_Type := To_Unbounded_String ("");
Maximal_Item_Length : constant := 255;
function Scan_To_Percent_Sign (Fmt : Format_Type) return Integer;
-- Scans string to the first occurence of percent sign ignoring the double
-- percent, returns index of the found sign or zero, if no percent sign is
-- found
function Decimal_Point_Character return String;
function Thousands_Sep_Character return String;
Ada_Dec_Point_Character : constant String := ".";
Ada_Sep_Character : constant String := "_";
type Digit_Grouping is (None, Ada_Grouping_Style, NLS_Grouping_Style);
type Base_Style_Kind is (None, C_Base_Style, Ada_Base_Style);
function Separate_Digit_Groups
(Text_Value : String;
Separator : String;
Group_Size : Integer) return String;
-- Separate the digit groups for the image without base or decimal value.
--
-- Text_Value : Image of the value as a string without leading and trailing
-- spaces.
-- Separator : The character used to separate groups of digits.
-- Group_Size : Size of the group of digits.
-- function Separate_Based_Digit_Groups
-- (Text_Value : String;
-- Separator : String;
-- Group_Size : Integer) return String;
-- -- Separate the digit groups for the image with base.
-- --
-- -- Text_Value : Image of the value as a string without leading and trailing
-- -- spaces.
-- -- Separator : The character used to separate groups of digits.
-- -- Group_Size : Size of the group of digits.
function Set_Leading_Zero (Img : String) return String;
function Set_Leading_Zero
(Img : String; Separator : String; Group_Size : Integer) return String;
end Formatted_Output;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Asis.Declarations;
with Asis.Elements;
-- with League.String_Vectors;
with Properties.Tools;
package body Properties.Declarations.Package_Declaration is
----------
-- Code --
----------
function Code
(Engine : access Engines.Contexts.Context;
Element : Asis.Declaration;
Name : Engines.Text_Property) return League.Strings.Universal_String
is
use type Asis.Element_List;
function Body_Declarative_Items
(Element : Asis.Declaration) return Asis.Element_List;
----------------------------
-- Body_Declarative_Items --
----------------------------
function Body_Declarative_Items
(Element : Asis.Declaration) return Asis.Element_List
is
Impl : constant Asis.Declaration :=
Asis.Declarations.Corresponding_Body (Element);
begin
if Asis.Elements.Is_Nil (Impl) then
return Asis.Nil_Element_List;
else
return Asis.Declarations.Body_Declarative_Items (Impl);
end if;
end Body_Declarative_Items;
Is_Library_Level : constant Boolean := Asis.Elements.Is_Nil
(Asis.Elements.Enclosing_Element (Element));
Inside_Package : constant Boolean := Engine.Boolean.Get_Property
(Element, Engines.Inside_Package);
Named : League.Strings.Universal_String;
Down : League.Strings.Universal_String;
Text : League.Strings.Universal_String;
List : constant Asis.Element_List :=
Asis.Declarations.Visible_Part_Declarative_Items (Element) &
Asis.Declarations.Private_Part_Declarative_Items (Element) &
Body_Declarative_Items (Element);
begin
Named := Engine.Text.Get_Property
(Asis.Declarations.Names (Element) (1), Name);
if Is_Library_Level then
Text.Append
(Properties.Tools.Library_Level_Header
(Asis.Elements.Enclosing_Compilation_Unit (Element)));
Text.Append ("return ");
end if;
if not Inside_Package then
Text.Append ("var ");
Text.Append (Named);
Text.Append ("=");
end if;
Text.Append ("(function (_ec){");
Text.Append ("_ec._nested = function (){};");
Text.Append ("_ec._nested.prototype = _ec;");
Down := Engine.Text.Get_Property
(List => List,
Name => Name,
Empty => League.Strings.Empty_Universal_String,
Sum => Properties.Tools.Join'Access);
Text.Append (Down);
Text.Append ("return _ec;");
Text.Append ("})(");
if Inside_Package then
Text.Append ("_ec.");
Text.Append (Named);
Text.Append ("=");
end if;
Text.Append ("new _ec._nested());");
if Is_Library_Level then
Text.Append ("});");
end if;
return Text;
end Code;
end Properties.Declarations.Package_Declaration;
|
with
AdaM.Factory;
package body AdaM.Declaration.of_subtype
is
-- Storage Pool
--
record_Version : constant := 1;
pool_Size : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
"Declaration.of_subtypes",
pool_Size,
record_Version,
Declaration.of_subtype.item,
Declaration.of_subtype.view);
-- Forge
--
procedure define (Self : in out Item)
is
begin
null;
end define;
overriding
procedure destruct (Self : in out Item)
is
begin
null;
end destruct;
function new_Declaration return View
is
new_View : constant Declaration.of_subtype.view := Pool.new_Item;
begin
define (Declaration.of_subtype.item (new_View.all));
return new_View;
end new_Declaration;
procedure free (Self : in out Declaration.of_subtype.view)
is
begin
destruct (Declaration.of_subtype.item (Self.all));
Pool.free (Self);
end free;
-- Attributes
--
overriding
function Id (Self : access Item) return AdaM.Id
is
begin
return Pool.to_Id (Self);
end Id;
-- Streams
--
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : in View)
renames Pool.View_write;
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : out View)
renames Pool.View_read;
end AdaM.Declaration.of_subtype;
|
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_get_keyboard_mapping_request_t is
-- Item
--
type Item is record
major_opcode : aliased Interfaces.Unsigned_8;
pad0 : aliased Interfaces.Unsigned_8;
length : aliased Interfaces.Unsigned_16;
first_keycode : aliased xcb.xcb_keycode_t;
count : aliased Interfaces.Unsigned_8;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_get_keyboard_mapping_request_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_get_keyboard_mapping_request_t.Item,
Element_Array => xcb.xcb_get_keyboard_mapping_request_t.Item_Array,
Default_Terminator => (others => <>));
subtype Pointer is C_Pointers.Pointer;
-- Pointer_Array
--
type Pointer_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_get_keyboard_mapping_request_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_get_keyboard_mapping_request_t.Pointer,
Element_Array => xcb.xcb_get_keyboard_mapping_request_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_get_keyboard_mapping_request_t;
|
pragma Ada_2012;
package body Utilities.Hybrid_Files is
--------------
-- Put_Line --
--------------
procedure Put_Line (To : Hybrid_File; Item : String) is
begin
if To.Standard_IO then
Text_IO.Put_Line (Item);
else
Text_IO.Put_Line (To.File, Item);
end if;
end Put_Line;
--------------
-- New_Line --
--------------
procedure New_Line (To : Hybrid_File) is
begin
if to.Standard_IO then
Text_IO.New_Line;
else
Text_IO.New_Line (To.File);
end if;
end New_Line;
----------
-- Open --
----------
procedure Open
(File : in out Hybrid_File;
Name : String;
M : Text_IO.File_Mode)
is
begin
Text_IO.Open (File => File.File,
Mode => M,
Name => Name);
File.Opened := True;
File.Standard_IO := False;
File.Mode := M;
end Open;
------------
-- Create --
------------
procedure Create
(File : in out Hybrid_File;
Name : String;
M : Text_IO.File_Mode)
is
begin
Text_IO.Create (File => File.File,
Mode => M,
Name => Name);
File.Opened := True;
File.Standard_IO := False;
File.Mode := M;
end Create;
----------
-- Open --
----------
procedure Open
(File : in out Hybrid_File;
M : Text_IO.File_Mode)
is
begin
File.Opened := True;
File.Standard_IO := True;
File.Mode := M;
end Open;
-----------
-- Close --
-----------
procedure Close (File : in out Hybrid_File) is
begin
if not File.Standard_IO then
Text_IO.Close (File.File);
end if;
File.Opened := False;
end Close;
end Utilities.Hybrid_Files;
|
-- CE3704F.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT INTEGER_IO GET DOES NOT ALLOW EMBEDDED BLANKS OR
-- CONSECUTIVE UNDERSCORES TO BE INPUT.
-- APPLICABILITY CRITERIA:
-- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH
-- SUPPORT TEXT FILES.
-- HISTORY:
-- SPS 10/04/82
-- VKG 01/14/83
-- CPP 07/30/84
-- RJW 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE
-- RESULT WHEN FILES ARE NOT SUPPORTED.
-- DWC 09/10/87 REMOVED UNNECESSARY CODE, CORRECTED EXCEPTION
-- HANDLING, AND ADDED MORE CHECKS OF THE VALUES
-- OF CHARACTERS READ.
WITH REPORT; USE REPORT;
WITH TEXT_IO; USE TEXT_IO;
PROCEDURE CE3704F IS
INCOMPLETE : EXCEPTION;
BEGIN
TEST ("CE3704F", "INTEGER_IO GET DOES NOT ALLOW EMBEDDED " &
"BLANKS OR CONSECUTIVE UNDERSCORES");
DECLARE
FT : FILE_TYPE;
X : INTEGER;
PACKAGE IIO IS NEW INTEGER_IO (INTEGER);
USE IIO;
CH : CHARACTER;
P : POSITIVE;
BEGIN
-- CREATE AND INITIALIZE FILE
BEGIN
CREATE (FT, OUT_FILE, LEGAL_FILE_NAME);
EXCEPTION
WHEN USE_ERROR =>
NOT_APPLICABLE ("USE_ERROR RAISED; TEXT CREATE " &
"WITH OUT_FILE MODE");
RAISE INCOMPLETE;
WHEN NAME_ERROR =>
NOT_APPLICABLE ("NAME_ERROR RAISED; TEXT CREATE " &
"WITH OUT_FILE MODE");
RAISE INCOMPLETE;
END;
PUT (FT, "12_345");
NEW_LINE (FT);
PUT (FT, "12 345");
NEW_LINE (FT);
PUT (FT, "1__345");
NEW_LINE (FT);
PUT (FT, "-56");
NEW_LINE (FT);
PUT (FT, "10E0");
NEW_LINE (FT);
PUT (FT, "10E-2X");
NEW_LINE (FT);
PUT (FT, "4E1__2");
NEW_LINE (FT);
PUT (FT, "1 0#99#");
NEW_LINE (FT);
PUT (FT, "1__0#99#");
NEW_LINE (FT);
PUT (FT, "10#9_9#");
NEW_LINE (FT);
PUT (FT, "10#9__9#");
NEW_LINE (FT);
PUT (FT, "10#9 9#");
NEW_LINE (FT);
PUT (FT, "16#E#E1");
NEW_LINE (FT);
PUT (FT, "2#110#E1_1");
NEW_LINE (FT);
PUT (FT, "2#110#E1__1");
CLOSE(FT);
-- BEGIN TEST
BEGIN
OPEN (FT, IN_FILE, LEGAL_FILE_NAME);
EXCEPTION
WHEN USE_ERROR =>
NOT_APPLICABLE ("USE_ERROR RAISED; " &
"TEXT OPEN WITH IN_FILE " &
"MODE");
RAISE INCOMPLETE;
END;
GET (FT, X);
IF X /= 12345 THEN
FAILED ("GET WITH UNDERSCORE INCORRECT - (1)");
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X, 6);
FAILED ("DATA_ERROR NOT RAISED - (2)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (2)");
END;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (3)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (3)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (3)");
ELSE
GET (FT, CH);
IF CH /= '_' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(3): CHAR IS " & CH);
END IF;
GET (FT, CH);
IF CH /= '3' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(3.5): CHAR IS " & CH);
END IF;
END IF;
SKIP_LINE (FT);
GET (FT, X);
IF X /= (-56) THEN
FAILED ("GET WITH GOOD CASE INCORRECT - (4)");
END IF;
SKIP_LINE (FT);
GET (FT, X, 4);
IF X /= 10 THEN
FAILED ("GET WITH ZERO EXPONENT INCORRECT - (5)");
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (6)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (6)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (6)");
ELSE
GET (FT, CH);
IF CH /= 'X' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(6): CHAR IS " & CH);
END IF;
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (7)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (7)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (7)");
ELSE
GET (FT, CH);
IF CH /= '_' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(7): CHAR IS " & CH);
END IF;
GET (FT, CH);
IF CH /= '2' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(7.5): CHAR IS " & CH);
END IF;
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X, 7);
FAILED ("DATA_ERROR NOT RAISED - (8)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (8)");
END;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (9)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (9)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (9)");
ELSE
GET (FT, CH);
IF CH /= '_' THEN
FAILED ("GET STOPPED AT WRONG POSITION " &
"- (9): CHAR IS " & CH);
END IF;
GET (FT, CH);
IF CH /= '0' THEN
FAILED ("GET STOPPED AT WRONG POSITION " &
"- (9.5): CHAR IS " & CH);
END IF;
END IF;
SKIP_LINE (FT);
GET (FT, X);
IF X /= 99 THEN
FAILED ("GET WITH UNDERSCORE IN " &
"BASED LITERAL INCORRECT - (10)");
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (11)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (11)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (11)");
ELSE
GET (FT, CH);
IF CH /= '_' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(11): CHAR IS " & CH);
END IF;
GET (FT, CH);
IF CH /= '9' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(11.5): CHAR IS " & CH);
END IF;
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X, 6);
FAILED ("DATA_ERROR NOT RAISED - (12)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (12)");
END;
SKIP_LINE (FT);
GET (FT, X, 7);
IF X /= 224 THEN
FAILED ("GET WITH GOOD CASE OF " &
"BASED LITERAL INCORRECT - (13)");
END IF;
SKIP_LINE (FT);
GET (FT, X, 10);
IF X /= (6 * 2 ** 11) THEN
FAILED ("GET WITH UNDERSCORE IN EXPONENT" &
"OF BASED LITERAL INCORRECT - (14)");
END IF;
SKIP_LINE (FT);
BEGIN
GET (FT, X);
FAILED ("DATA_ERROR NOT RAISED - (15)");
EXCEPTION
WHEN DATA_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED - (15)");
END;
IF END_OF_LINE (FT) THEN
FAILED ("GET STOPPED AT END OF LINE - (15)");
ELSE
GET (FT, CH);
IF CH /= '_' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(15): CHAR IS " & CH);
END IF;
GET (FT, CH);
IF CH /= '1' THEN
FAILED ("GET STOPPED AT WRONG POSITION - " &
"(15.5): CHAR IS " & CH);
END IF;
END IF;
BEGIN
DELETE (FT);
EXCEPTION
WHEN USE_ERROR =>
NULL;
END;
EXCEPTION
WHEN INCOMPLETE =>
NULL;
END;
RESULT;
END CE3704F;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>Stream2Mem</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>in_V_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>in.V.V</originalName>
<rtlName></rtlName>
<coreName>FSL</coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</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>out_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>1</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>out_V3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>61</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>tmp_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>18</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>tmp_2_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>34</item>
<item>35</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>out_V3_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>61</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>37</item>
<item>38</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>tmp_5_cast</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>62</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>out_V3_cast8</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>62</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>sum1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>62</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>41</item>
<item>42</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>sum1_cast</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>out_V_addr</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>156</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>156</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>44</item>
<item>45</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>out_V_addr_wr_req</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>156</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>156</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>47</item>
<item>48</item>
<item>50</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>tmp</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>57</item>
<item>59</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>i_1</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>60</item>
<item>62</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
<item>65</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp_V</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>155</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>155</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>67</item>
<item>68</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>156</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>156</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>70</item>
<item>71</item>
<item>72</item>
<item>74</item>
<item>149</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>out_V_addr_wr_resp</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>156</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>156</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>77</item>
<item>78</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>158</lineNumber>
<contextFuncName>Stream2Mem&lt;64, 128&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Stream2Mem&lt;64, 128&gt;</second>
</first>
<second>158</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_23">
<Value>
<Obj>
<type>2</type>
<id>49</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>16</content>
</item>
<item class_id_reference="16" object_id="_24">
<Value>
<Obj>
<type>2</type>
<id>52</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_25">
<Value>
<Obj>
<type>2</type>
<id>58</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>16</content>
</item>
<item class_id_reference="16" object_id="_26">
<Value>
<Obj>
<type>2</type>
<id>61</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_27">
<Value>
<Obj>
<type>2</type>
<id>73</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<const_type>0</const_type>
<content>255</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_28">
<Obj>
<type>3</type>
<id>16</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>9</count>
<item_version>0</item_version>
<item>5</item>
<item>6</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_29">
<Obj>
<type>3</type>
<id>21</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_30">
<Obj>
<type>3</type>
<id>29</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>25</item>
<item>26</item>
<item>28</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_31">
<Obj>
<type>3</type>
<id>32</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>30</item>
<item>31</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>34</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_32">
<id>35</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_33">
<id>38</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_34">
<id>39</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_35">
<id>40</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_36">
<id>41</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_37">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_38">
<id>43</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_39">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_40">
<id>45</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_41">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_42">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_43">
<id>51</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_44">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_45">
<id>54</id>
<edge_type>2</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_46">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_47">
<id>56</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_48">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>64</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>65</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_55">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_56">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_57">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_58">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_59">
<id>75</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_60">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_61">
<id>145</id>
<edge_type>2</edge_type>
<source_obj>16</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_62">
<id>146</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_63">
<id>147</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_64">
<id>148</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_65">
<id>149</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>26</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_66">
<mId>1</mId>
<mTag>Stream2Mem</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>24</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_67">
<mId>2</mId>
<mTag>Entry</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>1</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_68">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>21</item>
<item>29</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>16</mMinTripCount>
<mMaxTripCount>16</mMaxTripCount>
<mMinLatency>17</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_69">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>32</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>4</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_70">
<states class_id="25" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_71">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_72">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_73">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_74">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_75">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_76">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_77">
<id>2</id>
<operations>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_78">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_79">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_80">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_81">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_82">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_83">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_84">
<id>3</id>
<operations>
<count>4</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_85">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_86">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_87">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_88">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_89">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_90">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_91">
<id>5</id>
<operations>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_92">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_93">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_94">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_95">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_96">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_97">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_98">
<id>6</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_99">
<id>30</id>
<stage>5</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_100">
<id>7</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_101">
<id>30</id>
<stage>4</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_102">
<id>8</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_103">
<id>30</id>
<stage>3</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_104">
<id>9</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_105">
<id>30</id>
<stage>2</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_106">
<id>10</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_107">
<id>30</id>
<stage>1</stage>
<latency>5</latency>
</item>
<item class_id_reference="28" object_id="_108">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_109">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>16</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_110">
<inState>2</inState>
<outState>3</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="30" object_id="_111">
<inState>6</inState>
<outState>7</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="30" object_id="_112">
<inState>7</inState>
<outState>8</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="30" object_id="_113">
<inState>8</inState>
<outState>9</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="30" object_id="_114">
<inState>9</inState>
<outState>10</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="30" object_id="_115">
<inState>4</inState>
<outState>5</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="30" object_id="_116">
<inState>5</inState>
<outState>3</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="30" object_id="_117">
<inState>3</inState>
<outState>6</outState>
<condition>
<id>29</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first class_id="35" tracking_level="0" version="0">
<first>18</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_118">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>32</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>18</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="37" tracking_level="0" version="0">
<count>18</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>5</first>
<second class_id="39" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>3</first>
<second>4</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="40" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="41" tracking_level="0" version="0">
<first>16</first>
<second class_id="42" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>3</first>
<second>4</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>3</first>
<second>7</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="43" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="1" version="0" object_id="_119">
<region_name>Loop 1</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>21</item>
<item>29</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>3</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="45" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>64</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>76</first>
<second>
<count>7</count>
<item_version>0</item_version>
<item>14</item>
<item>26</item>
<item>30</item>
<item>30</item>
<item>30</item>
<item>30</item>
<item>30</item>
</second>
</item>
<item>
<first>83</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>97</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>104</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>121</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>128</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>134</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="48" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>i_1_fu_134</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>i_phi_fu_97</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>out_V3_cast8_fu_108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>out_V_addr_fu_121</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>sum1_cast_fu_118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>sum1_fu_112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>tmp_5_cast_fu_104</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>tmp_fu_128</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>4</count>
<item_version>0</item_version>
<item>
<first>grp_writeresp_fu_76</first>
<second>
<count>7</count>
<item_version>0</item_version>
<item>14</item>
<item>26</item>
<item>30</item>
<item>30</item>
<item>30</item>
<item>30</item>
<item>30</item>
</second>
</item>
<item>
<first>out_V3_read_read_fu_70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>tmp_2_read_read_fu_64</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>tmp_V_read_fu_83</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="50" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>6</count>
<item_version>0</item_version>
<item>
<first>93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>140</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>145</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>159</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>6</count>
<item_version>0</item_version>
<item>
<first>i_1_reg_154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>i_reg_93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>out_V_addr_reg_145</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>sum1_reg_140</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>tmp_V_reg_159</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>tmp_reg_150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>i_reg_93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="51" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>in_V_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>25</item>
</second>
</item>
</second>
</item>
<item>
<first>out_V</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>out_V3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
</second>
</item>
<item>
<first>tmp_2</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="53" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="54" tracking_level="0" version="0">
<first>1</first>
<second>FSL</second>
</item>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
--
-- Copyright (c) 2007, 2008 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
with Ahven.SList;
with Ahven.AStrings;
with Ahven.Long_AStrings;
pragma Elaborate_All (Ahven.SList);
-- Like the name implies, the Results package is used for
-- storing the test results.
--
-- Result_Info holds one invidual result and
-- Result_Collection holds multiple Result_Infos.
--
package Ahven.Results is
use Ahven.AStrings;
type Result_Info is private;
Empty_Result_Info : constant Result_Info;
-- Result_Info object which holds no result. It can be used
-- to initialize a new Result_Info object.
procedure Set_Test_Name (Info : in out Result_Info;
Name : Bounded_String);
-- Set a test name for the result.
procedure Set_Routine_Name (Info : in out Result_Info;
Name : Bounded_String);
-- Set a routine name for the result.
procedure Set_Message (Info : in out Result_Info;
Message : Bounded_String);
-- Set a message for the result.
procedure Set_Test_Name (Info : in out Result_Info; Name : String);
-- A helper function, which calls Set_Test_Name (.. ; Bounded_String)
procedure Set_Routine_Name (Info : in out Result_Info; Name : String);
-- A helper function, which calls Set_Routine_Name (.. ; Bounded_String)
procedure Set_Message (Info : in out Result_Info; Message : String);
-- A helper function, which calls Set_Message (.. ; Bounded_String)
procedure Set_Long_Message (Info : in out Result_Info;
Message : Bounded_String);
-- Set a long message for the result
procedure Set_Long_Message
(Info : in out Result_Info;
Message : Long_AStrings.Bounded_String);
-- Set a long message for the result
procedure Set_Long_Message (Info : in out Result_Info; Message : String);
-- A helper function, which calls Set_Long_Message (.. ; Bounded_String)
procedure Set_Execution_Time (Info : in out Result_Info;
Elapsed_Time : Duration);
-- Set the execution time of the result info (test).
procedure Set_Output_File (Info : in out Result_Info;
Filename : Bounded_String);
-- Set the name of the test output file.
procedure Set_Output_File (Info : in out Result_Info;
Filename : String);
-- Set the name of the test output file.
function Get_Test_Name (Info : Result_Info) return String;
-- Return the test name of the result info.
function Get_Routine_Name (Info : Result_Info) return String;
-- Return the routine name of the result info.
function Get_Message (Info : Result_Info) return String;
-- Return the message of the result info.
function Get_Long_Message (Info : Result_Info) return String;
-- Return the long message of the result info.
function Get_Execution_Time (Info : Result_Info) return Duration;
-- Return the execution time of the result info.
function Get_Output_File (Info : Result_Info) return Bounded_String;
-- Return the name of the output file.
-- Empty string is returned in case there is no output file.
type Result_Collection is limited private;
-- A collection of Result_Info objects.
-- Contains also child collections.
type Result_Collection_Access is access Result_Collection;
procedure Add_Child (Collection : in out Result_Collection;
Child : Result_Collection_Access);
-- Add a child collection to the collection.
procedure Add_Error (Collection : in out Result_Collection;
Info : Result_Info);
-- Add a test error to the collection.
procedure Add_Skipped (Collection : in out Result_Collection;
Info : Result_Info);
-- Add a skipped test to the collection.
procedure Add_Failure (Collection : in out Result_Collection;
Info : Result_Info);
-- Add a test failure to the collection.
procedure Add_Pass (Collection : in out Result_Collection;
Info : Result_Info);
-- Add a passed test to the collection
procedure Release (Collection : in out Result_Collection);
-- Release resourced held by the collection.
-- Frees also all children added via Add_Child.
procedure Set_Name (Collection : in out Result_Collection;
Name : Bounded_String);
-- Set a test name for the collection.
procedure Set_Parent (Collection : in out Result_Collection;
Parent : Result_Collection_Access);
-- Set a parent collection to the collection.
function Test_Count (Collection : Result_Collection) return Natural;
-- Return the amount of tests in the collection.
-- Tests in child collections are included.
function Direct_Test_Count (Collection : Result_Collection) return Natural;
-- Return the amount of tests in the collection.
-- The tests in the child collections are NOT included.
function Pass_Count (Collection : Result_Collection) return Natural;
-- Return the amount of passed tests in the collection.
-- Tests in child collections are included.
function Error_Count (Collection : Result_Collection) return Natural;
-- Return the amount of test errors in the collection.
-- Tests in child collections are included.
function Failure_Count (Collection : Result_Collection) return Natural;
-- Return the amount of test errors in the collection.
-- Tests in child collections are included.
function Skipped_Count (Collection : Result_Collection) return Natural;
-- Return the amount of skipped tests in the colleciton.
-- Tests in child collections are included.
function Get_Test_Name (Collection : Result_Collection)
return Bounded_String;
-- Return the name of the collection's test.
function Get_Parent (Collection : Result_Collection)
return Result_Collection_Access;
-- Return the parent of the collection.
function Get_Execution_Time (Collection : Result_Collection)
return Duration;
-- Return the execution time of the whole collection.
type Result_Info_Cursor is private;
-- A cursor type for Pass, Failure and Error results.
function First_Pass (Collection : Result_Collection)
return Result_Info_Cursor;
-- Get the first pass from the collection.
function First_Failure (Collection : Result_Collection)
return Result_Info_Cursor;
-- Get the first failure from the collection.
function First_Skipped (Collection : Result_Collection)
return Result_Info_Cursor;
-- Get the first skipped test from the collection.
function First_Error (Collection : Result_Collection)
return Result_Info_Cursor;
-- Get the first error from the collection.
function Next (Position : Result_Info_Cursor) return Result_Info_Cursor;
-- Get the next pass/failure/error.
function Data (Position : Result_Info_Cursor) return Result_Info;
-- Get the data behind the cursor.
function Is_Valid (Position : Result_Info_Cursor) return Boolean;
-- Is the cursor still valid?
type Result_Collection_Cursor is private;
-- Cursor for iterating over a set of Result_Collection access objects.
function First_Child (Collection : in Result_Collection)
return Result_Collection_Cursor;
-- Get the first child of the collection.
function Next (Position : Result_Collection_Cursor)
return Result_Collection_Cursor;
-- Get the next child.
function Is_Valid (Position : Result_Collection_Cursor) return Boolean;
-- Is the cursor still valid?
function Data (Position : Result_Collection_Cursor)
return Result_Collection_Access;
-- Get the data (Result_Collection_Access) behind the cursor.
function Child_Depth (Collection : Result_Collection) return Natural;
-- Return the maximum depth of children. (a child of a child, etc.)
--
-- Examples: Child_Depth is 0 for a collection without children.
-- Collection with a child containing another child has a depth of 2.
private
type Result_Info is record
Test_Name : Bounded_String := Null_Bounded_String;
Output_File : Bounded_String := Null_Bounded_String;
Routine_Name : Bounded_String := Null_Bounded_String;
Execution_Time : Duration := 0.0;
Message : Bounded_String := Null_Bounded_String;
Long_Message : Long_AStrings.Bounded_String
:= Long_AStrings.Null_Bounded_String;
end record;
Empty_Result_Info : constant Result_Info :=
(Test_Name => Null_Bounded_String,
Routine_Name => Null_Bounded_String,
Message => Null_Bounded_String,
Long_Message => Long_AStrings.Null_Bounded_String,
Execution_Time => 0.0,
Output_File => Null_Bounded_String);
package Result_Info_List is
new Ahven.SList (Element_Type => Result_Info);
type Result_Collection_Wrapper is record
Ptr : Result_Collection_Access;
end record;
-- Work around for Janus/Ada 3.1.1d/3.1.2beta generic bug.
package Result_List is
new Ahven.SList (Element_Type => Result_Collection_Wrapper);
type Result_Info_Cursor is new Result_Info_List.Cursor;
type Result_Collection_Cursor is new Result_List.Cursor;
type Result_Collection is limited record
Test_Name : Bounded_String := Null_Bounded_String;
Passes : Result_Info_List.List;
Failures : Result_Info_List.List;
Errors : Result_Info_List.List;
Skips : Result_Info_List.List;
Children : Result_List.List;
Parent : Result_Collection_Access := null;
end record;
end Ahven.Results;
|
-- Auto generated file. Don't edit
-- Read copyright and license at the end of this file
package Encodings.Maps.CP_864 is
function Decode (Char : Character) return Wide_Character;
pragma Inline (Decode);
procedure Encode
(Text : in Wide_String;
Text_Last : out Natural;
Result : out Raw_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.CP_864);
procedure Decode
(Text : in Raw_String;
Text_Last : out Natural;
Result : out Wide_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.CP_864);
end Encodings.Maps.CP_864;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * Neither the name of the Maxim Reznik, IE nor the names of its
-- contributors may be used to endorse or promote products derived from
-- this software without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>Loop_3_proc</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>p_p2_mul1_stencil_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>hw_output_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream&lt;AxiPackedStencil&lt;unsigned int, 1, 1, 1, 1&gt; &gt;.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>hw_output_V_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream&lt;AxiPackedStencil&lt;unsigned int, 1, 1, 1, 1&gt; &gt;.V.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>44</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>indvar_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>158</item>
<item>159</item>
<item>160</item>
<item>161</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>p_hw_output_y_scan_1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>162</item>
<item>163</item>
<item>164</item>
<item>165</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>p_hw_output_x_scan_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_hw_output_x___scan_dim_0</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>166</item>
<item>167</item>
<item>168</item>
<item>169</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>exitcond_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>170</item>
<item>172</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>indvar_flatten_next</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>173</item>
<item>175</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>176</item>
<item>177</item>
<item>178</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>exitcond7</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>59</item>
<item>61</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>p_hw_output_x_scan_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>62</item>
<item>64</item>
<item>65</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>p_hw_output_y_scan_2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>223</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>223</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>67</item>
<item>68</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>tmp_7_mid1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>243</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>243</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>69</item>
<item>71</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>tmp_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>243</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>243</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>72</item>
<item>73</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>tmp_7_mid2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>243</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>243</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>74</item>
<item>75</item>
<item>76</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>p_hw_output_y_scan_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>77</item>
<item>78</item>
<item>79</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp_value_V_5</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>231</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>231</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>81</item>
<item>82</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>p_417</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>237</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>237</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_417</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>83</item>
</oprand_edges>
<opcode>sitofp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>p_418</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>238</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>238</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_418</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</oprand_edges>
<opcode>fpext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>p_419</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>239</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>239</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_419</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>85</item>
<item>87</item>
</oprand_edges>
<opcode>dmul</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>p_Val2_s</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>475</lineNumber>
<contextFuncName>fp_struct</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>480</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first>
<second>fp_struct</second>
</first>
<second>475</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>val</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>88</item>
</oprand_edges>
<opcode>bitcast</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>loc_V</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>477</lineNumber>
<contextFuncName>fp_struct</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>480</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first>
<second>fp_struct</second>
</first>
<second>477</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>loc.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>90</item>
<item>91</item>
<item>93</item>
<item>95</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>loc_V_1</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>478</lineNumber>
<contextFuncName>fp_struct</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>480</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first>
<second>fp_struct</second>
</first>
<second>478</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>loc.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>52</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>tmp_i_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>482</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>482</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>54</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>98</item>
<item>100</item>
<item>101</item>
<item>103</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>tmp_i_cast_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>482</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>482</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>137</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>104</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>tmp_i_i_cast_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>502</lineNumber>
<contextFuncName>expv</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first>
<second>expv</second>
</first>
<second>502</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>105</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>sh_assign</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>502</lineNumber>
<contextFuncName>expv</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first>
<second>expv</second>
</first>
<second>502</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>sh</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>107</item>
<item>108</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>isNeg</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>isNeg</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>110</item>
<item>111</item>
<item>113</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>tmp_1_i_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>115</item>
<item>116</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>tmp_1_i_cast_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>117</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>sh_assign_1</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>sh</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>118</item>
<item>119</item>
<item>120</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>sh_assign_1_i_cast_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>121</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>tmp_2_i_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>137</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>tmp_2_i_cast_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>54</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>123</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>tmp_3_i_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>54</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>124</item>
<item>125</item>
</oprand_edges>
<opcode>lshr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>tmp_4_i_i</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>137</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>126</item>
<item>127</item>
</oprand_edges>
<opcode>shl</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>tmp</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>488</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>488</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>129</item>
<item>130</item>
<item>132</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>tmp_1</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>488</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>488</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>133</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>tmp_4</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>488</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>488</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>135</item>
<item>136</item>
<item>137</item>
<item>139</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>p_Val2_4</name>
<fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName>
<fileDirectory>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory>
<lineNumber>485</lineNumber>
<contextFuncName>cast_IEEE754&lt;unsigned int, 6, double&gt;</contextFuncName>
<inlineStackInfo>
<count>2</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>240</second>
</item>
</second>
</item>
<item>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, 6, double&gt;</second>
</first>
<second>485</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first>
<second>cast_IEEE754&lt;unsigned int, double&gt;</second>
</first>
<second>523</second>
</item>
<item>
<first>
<first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first>
<second>__hls_fptoui_double_i32</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Val2__</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>140</item>
<item>141</item>
<item>142</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name>tmp_2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>243</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>243</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>143</item>
<item>145</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name>tmp_last_V</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>243</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>243</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>146</item>
<item>147</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>248</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>248</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>149</item>
<item>150</item>
<item>151</item>
<item>152</item>
<item>153</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>p_hw_output_x_scan_1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_hw_output_x___scan_dim_0</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>154</item>
<item>155</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>156</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>18</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_48">
<Value>
<Obj>
<type>2</type>
<id>60</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1917</content>
</item>
<item class_id_reference="16" object_id="_49">
<Value>
<Obj>
<type>2</type>
<id>63</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_50">
<Value>
<Obj>
<type>2</type>
<id>66</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_51">
<Value>
<Obj>
<type>2</type>
<id>70</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1076</content>
</item>
<item class_id_reference="16" object_id="_52">
<Value>
<Obj>
<type>2</type>
<id>86</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>1</const_type>
<content>0.125</content>
</item>
<item class_id_reference="16" object_id="_53">
<Value>
<Obj>
<type>2</type>
<id>92</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>52</content>
</item>
<item class_id_reference="16" object_id="_54">
<Value>
<Obj>
<type>2</type>
<id>94</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>62</content>
</item>
<item class_id_reference="16" object_id="_55">
<Value>
<Obj>
<type>2</type>
<id>99</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_56">
<Value>
<Obj>
<type>2</type>
<id>102</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_57">
<Value>
<Obj>
<type>2</type>
<id>106</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<const_type>0</const_type>
<content>3073</content>
</item>
<item class_id_reference="16" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>112</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>11</content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>114</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1023</content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>131</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>53</content>
</item>
<item class_id_reference="16" object_id="_61">
<Value>
<Obj>
<type>2</type>
<id>138</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>84</content>
</item>
<item class_id_reference="16" object_id="_62">
<Value>
<Obj>
<type>2</type>
<id>144</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1916</content>
</item>
<item class_id_reference="16" object_id="_63">
<Value>
<Obj>
<type>2</type>
<id>157</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_64">
<Value>
<Obj>
<type>2</type>
<id>171</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>2064609</content>
</item>
<item class_id_reference="16" object_id="_65">
<Value>
<Obj>
<type>2</type>
<id>174</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_66">
<Obj>
<type>3</type>
<id>7</id>
<name>newFuncRoot</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_67">
<Obj>
<type>3</type>
<id>14</id>
<name>.preheader</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>6</count>
<item_version>0</item_version>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_68">
<Obj>
<type>3</type>
<id>55</id>
<name>.preheader37</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>36</count>
<item_version>0</item_version>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>53</item>
<item>54</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_69">
<Obj>
<type>3</type>
<id>57</id>
<name>.exitStub</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>93</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_70">
<id>58</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_71">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_72">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_73">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_74">
<id>64</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_75">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_76">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_77">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_78">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_79">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_80">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_81">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_82">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_83">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_84">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_85">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_86">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_87">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_88">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_89">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_90">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_91">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_92">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_93">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_94">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_95">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>94</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>96</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_103">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_104">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_105">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_106">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_107">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_108">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_109">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_110">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_111">
<id>119</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_112">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_113">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_114">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_115">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_116">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_117">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_118">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_119">
<id>127</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_120">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_121">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>131</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_122">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_123">
<id>136</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_124">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>131</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_125">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_126">
<id>140</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_127">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_128">
<id>142</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_129">
<id>143</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_130">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>144</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_131">
<id>146</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_132">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_133">
<id>150</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_134">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_135">
<id>152</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_136">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_137">
<id>154</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_138">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_139">
<id>156</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_140">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>157</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_141">
<id>159</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_142">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_143">
<id>161</id>
<edge_type>2</edge_type>
<source_obj>55</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_144">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_145">
<id>163</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_146">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_147">
<id>165</id>
<edge_type>2</edge_type>
<source_obj>55</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_148">
<id>166</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_149">
<id>167</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_150">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_151">
<id>169</id>
<edge_type>2</edge_type>
<source_obj>55</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_152">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_153">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>171</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_154">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_155">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>174</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_156">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_157">
<id>177</id>
<edge_type>2</edge_type>
<source_obj>55</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_158">
<id>178</id>
<edge_type>2</edge_type>
<source_obj>57</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_159">
<id>238</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_160">
<id>239</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_161">
<id>240</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_162">
<id>241</id>
<edge_type>2</edge_type>
<source_obj>55</source_obj>
<sink_obj>14</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_163">
<mId>1</mId>
<mTag>Loop_3_proc</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2064633</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_164">
<mId>2</mId>
<mTag>Entry</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_165">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>14</item>
<item>55</item>
</basic_blocks>
<mII>1</mII>
<mDepth>24</mDepth>
<mMinTripCount>2064609</mMinTripCount>
<mMaxTripCount>2064609</mMaxTripCount>
<mMinLatency>2064631</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_166">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>44</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>6</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>3</first>
<second>7</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>11</first>
<second>1</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>13</first>
<second>9</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>22</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>22</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>22</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>23</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>7</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>1</first>
<second>24</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="1" version="0" object_id="_167">
<region_name>Loop 1</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>14</item>
<item>55</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>24</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="34" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_reg_nodes>
<dp_regname_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="38" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
private with Ada.Calendar;
package Stopwatch is
type Instance is tagged private;
procedure Reset (This : in out Instance);
function Elapsed (This : Instance) return Duration;
procedure Hold (This : in out Instance; Enable : Boolean := True);
-- Stop counting time, or re-start if not Enable
procedure Release (This : in out Instance);
-- Equivalent to Hold (Enable => False)
function Is_Held (This : Instance) return Boolean;
function Image (This : Instance; Decimals : Natural := 2) return String;
-- Elapsed time in seconds, without leading space, without units
function Image (Elapsed : Duration; Decimals : Natural := 2) return String;
-- Convenience to format durations even without a stopwatch
private
use Ada.Calendar;
type Instance is tagged record
Start : Time := Clock;
-- Last moment the timer was released/started
Held : Boolean := False;
Elapsed : Duration := 0.0;
-- Track elapsed time when held
end record;
end Stopwatch;
|
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with swig;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_glx_get_tex_genfv_reply_t is
-- Item
--
type Item is record
response_type : aliased Interfaces.Unsigned_8;
pad0 : aliased Interfaces.Unsigned_8;
sequence : aliased Interfaces.Unsigned_16;
length : aliased Interfaces.Unsigned_32;
pad1 : aliased swig.int8_t_Array (0 .. 3);
n : aliased Interfaces.Unsigned_32;
datum : aliased xcb.xcb_glx_float32_t;
pad2 : aliased swig.int8_t_Array (0 .. 11);
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_glx_get_tex_genfv_reply_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_tex_genfv_reply_t.Item,
Element_Array => xcb.xcb_glx_get_tex_genfv_reply_t.Item_Array,
Default_Terminator => (others => <>));
subtype Pointer is C_Pointers.Pointer;
-- Pointer_Array
--
type Pointer_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_glx_get_tex_genfv_reply_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_tex_genfv_reply_t.Pointer,
Element_Array => xcb.xcb_glx_get_tex_genfv_reply_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_get_tex_genfv_reply_t;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 4 6 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2021, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 46
package System.Pack_46 is
pragma Preelaborate;
Bits : constant := 46;
type Bits_46 is mod 2 ** Bits;
for Bits_46'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_46
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_46 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_46
(Arr : System.Address;
N : Natural;
E : Bits_46;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
function GetU_46
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_46 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned. This version
-- is used when Arr may represent an unaligned address.
procedure SetU_46
(Arr : System.Address;
N : Natural;
E : Bits_46;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value. This version
-- is used when Arr may represent an unaligned address
end System.Pack_46;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- (VxWorks 5 Version x86) --
-- --
-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package System is
pragma Pure;
-- Note that we take advantage of the implementation permission to make
-- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
-- 2005, this is Pure in any case (AI-362).
pragma No_Elaboration_Code_All;
-- Allow the use of that restriction in units that WITH this unit
type Name is (SYSTEM_NAME_GNAT);
System_Name : constant Name := SYSTEM_NAME_GNAT;
-- System-Dependent Named Numbers
Min_Int : constant := Long_Long_Integer'First;
Max_Int : constant := Long_Long_Integer'Last;
Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size;
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := 63;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
Tick : constant := 1.0 / 60.0;
-- Storage-related Declarations
type Address is private;
pragma Preelaborable_Initialization (Address);
Null_Address : constant Address;
Storage_Unit : constant := 8;
Word_Size : constant := 32;
Memory_Size : constant := 2 ** 32;
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order := Low_Order_First;
pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
-- Priority-related Declarations (RM D.1)
-- Ada priorities are mapped to VxWorks priorities using the following
-- transformation: 255 - Ada Priority
-- Ada priorities are used as follows:
-- 256 is reserved for the VxWorks kernel
-- 248 - 255 correspond to hardware interrupt levels 0 .. 7
-- 247 is a catchall default "interrupt" priority for signals,
-- allowing higher priority than normal tasks, but lower than
-- hardware priority levels. Protected Object ceilings can
-- override these values.
-- 246 is used by the Interrupt_Manager task
Max_Priority : constant Positive := 245;
Max_Interrupt_Priority : constant Positive := 255;
subtype Any_Priority is Integer range 0 .. 255;
subtype Priority is Any_Priority range 0 .. 245;
subtype Interrupt_Priority is Any_Priority range 246 .. 255;
Default_Priority : constant Priority := 122;
private
pragma Linker_Options ("--specs=vxworks-x86-link.spec");
-- Setup proper set of -L's for this configuration
type Address is mod Memory_Size;
Null_Address : constant Address := 0;
--------------------------------------
-- System Implementation Parameters --
--------------------------------------
-- These parameters provide information about the target that is used
-- by the compiler. They are in the private part of System, where they
-- can be accessed using the special circuitry in the Targparm unit
-- whose source should be consulted for more detailed descriptions
-- of the individual switch values.
Backend_Divide_Checks : constant Boolean := False;
Backend_Overflow_Checks : constant Boolean := True;
Command_Line_Args : constant Boolean := False;
Configurable_Run_Time : constant Boolean := False;
Denorm : constant Boolean := True;
Duration_32_Bits : constant Boolean := False;
Exit_Status_Supported : constant Boolean := True;
Fractional_Fixed_Ops : constant Boolean := False;
Frontend_Layout : constant Boolean := False;
Machine_Overflows : constant Boolean := False;
Machine_Rounds : constant Boolean := True;
Preallocated_Stacks : constant Boolean := False;
Signed_Zeros : constant Boolean := True;
Stack_Check_Default : constant Boolean := False;
Stack_Check_Probes : constant Boolean := True;
Stack_Check_Limits : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
Support_Atomic_Primitives : constant Boolean := True;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;
Always_Compatible_Rep : constant Boolean := False;
Suppress_Standard_Library : constant Boolean := False;
Use_Ada_Main_Program_Name : constant Boolean := True;
Frontend_Exceptions : constant Boolean := True;
ZCX_By_Default : constant Boolean := False;
Executable_Extension : constant String := ".out";
end System;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ C H 2 --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-1997 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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Expand routines for chapter 2 constructs
with Types; use Types;
package Exp_Ch2 is
procedure Expand_N_Expanded_Name (N : Node_Id);
procedure Expand_N_Identifier (N : Node_Id);
procedure Expand_N_Real_Literal (N : Node_Id);
function Param_Entity (N : Node_Id) return Entity_Id;
-- Given an expression N, determines if the expression is a reference
-- to a formal (of a subprogram or entry), and if so returns the Id
-- of the corresponding formal entity, otherwise returns Empty. The
-- reason that this is in Exp_Ch2 is that it has to deal with the
-- case where the reference is to an entry formal, and has been
-- expanded already. Since Exp_Ch2 is in charge of the expansion, it
-- is best suited to knowing how to detect this case.
end Exp_Ch2;
|
-- Copyright 2008-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with System;
package Pck is
type Object is tagged record
Position : Integer;
end record;
type Segment is new Object with record
Width : Integer;
end record;
procedure Do_Nothing (A : System.Address);
end Pck;
|
-- todo: initialize in several functions: initGPIO, initI2C, use HAL
-- with Config; use Config;
with HIL.GPIO;
with HIL.SPI;
with HIL.Clock;
with HIL.UART;
with HIL.I2C;
with HIL.Random;
with Ada.Real_Time; use Ada.Real_Time;
package body CPU with SPARK_Mode is
-- configures hardware registers
procedure initialize is
startup_time : constant Ada.Real_Time.Time := Ada.Real_Time.Clock;
begin
-- Configure GPIO
HIL.Clock.configure;
HIL.Random.initialize;
HIL.UART.configure;
HIL.GPIO.configure;
HIL.SPI.configure;
delay until startup_time + Ada.Real_Time.Milliseconds (200);
HIL.I2C.initialize;
end initialize;
procedure sleep is -- ??
begin
null;
end sleep;
end CPU;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.RED_BLACK_TREES.GENERIC_BOUNDED_KEYS --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
-- Tree_Type is used to implement ordered containers. This package declares
-- the tree operations that depend on keys.
with Ada.Containers.Red_Black_Trees.Generic_Bounded_Operations;
generic
with package Tree_Operations is new Generic_Bounded_Operations (<>);
use Tree_Operations.Tree_Types, Tree_Operations.Tree_Types.Implementation;
type Key_Type (<>) is limited private;
with function Is_Less_Key_Node
(L : Key_Type;
R : Node_Type) return Boolean;
with function Is_Greater_Key_Node
(L : Key_Type;
R : Node_Type) return Boolean;
package Ada.Containers.Red_Black_Trees.Generic_Bounded_Keys is
pragma Pure;
generic
with function New_Node return Count_Type;
procedure Generic_Insert_Post
(Tree : in out Tree_Type'Class;
Y : Count_Type;
Before : Boolean;
Z : out Count_Type);
-- Completes an insertion after the insertion position has been
-- determined. On output Z contains the index of the newly inserted
-- node, allocated using Allocate. If Tree is busy then
-- Program_Error is raised. If Y is 0, then Tree must be empty.
-- Otherwise Y denotes the insertion position, and Before specifies
-- whether the new node is Y's left (True) or right (False) child.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
procedure Generic_Conditional_Insert
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
-- Inserts a new node in Tree, but only if the tree does not already
-- contain Key. Generic_Conditional_Insert first searches for a key
-- equivalent to Key in Tree. If an equivalent key is found, then on
-- output Node designates the node with that key and Inserted is
-- False; there is no allocation and Tree is not modified. Otherwise
-- Node designates a new node allocated using Insert_Post, and
-- Inserted is True.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
procedure Generic_Unconditional_Insert
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type);
-- Inserts a new node in Tree. On output Node designates the new
-- node, which is allocated using Insert_Post. The node is inserted
-- immediately after already-existing equivalent keys.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
with procedure Unconditional_Insert_Sans_Hint
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type);
procedure Generic_Unconditional_Insert_With_Hint
(Tree : in out Tree_Type'Class;
Hint : Count_Type;
Key : Key_Type;
Node : out Count_Type);
-- Inserts a new node in Tree near position Hint, to avoid having to
-- search from the root for the insertion position. If Hint is 0
-- then Generic_Unconditional_Insert_With_Hint attempts to insert
-- the new node after Tree.Last. If Hint is non-zero then if Key is
-- less than Hint, it attempts to insert the new node immediately
-- prior to Hint. Otherwise it attempts to insert the node
-- immediately following Hint. We say "attempts" above to emphasize
-- that insertions always preserve invariants with respect to key
-- order, even when there's a hint. So if Key can't be inserted
-- immediately near Hint, then the new node is inserted in the
-- normal way, by searching for the correct position starting from
-- the root.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
with procedure Conditional_Insert_Sans_Hint
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
procedure Generic_Conditional_Insert_With_Hint
(Tree : in out Tree_Type'Class;
Position : Count_Type; -- the hint
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
-- Inserts a new node in Tree if the tree does not already contain
-- Key, using Position as a hint about where to insert the new node.
-- See Generic_Unconditional_Insert_With_Hint for more details about
-- hint semantics.
function Find
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node equivalent to Key
function Ceiling
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node equal to or greater than Key
function Floor
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the largest node less than or equal to Key
function Upper_Bound
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node greater than Key
generic
with procedure Process (Index : Count_Type);
procedure Generic_Iteration
(Tree : Tree_Type'Class;
Key : Key_Type);
-- Calls Process for each node in Tree equivalent to Key, in order
-- from earliest in range to latest.
generic
with procedure Process (Index : Count_Type);
procedure Generic_Reverse_Iteration
(Tree : Tree_Type'Class;
Key : Key_Type);
-- Calls Process for each node in Tree equivalent to Key, but in
-- order from largest in range to earliest.
end Ada.Containers.Red_Black_Trees.Generic_Bounded_Keys;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
with Ada.Strings.Unbounded;
package Orka.Strings is
pragma Preelaborate;
function Trim (Value : String) return String;
-- Return value with whitespace removed from both the start and end
function Strip_Line_Term (Value : String) return String;
-- Return the value without any LF and CR characters at the end
function Lines (Value : String) return Positive;
-- Return the number of lines that the string contains
package SU renames Ada.Strings.Unbounded;
function "+" (Value : String) return SU.Unbounded_String renames SU.To_Unbounded_String;
function "+" (Value : SU.Unbounded_String) return String renames SU.To_String;
type String_List is array (Positive range <>) of SU.Unbounded_String;
function Split
(Value : String;
Separator : String := " ";
Maximum : Natural := 0) return String_List;
function Join (List : String_List; Separator : String) return String;
end Orka.Strings;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package body Matreshka.Internals.Unicode is
--------------
-- Is_Valid --
--------------
function Is_Valid (Code : Code_Unit_32) return Boolean is
begin
return
Code in Code_Point and Code not in Surrogate_First .. Surrogate_Last;
end Is_Valid;
end Matreshka.Internals.Unicode;
|
package body BSSNBase.Coords is
function x_coord (i : Integer) return Real is
begin
return Real(i-1)*dx;
end x_coord;
function y_coord (j : Integer) return Real is
begin
return Real(j-1)*dy;
end y_coord;
function z_coord (k : Integer) return Real is
begin
return Real(k-1)*dz;
end z_coord;
end BSSNBase.Coords;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.