hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
163 values
lang
stringclasses
53 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
112
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
113
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
float64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
113
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.05M
avg_line_length
float64
1
966k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
c7b06ccd03f8057d3e7c46e520844a419ad7e88f
811
adb
Ada
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/expr_delims/pck.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/expr_delims/pck.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/expr_delims/pck.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2013-2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Put(S : String) is begin null; end Put; end Pck;
33.791667
73
0.722565
c7a0e65e21fe7f7ec7ee56c2a8a448ef5629741d
2,668
ads
Ada
software/hal/boards/components/HMC5883L/hmc5883l-register.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/hal/boards/components/HMC5883L/hmc5883l-register.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/hal/boards/components/HMC5883L/hmc5883l-register.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath ([email protected]) -- -- Description: register definitions for the HMC5883L package HMC5883L.Register with SPARK_Mode is HMC5883L_ADDRESS : constant := 16#3C# ;-- this device only has one address HMC5883L_DEFAULT_ADDRESS : constant := 16#1E#; -- 2#0011_110X HMC5883L_RA_CONFIG_A : constant := 16#00#; HMC5883L_RA_CONFIG_B : constant := 16#01#; HMC5883L_RA_MODE : constant := 16#02#; HMC5883L_RA_DATAX_H : constant := 16#03#; HMC5883L_RA_DATAX_L : constant := 16#04#; HMC5883L_RA_DATAZ_H : constant := 16#05#; HMC5883L_RA_DATAZ_L : constant := 16#06#; HMC5883L_RA_DATAY_H : constant := 16#07#; HMC5883L_RA_DATAY_L : constant := 16#08#; HMC5883L_RA_STATUS : constant := 16#09#; HMC5883L_RA_IDA : constant := 16#0A#; HMC5883L_RA_IDB : constant := 16#0B#; HMC5883L_RA_IDC : constant := 16#0C#; HMC5883L_CRA_AVERAGE_BIT : constant := 6; HMC5883L_CRA_AVERAGE_LENGTH : constant := 2; HMC5883L_CRA_RATE_BIT : constant := 4; HMC5883L_CRA_RATE_LENGTH : constant := 3; HMC5883L_CRA_BIAS_BIT : constant := 1; HMC5883L_CRA_BIAS_LENGTH : constant := 2; HMC5883L_AVERAGING_1 : constant := 16#00#; HMC5883L_AVERAGING_2 : constant := 16#01#; HMC5883L_AVERAGING_4 : constant := 16#02#; HMC5883L_AVERAGING_8 : constant := 16#03#; HMC5883L_RATE_0P75 : constant := 16#00#; HMC5883L_RATE_1P5 : constant := 16#01#; HMC5883L_RATE_3 : constant := 16#02#; HMC5883L_RATE_7P5 : constant := 16#03#; HMC5883L_RATE_15 : constant := 16#04#; HMC5883L_RATE_30 : constant := 16#05#; HMC5883L_RATE_75 : constant := 16#06#; HMC5883L_BIAS_NORMAL : constant := 16#00#; HMC5883L_BIAS_POSITIVE : constant := 16#01#; HMC5883L_BIAS_NEGATIVE : constant := 16#02#; HMC5883L_CRB_GAIN_BIT : constant := 7; HMC5883L_CRB_GAIN_LENGTH : constant := 3; HMC5883L_GAIN_1370 : constant := 16#00#; HMC5883L_GAIN_1090 : constant := 16#01#; HMC5883L_GAIN_820 : constant := 16#02#; HMC5883L_GAIN_660 : constant := 16#03#; HMC5883L_GAIN_440 : constant := 16#04#; HMC5883L_GAIN_390 : constant := 16#05#; HMC5883L_GAIN_330 : constant := 16#06#; HMC5883L_GAIN_220 : constant := 16#07#; HMC5883L_MODEREG_BIT : constant := 1; HMC5883L_MODEREG_LENGTH : constant := 2; HMC5883L_MODE_CONTINUOUS : constant := 16#00#; HMC5883L_MODE_SINGLE : constant := 16#01#; HMC5883L_MODE_IDLE : constant := 16#02#; HMC5883L_STATUS_LOCK_BIT : constant := 1; HMC5883L_STATUS_READY_BIT : constant := 0; end HMC5883L.Register;
35.105263
77
0.6994
133cf94a5f833c7c275a40ef9bc6ad6bc4f22af5
4,874
adb
Ada
tools/configure/configure-abstract_tests.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
tools/configure/configure-abstract_tests.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
tools/configure/configure-abstract_tests.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Characters.Latin_1; with Ada.Strings.Fixed; with Ada.Text_IO; with Configure.Internals; package body Configure.Abstract_Tests is use Ada.Text_IO; use Configure.Internals; ------------------ -- Report_Check -- ------------------ procedure Report_Check (Self : in out Abstract_Test'Class; Message : String) is Name : constant String := Self.Name; Last : constant Natural := Integer'Min (Name'Length, 10); Msg : String := "[ ] " & Message & "..."; begin Msg (2 .. Last + 1) := Name (1 .. Last); Self.Test_Log_Prefix := To_Unbounded_String (Msg (Msg'First .. Msg'Last - 3)); Put (Standard_Error, Msg); Flush (Standard_Error); Put_Line (Log_Output, Msg); Flush (Log_Output); end Report_Check; ---------------- -- Report_Log -- ---------------- procedure Report_Log (Self : Abstract_Test'Class; Message : String) is begin Put_Line (Log_Output, Message); Flush (Log_Output); end Report_Log; ------------------- -- Report_Status -- ------------------- procedure Report_Status (Self : Abstract_Test'Class; Message : String) is use Ada.Characters.Latin_1; use Ada.Strings.Fixed; Msg : constant String := ": " & Message; begin Put_Line (Standard_Error, (3 * BS) & Msg); Flush (Standard_Error); Put_Line (Log_Output, To_String (Self.Test_Log_Prefix) & Msg); Flush (Log_Output); end Report_Status; end Configure.Abstract_Tests;
47.784314
82
0.454863
ad5b1d3e1ab7b0a42908dad4cd8b9dd8fc9fefea
834
adb
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/set_pckd_arr_elt/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/set_pckd_arr_elt/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/set_pckd_arr_elt/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2012-2017 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Update_Small (S : in out Small) is begin null; end Update_Small; end Pck;
37.909091
73
0.729017
1336cccafd2734002b16c44540a3270d9e5cab2a
6,640
adb
Ada
boards/stm32_common/stm32f469disco/touch_panel_ft6x06.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
192
2016-06-01T18:32:04.000Z
2022-03-26T22:52:31.000Z
boards/stm32_common/stm32f469disco/touch_panel_ft6x06.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
239
2016-05-26T20:02:01.000Z
2022-03-31T09:46:56.000Z
boards/stm32_common/stm32f469disco/touch_panel_ft6x06.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
142
2016-06-05T08:12:20.000Z
2022-03-24T17:37:17.000Z
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- Based on ft6x06.h from MCD Application Team with Ada.Unchecked_Conversion; with STM32.Board; use STM32.Board; with STM32.Device; use STM32.Device; with STM32.I2C; with STM32.GPIO; use STM32.GPIO; with STM32.Setup; with HAL.Touch_Panel; use HAL.Touch_Panel; with Ada.Real_Time; use Ada.Real_Time; with STM32.DMA; use STM32.DMA; package body Touch_Panel_FT6x06 is procedure Initialize_DMA; procedure TP_Init_Pins; -- Initializes the Touch Panel GPIO pins --------------- -- Init_Pins -- --------------- procedure TP_Init_Pins is begin Enable_Clock (TP_INT); -- Configure_IO (TP_INT, -- (Speed => Speed_50MHz, -- Mode => Mode_In, -- Output_Type => Open_Drain, -- Resistors => Pull_Up)); Configure_IO (TP_INT, (Mode => Mode_In, Resistors => Pull_Up)); Lock (TP_INT); end TP_Init_Pins; -------------------- -- Initialize_DMA -- -------------------- procedure Initialize_DMA is Config : DMA_Stream_Configuration; begin Enable_Clock (I2C_TX_RX_DMA); -- TX and RX config -- Config.Increment_Peripheral_Address := False; Config.Increment_Memory_Address := True; Config.Peripheral_Data_Format := Bytes; Config.Memory_Data_Format := Bytes; Config.Operation_Mode := Normal_Mode; Config.Priority := Priority_High; Config.FIFO_Enabled := False; Config.FIFO_Threshold := FIFO_Threshold_Full_Configuration; Config.Memory_Burst_Size := Memory_Burst_Inc4; Config.Peripheral_Burst_Size := Peripheral_Burst_Single; -- TX DMA -- Config.Channel := I2C_TX_DMA_Chan; Config.Direction := Memory_To_Peripheral; Configure (I2C_TX_RX_DMA, I2C_TX_DMA_Stream, Config); -- RX DMA -- Config.Channel := I2C_RX_DMA_Chan; Config.Direction := Peripheral_To_Memory; Configure (I2C_TX_RX_DMA, I2C_RX_DMA_Stream, Config); end Initialize_DMA; ---------------- -- Initialize -- ---------------- function Initialize (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation := HAL.Framebuffer.Default) return Boolean is begin TP_Init_Pins; delay until Clock + Milliseconds (200); if not TP_I2C.Port_Enabled then STM32.Setup.Setup_I2C_Master (Port => TP_I2C, SDA => TP_I2C_SDA, SCL => TP_I2C_SCL, SDA_AF => TP_I2C_AF, SCL_AF => TP_I2C_AF, Clock_Speed => 100_000); end if; Initialize_DMA; TP_I2C.Set_TX_DMA_Handler (I2C_TX_DMA_Int'Access); TP_I2C.Set_RX_DMA_Handler (I2C_RX_DMA_Int'Access); TP_I2C.Set_Polling_Threshold (0); This.TP_Set_Use_Interrupts (False); This.Set_Orientation (Orientation); return This.Check_Id; end Initialize; ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation := HAL.Framebuffer.Default) is begin if not This.Initialize (Orientation) then raise Constraint_Error with "Cannot initialize the touch panel"; end if; end Initialize; --------------------- -- Set_Orientation -- --------------------- procedure Set_Orientation (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation) is begin case Orientation is when HAL.Framebuffer.Default | HAL.Framebuffer.Landscape => This.Set_Bounds (LCD_Natural_Width, LCD_Natural_Height, Invert_Y); when HAL.Framebuffer.Portrait => This.Set_Bounds (LCD_Natural_Width, LCD_Natural_Height, Swap_XY); end case; end Set_Orientation; end Touch_Panel_FT6x06;
37.514124
78
0.543223
1353a929fda724b2f7c58da1cd85178c311c08db
141
ads
Ada
src/framework/aunit-run-generic_runner.ads
persan/AUnit-addons
f94a3da6f4a82e826365b95dd0ade8e142c69772
[ "MIT" ]
null
null
null
src/framework/aunit-run-generic_runner.ads
persan/AUnit-addons
f94a3da6f4a82e826365b95dd0ade8e142c69772
[ "MIT" ]
null
null
null
src/framework/aunit-run-generic_runner.ads
persan/AUnit-addons
f94a3da6f4a82e826365b95dd0ade8e142c69772
[ "MIT" ]
null
null
null
with AUnit.Test_Suites; generic with function Suite return AUnit.Test_Suites.Access_Test_Suite is <>; procedure AUnit.Run.Generic_Runner;
28.2
72
0.822695
ad7a8100e0b6c5dd4909622069b0d974715b5306
2,916
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-fatsfl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-fatsfl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-fatsfl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . F A T _ S F L T -- -- -- -- S p e c -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- This package contains an instantiation of the floating-point attribute -- runtime routines for the type Short_Float. with System.Fat_Gen; package System.Fat_SFlt is pragma Pure; -- Note the only entity from this package that is accessed by Rtsfind -- is the name of the package instantiation. Entities within this package -- (i.e. the individual floating-point attribute routines) are accessed -- by name using selected notation. package Attr_Short_Float is new System.Fat_Gen (Short_Float); end System.Fat_SFlt;
60.75
78
0.438615
419dcae27f34f893ea90c74b6d1b328d14f4ed6f
526
adb
Ada
examples/uart/main.adb
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
examples/uart/main.adb
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
examples/uart/main.adb
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
with Interfaces; use Interfaces; with MSPGD.Board; with Drivers.Text_IO; procedure Main is pragma Preelaborate; package Board renames MSPGD.Board; package Text_IO is new Drivers.Text_IO (USART => Board.UART); N : Unsigned_32 := 0; begin Board.Init; Text_IO.Put_Line ("Hello, World!"); loop if not Board.BUTTON.Is_Set then Board.LED_GREEN.Set; Text_IO.Put_Hex (N, 8); Text_IO.New_Line; Board.LED_GREEN.Clear; N := N + 1; end if; end loop; end Main;
19.481481
64
0.644487
1a9fe3f23aa8adf8d97a48bd177b67901f965609
40,393
ads
Ada
bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/i-stm32-rcc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/i-stm32-rcc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/i-stm32-rcc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
-- -- Copyright (C) 2020, AdaCore -- -- This spec has been automatically generated from STM32F0x8.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.STM32.RCC is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subtype CR_HSION_Field is Interfaces.STM32.Bit; subtype CR_HSIRDY_Field is Interfaces.STM32.Bit; subtype CR_HSITRIM_Field is Interfaces.STM32.UInt5; subtype CR_HSICAL_Field is Interfaces.STM32.Byte; subtype CR_HSEON_Field is Interfaces.STM32.Bit; subtype CR_HSERDY_Field is Interfaces.STM32.Bit; subtype CR_HSEBYP_Field is Interfaces.STM32.Bit; subtype CR_CSSON_Field is Interfaces.STM32.Bit; subtype CR_PLLON_Field is Interfaces.STM32.Bit; subtype CR_PLLRDY_Field is Interfaces.STM32.Bit; -- Clock control register type CR_Register is record -- Internal High Speed clock enable HSION : CR_HSION_Field := 16#1#; -- Read-only. Internal High Speed clock ready flag HSIRDY : CR_HSIRDY_Field := 16#1#; -- unspecified Reserved_2_2 : Interfaces.STM32.Bit := 16#0#; -- Internal High Speed clock trimming HSITRIM : CR_HSITRIM_Field := 16#10#; -- Read-only. Internal High Speed clock Calibration HSICAL : CR_HSICAL_Field := 16#0#; -- External High Speed clock enable HSEON : CR_HSEON_Field := 16#0#; -- Read-only. External High Speed clock ready flag HSERDY : CR_HSERDY_Field := 16#0#; -- External High Speed clock Bypass HSEBYP : CR_HSEBYP_Field := 16#0#; -- Clock Security System enable CSSON : CR_CSSON_Field := 16#0#; -- unspecified Reserved_20_23 : Interfaces.STM32.UInt4 := 16#0#; -- PLL enable PLLON : CR_PLLON_Field := 16#0#; -- Read-only. PLL clock ready flag PLLRDY : CR_PLLRDY_Field := 16#0#; -- unspecified Reserved_26_31 : Interfaces.STM32.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record HSION at 0 range 0 .. 0; HSIRDY at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; HSITRIM at 0 range 3 .. 7; HSICAL at 0 range 8 .. 15; HSEON at 0 range 16 .. 16; HSERDY at 0 range 17 .. 17; HSEBYP at 0 range 18 .. 18; CSSON at 0 range 19 .. 19; Reserved_20_23 at 0 range 20 .. 23; PLLON at 0 range 24 .. 24; PLLRDY at 0 range 25 .. 25; Reserved_26_31 at 0 range 26 .. 31; end record; subtype CFGR_SW_Field is Interfaces.STM32.UInt2; subtype CFGR_SWS_Field is Interfaces.STM32.UInt2; subtype CFGR_HPRE_Field is Interfaces.STM32.UInt4; subtype CFGR_PPRE_Field is Interfaces.STM32.UInt3; subtype CFGR_ADCPRE_Field is Interfaces.STM32.Bit; subtype CFGR_PLLSRC_Field is Interfaces.STM32.UInt2; subtype CFGR_PLLXTPRE_Field is Interfaces.STM32.Bit; subtype CFGR_PLLMUL_Field is Interfaces.STM32.UInt4; subtype CFGR_MCO_Field is Interfaces.STM32.UInt3; subtype CFGR_MCOPRE_Field is Interfaces.STM32.UInt3; subtype CFGR_PLLNODIV_Field is Interfaces.STM32.Bit; -- Clock configuration register (RCC_CFGR) type CFGR_Register is record -- System clock Switch SW : CFGR_SW_Field := 16#0#; -- Read-only. System Clock Switch Status SWS : CFGR_SWS_Field := 16#0#; -- AHB prescaler HPRE : CFGR_HPRE_Field := 16#0#; -- APB Low speed prescaler (APB1) PPRE : CFGR_PPRE_Field := 16#0#; -- unspecified Reserved_11_13 : Interfaces.STM32.UInt3 := 16#0#; -- ADC prescaler ADCPRE : CFGR_ADCPRE_Field := 16#0#; -- PLL input clock source PLLSRC : CFGR_PLLSRC_Field := 16#0#; -- HSE divider for PLL entry PLLXTPRE : CFGR_PLLXTPRE_Field := 16#0#; -- PLL Multiplication Factor PLLMUL : CFGR_PLLMUL_Field := 16#0#; -- unspecified Reserved_22_23 : Interfaces.STM32.UInt2 := 16#0#; -- Microcontroller clock output MCO : CFGR_MCO_Field := 16#0#; -- unspecified Reserved_27_27 : Interfaces.STM32.Bit := 16#0#; -- Microcontroller Clock Output Prescaler MCOPRE : CFGR_MCOPRE_Field := 16#0#; -- PLL clock not divided for MCO PLLNODIV : CFGR_PLLNODIV_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CFGR_Register use record SW at 0 range 0 .. 1; SWS at 0 range 2 .. 3; HPRE at 0 range 4 .. 7; PPRE at 0 range 8 .. 10; Reserved_11_13 at 0 range 11 .. 13; ADCPRE at 0 range 14 .. 14; PLLSRC at 0 range 15 .. 16; PLLXTPRE at 0 range 17 .. 17; PLLMUL at 0 range 18 .. 21; Reserved_22_23 at 0 range 22 .. 23; MCO at 0 range 24 .. 26; Reserved_27_27 at 0 range 27 .. 27; MCOPRE at 0 range 28 .. 30; PLLNODIV at 0 range 31 .. 31; end record; subtype CIR_LSIRDYF_Field is Interfaces.STM32.Bit; subtype CIR_LSERDYF_Field is Interfaces.STM32.Bit; subtype CIR_HSIRDYF_Field is Interfaces.STM32.Bit; subtype CIR_HSERDYF_Field is Interfaces.STM32.Bit; subtype CIR_PLLRDYF_Field is Interfaces.STM32.Bit; subtype CIR_HSI14RDYF_Field is Interfaces.STM32.Bit; subtype CIR_HSI48RDYF_Field is Interfaces.STM32.Bit; subtype CIR_CSSF_Field is Interfaces.STM32.Bit; subtype CIR_LSIRDYIE_Field is Interfaces.STM32.Bit; subtype CIR_LSERDYIE_Field is Interfaces.STM32.Bit; subtype CIR_HSIRDYIE_Field is Interfaces.STM32.Bit; subtype CIR_HSERDYIE_Field is Interfaces.STM32.Bit; subtype CIR_PLLRDYIE_Field is Interfaces.STM32.Bit; subtype CIR_HSI14RDYE_Field is Interfaces.STM32.Bit; subtype CIR_HSI48RDYIE_Field is Interfaces.STM32.Bit; subtype CIR_LSIRDYC_Field is Interfaces.STM32.Bit; subtype CIR_LSERDYC_Field is Interfaces.STM32.Bit; subtype CIR_HSIRDYC_Field is Interfaces.STM32.Bit; subtype CIR_HSERDYC_Field is Interfaces.STM32.Bit; subtype CIR_PLLRDYC_Field is Interfaces.STM32.Bit; subtype CIR_HSI14RDYC_Field is Interfaces.STM32.Bit; subtype CIR_HSI48RDYC_Field is Interfaces.STM32.Bit; subtype CIR_CSSC_Field is Interfaces.STM32.Bit; -- Clock interrupt register (RCC_CIR) type CIR_Register is record -- Read-only. LSI Ready Interrupt flag LSIRDYF : CIR_LSIRDYF_Field := 16#0#; -- Read-only. LSE Ready Interrupt flag LSERDYF : CIR_LSERDYF_Field := 16#0#; -- Read-only. HSI Ready Interrupt flag HSIRDYF : CIR_HSIRDYF_Field := 16#0#; -- Read-only. HSE Ready Interrupt flag HSERDYF : CIR_HSERDYF_Field := 16#0#; -- Read-only. PLL Ready Interrupt flag PLLRDYF : CIR_PLLRDYF_Field := 16#0#; -- Read-only. HSI14 ready interrupt flag HSI14RDYF : CIR_HSI14RDYF_Field := 16#0#; -- Read-only. HSI48 ready interrupt flag HSI48RDYF : CIR_HSI48RDYF_Field := 16#0#; -- Read-only. Clock Security System Interrupt flag CSSF : CIR_CSSF_Field := 16#0#; -- LSI Ready Interrupt Enable LSIRDYIE : CIR_LSIRDYIE_Field := 16#0#; -- LSE Ready Interrupt Enable LSERDYIE : CIR_LSERDYIE_Field := 16#0#; -- HSI Ready Interrupt Enable HSIRDYIE : CIR_HSIRDYIE_Field := 16#0#; -- HSE Ready Interrupt Enable HSERDYIE : CIR_HSERDYIE_Field := 16#0#; -- PLL Ready Interrupt Enable PLLRDYIE : CIR_PLLRDYIE_Field := 16#0#; -- HSI14 ready interrupt enable HSI14RDYE : CIR_HSI14RDYE_Field := 16#0#; -- HSI48 ready interrupt enable HSI48RDYIE : CIR_HSI48RDYIE_Field := 16#0#; -- unspecified Reserved_15_15 : Interfaces.STM32.Bit := 16#0#; -- Write-only. LSI Ready Interrupt Clear LSIRDYC : CIR_LSIRDYC_Field := 16#0#; -- Write-only. LSE Ready Interrupt Clear LSERDYC : CIR_LSERDYC_Field := 16#0#; -- Write-only. HSI Ready Interrupt Clear HSIRDYC : CIR_HSIRDYC_Field := 16#0#; -- Write-only. HSE Ready Interrupt Clear HSERDYC : CIR_HSERDYC_Field := 16#0#; -- Write-only. PLL Ready Interrupt Clear PLLRDYC : CIR_PLLRDYC_Field := 16#0#; -- Write-only. HSI 14 MHz Ready Interrupt Clear HSI14RDYC : CIR_HSI14RDYC_Field := 16#0#; -- Write-only. HSI48 Ready Interrupt Clear HSI48RDYC : CIR_HSI48RDYC_Field := 16#0#; -- Write-only. Clock security system interrupt clear CSSC : CIR_CSSC_Field := 16#0#; -- unspecified Reserved_24_31 : Interfaces.STM32.Byte := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CIR_Register use record LSIRDYF at 0 range 0 .. 0; LSERDYF at 0 range 1 .. 1; HSIRDYF at 0 range 2 .. 2; HSERDYF at 0 range 3 .. 3; PLLRDYF at 0 range 4 .. 4; HSI14RDYF at 0 range 5 .. 5; HSI48RDYF at 0 range 6 .. 6; CSSF at 0 range 7 .. 7; LSIRDYIE at 0 range 8 .. 8; LSERDYIE at 0 range 9 .. 9; HSIRDYIE at 0 range 10 .. 10; HSERDYIE at 0 range 11 .. 11; PLLRDYIE at 0 range 12 .. 12; HSI14RDYE at 0 range 13 .. 13; HSI48RDYIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; LSIRDYC at 0 range 16 .. 16; LSERDYC at 0 range 17 .. 17; HSIRDYC at 0 range 18 .. 18; HSERDYC at 0 range 19 .. 19; PLLRDYC at 0 range 20 .. 20; HSI14RDYC at 0 range 21 .. 21; HSI48RDYC at 0 range 22 .. 22; CSSC at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype APB2RSTR_SYSCFGRST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_ADCRST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_TIM1RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_SPI1RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_USART1RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_TIM15RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_TIM16RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_TIM17RST_Field is Interfaces.STM32.Bit; subtype APB2RSTR_DBGMCURST_Field is Interfaces.STM32.Bit; -- APB2 peripheral reset register (RCC_APB2RSTR) type APB2RSTR_Register is record -- SYSCFG and COMP reset SYSCFGRST : APB2RSTR_SYSCFGRST_Field := 16#0#; -- unspecified Reserved_1_8 : Interfaces.STM32.Byte := 16#0#; -- ADC interface reset ADCRST : APB2RSTR_ADCRST_Field := 16#0#; -- unspecified Reserved_10_10 : Interfaces.STM32.Bit := 16#0#; -- TIM1 timer reset TIM1RST : APB2RSTR_TIM1RST_Field := 16#0#; -- SPI 1 reset SPI1RST : APB2RSTR_SPI1RST_Field := 16#0#; -- unspecified Reserved_13_13 : Interfaces.STM32.Bit := 16#0#; -- USART1 reset USART1RST : APB2RSTR_USART1RST_Field := 16#0#; -- unspecified Reserved_15_15 : Interfaces.STM32.Bit := 16#0#; -- TIM15 timer reset TIM15RST : APB2RSTR_TIM15RST_Field := 16#0#; -- TIM16 timer reset TIM16RST : APB2RSTR_TIM16RST_Field := 16#0#; -- TIM17 timer reset TIM17RST : APB2RSTR_TIM17RST_Field := 16#0#; -- unspecified Reserved_19_21 : Interfaces.STM32.UInt3 := 16#0#; -- Debug MCU reset DBGMCURST : APB2RSTR_DBGMCURST_Field := 16#0#; -- unspecified Reserved_23_31 : Interfaces.STM32.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for APB2RSTR_Register use record SYSCFGRST at 0 range 0 .. 0; Reserved_1_8 at 0 range 1 .. 8; ADCRST at 0 range 9 .. 9; Reserved_10_10 at 0 range 10 .. 10; TIM1RST at 0 range 11 .. 11; SPI1RST at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; USART1RST at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; TIM15RST at 0 range 16 .. 16; TIM16RST at 0 range 17 .. 17; TIM17RST at 0 range 18 .. 18; Reserved_19_21 at 0 range 19 .. 21; DBGMCURST at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype APB1RSTR_TIM2RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_TIM3RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_TIM6RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_TIM7RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_TIM14RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_WWDGRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_SPI2RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_USART2RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_USART3RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_USART4RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_USART5RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_I2C1RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_I2C2RST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_USBRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_CANRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_CRSRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_PWRRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_DACRST_Field is Interfaces.STM32.Bit; subtype APB1RSTR_CECRST_Field is Interfaces.STM32.Bit; -- APB1 peripheral reset register (RCC_APB1RSTR) type APB1RSTR_Register is record -- Timer 2 reset TIM2RST : APB1RSTR_TIM2RST_Field := 16#0#; -- Timer 3 reset TIM3RST : APB1RSTR_TIM3RST_Field := 16#0#; -- unspecified Reserved_2_3 : Interfaces.STM32.UInt2 := 16#0#; -- Timer 6 reset TIM6RST : APB1RSTR_TIM6RST_Field := 16#0#; -- TIM7 timer reset TIM7RST : APB1RSTR_TIM7RST_Field := 16#0#; -- unspecified Reserved_6_7 : Interfaces.STM32.UInt2 := 16#0#; -- Timer 14 reset TIM14RST : APB1RSTR_TIM14RST_Field := 16#0#; -- unspecified Reserved_9_10 : Interfaces.STM32.UInt2 := 16#0#; -- Window watchdog reset WWDGRST : APB1RSTR_WWDGRST_Field := 16#0#; -- unspecified Reserved_12_13 : Interfaces.STM32.UInt2 := 16#0#; -- SPI2 reset SPI2RST : APB1RSTR_SPI2RST_Field := 16#0#; -- unspecified Reserved_15_16 : Interfaces.STM32.UInt2 := 16#0#; -- USART 2 reset USART2RST : APB1RSTR_USART2RST_Field := 16#0#; -- USART3 reset USART3RST : APB1RSTR_USART3RST_Field := 16#0#; -- USART4 reset USART4RST : APB1RSTR_USART4RST_Field := 16#0#; -- USART5 reset USART5RST : APB1RSTR_USART5RST_Field := 16#0#; -- I2C1 reset I2C1RST : APB1RSTR_I2C1RST_Field := 16#0#; -- I2C2 reset I2C2RST : APB1RSTR_I2C2RST_Field := 16#0#; -- USB interface reset USBRST : APB1RSTR_USBRST_Field := 16#0#; -- unspecified Reserved_24_24 : Interfaces.STM32.Bit := 16#0#; -- CAN interface reset CANRST : APB1RSTR_CANRST_Field := 16#0#; -- unspecified Reserved_26_26 : Interfaces.STM32.Bit := 16#0#; -- Clock Recovery System interface reset CRSRST : APB1RSTR_CRSRST_Field := 16#0#; -- Power interface reset PWRRST : APB1RSTR_PWRRST_Field := 16#0#; -- DAC interface reset DACRST : APB1RSTR_DACRST_Field := 16#0#; -- HDMI CEC reset CECRST : APB1RSTR_CECRST_Field := 16#0#; -- unspecified Reserved_31_31 : Interfaces.STM32.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for APB1RSTR_Register use record TIM2RST at 0 range 0 .. 0; TIM3RST at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; TIM6RST at 0 range 4 .. 4; TIM7RST at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; TIM14RST at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; WWDGRST at 0 range 11 .. 11; Reserved_12_13 at 0 range 12 .. 13; SPI2RST at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; USART2RST at 0 range 17 .. 17; USART3RST at 0 range 18 .. 18; USART4RST at 0 range 19 .. 19; USART5RST at 0 range 20 .. 20; I2C1RST at 0 range 21 .. 21; I2C2RST at 0 range 22 .. 22; USBRST at 0 range 23 .. 23; Reserved_24_24 at 0 range 24 .. 24; CANRST at 0 range 25 .. 25; Reserved_26_26 at 0 range 26 .. 26; CRSRST at 0 range 27 .. 27; PWRRST at 0 range 28 .. 28; DACRST at 0 range 29 .. 29; CECRST at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype AHBENR_DMA1EN_Field is Interfaces.STM32.Bit; subtype AHBENR_DMA2EN_Field is Interfaces.STM32.Bit; subtype AHBENR_SRAMEN_Field is Interfaces.STM32.Bit; subtype AHBENR_FLITFEN_Field is Interfaces.STM32.Bit; subtype AHBENR_CRCEN_Field is Interfaces.STM32.Bit; subtype AHBENR_IOPAEN_Field is Interfaces.STM32.Bit; subtype AHBENR_IOPBEN_Field is Interfaces.STM32.Bit; subtype AHBENR_IOPCEN_Field is Interfaces.STM32.Bit; subtype AHBENR_IOPDEN_Field is Interfaces.STM32.Bit; subtype AHBENR_IOPFEN_Field is Interfaces.STM32.Bit; subtype AHBENR_TSCEN_Field is Interfaces.STM32.Bit; -- AHB Peripheral Clock enable register (RCC_AHBENR) type AHBENR_Register is record -- DMA1 clock enable DMA1EN : AHBENR_DMA1EN_Field := 16#0#; -- DMA2 clock enable DMA2EN : AHBENR_DMA2EN_Field := 16#0#; -- SRAM interface clock enable SRAMEN : AHBENR_SRAMEN_Field := 16#1#; -- unspecified Reserved_3_3 : Interfaces.STM32.Bit := 16#0#; -- FLITF clock enable FLITFEN : AHBENR_FLITFEN_Field := 16#1#; -- unspecified Reserved_5_5 : Interfaces.STM32.Bit := 16#0#; -- CRC clock enable CRCEN : AHBENR_CRCEN_Field := 16#0#; -- unspecified Reserved_7_16 : Interfaces.STM32.UInt10 := 16#0#; -- I/O port A clock enable IOPAEN : AHBENR_IOPAEN_Field := 16#0#; -- I/O port B clock enable IOPBEN : AHBENR_IOPBEN_Field := 16#0#; -- I/O port C clock enable IOPCEN : AHBENR_IOPCEN_Field := 16#0#; -- I/O port D clock enable IOPDEN : AHBENR_IOPDEN_Field := 16#0#; -- unspecified Reserved_21_21 : Interfaces.STM32.Bit := 16#0#; -- I/O port F clock enable IOPFEN : AHBENR_IOPFEN_Field := 16#0#; -- unspecified Reserved_23_23 : Interfaces.STM32.Bit := 16#0#; -- Touch sensing controller clock enable TSCEN : AHBENR_TSCEN_Field := 16#0#; -- unspecified Reserved_25_31 : Interfaces.STM32.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for AHBENR_Register use record DMA1EN at 0 range 0 .. 0; DMA2EN at 0 range 1 .. 1; SRAMEN at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; FLITFEN at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; CRCEN at 0 range 6 .. 6; Reserved_7_16 at 0 range 7 .. 16; IOPAEN at 0 range 17 .. 17; IOPBEN at 0 range 18 .. 18; IOPCEN at 0 range 19 .. 19; IOPDEN at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; IOPFEN at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; TSCEN at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; subtype APB2ENR_SYSCFGEN_Field is Interfaces.STM32.Bit; subtype APB2ENR_ADCEN_Field is Interfaces.STM32.Bit; subtype APB2ENR_TIM1EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_SPI1EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_USART1EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_TIM15EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_TIM16EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_TIM17EN_Field is Interfaces.STM32.Bit; subtype APB2ENR_DBGMCUEN_Field is Interfaces.STM32.Bit; -- APB2 peripheral clock enable register (RCC_APB2ENR) type APB2ENR_Register is record -- SYSCFG clock enable SYSCFGEN : APB2ENR_SYSCFGEN_Field := 16#0#; -- unspecified Reserved_1_8 : Interfaces.STM32.Byte := 16#0#; -- ADC 1 interface clock enable ADCEN : APB2ENR_ADCEN_Field := 16#0#; -- unspecified Reserved_10_10 : Interfaces.STM32.Bit := 16#0#; -- TIM1 Timer clock enable TIM1EN : APB2ENR_TIM1EN_Field := 16#0#; -- SPI 1 clock enable SPI1EN : APB2ENR_SPI1EN_Field := 16#0#; -- unspecified Reserved_13_13 : Interfaces.STM32.Bit := 16#0#; -- USART1 clock enable USART1EN : APB2ENR_USART1EN_Field := 16#0#; -- unspecified Reserved_15_15 : Interfaces.STM32.Bit := 16#0#; -- TIM15 timer clock enable TIM15EN : APB2ENR_TIM15EN_Field := 16#0#; -- TIM16 timer clock enable TIM16EN : APB2ENR_TIM16EN_Field := 16#0#; -- TIM17 timer clock enable TIM17EN : APB2ENR_TIM17EN_Field := 16#0#; -- unspecified Reserved_19_21 : Interfaces.STM32.UInt3 := 16#0#; -- MCU debug module clock enable DBGMCUEN : APB2ENR_DBGMCUEN_Field := 16#0#; -- unspecified Reserved_23_31 : Interfaces.STM32.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for APB2ENR_Register use record SYSCFGEN at 0 range 0 .. 0; Reserved_1_8 at 0 range 1 .. 8; ADCEN at 0 range 9 .. 9; Reserved_10_10 at 0 range 10 .. 10; TIM1EN at 0 range 11 .. 11; SPI1EN at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; USART1EN at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; TIM15EN at 0 range 16 .. 16; TIM16EN at 0 range 17 .. 17; TIM17EN at 0 range 18 .. 18; Reserved_19_21 at 0 range 19 .. 21; DBGMCUEN at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype APB1ENR_TIM2EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_TIM3EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_TIM6EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_TIM7EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_TIM14EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_WWDGEN_Field is Interfaces.STM32.Bit; subtype APB1ENR_SPI2EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_USART2EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_USART3EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_USART4EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_USART5EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_I2C1EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_I2C2EN_Field is Interfaces.STM32.Bit; subtype APB1ENR_USBRST_Field is Interfaces.STM32.Bit; subtype APB1ENR_CANEN_Field is Interfaces.STM32.Bit; subtype APB1ENR_CRSEN_Field is Interfaces.STM32.Bit; subtype APB1ENR_PWREN_Field is Interfaces.STM32.Bit; subtype APB1ENR_DACEN_Field is Interfaces.STM32.Bit; subtype APB1ENR_CECEN_Field is Interfaces.STM32.Bit; -- APB1 peripheral clock enable register (RCC_APB1ENR) type APB1ENR_Register is record -- Timer 2 clock enable TIM2EN : APB1ENR_TIM2EN_Field := 16#0#; -- Timer 3 clock enable TIM3EN : APB1ENR_TIM3EN_Field := 16#0#; -- unspecified Reserved_2_3 : Interfaces.STM32.UInt2 := 16#0#; -- Timer 6 clock enable TIM6EN : APB1ENR_TIM6EN_Field := 16#0#; -- TIM7 timer clock enable TIM7EN : APB1ENR_TIM7EN_Field := 16#0#; -- unspecified Reserved_6_7 : Interfaces.STM32.UInt2 := 16#0#; -- Timer 14 clock enable TIM14EN : APB1ENR_TIM14EN_Field := 16#0#; -- unspecified Reserved_9_10 : Interfaces.STM32.UInt2 := 16#0#; -- Window watchdog clock enable WWDGEN : APB1ENR_WWDGEN_Field := 16#0#; -- unspecified Reserved_12_13 : Interfaces.STM32.UInt2 := 16#0#; -- SPI 2 clock enable SPI2EN : APB1ENR_SPI2EN_Field := 16#0#; -- unspecified Reserved_15_16 : Interfaces.STM32.UInt2 := 16#0#; -- USART 2 clock enable USART2EN : APB1ENR_USART2EN_Field := 16#0#; -- USART3 clock enable USART3EN : APB1ENR_USART3EN_Field := 16#0#; -- USART4 clock enable USART4EN : APB1ENR_USART4EN_Field := 16#0#; -- USART5 clock enable USART5EN : APB1ENR_USART5EN_Field := 16#0#; -- I2C 1 clock enable I2C1EN : APB1ENR_I2C1EN_Field := 16#0#; -- I2C 2 clock enable I2C2EN : APB1ENR_I2C2EN_Field := 16#0#; -- USB interface clock enable USBRST : APB1ENR_USBRST_Field := 16#0#; -- unspecified Reserved_24_24 : Interfaces.STM32.Bit := 16#0#; -- CAN interface clock enable CANEN : APB1ENR_CANEN_Field := 16#0#; -- unspecified Reserved_26_26 : Interfaces.STM32.Bit := 16#0#; -- Clock Recovery System interface clock enable CRSEN : APB1ENR_CRSEN_Field := 16#0#; -- Power interface clock enable PWREN : APB1ENR_PWREN_Field := 16#0#; -- DAC interface clock enable DACEN : APB1ENR_DACEN_Field := 16#0#; -- HDMI CEC interface clock enable CECEN : APB1ENR_CECEN_Field := 16#0#; -- unspecified Reserved_31_31 : Interfaces.STM32.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for APB1ENR_Register use record TIM2EN at 0 range 0 .. 0; TIM3EN at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; TIM6EN at 0 range 4 .. 4; TIM7EN at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; TIM14EN at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; WWDGEN at 0 range 11 .. 11; Reserved_12_13 at 0 range 12 .. 13; SPI2EN at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; USART2EN at 0 range 17 .. 17; USART3EN at 0 range 18 .. 18; USART4EN at 0 range 19 .. 19; USART5EN at 0 range 20 .. 20; I2C1EN at 0 range 21 .. 21; I2C2EN at 0 range 22 .. 22; USBRST at 0 range 23 .. 23; Reserved_24_24 at 0 range 24 .. 24; CANEN at 0 range 25 .. 25; Reserved_26_26 at 0 range 26 .. 26; CRSEN at 0 range 27 .. 27; PWREN at 0 range 28 .. 28; DACEN at 0 range 29 .. 29; CECEN at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype BDCR_LSEON_Field is Interfaces.STM32.Bit; subtype BDCR_LSERDY_Field is Interfaces.STM32.Bit; subtype BDCR_LSEBYP_Field is Interfaces.STM32.Bit; subtype BDCR_LSEDRV_Field is Interfaces.STM32.UInt2; subtype BDCR_RTCSEL_Field is Interfaces.STM32.UInt2; subtype BDCR_RTCEN_Field is Interfaces.STM32.Bit; subtype BDCR_BDRST_Field is Interfaces.STM32.Bit; -- Backup domain control register (RCC_BDCR) type BDCR_Register is record -- External Low Speed oscillator enable LSEON : BDCR_LSEON_Field := 16#0#; -- Read-only. External Low Speed oscillator ready LSERDY : BDCR_LSERDY_Field := 16#0#; -- External Low Speed oscillator bypass LSEBYP : BDCR_LSEBYP_Field := 16#0#; -- LSE oscillator drive capability LSEDRV : BDCR_LSEDRV_Field := 16#0#; -- unspecified Reserved_5_7 : Interfaces.STM32.UInt3 := 16#0#; -- RTC clock source selection RTCSEL : BDCR_RTCSEL_Field := 16#0#; -- unspecified Reserved_10_14 : Interfaces.STM32.UInt5 := 16#0#; -- RTC clock enable RTCEN : BDCR_RTCEN_Field := 16#0#; -- Backup domain software reset BDRST : BDCR_BDRST_Field := 16#0#; -- unspecified Reserved_17_31 : Interfaces.STM32.UInt15 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDCR_Register use record LSEON at 0 range 0 .. 0; LSERDY at 0 range 1 .. 1; LSEBYP at 0 range 2 .. 2; LSEDRV at 0 range 3 .. 4; Reserved_5_7 at 0 range 5 .. 7; RTCSEL at 0 range 8 .. 9; Reserved_10_14 at 0 range 10 .. 14; RTCEN at 0 range 15 .. 15; BDRST at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CSR_LSION_Field is Interfaces.STM32.Bit; subtype CSR_LSIRDY_Field is Interfaces.STM32.Bit; subtype CSR_RMVF_Field is Interfaces.STM32.Bit; subtype CSR_OBLRSTF_Field is Interfaces.STM32.Bit; subtype CSR_PINRSTF_Field is Interfaces.STM32.Bit; subtype CSR_PORRSTF_Field is Interfaces.STM32.Bit; subtype CSR_SFTRSTF_Field is Interfaces.STM32.Bit; subtype CSR_IWDGRSTF_Field is Interfaces.STM32.Bit; subtype CSR_WWDGRSTF_Field is Interfaces.STM32.Bit; subtype CSR_LPWRRSTF_Field is Interfaces.STM32.Bit; -- Control/status register (RCC_CSR) type CSR_Register is record -- Internal low speed oscillator enable LSION : CSR_LSION_Field := 16#0#; -- Read-only. Internal low speed oscillator ready LSIRDY : CSR_LSIRDY_Field := 16#0#; -- unspecified Reserved_2_23 : Interfaces.STM32.UInt22 := 16#0#; -- Remove reset flag RMVF : CSR_RMVF_Field := 16#0#; -- Option byte loader reset flag OBLRSTF : CSR_OBLRSTF_Field := 16#0#; -- PIN reset flag PINRSTF : CSR_PINRSTF_Field := 16#1#; -- POR/PDR reset flag PORRSTF : CSR_PORRSTF_Field := 16#1#; -- Software reset flag SFTRSTF : CSR_SFTRSTF_Field := 16#0#; -- Independent watchdog reset flag IWDGRSTF : CSR_IWDGRSTF_Field := 16#0#; -- Window watchdog reset flag WWDGRSTF : CSR_WWDGRSTF_Field := 16#0#; -- Low-power reset flag LPWRRSTF : CSR_LPWRRSTF_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CSR_Register use record LSION at 0 range 0 .. 0; LSIRDY at 0 range 1 .. 1; Reserved_2_23 at 0 range 2 .. 23; RMVF at 0 range 24 .. 24; OBLRSTF at 0 range 25 .. 25; PINRSTF at 0 range 26 .. 26; PORRSTF at 0 range 27 .. 27; SFTRSTF at 0 range 28 .. 28; IWDGRSTF at 0 range 29 .. 29; WWDGRSTF at 0 range 30 .. 30; LPWRRSTF at 0 range 31 .. 31; end record; subtype AHBRSTR_IOPARST_Field is Interfaces.STM32.Bit; subtype AHBRSTR_IOPBRST_Field is Interfaces.STM32.Bit; subtype AHBRSTR_IOPCRST_Field is Interfaces.STM32.Bit; subtype AHBRSTR_IOPDRST_Field is Interfaces.STM32.Bit; subtype AHBRSTR_IOPFRST_Field is Interfaces.STM32.Bit; subtype AHBRSTR_TSCRST_Field is Interfaces.STM32.Bit; -- AHB peripheral reset register type AHBRSTR_Register is record -- unspecified Reserved_0_16 : Interfaces.STM32.UInt17 := 16#0#; -- I/O port A reset IOPARST : AHBRSTR_IOPARST_Field := 16#0#; -- I/O port B reset IOPBRST : AHBRSTR_IOPBRST_Field := 16#0#; -- I/O port C reset IOPCRST : AHBRSTR_IOPCRST_Field := 16#0#; -- I/O port D reset IOPDRST : AHBRSTR_IOPDRST_Field := 16#0#; -- unspecified Reserved_21_21 : Interfaces.STM32.Bit := 16#0#; -- I/O port F reset IOPFRST : AHBRSTR_IOPFRST_Field := 16#0#; -- unspecified Reserved_23_23 : Interfaces.STM32.Bit := 16#0#; -- Touch sensing controller reset TSCRST : AHBRSTR_TSCRST_Field := 16#0#; -- unspecified Reserved_25_31 : Interfaces.STM32.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for AHBRSTR_Register use record Reserved_0_16 at 0 range 0 .. 16; IOPARST at 0 range 17 .. 17; IOPBRST at 0 range 18 .. 18; IOPCRST at 0 range 19 .. 19; IOPDRST at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; IOPFRST at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; TSCRST at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; subtype CFGR2_PREDIV_Field is Interfaces.STM32.UInt4; -- Clock configuration register 2 type CFGR2_Register is record -- PREDIV division factor PREDIV : CFGR2_PREDIV_Field := 16#0#; -- unspecified Reserved_4_31 : Interfaces.STM32.UInt28 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CFGR2_Register use record PREDIV at 0 range 0 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; subtype CFGR3_USART1SW_Field is Interfaces.STM32.UInt2; subtype CFGR3_I2C1SW_Field is Interfaces.STM32.Bit; subtype CFGR3_CECSW_Field is Interfaces.STM32.Bit; subtype CFGR3_USBSW_Field is Interfaces.STM32.Bit; subtype CFGR3_ADCSW_Field is Interfaces.STM32.Bit; subtype CFGR3_USART2SW_Field is Interfaces.STM32.UInt2; -- Clock configuration register 3 type CFGR3_Register is record -- USART1 clock source selection USART1SW : CFGR3_USART1SW_Field := 16#0#; -- unspecified Reserved_2_3 : Interfaces.STM32.UInt2 := 16#0#; -- I2C1 clock source selection I2C1SW : CFGR3_I2C1SW_Field := 16#0#; -- unspecified Reserved_5_5 : Interfaces.STM32.Bit := 16#0#; -- HDMI CEC clock source selection CECSW : CFGR3_CECSW_Field := 16#0#; -- USB clock source selection USBSW : CFGR3_USBSW_Field := 16#0#; -- ADC clock source selection ADCSW : CFGR3_ADCSW_Field := 16#0#; -- unspecified Reserved_9_15 : Interfaces.STM32.UInt7 := 16#0#; -- USART2 clock source selection USART2SW : CFGR3_USART2SW_Field := 16#0#; -- unspecified Reserved_18_31 : Interfaces.STM32.UInt14 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CFGR3_Register use record USART1SW at 0 range 0 .. 1; Reserved_2_3 at 0 range 2 .. 3; I2C1SW at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; CECSW at 0 range 6 .. 6; USBSW at 0 range 7 .. 7; ADCSW at 0 range 8 .. 8; Reserved_9_15 at 0 range 9 .. 15; USART2SW at 0 range 16 .. 17; Reserved_18_31 at 0 range 18 .. 31; end record; subtype CR2_HSI14ON_Field is Interfaces.STM32.Bit; subtype CR2_HSI14RDY_Field is Interfaces.STM32.Bit; subtype CR2_HSI14DIS_Field is Interfaces.STM32.Bit; subtype CR2_HSI14TRIM_Field is Interfaces.STM32.UInt5; subtype CR2_HSI14CAL_Field is Interfaces.STM32.Byte; subtype CR2_HSI48ON_Field is Interfaces.STM32.Bit; subtype CR2_HSI48RDY_Field is Interfaces.STM32.Bit; subtype CR2_HSI48CAL_Field is Interfaces.STM32.Bit; -- Clock control register 2 type CR2_Register is record -- HSI14 clock enable HSI14ON : CR2_HSI14ON_Field := 16#0#; -- Read-only. HR14 clock ready flag HSI14RDY : CR2_HSI14RDY_Field := 16#0#; -- HSI14 clock request from ADC disable HSI14DIS : CR2_HSI14DIS_Field := 16#0#; -- HSI14 clock trimming HSI14TRIM : CR2_HSI14TRIM_Field := 16#10#; -- Read-only. HSI14 clock calibration HSI14CAL : CR2_HSI14CAL_Field := 16#0#; -- HSI48 clock enable HSI48ON : CR2_HSI48ON_Field := 16#0#; -- Read-only. HSI48 clock ready flag HSI48RDY : CR2_HSI48RDY_Field := 16#0#; -- unspecified Reserved_18_23 : Interfaces.STM32.UInt6 := 16#0#; -- Read-only. HSI48 factory clock calibration HSI48CAL : CR2_HSI48CAL_Field := 16#0#; -- unspecified Reserved_25_31 : Interfaces.STM32.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record HSI14ON at 0 range 0 .. 0; HSI14RDY at 0 range 1 .. 1; HSI14DIS at 0 range 2 .. 2; HSI14TRIM at 0 range 3 .. 7; HSI14CAL at 0 range 8 .. 15; HSI48ON at 0 range 16 .. 16; HSI48RDY at 0 range 17 .. 17; Reserved_18_23 at 0 range 18 .. 23; HSI48CAL at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Reset and clock control type RCC_Peripheral is record -- Clock control register CR : aliased CR_Register; -- Clock configuration register (RCC_CFGR) CFGR : aliased CFGR_Register; -- Clock interrupt register (RCC_CIR) CIR : aliased CIR_Register; -- APB2 peripheral reset register (RCC_APB2RSTR) APB2RSTR : aliased APB2RSTR_Register; -- APB1 peripheral reset register (RCC_APB1RSTR) APB1RSTR : aliased APB1RSTR_Register; -- AHB Peripheral Clock enable register (RCC_AHBENR) AHBENR : aliased AHBENR_Register; -- APB2 peripheral clock enable register (RCC_APB2ENR) APB2ENR : aliased APB2ENR_Register; -- APB1 peripheral clock enable register (RCC_APB1ENR) APB1ENR : aliased APB1ENR_Register; -- Backup domain control register (RCC_BDCR) BDCR : aliased BDCR_Register; -- Control/status register (RCC_CSR) CSR : aliased CSR_Register; -- AHB peripheral reset register AHBRSTR : aliased AHBRSTR_Register; -- Clock configuration register 2 CFGR2 : aliased CFGR2_Register; -- Clock configuration register 3 CFGR3 : aliased CFGR3_Register; -- Clock control register 2 CR2 : aliased CR2_Register; end record with Volatile; for RCC_Peripheral use record CR at 16#0# range 0 .. 31; CFGR at 16#4# range 0 .. 31; CIR at 16#8# range 0 .. 31; APB2RSTR at 16#C# range 0 .. 31; APB1RSTR at 16#10# range 0 .. 31; AHBENR at 16#14# range 0 .. 31; APB2ENR at 16#18# range 0 .. 31; APB1ENR at 16#1C# range 0 .. 31; BDCR at 16#20# range 0 .. 31; CSR at 16#24# range 0 .. 31; AHBRSTR at 16#28# range 0 .. 31; CFGR2 at 16#2C# range 0 .. 31; CFGR3 at 16#30# range 0 .. 31; CR2 at 16#34# range 0 .. 31; end record; -- Reset and clock control RCC_Periph : aliased RCC_Peripheral with Import, Address => RCC_Base; end Interfaces.STM32.RCC;
40.966531
65
0.618969
588715f40c8b3de8589f2db60c382d1c724d2774
2,956
ads
Ada
src/util/spat-spark_files.ads
HeisenbugLtd/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
20
2020-05-17T18:55:16.000Z
2021-05-26T14:53:53.000Z
src/util/spat-spark_files.ads
selroc/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
33
2020-04-03T13:08:50.000Z
2020-10-17T04:26:34.000Z
src/util/spat-spark_files.ads
selroc/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
4
2020-06-12T12:17:27.000Z
2021-09-09T14:19:31.000Z
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. ([email protected]) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. ------------------------------------------------------------------------------ pragma License (Unrestricted); ------------------------------------------------------------------------------ -- -- SPARK Proof Analysis Tool -- -- S.P.A.T. - Read .spark files -- -- Collect file contents. -- -- Please note that Read is parallelized and uses background threads, hence -- you need to call Shutdown once you're done, otherwise the application will -- hang. -- ------------------------------------------------------------------------------ limited with Ada.Containers.Hashed_Maps; limited with SPAT.Strings; package SPAT.Spark_Files is -- .spark files are stored in a Hash map with the file name as key and the -- JSON reading result as value. package File_Maps is new Ada.Containers.Hashed_Maps (Key_Type => SPARK_File_Name, Element_Type => GNATCOLL.JSON.Read_Result, Hash => Hash, Equivalent_Keys => "=", "=" => GNATCOLL.JSON."="); -- -- Some renames for commonly used File_Maps.Cursor operations. -- No_Element : File_Maps.Cursor renames File_Maps.No_Element; subtype Cursor is File_Maps.Cursor; --------------------------------------------------------------------------- -- Key --------------------------------------------------------------------------- function Key (C : in Cursor) return SPARK_File_Name renames File_Maps.Key; -- -- Data collection and operations defined on it. -- type T is new File_Maps.Map with private; -- Stores all data collected from SPARK files for analysis. --------------------------------------------------------------------------- -- Read --------------------------------------------------------------------------- not overriding procedure Read (This : in out T; Names : in Strings.SPARK_File_Names); -- Reads the list of files, and parses and stores their content in This. --------------------------------------------------------------------------- -- Num_Workers -- -- Report the number of tasks used for parallel file reads. --------------------------------------------------------------------------- function Num_Workers return Positive; --------------------------------------------------------------------------- -- Shutdown -- -- Terminates all worker tasks. --------------------------------------------------------------------------- procedure Shutdown; private type T is new File_Maps.Map with null record; end SPAT.Spark_Files;
35.614458
78
0.457713
ad38d31b20ac0f619b141a180178888478cf23de
8,715
ads
Ada
src/keystore-io-files.ads
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
25
2019-05-07T20:35:50.000Z
2021-11-30T10:35:47.000Z
src/keystore-io-files.ads
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
12
2019-12-16T23:30:00.000Z
2021-09-26T18:52:41.000Z
src/keystore-io-files.ads
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
3
2019-12-18T21:30:04.000Z
2021-01-06T08:30:36.000Z
----------------------------------------------------------------------- -- keystore-io-files -- Ada keystore IO for files -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- 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.Containers.Ordered_Sets; with Ada.Containers.Hashed_Maps; with Ada.Strings.Unbounded; with Util.Streams.Raw; private with Keystore.IO.Headers; private with Util.Systems.Types; private with Ada.Finalization; private with Keystore.Random; package Keystore.IO.Files is type Wallet_Stream is limited new Keystore.IO.Wallet_Stream with private; type Wallet_Stream_Access is access all Wallet_Stream'Class; -- Open the wallet stream. procedure Open (Stream : in out Wallet_Stream; Path : in String; Data_Path : in String); procedure Create (Stream : in out Wallet_Stream; Path : in String; Data_Path : in String; Config : in Wallet_Config); -- Get information about the keystore file. function Get_Info (Stream : in out Wallet_Stream) return Wallet_Info; -- Read from the wallet stream the block identified by the number and -- call the `Process` procedure with the data block content. overriding procedure Read (Stream : in out Wallet_Stream; Block : in Storage_Block; Process : not null access procedure (Data : in IO_Block_Type)); -- Write in the wallet stream the block identified by the block number. overriding procedure Write (Stream : in out Wallet_Stream; Block : in Storage_Block; Process : not null access procedure (Data : out IO_Block_Type)); -- Allocate a new block and return the block number in `Block`. overriding procedure Allocate (Stream : in out Wallet_Stream; Kind : in Block_Kind; Block : out Storage_Block); -- Release the block number. overriding procedure Release (Stream : in out Wallet_Stream; Block : in Storage_Block); overriding function Is_Used (Stream : in out Wallet_Stream; Block : in Storage_Block) return Boolean; overriding procedure Set_Header_Data (Stream : in out Wallet_Stream; Index : in Header_Slot_Index_Type; Kind : in Header_Slot_Type; Data : in Ada.Streams.Stream_Element_Array); overriding procedure Get_Header_Data (Stream : in out Wallet_Stream; Index : in Header_Slot_Index_Type; Kind : out Header_Slot_Type; Data : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset); -- Add up to Count data storage files associated with the wallet. procedure Add_Storage (Stream : in out Wallet_Stream; Count : in Positive); -- Close the wallet stream and release any resource. procedure Close (Stream : in out Wallet_Stream); private use type Block_Number; use type Storage_Identifier; subtype Wallet_Storage is Keystore.IO.Headers.Wallet_Storage; subtype Wallet_Header is Keystore.IO.Headers.Wallet_Header; package Block_Number_Sets is new Ada.Containers.Ordered_Sets (Element_Type => Block_Number, "<" => "<", "=" => "="); protected type File_Stream is procedure Open (File_Descriptor : in Util.Systems.Types.File_Type; Storage : in Storage_Identifier; Sign : in Secret_Key; File_Size : in Block_Count; UUID : out UUID_Type); procedure Create (File_Descriptor : in Util.Systems.Types.File_Type; Storage : in Storage_Identifier; UUID : in UUID_Type; Sign : in Secret_Key); function Get_Info return Wallet_Info; -- Read from the wallet stream the block identified by the number and -- call the `Process` procedure with the data block content. procedure Read (Block : in Block_Number; Process : not null access procedure (Data : in IO_Block_Type)); -- Write in the wallet stream the block identified by the block number. procedure Write (Block : in Block_Number; Process : not null access procedure (Data : out IO_Block_Type)); -- Allocate a new block and return the block number in `Block`. procedure Allocate (Block : out Block_Number); -- Release the block number. procedure Release (Block : in Block_Number); function Is_Used (Block : in Block_Number) return Boolean; procedure Set_Header_Data (Index : in Header_Slot_Index_Type; Kind : in Header_Slot_Type; Data : in Ada.Streams.Stream_Element_Array; Sign : in Secret_Key); procedure Get_Header_Data (Index : in Header_Slot_Index_Type; Kind : out Header_Slot_Type; Data : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset); procedure Add_Storage (Identifier : in Storage_Identifier; Sign : in Secret_Key); procedure Scan_Storage (Process : not null access procedure (Storage : in Wallet_Storage)); procedure Close; private File : Util.Streams.Raw.Raw_Stream; Current_Pos : Util.Systems.Types.off_t; Size : Block_Count; Data : IO_Block_Type; Free_Blocks : Block_Number_Sets.Set; Header : Wallet_Header; end File_Stream; type File_Stream_Access is access all File_Stream; function Hash (Value : Storage_Identifier) return Ada.Containers.Hash_Type; package File_Stream_Maps is new Ada.Containers.Hashed_Maps (Key_Type => Storage_Identifier, Element_Type => File_Stream_Access, Hash => Hash, Equivalent_Keys => "=", "=" => "="); protected type Stream_Descriptor is procedure Open (Path : in String; Data_Path : in String; Sign : in Secret_Key); procedure Create (Path : in String; Data_Path : in String; Config : in Wallet_Config; Sign : in Secret_Key); procedure Add_Storage (Count : in Positive; Sign : in Secret_Key); procedure Get (Storage : in Storage_Identifier; File : out File_Stream_Access); procedure Allocate (Kind : in Block_Kind; Storage : out Storage_Identifier; File : out File_Stream_Access); procedure Close; private Random : Keystore.Random.Generator; Directory : Ada.Strings.Unbounded.Unbounded_String; UUID : UUID_Type; Files : File_Stream_Maps.Map; Alloc_Id : Storage_Identifier := DEFAULT_STORAGE_ID; Last_Id : Storage_Identifier := DEFAULT_STORAGE_ID; end Stream_Descriptor; type Wallet_Stream is limited new Ada.Finalization.Limited_Controlled and Keystore.IO.Wallet_Stream with record Descriptor : Stream_Descriptor; Sign : Secret_Key (Length => 32); end record; end Keystore.IO.Files;
40.16129
97
0.575674
58ba6109123ce74e2afd8a343bc5a89bd25a42a1
15,214
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-ciorse.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-ciorse.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-ciorse.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.CONTAINERS.INDEFINITE_ORDERED_SETS -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2021, 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. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Iterator_Interfaces; with Ada.Containers.Helpers; private with Ada.Containers.Red_Black_Trees; private with Ada.Finalization; private with Ada.Streams; private with Ada.Strings.Text_Buffers; generic type Element_Type (<>) is private; with function "<" (Left, Right : Element_Type) return Boolean is <>; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Indefinite_Ordered_Sets with SPARK_Mode => Off is pragma Annotate (CodePeer, Skip_Analysis); pragma Preelaborate; pragma Remote_Types; function Equivalent_Elements (Left, Right : Element_Type) return Boolean; type Set is tagged private with Constant_Indexing => Constant_Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type, Aggregate => (Empty => Empty, Add_Unnamed => Include); pragma Preelaborable_Initialization (Set); type Cursor is private; pragma Preelaborable_Initialization (Cursor); Empty_Set : constant Set; function Empty return Set; No_Element : constant Cursor; function Has_Element (Position : Cursor) return Boolean; package Set_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); function "=" (Left, Right : Set) return Boolean; function Equivalent_Sets (Left, Right : Set) return Boolean; function To_Set (New_Item : Element_Type) return Set; function Length (Container : Set) return Count_Type; function Is_Empty (Container : Set) return Boolean; procedure Clear (Container : in out Set); function Element (Position : Cursor) return Element_Type; procedure Replace_Element (Container : in out Set; Position : Cursor; New_Item : Element_Type); procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)); type Constant_Reference_Type (Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; function Constant_Reference (Container : aliased Set; Position : Cursor) return Constant_Reference_Type; pragma Inline (Constant_Reference); procedure Assign (Target : in out Set; Source : Set); function Copy (Source : Set) return Set; procedure Move (Target : in out Set; Source : in out Set); procedure Insert (Container : in out Set; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean); procedure Insert (Container : in out Set; New_Item : Element_Type); procedure Include (Container : in out Set; New_Item : Element_Type); procedure Replace (Container : in out Set; New_Item : Element_Type); procedure Exclude (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Position : in out Cursor); procedure Delete_First (Container : in out Set); procedure Delete_Last (Container : in out Set); procedure Union (Target : in out Set; Source : Set); function Union (Left, Right : Set) return Set; function "or" (Left, Right : Set) return Set renames Union; procedure Intersection (Target : in out Set; Source : Set); function Intersection (Left, Right : Set) return Set; function "and" (Left, Right : Set) return Set renames Intersection; procedure Difference (Target : in out Set; Source : Set); function Difference (Left, Right : Set) return Set; function "-" (Left, Right : Set) return Set renames Difference; procedure Symmetric_Difference (Target : in out Set; Source : Set); function Symmetric_Difference (Left, Right : Set) return Set; function "xor" (Left, Right : Set) return Set renames Symmetric_Difference; function Overlap (Left, Right : Set) return Boolean; function Is_Subset (Subset : Set; Of_Set : Set) return Boolean; function First (Container : Set) return Cursor; function First_Element (Container : Set) return Element_Type; function Last (Container : Set) return Cursor; function Last_Element (Container : Set) return Element_Type; function Next (Position : Cursor) return Cursor; procedure Next (Position : in out Cursor); function Previous (Position : Cursor) return Cursor; procedure Previous (Position : in out Cursor); function Find (Container : Set; Item : Element_Type) return Cursor; function Floor (Container : Set; Item : Element_Type) return Cursor; function Ceiling (Container : Set; Item : Element_Type) return Cursor; function Contains (Container : Set; Item : Element_Type) return Boolean; function "<" (Left, Right : Cursor) return Boolean; function ">" (Left, Right : Cursor) return Boolean; function "<" (Left : Cursor; Right : Element_Type) return Boolean; function ">" (Left : Cursor; Right : Element_Type) return Boolean; function "<" (Left : Element_Type; Right : Cursor) return Boolean; function ">" (Left : Element_Type; Right : Cursor) return Boolean; procedure Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); procedure Reverse_Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); function Iterate (Container : Set) return Set_Iterator_Interfaces.Reversible_Iterator'class; function Iterate (Container : Set; Start : Cursor) return Set_Iterator_Interfaces.Reversible_Iterator'class; generic type Key_Type (<>) is private; with function Key (Element : Element_Type) return Key_Type; with function "<" (Left, Right : Key_Type) return Boolean is <>; package Generic_Keys is function Equivalent_Keys (Left, Right : Key_Type) return Boolean; function Key (Position : Cursor) return Key_Type; function Element (Container : Set; Key : Key_Type) return Element_Type; procedure Replace (Container : in out Set; Key : Key_Type; New_Item : Element_Type); procedure Exclude (Container : in out Set; Key : Key_Type); procedure Delete (Container : in out Set; Key : Key_Type); function Find (Container : Set; Key : Key_Type) return Cursor; function Floor (Container : Set; Key : Key_Type) return Cursor; function Ceiling (Container : Set; Key : Key_Type) return Cursor; function Contains (Container : Set; Key : Key_Type) return Boolean; procedure Update_Element_Preserving_Key (Container : in out Set; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)); type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; function Reference_Preserving_Key (Container : aliased in out Set; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Set; Key : Key_Type) return Constant_Reference_Type; function Reference_Preserving_Key (Container : aliased in out Set; Key : Key_Type) return Reference_Type; private type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Key_Access is access all Key_Type; package Impl is new Helpers.Generic_Implementation; type Reference_Control_Type is new Impl.Reference_Control_Type with record Container : Set_Access; Pos : Cursor; Old_Key : Key_Access; end record; overriding procedure Finalize (Control : in out Reference_Control_Type); pragma Inline (Finalize); type Reference_Type (Element : not null access Element_Type) is record Control : Reference_Control_Type; end record; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type); for Reference_Type'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type); for Reference_Type'Read use Read; end Generic_Keys; private pragma Inline (Next); pragma Inline (Previous); type Node_Type; type Node_Access is access Node_Type; type Element_Access is access all Element_Type; type Node_Type is limited record Parent : Node_Access; Left : Node_Access; Right : Node_Access; Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red; Element : Element_Access; end record; package Tree_Types is new Red_Black_Trees.Generic_Tree_Types (Node_Type, Node_Access); type Set is new Ada.Finalization.Controlled with record Tree : Tree_Types.Tree_Type; end record with Put_Image => Put_Image; procedure Put_Image (S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Set); overriding procedure Adjust (Container : in out Set); overriding procedure Finalize (Container : in out Set) renames Clear; use Red_Black_Trees; use Tree_Types, Tree_Types.Implementation; use Ada.Finalization; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Set); for Set'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Set); for Set'Read use Read; type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Cursor is record Container : Set_Access; Node : Node_Access; end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Cursor); for Cursor'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Cursor); for Cursor'Read use Read; subtype Reference_Control_Type is Implementation.Reference_Control_Type; -- It is necessary to rename this here, so that the compiler can find it type Constant_Reference_Type (Element : not null access constant Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type); for Constant_Reference_Type'Read use Read; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type); for Constant_Reference_Type'Write use Write; -- Three operations are used to optimize in the expansion of "for ... of" -- loops: the Next(Cursor) procedure in the visible part, and the following -- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for -- details. function Pseudo_Reference (Container : aliased Set'Class) return Reference_Control_Type; pragma Inline (Pseudo_Reference); -- Creates an object of type Reference_Control_Type pointing to the -- container, and increments the Lock. Finalization of this object will -- decrement the Lock. function Get_Element_Access (Position : Cursor) return not null Element_Access; -- Returns a pointer to the element designated by Position. Empty_Set : constant Set := (Controlled with others => <>); function Empty return Set is (Empty_Set); No_Element : constant Cursor := Cursor'(null, null); type Iterator is new Limited_Controlled and Set_Iterator_Interfaces.Reversible_Iterator with record Container : Set_Access; Node : Node_Access; end record with Disable_Controlled => not T_Check; overriding procedure Finalize (Object : in out Iterator); overriding function First (Object : Iterator) return Cursor; overriding function Last (Object : Iterator) return Cursor; overriding function Next (Object : Iterator; Position : Cursor) return Cursor; overriding function Previous (Object : Iterator; Position : Cursor) return Cursor; end Ada.Containers.Indefinite_Ordered_Sets;
31.828452
79
0.62081
c7475a1ac5af50cd4a487211b14f4fca66e442f0
936
ads
Ada
source/asis/spec/ada-strings-wide_wide_bounded-wide_wide_hash.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/asis/spec/ada-strings-wide_wide_bounded-wide_wide_hash.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/asis/spec/ada-strings-wide_wide_bounded-wide_wide_hash.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of ada.ads file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ with Ada.Containers; generic with package Bounded is new Ada.Strings.Wide_Wide_Bounded.Generic_Bounded_Length (<>); function Ada.Strings.Wide_Wide_Bounded.Wide_Wide_Hash (Key : in Wide_Wide_Bounded.Bounded_Wide_Wide_String) return Containers.Hash_Type; pragma Preelaborate (Wide_Wide_Hash);
46.8
78
0.456197
2ea7fea8296d9efe0127583cd346ec04fda37f02
5,787
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45532l.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45532l.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45532l.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C45532L.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT THE OPERATOR "/" PRODUCES CORRECT RESULTS -- FOR FIXED POINT TYPES USING 3 SUBTESTS. -- THIS TEST REQUIRES MIN_WORD_LENGTH = 32. -- THIS TEST USES VALUES OF DELTA WHICH ARE GREATER THAN OR -- EQUAL TO 0.5. -- -- TEST CASES ARE: -- A) THE OPERATOR /, A, B, AND A / B ALL MODEL NUMBERS. -- B) THE OPERATOR /, A, B MODEL NUMBERS A / B NOT. -- C) THE OPERATOR /, USING NO MODEL NUMBERS. -- -- REPEAT FOR MINIMUM REQUIRED WORD LENGTHS OF 12, 16, 32 AND 48, -- WITH RANGE <, =, AND > THAN 1.0 AND -- WITH DELTA <, =, AND > THAN 1.0. -- HISTORY: -- NTW 09/08/86 CREATED ORIGINAL TEST. -- RJW 11/05/86 REVISED COMMENTS. -- DHH 01/13/88 ADDED APPLICABILITY CRITERIA AND STANDARD HEADER. -- RDH 04/27/90 REVISED APPLICABILITY CRITERIA. -- BCB 10/03/90 REMOVED APPLICABILITY CRITERIA AND N/A => ERROR -- LINE. CHANGED EXTENSION FROM '.DEP' TO '.ADA'. WITH REPORT; PROCEDURE C45532L IS USE REPORT; MIN_WORD_LENGTH : CONSTANT := 32; FULL_SCALE : CONSTANT := 2 ** (MIN_WORD_LENGTH - 1); A_THIRD : CONSTANT := FULL_SCALE / 3; RNG1 : CONSTANT := FULL_SCALE * 0.5; TYPE FX_0P5 IS DELTA 0.5 RANGE -RNG1 * 1 .. RNG1 * 1 - 0.5; TYPE FX_1 IS DELTA 1.0 RANGE -RNG1 * 2 .. RNG1 * 2 - 1.0; TYPE FX_RNG1 IS DELTA RNG1 RANGE -RNG1 * FULL_SCALE .. RNG1 * (FULL_SCALE - 1); BEGIN TEST ("C45532L", "FIXED POINT OPERATOR ""/""" ); -------------------------------------------------- -- CASE A) THE OPERATOR /, A, B, AND A / B ALL MODEL NUMBERS. A: DECLARE A : FX_RNG1 := 0.0; B : FX_0P5 := 0.0; RESULT_VALUE : FX_0P5 := 0.0; LOWEST_ACCEPTABLE_VALUE : FX_0P5 := FX_0P5 (RNG1 / 2); HIGHEST_ACCEPTABLE_VALUE : FX_0P5 := FX_0P5 (RNG1 / 2); BEGIN IF EQUAL (3, 3) THEN A := FX_RNG1 (RNG1 * RNG1 / 4); -- A MODEL NUMBER B := FX_0P5 (RNG1 / 2); -- A MODEL NUMBER END IF; RESULT_VALUE := FX_0P5 (A / B); IF (RESULT_VALUE < LOWEST_ACCEPTABLE_VALUE) OR (RESULT_VALUE > HIGHEST_ACCEPTABLE_VALUE) THEN FAILED ("RESULT OF ""/"" OUTSIDE RESULT MODEL INTERVAL " & "WHEN A, B, AND A / B ARE ALL MODEL NUMBERS"); END IF; END A; -------------------------------------------------- -- CASE B) THE OPERATOR /, A, B MODEL NUMBERS A / B NOT. B: DECLARE A : FX_RNG1 := 0.0; B : FX_1 := 0.0; RESULT_VALUE : FX_0P5 := 0.0; LOWEST_ACCEPTABLE_VALUE : FX_0P5 := FX_0P5 (0.5 * A_THIRD); HIGHEST_ACCEPTABLE_VALUE : FX_0P5 := FX_0P5 (0.5 * (A_THIRD + 1) ); BEGIN IF EQUAL (3, 3) THEN A := FX_RNG1 (RNG1); -- A MODEL NUMBER B := FX_1 (3.0); -- A MODEL NUMBER END IF; RESULT_VALUE := FX_0P5 (A / B); IF (RESULT_VALUE < LOWEST_ACCEPTABLE_VALUE) OR (RESULT_VALUE > HIGHEST_ACCEPTABLE_VALUE) THEN FAILED ("RESULT OF ""/"" OUTSIDE RESULT MODEL INTERVAL " & "WHEN A, B MODEL NUMBERS A / B NOT"); END IF; END B; -------------------------------------------------- -- CASE C) THE OPERATOR /, USING NO MODEL NUMBERS C: DECLARE A : FX_RNG1 := 0.0; B : FX_1 := 0.0; RESULT_VALUE : FX_1 := 0.0; LOWEST_ACCEPTABLE_VALUE : FX_1 := FX_1 ( RNG1 - 3.0); HIGHEST_ACCEPTABLE_VALUE : FX_1 := FX_1 ( RNG1 + 4.0); BEGIN IF EQUAL (3, 3) THEN A := FX_RNG1 (RNG1 * RNG1 / 3); -- NOT A MODEL NUMBER B := FX_1 (RNG1 / 3); -- NOT A MODEL NUMBER END IF; RESULT_VALUE := FX_1 (A / B); IF (RESULT_VALUE < LOWEST_ACCEPTABLE_VALUE) OR (RESULT_VALUE > HIGHEST_ACCEPTABLE_VALUE) THEN FAILED ("RESULT OF ""/"" OUTSIDE RESULT MODEL INTERVAL " & "WHEN USING NO MODEL NUMBERS"); END IF; END C; -------------------------------------------------- RESULT; END C45532L;
38.324503
79
0.517885
2edff328bcdac2644ef2e2bc73ca4a9c139dea17
31,348
ads
Ada
source/amf/mof/cmof/amf-internals-tables-cmof_attributes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/cmof/amf-internals-tables-cmof_attributes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/cmof/amf-internals-tables-cmof_attributes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010-2011, Vadim Godunko <[email protected]> -- -- 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.CMOF; with Matreshka.Internals.Strings; package AMF.Internals.Tables.CMOF_Attributes is function Internal_Get_Alias (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Alias (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- ElementImport => ElementImport::alias function Internal_Get_Annotated_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Comment => Comment::annotatedElement function Internal_Get_Association (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Association (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Property => Property::association function Internal_Get_Attribute (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Classifier::attribute -- Class => Classifier::attribute -- DataType => Classifier::attribute -- Enumeration => Classifier::attribute -- PrimitiveType => Classifier::attribute function Internal_Get_Body (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_String; -- OpaqueExpression => OpaqueExpression::body function Internal_Get_Body (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Body (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- Comment => Comment::body function Internal_Get_Body_Condition (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Body_Condition (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Operation => Operation::bodyCondition function Internal_Get_Class (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Class (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Operation => Operation::class -- Property => Property::class function Internal_Get_Constrained_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Constraint => Constraint::constrainedElement function Internal_Get_Context (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Context (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Constraint => Constraint::context function Internal_Get_Datatype (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Datatype (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Operation => Operation::datatype -- Property => Property::datatype function Internal_Get_Default (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Default (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- Parameter => Parameter::default -- Property => Property::default function Internal_Get_Direction (Self : AMF.Internals.AMF_Element) return AMF.CMOF.CMOF_Parameter_Direction_Kind; procedure Internal_Set_Direction (Self : AMF.Internals.AMF_Element; To : AMF.CMOF.CMOF_Parameter_Direction_Kind); -- Parameter => Parameter::direction function Internal_Get_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Tag => Tag::element function Internal_Get_Element_Import (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::elementImport -- Class => Namespace::elementImport -- DataType => Namespace::elementImport -- Enumeration => Namespace::elementImport -- Operation => Namespace::elementImport -- Package => Namespace::elementImport -- PrimitiveType => Namespace::elementImport function Internal_Get_End_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Association::endType function Internal_Get_Enumeration (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Enumeration (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- EnumerationLiteral => EnumerationLiteral::enumeration function Internal_Get_Feature (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Classifier::feature -- Class => Classifier::feature -- DataType => Classifier::feature -- Enumeration => Classifier::feature -- PrimitiveType => Classifier::feature function Internal_Get_Featuring_Classifier (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Feature::featuringClassifier -- Property => Feature::featuringClassifier function Internal_Get_General (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Classifier::general -- Class => Classifier::general -- DataType => Classifier::general -- Enumeration => Classifier::general -- PrimitiveType => Classifier::general function Internal_Get_Imported_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Imported_Element (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ElementImport => ElementImport::importedElement function Internal_Get_Imported_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::importedMember -- Class => Namespace::importedMember -- DataType => Namespace::importedMember -- Enumeration => Namespace::importedMember -- Operation => Namespace::importedMember -- Package => Namespace::importedMember -- PrimitiveType => Namespace::importedMember function Internal_Get_Imported_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Imported_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- PackageImport => PackageImport::importedPackage function Internal_Get_Importing_Namespace (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Importing_Namespace (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ElementImport => ElementImport::importingNamespace -- PackageImport => PackageImport::importingNamespace function Internal_Get_Inherited_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Classifier::inheritedMember -- Class => Classifier::inheritedMember -- DataType => Classifier::inheritedMember -- Enumeration => Classifier::inheritedMember -- PrimitiveType => Classifier::inheritedMember function Internal_Get_Is_Abstract (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Abstract (Self : AMF.Internals.AMF_Element; To : Boolean); -- Class => Class::isAbstract function Internal_Get_Is_Composite (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Composite (Self : AMF.Internals.AMF_Element; To : Boolean); -- Property => Property::isComposite function Internal_Get_Is_Derived (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Derived (Self : AMF.Internals.AMF_Element; To : Boolean); -- Association => Association::isDerived -- Property => Property::isDerived function Internal_Get_Is_Derived_Union (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Derived_Union (Self : AMF.Internals.AMF_Element; To : Boolean); -- Property => Property::isDerivedUnion function Internal_Get_Is_Final_Specialization (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Final_Specialization (Self : AMF.Internals.AMF_Element; To : Boolean); -- Association => Classifier::isFinalSpecialization -- Class => Classifier::isFinalSpecialization -- DataType => Classifier::isFinalSpecialization -- Enumeration => Classifier::isFinalSpecialization -- PrimitiveType => Classifier::isFinalSpecialization function Internal_Get_Is_Leaf (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Leaf (Self : AMF.Internals.AMF_Element; To : Boolean); -- Operation => RedefinableElement::isLeaf -- Property => RedefinableElement::isLeaf function Internal_Get_Is_Ordered (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Ordered (Self : AMF.Internals.AMF_Element; To : Boolean); -- Operation => Operation::isOrdered -- Parameter => MultiplicityElement::isOrdered -- Property => MultiplicityElement::isOrdered function Internal_Get_Is_Query (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Query (Self : AMF.Internals.AMF_Element; To : Boolean); -- Operation => Operation::isQuery function Internal_Get_Is_Read_Only (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Read_Only (Self : AMF.Internals.AMF_Element; To : Boolean); -- Property => Property::isReadOnly function Internal_Get_Is_Unique (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Unique (Self : AMF.Internals.AMF_Element; To : Boolean); -- Operation => Operation::isUnique -- Parameter => MultiplicityElement::isUnique -- Property => MultiplicityElement::isUnique function Internal_Get_Language (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_String; -- OpaqueExpression => OpaqueExpression::language function Internal_Get_Lower (Self : AMF.Internals.AMF_Element) return AMF.Optional_Integer; procedure Internal_Set_Lower (Self : AMF.Internals.AMF_Element; To : AMF.Optional_Integer); -- Operation => Operation::lower -- Parameter => MultiplicityElement::lower -- Property => MultiplicityElement::lower function Internal_Get_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::member -- Class => Namespace::member -- DataType => Namespace::member -- Enumeration => Namespace::member -- Operation => Namespace::member -- Package => Namespace::member -- PrimitiveType => Namespace::member function Internal_Get_Member_End (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Association::memberEnd function Internal_Get_Merged_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Merged_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- PackageMerge => PackageMerge::mergedPackage function Internal_Get_Name (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Name (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- Association => NamedElement::name -- Class => NamedElement::name -- Constraint => NamedElement::name -- DataType => NamedElement::name -- Enumeration => NamedElement::name -- EnumerationLiteral => NamedElement::name -- Expression => NamedElement::name -- OpaqueExpression => NamedElement::name -- Operation => NamedElement::name -- Package => NamedElement::name -- Parameter => NamedElement::name -- PrimitiveType => NamedElement::name -- Property => NamedElement::name -- Tag => Tag::name function Internal_Get_Namespace (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; -- Association => NamedElement::namespace -- Class => NamedElement::namespace -- Constraint => NamedElement::namespace -- DataType => NamedElement::namespace -- Enumeration => NamedElement::namespace -- EnumerationLiteral => NamedElement::namespace -- Expression => NamedElement::namespace -- OpaqueExpression => NamedElement::namespace -- Operation => NamedElement::namespace -- Package => NamedElement::namespace -- Parameter => NamedElement::namespace -- PrimitiveType => NamedElement::namespace -- Property => NamedElement::namespace function Internal_Get_Navigable_Owned_End (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Association::navigableOwnedEnd function Internal_Get_Nested_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Package => Package::nestedPackage function Internal_Get_Nesting_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Nesting_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Package => Package::nestingPackage function Internal_Get_Operand (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Expression => Expression::operand function Internal_Get_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Operation (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Parameter => Parameter::operation function Internal_Get_Opposite (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Opposite (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Property => Property::opposite function Internal_Get_Owned_Attribute (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Class => Class::ownedAttribute -- DataType => DataType::ownedAttribute -- Enumeration => DataType::ownedAttribute -- PrimitiveType => DataType::ownedAttribute function Internal_Get_Owned_Comment (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Element::ownedComment -- Class => Element::ownedComment -- Comment => Element::ownedComment -- Constraint => Element::ownedComment -- DataType => Element::ownedComment -- ElementImport => Element::ownedComment -- Enumeration => Element::ownedComment -- EnumerationLiteral => Element::ownedComment -- Expression => Element::ownedComment -- OpaqueExpression => Element::ownedComment -- Operation => Element::ownedComment -- Package => Element::ownedComment -- PackageImport => Element::ownedComment -- PackageMerge => Element::ownedComment -- Parameter => Element::ownedComment -- PrimitiveType => Element::ownedComment -- Property => Element::ownedComment -- Tag => Element::ownedComment function Internal_Get_Owned_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Element::ownedElement -- Class => Element::ownedElement -- Comment => Element::ownedElement -- Constraint => Element::ownedElement -- DataType => Element::ownedElement -- ElementImport => Element::ownedElement -- Enumeration => Element::ownedElement -- EnumerationLiteral => Element::ownedElement -- Expression => Element::ownedElement -- OpaqueExpression => Element::ownedElement -- Operation => Element::ownedElement -- Package => Element::ownedElement -- PackageImport => Element::ownedElement -- PackageMerge => Element::ownedElement -- Parameter => Element::ownedElement -- PrimitiveType => Element::ownedElement -- Property => Element::ownedElement -- Tag => Element::ownedElement function Internal_Get_Owned_End (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Association::ownedEnd function Internal_Get_Owned_Literal (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Enumeration => Enumeration::ownedLiteral function Internal_Get_Owned_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::ownedMember -- Class => Namespace::ownedMember -- DataType => Namespace::ownedMember -- Enumeration => Namespace::ownedMember -- Operation => Namespace::ownedMember -- Package => Namespace::ownedMember -- PrimitiveType => Namespace::ownedMember function Internal_Get_Owned_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Class => Class::ownedOperation -- DataType => DataType::ownedOperation -- Enumeration => DataType::ownedOperation -- PrimitiveType => DataType::ownedOperation function Internal_Get_Owned_Parameter (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Operation::ownedParameter function Internal_Get_Owned_Rule (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::ownedRule -- Class => Namespace::ownedRule -- DataType => Namespace::ownedRule -- Enumeration => Namespace::ownedRule -- Operation => Namespace::ownedRule -- Package => Namespace::ownedRule -- PrimitiveType => Namespace::ownedRule function Internal_Get_Owned_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Package => Package::ownedType function Internal_Get_Owner (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; -- Association => Element::owner -- Class => Element::owner -- Comment => Element::owner -- Constraint => Element::owner -- DataType => Element::owner -- ElementImport => Element::owner -- Enumeration => Element::owner -- EnumerationLiteral => Element::owner -- Expression => Element::owner -- OpaqueExpression => Element::owner -- Operation => Element::owner -- Package => Element::owner -- PackageImport => Element::owner -- PackageMerge => Element::owner -- Parameter => Element::owner -- PrimitiveType => Element::owner -- Property => Element::owner -- Tag => Element::owner function Internal_Get_Owning_Association (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Owning_Association (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Property => Property::owningAssociation function Internal_Get_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Association => Type::package -- Class => Type::package -- DataType => Type::package -- Enumeration => Type::package -- PrimitiveType => Type::package function Internal_Get_Package_Import (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Namespace::packageImport -- Class => Namespace::packageImport -- DataType => Namespace::packageImport -- Enumeration => Namespace::packageImport -- Operation => Namespace::packageImport -- Package => Namespace::packageImport -- PrimitiveType => Namespace::packageImport function Internal_Get_Package_Merge (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Package => Package::packageMerge function Internal_Get_Packaged_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Package => Package::packagedElement function Internal_Get_Postcondition (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Operation::postcondition function Internal_Get_Precondition (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Operation::precondition function Internal_Get_Qualified_Name (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; -- Association => NamedElement::qualifiedName -- Class => NamedElement::qualifiedName -- Constraint => NamedElement::qualifiedName -- DataType => NamedElement::qualifiedName -- Enumeration => NamedElement::qualifiedName -- EnumerationLiteral => NamedElement::qualifiedName -- Expression => NamedElement::qualifiedName -- OpaqueExpression => NamedElement::qualifiedName -- Operation => NamedElement::qualifiedName -- Package => NamedElement::qualifiedName -- Parameter => NamedElement::qualifiedName -- PrimitiveType => NamedElement::qualifiedName -- Property => NamedElement::qualifiedName function Internal_Get_Raised_Exception (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Operation::raisedException function Internal_Get_Receiving_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Receiving_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- PackageMerge => PackageMerge::receivingPackage function Internal_Get_Redefined_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => RedefinableElement::redefinedElement -- Property => RedefinableElement::redefinedElement function Internal_Get_Redefined_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => Operation::redefinedOperation function Internal_Get_Redefined_Property (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Property => Property::redefinedProperty function Internal_Get_Redefinition_Context (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Operation => RedefinableElement::redefinitionContext -- Property => RedefinableElement::redefinitionContext function Internal_Get_Related_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Association => Relationship::relatedElement -- ElementImport => Relationship::relatedElement -- PackageImport => Relationship::relatedElement -- PackageMerge => Relationship::relatedElement function Internal_Get_Source (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- ElementImport => DirectedRelationship::source -- PackageImport => DirectedRelationship::source -- PackageMerge => DirectedRelationship::source function Internal_Get_Specification (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Specification (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Constraint => Constraint::specification function Internal_Get_Subsetted_Property (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Property => Property::subsettedProperty function Internal_Get_Super_Class (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- Class => Class::superClass function Internal_Get_Tag_Owner (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Tag_Owner (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Tag => Tag::tagOwner function Internal_Get_Target (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- ElementImport => DirectedRelationship::target -- PackageImport => DirectedRelationship::target -- PackageMerge => DirectedRelationship::target function Internal_Get_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Type (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Expression => TypedElement::type -- OpaqueExpression => TypedElement::type -- Operation => Operation::type -- Parameter => TypedElement::type -- Property => TypedElement::type function Internal_Get_Upper (Self : AMF.Internals.AMF_Element) return AMF.Optional_Unlimited_Natural; procedure Internal_Set_Upper (Self : AMF.Internals.AMF_Element; To : AMF.Optional_Unlimited_Natural); -- Operation => Operation::upper -- Parameter => MultiplicityElement::upper -- Property => MultiplicityElement::upper function Internal_Get_Uri (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Uri (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- Package => Package::uri function Internal_Get_Value (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Value (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- Tag => Tag::value function Internal_Get_Visibility (Self : AMF.Internals.AMF_Element) return AMF.CMOF.CMOF_Visibility_Kind; procedure Internal_Set_Visibility (Self : AMF.Internals.AMF_Element; To : AMF.CMOF.CMOF_Visibility_Kind); -- ElementImport => ElementImport::visibility -- PackageImport => PackageImport::visibility function Internal_Get_Visibility (Self : AMF.Internals.AMF_Element) return AMF.CMOF.Optional_CMOF_Visibility_Kind; procedure Internal_Set_Visibility (Self : AMF.Internals.AMF_Element; To : AMF.CMOF.Optional_CMOF_Visibility_Kind); -- Association => NamedElement::visibility -- Class => NamedElement::visibility -- Constraint => NamedElement::visibility -- DataType => NamedElement::visibility -- Enumeration => NamedElement::visibility -- EnumerationLiteral => NamedElement::visibility -- Expression => NamedElement::visibility -- OpaqueExpression => NamedElement::visibility -- Operation => NamedElement::visibility -- Package => NamedElement::visibility -- Parameter => NamedElement::visibility -- PrimitiveType => NamedElement::visibility -- Property => NamedElement::visibility end AMF.Internals.Tables.CMOF_Attributes;
39.332497
78
0.683552
2efd5d897be8e358d929f2f3bb95f84fb8834dcd
2,495
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sbhcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sbhcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sbhcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.STRINGS.BOUNDED.HASH_CASE_INSENSITIVE -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Strings.Hash_Case_Insensitive; function Ada.Strings.Bounded.Hash_Case_Insensitive (Key : Bounded.Bounded_String) return Containers.Hash_Type is begin return Ada.Strings.Hash_Case_Insensitive (Bounded.To_String (Key)); end Ada.Strings.Bounded.Hash_Case_Insensitive;
63.974359
78
0.422044
41daf737a68d1cb6027cfc46a25f0a444d9489b7
559
ada
Ada
Task/Ternary-logic/Ada/ternary-logic-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Ternary-logic/Ada/ternary-logic-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Ternary-logic/Ada/ternary-logic-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
package Logic is type Ternary is (True, Unknown, False); -- logic functions function "and"(Left, Right: Ternary) return Ternary; function "or"(Left, Right: Ternary) return Ternary; function "not"(T: Ternary) return Ternary; function Equivalent(Left, Right: Ternary) return Ternary; function Implies(Condition, Conclusion: Ternary) return Ternary; -- conversion functions function To_Bool(X: Ternary) return Boolean; function To_Ternary(B: Boolean) return Ternary; function Image(Value: Ternary) return Character; end Logic;
34.9375
67
0.735242
57c85337d4d153a9869ca02af31ab1548fd9bca7
8,882
ads
Ada
arch/ARM/STM32/svd/stm32l4x6/stm32_svd-swpmi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/svd/stm32l4x6/stm32_svd-swpmi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32l4x6/stm32_svd-swpmi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.SWPMI is pragma Preelaborate; --------------- -- Registers -- --------------- -- SWPMI Configuration/Control register type CR_Register is record -- Reception DMA enable RXDMA : Boolean := False; -- Transmission DMA enable TXDMA : Boolean := False; -- Reception buffering mode RXMODE : Boolean := False; -- Transmission buffering mode TXMODE : Boolean := False; -- Loopback mode enable LPBK : Boolean := False; -- Single wire protocol master interface activate SWPACT : Boolean := False; -- unspecified Reserved_6_9 : HAL.UInt4 := 16#0#; -- Single wire protocol master interface deactivate DEACT : Boolean := False; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record RXDMA at 0 range 0 .. 0; TXDMA at 0 range 1 .. 1; RXMODE at 0 range 2 .. 2; TXMODE at 0 range 3 .. 3; LPBK at 0 range 4 .. 4; SWPACT at 0 range 5 .. 5; Reserved_6_9 at 0 range 6 .. 9; DEACT at 0 range 10 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; subtype BRR_BR_Field is HAL.UInt6; -- SWPMI Bitrate register type BRR_Register is record -- Bitrate prescaler BR : BRR_BR_Field := 16#1#; -- unspecified Reserved_6_31 : HAL.UInt26 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BRR_Register use record BR at 0 range 0 .. 5; Reserved_6_31 at 0 range 6 .. 31; end record; -- SWPMI Interrupt and Status register type ISR_Register is record -- Read-only. Receive buffer full flag RXBFF : Boolean; -- Read-only. Transmit buffer empty flag TXBEF : Boolean; -- Read-only. Receive CRC error flag RXBERF : Boolean; -- Read-only. Receive overrun error flag RXOVRF : Boolean; -- Read-only. Transmit underrun error flag TXUNRF : Boolean; -- Read-only. Receive data register not empty RXNE : Boolean; -- Read-only. Transmit data register empty TXE : Boolean; -- Read-only. Transfer complete flag TCF : Boolean; -- Read-only. Slave resume flag SRF : Boolean; -- Read-only. SUSPEND flag SUSP : Boolean; -- Read-only. DEACTIVATED flag DEACTF : Boolean; -- unspecified Reserved_11_31 : HAL.UInt21; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record RXBFF at 0 range 0 .. 0; TXBEF at 0 range 1 .. 1; RXBERF at 0 range 2 .. 2; RXOVRF at 0 range 3 .. 3; TXUNRF at 0 range 4 .. 4; RXNE at 0 range 5 .. 5; TXE at 0 range 6 .. 6; TCF at 0 range 7 .. 7; SRF at 0 range 8 .. 8; SUSP at 0 range 9 .. 9; DEACTF at 0 range 10 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- SWPMI Interrupt Flag Clear register type ICR_Register is record -- Write-only. Clear receive buffer full flag CRXBFF : Boolean := False; -- Write-only. Clear transmit buffer empty flag CTXBEF : Boolean := False; -- Write-only. Clear receive CRC error flag CRXBERF : Boolean := False; -- Write-only. Clear receive overrun error flag CRXOVRF : Boolean := False; -- Write-only. Clear transmit underrun error flag CTXUNRF : Boolean := False; -- unspecified Reserved_5_6 : HAL.UInt2 := 16#0#; -- Write-only. Clear transfer complete flag CTCF : Boolean := False; -- Write-only. Clear slave resume flag CSRF : Boolean := False; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ICR_Register use record CRXBFF at 0 range 0 .. 0; CTXBEF at 0 range 1 .. 1; CRXBERF at 0 range 2 .. 2; CRXOVRF at 0 range 3 .. 3; CTXUNRF at 0 range 4 .. 4; Reserved_5_6 at 0 range 5 .. 6; CTCF at 0 range 7 .. 7; CSRF at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; -- SWPMI Interrupt Enable register type IER_Register is record -- Receive buffer full interrupt enable RXBFIE : Boolean := False; -- Transmit buffer empty interrupt enable TXBEIE : Boolean := False; -- Receive CRC error interrupt enable RXBERIE : Boolean := False; -- Receive overrun error interrupt enable RXOVRIE : Boolean := False; -- Transmit underrun error interrupt enable TXUNRIE : Boolean := False; -- Receive interrupt enable RIE : Boolean := False; -- Transmit interrupt enable TIE : Boolean := False; -- Transmit complete interrupt enable TCIE : Boolean := False; -- Slave resume interrupt enable SRIE : Boolean := False; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for IER_Register use record RXBFIE at 0 range 0 .. 0; TXBEIE at 0 range 1 .. 1; RXBERIE at 0 range 2 .. 2; RXOVRIE at 0 range 3 .. 3; TXUNRIE at 0 range 4 .. 4; RIE at 0 range 5 .. 5; TIE at 0 range 6 .. 6; TCIE at 0 range 7 .. 7; SRIE at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; subtype RFL_RFL_Field is HAL.UInt5; -- SWPMI Receive Frame Length register type RFL_Register is record -- Read-only. Receive frame length RFL : RFL_RFL_Field; -- unspecified Reserved_5_31 : HAL.UInt27; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RFL_Register use record RFL at 0 range 0 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; -- SWPMI Option register type OR_Register is record -- SWP transceiver bypass SWP_TBYP : Boolean := False; -- SWP class selection SWP_CLASS : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OR_Register use record SWP_TBYP at 0 range 0 .. 0; SWP_CLASS at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Single Wire Protocol Master Interface type SWPMI1_Peripheral is record -- SWPMI Configuration/Control register CR : aliased CR_Register; -- SWPMI Bitrate register BRR : aliased BRR_Register; -- SWPMI Interrupt and Status register ISR : aliased ISR_Register; -- SWPMI Interrupt Flag Clear register ICR : aliased ICR_Register; -- SWPMI Interrupt Enable register IER : aliased IER_Register; -- SWPMI Receive Frame Length register RFL : aliased RFL_Register; -- SWPMI Transmit data register TDR : aliased HAL.UInt32; -- SWPMI Receive data register RDR : aliased HAL.UInt32; -- SWPMI Option register OR_k : aliased OR_Register; end record with Volatile; for SWPMI1_Peripheral use record CR at 16#0# range 0 .. 31; BRR at 16#4# range 0 .. 31; ISR at 16#C# range 0 .. 31; ICR at 16#10# range 0 .. 31; IER at 16#14# range 0 .. 31; RFL at 16#18# range 0 .. 31; TDR at 16#1C# range 0 .. 31; RDR at 16#20# range 0 .. 31; OR_k at 16#24# range 0 .. 31; end record; -- Single Wire Protocol Master Interface SWPMI1_Periph : aliased SWPMI1_Peripheral with Import, Address => System'To_Address (16#40008800#); end STM32_SVD.SWPMI;
33.018587
65
0.560009
1af852bb4f4b9c6c53520cc89f0b0821bccf24bd
5,285
ads
Ada
child_processes-path_searching.ads
annexi-strayline/AURA
fbbc4bc963ee82872a67e088b68f0565ba5b50a7
[ "BSD-3-Clause" ]
13
2021-09-28T18:14:32.000Z
2022-02-09T17:48:53.000Z
child_processes-path_searching.ads
annexi-strayline/AURA
fbbc4bc963ee82872a67e088b68f0565ba5b50a7
[ "BSD-3-Clause" ]
9
2021-09-28T19:18:25.000Z
2022-01-14T22:54:06.000Z
child_processes-path_searching.ads
annexi-strayline/AURA
fbbc4bc963ee82872a67e088b68f0565ba5b50a7
[ "BSD-3-Clause" ]
1
2021-10-21T21:19:08.000Z
2021-10-21T21:19:08.000Z
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * Richard Wai (ANNEXI-STRAYLINE) -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- -- -- * Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -- -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- This package provides facilities for querying the PATH (or equivalent) -- Environment Variable for the presence (and full path) of a program, which -- can be supplied as an Image_Path with Ada.Strings.Bounded; package Child_Processes.Path_Searching is Not_In_Path: exception; function Search_Path (Program: String) return String; -- Searches all directories in the PATH environment variable for a file -- named Name, to which it returns the full-path. -- -- If the search fails Not_In_Path is raised. type Elaboration_Path_Search (<>) is limited private; function Initialize (Program: aliased String) return Elaboration_Path_Search; -- A Elaboration_Path_Search initialization performs Search_Path for -- Program upon and is intended to be used to initialize an -- Elaboration_Path_Search object during elaboration of a library package. -- -- The purpose is to allow for elaboration-time search for optional -- programs, which may or may not be later invoked by the partition. -- -- Attempting to extract the Path of a Elaboration_Path_Search where this -- search fails results in a Not_In_Path exception function Found (Search: Elaboration_Path_Search) return Boolean; -- Returns True iff Search.Program was located in PATH, and will thus -- implies that a subsequent invocation of Image_Path will be successful function Image_Path (Search: Elaboration_Path_Search) return String with Pre => Found (Search); -- Returns the full path of Search.Program. If Found (Search) is False, -- Not_In_Path is raised private package Image_Path_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (256); type Elaboration_Path_Search (Program: not null access constant String) is record Result: Image_Path_Strings.Bounded_String; end record; end Child_Processes.Path_Searching;
53.383838
78
0.5228
2e0a5958ccecc809e2feb0d734e6d59b9147b063
10,528
ads
Ada
source/amf/mof/cmof/amf-internals-cmof_associations.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/cmof/amf-internals-cmof_associations.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/cmof/amf-internals-cmof_associations.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.CMOF.Associations; with AMF.CMOF.Classifiers.Collections; with AMF.CMOF.Elements.Collections; with AMF.CMOF.Features.Collections; with AMF.CMOF.Named_Elements.Collections; with AMF.CMOF.Namespaces; with AMF.CMOF.Packageable_Elements.Collections; with AMF.CMOF.Packages; with AMF.CMOF.Properties.Collections; with AMF.CMOF.Types.Collections; with AMF.Internals.CMOF_Classifiers; with AMF.Internals.CMOF_Relationships; pragma Elaborate (AMF.Internals.CMOF_Relationships); with AMF.String_Collections; with AMF.Visitors; package AMF.Internals.CMOF_Associations is package Relationships is new AMF.Internals.CMOF_Relationships (AMF.Internals.CMOF_Classifiers.CMOF_Classifier_Proxy); type CMOF_Association_Proxy is limited new Relationships.CMOF_Relationship_Proxy and AMF.CMOF.Associations.CMOF_Association with null record; -- XXX These subprograms are stubs overriding function All_Owned_Elements (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Elements.Collections.Set_Of_CMOF_Element; overriding function Get_Qualified_Name (Self : not null access constant CMOF_Association_Proxy) return Optional_String; overriding function Is_Distinguishable_From (Self : not null access constant CMOF_Association_Proxy; N : AMF.CMOF.Named_Elements.CMOF_Named_Element_Access; Ns : AMF.CMOF.Namespaces.CMOF_Namespace_Access) return Boolean; overriding procedure Set_Package (Self : not null access CMOF_Association_Proxy; To : AMF.CMOF.Packages.CMOF_Package_Access); overriding function Imported_Member (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Packageable_Elements.Collections.Set_Of_CMOF_Packageable_Element; overriding function Get_Names_Of_Member (Self : not null access constant CMOF_Association_Proxy; Element : AMF.CMOF.Named_Elements.CMOF_Named_Element_Access) return AMF.String_Collections.Set_Of_String; overriding function Import_Members (Self : not null access constant CMOF_Association_Proxy; Imps : AMF.CMOF.Packageable_Elements.Collections.Set_Of_CMOF_Packageable_Element) return AMF.CMOF.Packageable_Elements.Collections.Set_Of_CMOF_Packageable_Element; overriding function Exclude_Collisions (Self : not null access constant CMOF_Association_Proxy; Imps : AMF.CMOF.Packageable_Elements.Collections.Set_Of_CMOF_Packageable_Element) return AMF.CMOF.Packageable_Elements.Collections.Set_Of_CMOF_Packageable_Element; overriding function Members_Are_Distinguishable (Self : not null access constant CMOF_Association_Proxy) return Boolean; overriding procedure Set_Is_Final_Specialization (Self : not null access CMOF_Association_Proxy; To : Boolean); overriding function Conforms_To (Self : not null access constant CMOF_Association_Proxy; Other : AMF.CMOF.Classifiers.CMOF_Classifier_Access) return Boolean; overriding function All_Features (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Features.Collections.Set_Of_CMOF_Feature; overriding function General (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Classifiers.Collections.Set_Of_CMOF_Classifier; overriding function Parents (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Classifiers.Collections.Set_Of_CMOF_Classifier; overriding function Inherited_Member (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Named_Elements.Collections.Set_Of_CMOF_Named_Element; overriding function All_Parents (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Classifiers.Collections.Set_Of_CMOF_Classifier; overriding function Inheritable_Members (Self : not null access constant CMOF_Association_Proxy; C : AMF.CMOF.Classifiers.CMOF_Classifier_Access) return AMF.CMOF.Named_Elements.Collections.Set_Of_CMOF_Named_Element; overriding function Has_Visibility_Of (Self : not null access constant CMOF_Association_Proxy; N : AMF.CMOF.Named_Elements.CMOF_Named_Element_Access) return Boolean; overriding function Inherit (Self : not null access constant CMOF_Association_Proxy; Inhs : AMF.CMOF.Named_Elements.Collections.Set_Of_CMOF_Named_Element) return AMF.CMOF.Named_Elements.Collections.Set_Of_CMOF_Named_Element; overriding function May_Specialize_Type (Self : not null access constant CMOF_Association_Proxy; C : AMF.CMOF.Classifiers.CMOF_Classifier_Access) return Boolean; overriding function Get_Is_Derived (Self : not null access constant CMOF_Association_Proxy) return Boolean; overriding procedure Set_Is_Derived (Self : not null access CMOF_Association_Proxy; To : Boolean); -- Setter of Association::isDerived. -- -- Specifies whether the association is derived from other model elements -- such as other associations or constraints. overriding function Get_Owned_End (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Properties.Collections.Ordered_Set_Of_CMOF_Property; overriding function Get_End_Type (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Types.Collections.Set_Of_CMOF_Type; -- Getter of Association::endType. -- -- References the classifiers that are used as types of the ends of the -- association. overriding function Get_Member_End (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Properties.Collections.Ordered_Set_Of_CMOF_Property; overriding function Get_Navigable_Owned_End (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Properties.Collections.Set_Of_CMOF_Property; -- Getter of Association::navigableOwnedEnd. -- -- The navigable ends that are owned by the association itself. overriding function End_Type (Self : not null access constant CMOF_Association_Proxy) return AMF.CMOF.Types.Collections.Ordered_Set_Of_CMOF_Type; overriding procedure Enter_Element (Self : not null access constant CMOF_Association_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding procedure Leave_Element (Self : not null access constant CMOF_Association_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding procedure Visit_Element (Self : not null access constant CMOF_Association_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of iterator interface. end AMF.Internals.CMOF_Associations;
47.423423
88
0.65511
13a709947a5671a47a437cc1ede2a19e04feb138
2,311
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/gnatcmd.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/gnatcmd.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/gnatcmd.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T C M D -- -- -- -- S p e c -- -- -- -- Copyright (C) 1996-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This program provides a simple command interface for using GNAT and its -- associated utilities. -- The program is typically called GNAT when it is installed and -- the two possible styles of use are: -- To call gcc: -- GNAT compile filename switches -- To call the tool gnatxxx -- GNAT xxx filename switches -- where xxx is the command name (e.g. MAKE for gnatmake). procedure GNATCmd;
53.744186
78
0.426655
1ab71f60ac1d9a08fb5b0d6781a7e78015cf8e8f
1,212
ads
Ada
src/sockets.ads
glencornell/ada-socketcan
5ea24aff42ee9b91bb44b39a1c957886651ad46b
[ "MIT" ]
2
2020-03-02T10:49:31.000Z
2020-03-05T18:47:28.000Z
src/sockets.ads
glencornell/ada-socketcan
5ea24aff42ee9b91bb44b39a1c957886651ad46b
[ "MIT" ]
null
null
null
src/sockets.ads
glencornell/ada-socketcan
5ea24aff42ee9b91bb44b39a1c957886651ad46b
[ "MIT" ]
null
null
null
-- MIT License -- -- Copyright (c) 2021 Glen Cornell <[email protected]> -- -- 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. package Sockets is pragma Pure; end Sockets;
43.285714
81
0.756601
2e08b5392f9345ce56a920988918022017ec3b50
3,781
adb
Ada
memsim-master/src/lexer.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/lexer.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/lexer.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
with Ada.Characters.Latin_1; use Ada.Characters; package body Lexer is procedure Open(lexer : out Lexer_Type; file_name : in String) is begin Character_IO.Open(File => lexer.file, Mode => Character_IO.In_File, Name => file_name); Next(lexer); end Open; procedure Close(lexer : in out Lexer_Type) is begin Character_IO.Close(lexer.file); end Close; procedure Get_Buffer_Token(lexer : in out Lexer_Type) is len : constant Natural := Length(lexer.buffer); begin if len = 0 then lexer.token := Invalid; lexer.value := Null_Unbounded_String; else case Element(lexer.buffer, 1) is when '(' => lexer.token := Open; lexer.value := Head(lexer.buffer, 1); Delete(lexer.buffer, 1, 1); when ')' => lexer.token := Close; lexer.value := Head(lexer.buffer, 1); Delete(lexer.buffer, 1, 1); when others => lexer.token := Literal; lexer.value := lexer.buffer; Delete(lexer.buffer, 1, len); end case; end if; end Get_Buffer_Token; function Is_Space(ch : Character) return Boolean is begin case ch is when ' ' | Latin_1.LF | Latin_1.CR | Latin_1.VT => return True; when others => return False; end case; end Is_Space; function Is_Stop(ch : Character) return Boolean is begin if Is_Space(ch) then return True; else case ch is when '(' | ')' => return True; when others => return False; end case; end if; end Is_Stop; procedure Next(lexer : in out Lexer_Type) is ch : Character; in_comment : Boolean := False; begin loop loop Character_IO.Read(lexer.file, ch); if ch = ';' then in_comment := True; elsif ch = Latin_1.LF then lexer.line := lexer.line + 1; in_comment := False; end if; exit when not in_comment; end loop; if Is_Space(ch) then if Length(lexer.buffer) > 0 then Get_Buffer_Token(lexer); return; end if; else if Is_Stop(ch) and Length(lexer.buffer) > 0 then Get_Buffer_Token(lexer); Append(lexer.buffer, ch); return; else if Length(lexer.buffer) > 0 then if Is_Stop(Element(lexer.buffer, 1)) then Get_Buffer_Token(lexer); Append(lexer.buffer, ch); return; end if; end if; Append(lexer.buffer, ch); end if; end if; end loop; exception when Character_IO.End_Error => if Length(lexer.buffer) > 0 then Get_Buffer_Token(lexer); else lexer.token := EOF; lexer.value := To_Unbounded_String("<EOF>"); end if; end Next; function Get_Type(lexer : Lexer_Type) return Token_Type is begin return lexer.token; end Get_Type; function Get_Value(lexer : Lexer_Type) return String is begin return To_String(lexer.value); end Get_Value; function Get_File_Name(lexer : Lexer_Type) return String is begin return Character_IO.Name(lexer.file); end Get_File_Name; function Get_Line(lexer : Lexer_Type) return Positive is begin return lexer.line; end Get_Line; end Lexer;
27.59854
62
0.521026
ad603d8e58d68627a3c00aa5c1e53134b98c8d30
46,518
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-taprop-linux.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-taprop-linux.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-taprop-linux.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . T A S K _ P R I M I T I V E S . O P E R A T I O N S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2016, 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. -- -- -- ------------------------------------------------------------------------------ -- This is a GNU/Linux (GNU/LinuxThreads) version of this package -- This package contains all the GNULL primitives that interface directly with -- the underlying OS. pragma Polling (Off); -- Turn off polling, we do not want ATC polling to take place during tasking -- operations. It causes infinite loops and other problems. with Interfaces.C; with System.Task_Info; with System.Tasking.Debug; with System.Interrupt_Management; with System.OS_Constants; with System.OS_Primitives; with System.Multiprocessors; with System.Soft_Links; -- We use System.Soft_Links instead of System.Tasking.Initialization -- because the later is a higher level package that we shouldn't depend on. -- For example when using the restricted run time, it is replaced by -- System.Tasking.Restricted.Stages. package body System.Task_Primitives.Operations is package OSC renames System.OS_Constants; package SSL renames System.Soft_Links; use System.Tasking.Debug; use System.Tasking; use Interfaces.C; use System.OS_Interface; use System.Parameters; use System.OS_Primitives; use System.Task_Info; ---------------- -- Local Data -- ---------------- -- The followings are logically constants, but need to be initialized -- at run time. Single_RTS_Lock : aliased RTS_Lock; -- This is a lock to allow only one thread of control in the RTS at -- a time; it is used to execute in mutual exclusion from all other tasks. -- Used mainly in Single_Lock mode, but also to protect All_Tasks_List Environment_Task_Id : Task_Id; -- A variable to hold Task_Id for the environment task Unblocked_Signal_Mask : aliased sigset_t; -- The set of signals that should be unblocked in all tasks -- The followings are internal configuration constants needed Next_Serial_Number : Task_Serial_Number := 100; -- We start at 100 (reserve some special values for using in error checks) Time_Slice_Val : Integer; pragma Import (C, Time_Slice_Val, "__gl_time_slice_val"); Dispatching_Policy : Character; pragma Import (C, Dispatching_Policy, "__gl_task_dispatching_policy"); Locking_Policy : Character; pragma Import (C, Locking_Policy, "__gl_locking_policy"); Foreign_Task_Elaborated : aliased Boolean := True; -- Used to identified fake tasks (i.e., non-Ada Threads) Use_Alternate_Stack : constant Boolean := Alternate_Stack_Size /= 0; -- Whether to use an alternate signal stack for stack overflows Abort_Handler_Installed : Boolean := False; -- True if a handler for the abort signal is installed Null_Thread_Id : constant pthread_t := pthread_t'Last; -- Constant to indicate that the thread identifier has not yet been -- initialized. -------------------- -- Local Packages -- -------------------- package Specific is procedure Initialize (Environment_Task : Task_Id); pragma Inline (Initialize); -- Initialize various data needed by this package function Is_Valid_Task return Boolean; pragma Inline (Is_Valid_Task); -- Does executing thread have a TCB? procedure Set (Self_Id : Task_Id); pragma Inline (Set); -- Set the self id for the current task function Self return Task_Id; pragma Inline (Self); -- Return a pointer to the Ada Task Control Block of the calling task end Specific; package body Specific is separate; -- The body of this package is target specific ---------------------------------- -- ATCB allocation/deallocation -- ---------------------------------- package body ATCB_Allocation is separate; -- The body of this package is shared across several targets --------------------------------- -- Support for foreign threads -- --------------------------------- function Register_Foreign_Thread (Thread : Thread_Id) return Task_Id; -- Allocate and Initialize a new ATCB for the current Thread function Register_Foreign_Thread (Thread : Thread_Id) return Task_Id is separate; ----------------------- -- Local Subprograms -- ----------------------- procedure Abort_Handler (signo : Signal); ------------------- -- Abort_Handler -- ------------------- procedure Abort_Handler (signo : Signal) is pragma Unreferenced (signo); Self_Id : constant Task_Id := Self; Result : Interfaces.C.int; Old_Set : aliased sigset_t; begin -- It's not safe to raise an exception when using GCC ZCX mechanism. -- Note that we still need to install a signal handler, since in some -- cases (e.g. shutdown of the Server_Task in System.Interrupts) we -- need to send the Abort signal to a task. if ZCX_By_Default then return; end if; if Self_Id.Deferral_Level = 0 and then Self_Id.Pending_ATC_Level < Self_Id.ATC_Nesting_Level and then not Self_Id.Aborting then Self_Id.Aborting := True; -- Make sure signals used for RTS internal purpose are unmasked Result := pthread_sigmask (SIG_UNBLOCK, Unblocked_Signal_Mask'Access, Old_Set'Access); pragma Assert (Result = 0); raise Standard'Abort_Signal; end if; end Abort_Handler; -------------- -- Lock_RTS -- -------------- procedure Lock_RTS is begin Write_Lock (Single_RTS_Lock'Access, Global_Lock => True); end Lock_RTS; ---------------- -- Unlock_RTS -- ---------------- procedure Unlock_RTS is begin Unlock (Single_RTS_Lock'Access, Global_Lock => True); end Unlock_RTS; ----------------- -- Stack_Guard -- ----------------- -- The underlying thread system extends the memory (up to 2MB) when needed procedure Stack_Guard (T : ST.Task_Id; On : Boolean) is pragma Unreferenced (T); pragma Unreferenced (On); begin null; end Stack_Guard; -------------------- -- Get_Thread_Id -- -------------------- function Get_Thread_Id (T : ST.Task_Id) return OSI.Thread_Id is begin return T.Common.LL.Thread; end Get_Thread_Id; ---------- -- Self -- ---------- function Self return Task_Id renames Specific.Self; --------------------- -- Initialize_Lock -- --------------------- -- Note: mutexes and cond_variables needed per-task basis are initialized -- in Initialize_TCB and the Storage_Error is handled. Other mutexes (such -- as RTS_Lock, Memory_Lock...) used in RTS is initialized before any -- status change of RTS. Therefore raising Storage_Error in the following -- routines should be able to be handled safely. procedure Initialize_Lock (Prio : System.Any_Priority; L : not null access Lock) is pragma Unreferenced (Prio); begin if Locking_Policy = 'R' then declare RWlock_Attr : aliased pthread_rwlockattr_t; Result : Interfaces.C.int; begin -- Set the rwlock to prefer writer to avoid writers starvation Result := pthread_rwlockattr_init (RWlock_Attr'Access); pragma Assert (Result = 0); Result := pthread_rwlockattr_setkind_np (RWlock_Attr'Access, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP); pragma Assert (Result = 0); Result := pthread_rwlock_init (L.RW'Access, RWlock_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error with "Failed to allocate a lock"; end if; end; else declare Result : Interfaces.C.int; begin Result := pthread_mutex_init (L.WO'Access, null); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error with "Failed to allocate a lock"; end if; end; end if; end Initialize_Lock; procedure Initialize_Lock (L : not null access RTS_Lock; Level : Lock_Level) is pragma Unreferenced (Level); Result : Interfaces.C.int; begin Result := pthread_mutex_init (L, null); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error; end if; end Initialize_Lock; ------------------- -- Finalize_Lock -- ------------------- procedure Finalize_Lock (L : not null access Lock) is Result : Interfaces.C.int; begin if Locking_Policy = 'R' then Result := pthread_rwlock_destroy (L.RW'Access); else Result := pthread_mutex_destroy (L.WO'Access); end if; pragma Assert (Result = 0); end Finalize_Lock; procedure Finalize_Lock (L : not null access RTS_Lock) is Result : Interfaces.C.int; begin Result := pthread_mutex_destroy (L); pragma Assert (Result = 0); end Finalize_Lock; ---------------- -- Write_Lock -- ---------------- procedure Write_Lock (L : not null access Lock; Ceiling_Violation : out Boolean) is Result : Interfaces.C.int; begin if Locking_Policy = 'R' then Result := pthread_rwlock_wrlock (L.RW'Access); else Result := pthread_mutex_lock (L.WO'Access); end if; Ceiling_Violation := Result = EINVAL; -- Assume the cause of EINVAL is a priority ceiling violation pragma Assert (Result = 0 or else Result = EINVAL); end Write_Lock; procedure Write_Lock (L : not null access RTS_Lock; Global_Lock : Boolean := False) is Result : Interfaces.C.int; begin if not Single_Lock or else Global_Lock then Result := pthread_mutex_lock (L); pragma Assert (Result = 0); end if; end Write_Lock; procedure Write_Lock (T : Task_Id) is Result : Interfaces.C.int; begin if not Single_Lock then Result := pthread_mutex_lock (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; end Write_Lock; --------------- -- Read_Lock -- --------------- procedure Read_Lock (L : not null access Lock; Ceiling_Violation : out Boolean) is Result : Interfaces.C.int; begin if Locking_Policy = 'R' then Result := pthread_rwlock_rdlock (L.RW'Access); else Result := pthread_mutex_lock (L.WO'Access); end if; Ceiling_Violation := Result = EINVAL; -- Assume the cause of EINVAL is a priority ceiling violation pragma Assert (Result = 0 or else Result = EINVAL); end Read_Lock; ------------ -- Unlock -- ------------ procedure Unlock (L : not null access Lock) is Result : Interfaces.C.int; begin if Locking_Policy = 'R' then Result := pthread_rwlock_unlock (L.RW'Access); else Result := pthread_mutex_unlock (L.WO'Access); end if; pragma Assert (Result = 0); end Unlock; procedure Unlock (L : not null access RTS_Lock; Global_Lock : Boolean := False) is Result : Interfaces.C.int; begin if not Single_Lock or else Global_Lock then Result := pthread_mutex_unlock (L); pragma Assert (Result = 0); end if; end Unlock; procedure Unlock (T : Task_Id) is Result : Interfaces.C.int; begin if not Single_Lock then Result := pthread_mutex_unlock (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; end Unlock; ----------------- -- Set_Ceiling -- ----------------- -- Dynamic priority ceilings are not supported by the underlying system procedure Set_Ceiling (L : not null access Lock; Prio : System.Any_Priority) is pragma Unreferenced (L, Prio); begin null; end Set_Ceiling; ----------- -- Sleep -- ----------- procedure Sleep (Self_ID : Task_Id; Reason : System.Tasking.Task_States) is pragma Unreferenced (Reason); Result : Interfaces.C.int; begin pragma Assert (Self_ID = Self); Result := pthread_cond_wait (cond => Self_ID.Common.LL.CV'Access, mutex => (if Single_Lock then Single_RTS_Lock'Access else Self_ID.Common.LL.L'Access)); -- EINTR is not considered a failure pragma Assert (Result = 0 or else Result = EINTR); end Sleep; ----------------- -- Timed_Sleep -- ----------------- -- This is for use within the run-time system, so abort is -- assumed to be already deferred, and the caller should be -- holding its own ATCB lock. procedure Timed_Sleep (Self_ID : Task_Id; Time : Duration; Mode : ST.Delay_Modes; Reason : System.Tasking.Task_States; Timedout : out Boolean; Yielded : out Boolean) is pragma Unreferenced (Reason); Base_Time : constant Duration := Monotonic_Clock; Check_Time : Duration := Base_Time; Abs_Time : Duration; Request : aliased timespec; Result : Interfaces.C.int; begin Timedout := True; Yielded := False; Abs_Time := (if Mode = Relative then Duration'Min (Time, Max_Sensible_Delay) + Check_Time else Duration'Min (Check_Time + Max_Sensible_Delay, Time)); if Abs_Time > Check_Time then Request := To_Timespec (Abs_Time); loop exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level; Result := pthread_cond_timedwait (cond => Self_ID.Common.LL.CV'Access, mutex => (if Single_Lock then Single_RTS_Lock'Access else Self_ID.Common.LL.L'Access), abstime => Request'Access); Check_Time := Monotonic_Clock; exit when Abs_Time <= Check_Time or else Check_Time < Base_Time; if Result = 0 or else Result = EINTR then -- Somebody may have called Wakeup for us Timedout := False; exit; end if; pragma Assert (Result = ETIMEDOUT); end loop; end if; end Timed_Sleep; ----------------- -- Timed_Delay -- ----------------- -- This is for use in implementing delay statements, so we assume the -- caller is abort-deferred but is holding no locks. procedure Timed_Delay (Self_ID : Task_Id; Time : Duration; Mode : ST.Delay_Modes) is Base_Time : constant Duration := Monotonic_Clock; Check_Time : Duration := Base_Time; Abs_Time : Duration; Request : aliased timespec; Result : Interfaces.C.int; pragma Warnings (Off, Result); begin if Single_Lock then Lock_RTS; end if; Write_Lock (Self_ID); Abs_Time := (if Mode = Relative then Time + Check_Time else Duration'Min (Check_Time + Max_Sensible_Delay, Time)); if Abs_Time > Check_Time then Request := To_Timespec (Abs_Time); Self_ID.Common.State := Delay_Sleep; loop exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level; Result := pthread_cond_timedwait (cond => Self_ID.Common.LL.CV'Access, mutex => (if Single_Lock then Single_RTS_Lock'Access else Self_ID.Common.LL.L'Access), abstime => Request'Access); Check_Time := Monotonic_Clock; exit when Abs_Time <= Check_Time or else Check_Time < Base_Time; pragma Assert (Result = 0 or else Result = ETIMEDOUT or else Result = EINTR); end loop; Self_ID.Common.State := Runnable; end if; Unlock (Self_ID); if Single_Lock then Unlock_RTS; end if; Result := sched_yield; end Timed_Delay; --------------------- -- Monotonic_Clock -- --------------------- function Monotonic_Clock return Duration is TS : aliased timespec; Result : int; begin Result := clock_gettime (clock_id => OSC.CLOCK_RT_Ada, tp => TS'Unchecked_Access); pragma Assert (Result = 0); return To_Duration (TS); end Monotonic_Clock; ------------------- -- RT_Resolution -- ------------------- function RT_Resolution return Duration is TS : aliased timespec; Result : int; begin Result := clock_getres (OSC.CLOCK_REALTIME, TS'Unchecked_Access); pragma Assert (Result = 0); return To_Duration (TS); end RT_Resolution; ------------ -- Wakeup -- ------------ procedure Wakeup (T : Task_Id; Reason : System.Tasking.Task_States) is pragma Unreferenced (Reason); Result : Interfaces.C.int; begin Result := pthread_cond_signal (T.Common.LL.CV'Access); pragma Assert (Result = 0); end Wakeup; ----------- -- Yield -- ----------- procedure Yield (Do_Yield : Boolean := True) is Result : Interfaces.C.int; pragma Unreferenced (Result); begin if Do_Yield then Result := sched_yield; end if; end Yield; ------------------ -- Set_Priority -- ------------------ procedure Set_Priority (T : Task_Id; Prio : System.Any_Priority; Loss_Of_Inheritance : Boolean := False) is pragma Unreferenced (Loss_Of_Inheritance); Result : Interfaces.C.int; Param : aliased struct_sched_param; function Get_Policy (Prio : System.Any_Priority) return Character; pragma Import (C, Get_Policy, "__gnat_get_specific_dispatching"); -- Get priority specific dispatching policy Priority_Specific_Policy : constant Character := Get_Policy (Prio); -- Upper case first character of the policy name corresponding to the -- task as set by a Priority_Specific_Dispatching pragma. begin T.Common.Current_Priority := Prio; -- Priorities are 1 .. 99 on GNU/Linux, so we map 0 .. 98 to 1 .. 99 Param.sched_priority := Interfaces.C.int (Prio) + 1; if Dispatching_Policy = 'R' or else Priority_Specific_Policy = 'R' or else Time_Slice_Val > 0 then Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_RR, Param'Access); elsif Dispatching_Policy = 'F' or else Priority_Specific_Policy = 'F' or else Time_Slice_Val = 0 then Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_FIFO, Param'Access); else Param.sched_priority := 0; Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_OTHER, Param'Access); end if; pragma Assert (Result = 0 or else Result = EPERM); end Set_Priority; ------------------ -- Get_Priority -- ------------------ function Get_Priority (T : Task_Id) return System.Any_Priority is begin return T.Common.Current_Priority; end Get_Priority; ---------------- -- Enter_Task -- ---------------- procedure Enter_Task (Self_ID : Task_Id) is begin if Self_ID.Common.Task_Info /= null and then Self_ID.Common.Task_Info.CPU_Affinity = No_CPU then raise Invalid_CPU_Number; end if; Self_ID.Common.LL.Thread := pthread_self; Self_ID.Common.LL.LWP := lwp_self; -- Set thread name to ease debugging. If the name of the task is -- "foreign thread" (as set by Register_Foreign_Thread) retrieve -- the name of the thread and update the name of the task instead. if Self_ID.Common.Task_Image_Len = 14 and then Self_ID.Common.Task_Image (1 .. 14) = "foreign thread" then declare Thread_Name : String (1 .. 16); -- PR_GET_NAME returns a string of up to 16 bytes Len : Natural := 0; -- Length of the task name contained in Task_Name Result : int; -- Result from the prctl call begin Result := prctl (PR_GET_NAME, unsigned_long (Thread_Name'Address)); pragma Assert (Result = 0); -- Find the length of the given name for J in Thread_Name'Range loop if Thread_Name (J) /= ASCII.NUL then Len := Len + 1; else exit; end if; end loop; -- Cover the odd situtation if someone decides to change -- Parameters.Max_Task_Image_Length to less than 16 characters if Len > Parameters.Max_Task_Image_Length then Len := Parameters.Max_Task_Image_Length; end if; -- Copy the name of the thread to the task's ATCB Self_ID.Common.Task_Image (1 .. Len) := Thread_Name (1 .. Len); Self_ID.Common.Task_Image_Len := Len; end; elsif Self_ID.Common.Task_Image_Len > 0 then declare Task_Name : String (1 .. Parameters.Max_Task_Image_Length + 1); Result : int; begin Task_Name (1 .. Self_ID.Common.Task_Image_Len) := Self_ID.Common.Task_Image (1 .. Self_ID.Common.Task_Image_Len); Task_Name (Self_ID.Common.Task_Image_Len + 1) := ASCII.NUL; Result := prctl (PR_SET_NAME, unsigned_long (Task_Name'Address)); pragma Assert (Result = 0); end; end if; Specific.Set (Self_ID); if Use_Alternate_Stack and then Self_ID.Common.Task_Alternate_Stack /= Null_Address then declare Stack : aliased stack_t; Result : Interfaces.C.int; begin Stack.ss_sp := Self_ID.Common.Task_Alternate_Stack; Stack.ss_size := Alternate_Stack_Size; Stack.ss_flags := 0; Result := sigaltstack (Stack'Access, null); pragma Assert (Result = 0); end; end if; end Enter_Task; ------------------- -- Is_Valid_Task -- ------------------- function Is_Valid_Task return Boolean renames Specific.Is_Valid_Task; ----------------------------- -- Register_Foreign_Thread -- ----------------------------- function Register_Foreign_Thread return Task_Id is begin if Is_Valid_Task then return Self; else return Register_Foreign_Thread (pthread_self); end if; end Register_Foreign_Thread; -------------------- -- Initialize_TCB -- -------------------- procedure Initialize_TCB (Self_ID : Task_Id; Succeeded : out Boolean) is Cond_Attr : aliased pthread_condattr_t; Result : Interfaces.C.int; begin -- Give the task a unique serial number Self_ID.Serial_Number := Next_Serial_Number; Next_Serial_Number := Next_Serial_Number + 1; pragma Assert (Next_Serial_Number /= 0); Self_ID.Common.LL.Thread := Null_Thread_Id; if not Single_Lock then Result := pthread_mutex_init (Self_ID.Common.LL.L'Access, null); pragma Assert (Result = 0 or else Result = ENOMEM); if Result /= 0 then Succeeded := False; return; end if; end if; Result := pthread_condattr_init (Cond_Attr'Access); pragma Assert (Result = 0); Result := pthread_cond_init (Self_ID.Common.LL.CV'Access, Cond_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = 0 then Succeeded := True; else if not Single_Lock then Result := pthread_mutex_destroy (Self_ID.Common.LL.L'Access); pragma Assert (Result = 0); end if; Succeeded := False; end if; end Initialize_TCB; ----------------- -- Create_Task -- ----------------- procedure Create_Task (T : Task_Id; Wrapper : System.Address; Stack_Size : System.Parameters.Size_Type; Priority : System.Any_Priority; Succeeded : out Boolean) is Attributes : aliased pthread_attr_t; Adjusted_Stack_Size : Interfaces.C.size_t; Result : Interfaces.C.int; use type System.Multiprocessors.CPU_Range; begin -- Check whether both Dispatching_Domain and CPU are specified for -- the task, and the CPU value is not contained within the range of -- processors for the domain. if T.Common.Domain /= null and then T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU and then (T.Common.Base_CPU not in T.Common.Domain'Range or else not T.Common.Domain (T.Common.Base_CPU)) then Succeeded := False; return; end if; Adjusted_Stack_Size := Interfaces.C.size_t (Stack_Size + Alternate_Stack_Size); Result := pthread_attr_init (Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result /= 0 then Succeeded := False; return; end if; Result := pthread_attr_setstacksize (Attributes'Access, Adjusted_Stack_Size); pragma Assert (Result = 0); Result := pthread_attr_setdetachstate (Attributes'Access, PTHREAD_CREATE_DETACHED); pragma Assert (Result = 0); -- Set the required attributes for the creation of the thread -- Note: Previously, we called pthread_setaffinity_np (after thread -- creation but before thread activation) to set the affinity but it was -- not behaving as expected. Setting the required attributes for the -- creation of the thread works correctly and it is more appropriate. -- Do nothing if required support not provided by the operating system if pthread_attr_setaffinity_np'Address = System.Null_Address then null; -- Support is available elsif T.Common.Base_CPU /= System.Multiprocessors.Not_A_Specific_CPU then declare CPUs : constant size_t := Interfaces.C.size_t (System.Multiprocessors.Number_Of_CPUs); CPU_Set : constant cpu_set_t_ptr := CPU_ALLOC (CPUs); Size : constant size_t := CPU_ALLOC_SIZE (CPUs); begin CPU_ZERO (Size, CPU_Set); System.OS_Interface.CPU_SET (int (T.Common.Base_CPU), Size, CPU_Set); Result := pthread_attr_setaffinity_np (Attributes'Access, Size, CPU_Set); pragma Assert (Result = 0); CPU_FREE (CPU_Set); end; -- Handle Task_Info elsif T.Common.Task_Info /= null then Result := pthread_attr_setaffinity_np (Attributes'Access, CPU_SETSIZE / 8, T.Common.Task_Info.CPU_Affinity'Access); pragma Assert (Result = 0); -- Handle dispatching domains -- To avoid changing CPU affinities when not needed, we set the -- affinity only when assigning to a domain other than the default -- one, or when the default one has been modified. elsif T.Common.Domain /= null and then (T.Common.Domain /= ST.System_Domain or else T.Common.Domain.all /= (Multiprocessors.CPU'First .. Multiprocessors.Number_Of_CPUs => True)) then declare CPUs : constant size_t := Interfaces.C.size_t (System.Multiprocessors.Number_Of_CPUs); CPU_Set : constant cpu_set_t_ptr := CPU_ALLOC (CPUs); Size : constant size_t := CPU_ALLOC_SIZE (CPUs); begin CPU_ZERO (Size, CPU_Set); -- Set the affinity to all the processors belonging to the -- dispatching domain. for Proc in T.Common.Domain'Range loop if T.Common.Domain (Proc) then System.OS_Interface.CPU_SET (int (Proc), Size, CPU_Set); end if; end loop; Result := pthread_attr_setaffinity_np (Attributes'Access, Size, CPU_Set); pragma Assert (Result = 0); CPU_FREE (CPU_Set); end; end if; -- Since the initial signal mask of a thread is inherited from the -- creator, and the Environment task has all its signals masked, we -- do not need to manipulate caller's signal mask at this point. -- All tasks in RTS will have All_Tasks_Mask initially. -- Note: the use of Unrestricted_Access in the following call is needed -- because otherwise we have an error of getting a access-to-volatile -- value which points to a non-volatile object. But in this case it is -- safe to do this, since we know we have no problems with aliasing and -- Unrestricted_Access bypasses this check. Result := pthread_create (T.Common.LL.Thread'Unrestricted_Access, Attributes'Access, Thread_Body_Access (Wrapper), To_Address (T)); pragma Assert (Result = 0 or else Result = EAGAIN or else Result = ENOMEM); if Result /= 0 then Succeeded := False; Result := pthread_attr_destroy (Attributes'Access); pragma Assert (Result = 0); return; end if; Succeeded := True; Result := pthread_attr_destroy (Attributes'Access); pragma Assert (Result = 0); Set_Priority (T, Priority); end Create_Task; ------------------ -- Finalize_TCB -- ------------------ procedure Finalize_TCB (T : Task_Id) is Result : Interfaces.C.int; begin if not Single_Lock then Result := pthread_mutex_destroy (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; Result := pthread_cond_destroy (T.Common.LL.CV'Access); pragma Assert (Result = 0); if T.Known_Tasks_Index /= -1 then Known_Tasks (T.Known_Tasks_Index) := null; end if; ATCB_Allocation.Free_ATCB (T); end Finalize_TCB; --------------- -- Exit_Task -- --------------- procedure Exit_Task is begin Specific.Set (null); end Exit_Task; ---------------- -- Abort_Task -- ---------------- procedure Abort_Task (T : Task_Id) is Result : Interfaces.C.int; ESRCH : constant := 3; -- No such process -- It can happen that T has already vanished, in which case pthread_kill -- returns ESRCH, so we don't consider that to be an error. begin if Abort_Handler_Installed then Result := pthread_kill (T.Common.LL.Thread, Signal (System.Interrupt_Management.Abort_Task_Interrupt)); pragma Assert (Result = 0 or else Result = ESRCH); end if; end Abort_Task; ---------------- -- Initialize -- ---------------- procedure Initialize (S : in out Suspension_Object) is Result : Interfaces.C.int; begin -- Initialize internal state (always to False (RM D.10(6))) S.State := False; S.Waiting := False; -- Initialize internal mutex Result := pthread_mutex_init (S.L'Access, null); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error; end if; -- Initialize internal condition variable Result := pthread_cond_init (S.CV'Access, null); pragma Assert (Result = 0 or else Result = ENOMEM); if Result /= 0 then Result := pthread_mutex_destroy (S.L'Access); pragma Assert (Result = 0); if Result = ENOMEM then raise Storage_Error; end if; end if; end Initialize; -------------- -- Finalize -- -------------- procedure Finalize (S : in out Suspension_Object) is Result : Interfaces.C.int; begin -- Destroy internal mutex Result := pthread_mutex_destroy (S.L'Access); pragma Assert (Result = 0); -- Destroy internal condition variable Result := pthread_cond_destroy (S.CV'Access); pragma Assert (Result = 0); end Finalize; ------------------- -- Current_State -- ------------------- function Current_State (S : Suspension_Object) return Boolean is begin -- We do not want to use lock on this read operation. State is marked -- as Atomic so that we ensure that the value retrieved is correct. return S.State; end Current_State; --------------- -- Set_False -- --------------- procedure Set_False (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); S.State := False; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end Set_False; -------------- -- Set_True -- -------------- procedure Set_True (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); -- If there is already a task waiting on this suspension object then -- we resume it, leaving the state of the suspension object to False, -- as it is specified in ARM D.10 par. 9. Otherwise, it just leaves -- the state to True. if S.Waiting then S.Waiting := False; S.State := False; Result := pthread_cond_signal (S.CV'Access); pragma Assert (Result = 0); else S.State := True; end if; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end Set_True; ------------------------ -- Suspend_Until_True -- ------------------------ procedure Suspend_Until_True (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); if S.Waiting then -- Program_Error must be raised upon calling Suspend_Until_True -- if another task is already waiting on that suspension object -- (RM D.10(10)). Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; raise Program_Error; else -- Suspend the task if the state is False. Otherwise, the task -- continues its execution, and the state of the suspension object -- is set to False (ARM D.10 par. 9). if S.State then S.State := False; else S.Waiting := True; loop -- Loop in case pthread_cond_wait returns earlier than expected -- (e.g. in case of EINTR caused by a signal). This should not -- happen with the current Linux implementation of pthread, but -- POSIX does not guarantee it so this may change in future. Result := pthread_cond_wait (S.CV'Access, S.L'Access); pragma Assert (Result = 0 or else Result = EINTR); exit when not S.Waiting; end loop; end if; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end if; end Suspend_Until_True; ---------------- -- Check_Exit -- ---------------- -- Dummy version function Check_Exit (Self_ID : ST.Task_Id) return Boolean is pragma Unreferenced (Self_ID); begin return True; end Check_Exit; -------------------- -- Check_No_Locks -- -------------------- function Check_No_Locks (Self_ID : ST.Task_Id) return Boolean is pragma Unreferenced (Self_ID); begin return True; end Check_No_Locks; ---------------------- -- Environment_Task -- ---------------------- function Environment_Task return Task_Id is begin return Environment_Task_Id; end Environment_Task; ------------------ -- Suspend_Task -- ------------------ function Suspend_Task (T : ST.Task_Id; Thread_Self : Thread_Id) return Boolean is begin if T.Common.LL.Thread /= Thread_Self then return pthread_kill (T.Common.LL.Thread, SIGSTOP) = 0; else return True; end if; end Suspend_Task; ----------------- -- Resume_Task -- ----------------- function Resume_Task (T : ST.Task_Id; Thread_Self : Thread_Id) return Boolean is begin if T.Common.LL.Thread /= Thread_Self then return pthread_kill (T.Common.LL.Thread, SIGCONT) = 0; else return True; end if; end Resume_Task; -------------------- -- Stop_All_Tasks -- -------------------- procedure Stop_All_Tasks is begin null; end Stop_All_Tasks; --------------- -- Stop_Task -- --------------- function Stop_Task (T : ST.Task_Id) return Boolean is pragma Unreferenced (T); begin return False; end Stop_Task; ------------------- -- Continue_Task -- ------------------- function Continue_Task (T : ST.Task_Id) return Boolean is pragma Unreferenced (T); begin return False; end Continue_Task; ---------------- -- Initialize -- ---------------- procedure Initialize (Environment_Task : Task_Id) is act : aliased struct_sigaction; old_act : aliased struct_sigaction; Tmp_Set : aliased sigset_t; Result : Interfaces.C.int; -- Whether to use an alternate signal stack for stack overflows function State (Int : System.Interrupt_Management.Interrupt_ID) return Character; pragma Import (C, State, "__gnat_get_interrupt_state"); -- Get interrupt state. Defined in a-init.c -- The input argument is the interrupt number, -- and the result is one of the following: Default : constant Character := 's'; -- 'n' this interrupt not set by any Interrupt_State pragma -- 'u' Interrupt_State pragma set state to User -- 'r' Interrupt_State pragma set state to Runtime -- 's' Interrupt_State pragma set state to System (use "default" -- system handler) use type System.Multiprocessors.CPU_Range; begin Environment_Task_Id := Environment_Task; Interrupt_Management.Initialize; -- Prepare the set of signals that should be unblocked in all tasks Result := sigemptyset (Unblocked_Signal_Mask'Access); pragma Assert (Result = 0); for J in Interrupt_Management.Interrupt_ID loop if System.Interrupt_Management.Keep_Unmasked (J) then Result := sigaddset (Unblocked_Signal_Mask'Access, Signal (J)); pragma Assert (Result = 0); end if; end loop; Initialize_Lock (Single_RTS_Lock'Access, RTS_Lock_Level); -- Initialize the global RTS lock Specific.Initialize (Environment_Task); if Use_Alternate_Stack then Environment_Task.Common.Task_Alternate_Stack := Alternate_Stack'Address; end if; -- Make environment task known here because it doesn't go through -- Activate_Tasks, which does it for all other tasks. Known_Tasks (Known_Tasks'First) := Environment_Task; Environment_Task.Known_Tasks_Index := Known_Tasks'First; Enter_Task (Environment_Task); if State (System.Interrupt_Management.Abort_Task_Interrupt) /= Default then act.sa_flags := 0; act.sa_handler := Abort_Handler'Address; Result := sigemptyset (Tmp_Set'Access); pragma Assert (Result = 0); act.sa_mask := Tmp_Set; Result := sigaction (Signal (Interrupt_Management.Abort_Task_Interrupt), act'Unchecked_Access, old_act'Unchecked_Access); pragma Assert (Result = 0); Abort_Handler_Installed := True; end if; -- pragma CPU and dispatching domains for the environment task Set_Task_Affinity (Environment_Task); end Initialize; ----------------------- -- Set_Task_Affinity -- ----------------------- procedure Set_Task_Affinity (T : ST.Task_Id) is use type System.Multiprocessors.CPU_Range; begin -- Do nothing if there is no support for setting affinities or the -- underlying thread has not yet been created. If the thread has not -- yet been created then the proper affinity will be set during its -- creation. if pthread_setaffinity_np'Address /= System.Null_Address and then T.Common.LL.Thread /= Null_Thread_Id then declare CPUs : constant size_t := Interfaces.C.size_t (System.Multiprocessors.Number_Of_CPUs); CPU_Set : cpu_set_t_ptr := null; Size : constant size_t := CPU_ALLOC_SIZE (CPUs); Result : Interfaces.C.int; begin -- We look at the specific CPU (Base_CPU) first, then at the -- Task_Info field, and finally at the assigned dispatching -- domain, if any. if T.Common.Base_CPU /= Multiprocessors.Not_A_Specific_CPU then -- Set the affinity to an unique CPU CPU_Set := CPU_ALLOC (CPUs); System.OS_Interface.CPU_ZERO (Size, CPU_Set); System.OS_Interface.CPU_SET (int (T.Common.Base_CPU), Size, CPU_Set); -- Handle Task_Info elsif T.Common.Task_Info /= null then CPU_Set := T.Common.Task_Info.CPU_Affinity'Access; -- Handle dispatching domains elsif T.Common.Domain /= null and then (T.Common.Domain /= ST.System_Domain or else T.Common.Domain.all /= (Multiprocessors.CPU'First .. Multiprocessors.Number_Of_CPUs => True)) then -- Set the affinity to all the processors belonging to the -- dispatching domain. To avoid changing CPU affinities when -- not needed, we set the affinity only when assigning to a -- domain other than the default one, or when the default one -- has been modified. CPU_Set := CPU_ALLOC (CPUs); System.OS_Interface.CPU_ZERO (Size, CPU_Set); for Proc in T.Common.Domain'Range loop if T.Common.Domain (Proc) then System.OS_Interface.CPU_SET (int (Proc), Size, CPU_Set); end if; end loop; end if; -- We set the new affinity if needed. Otherwise, the new task -- will inherit its creator's CPU affinity mask (according to -- the documentation of pthread_setaffinity_np), which is -- consistent with Ada's required semantics. if CPU_Set /= null then Result := pthread_setaffinity_np (T.Common.LL.Thread, Size, CPU_Set); pragma Assert (Result = 0); CPU_FREE (CPU_Set); end if; end; end if; end Set_Task_Affinity; end System.Task_Primitives.Operations;
29.648184
79
0.572961
2ea4e621440bc3afb42039d70b0ed1a79ae4aefe
1,761
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_render_set_picture_filter_request_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
2
2015-11-12T11:16:20.000Z
2021-08-24T22:32:04.000Z
tier-1/xcb/source/thin/xcb-xcb_render_set_picture_filter_request_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
1
2018-06-05T05:19:35.000Z
2021-11-20T01:13:23.000Z
tier-1/xcb/source/thin/xcb-xcb_render_set_picture_filter_request_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- 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_render_set_picture_filter_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; picture : aliased xcb.xcb_render_picture_t; filter_len : aliased Interfaces.Unsigned_16; pad0 : aliased swig.int8_t_Array (0 .. 1); end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb .xcb_render_set_picture_filter_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_set_picture_filter_request_t.Item, Element_Array => xcb.xcb_render_set_picture_filter_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_render_set_picture_filter_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_set_picture_filter_request_t.Pointer, Element_Array => xcb.xcb_render_set_picture_filter_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_render_set_picture_filter_request_t;
28.403226
78
0.681431
3d455abdbe087df858455ba19e407ee8dd94b02f
349
adb
Ada
src/002/test_person2.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
src/002/test_person2.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
src/002/test_person2.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
with Person2; use Person2; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Test_Person2 is I_Am_Hugo : Person; begin Set_Name (I_Am_Hugo, To_Unbounded_String ("Hugo")); Set_Age (I_Am_Hugo, 19); if Is_Adult (I_Am_Hugo) then Put_Line ("He's adult"); end if; end Test_Person2;
24.928571
54
0.724928
1a31d376d5ba17b73b313f96156b5ba4745a2bff
2,036
adb
Ada
software/modules/sensors/barometer.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/modules/sensors/barometer.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/modules/sensors/barometer.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
with Units.Numerics; use Units.Numerics; with MS5611.Driver; use MS5611; package body Barometer with SPARK_Mode, Refined_State => (States_Beyond_Sensor_Template => null) is --overriding procedure initialize (Self : in out Barometer_Tag) is begin Driver.Init; Self.state := READY; end initialize; --overriding procedure read_Measurement(Self : in out Barometer_Tag) is have_new : Boolean; begin Driver.Update_Val (have_new); pragma Unreferenced (have_new); -- not sure what the side effects are if we only sample on new data Self.sample.data.pressure := Driver.Get_Pressure; Self.sample.data.temperature := Driver.Get_Temperature; end read_Measurement; function get_Pressure(Self : Barometer_Tag) return Pressure_Type is begin return Self.sample.data.pressure; end get_Pressure; function get_Temperature(Self : Barometer_Tag) return Temperature_Type is begin return Self.sample.data.temperature; end get_Temperature; -- international altitude equation function Altitude(pressure : Pressure_Type) return Length_Type is subtype Temperature_Gradient_Type is Unit_Type with Dimension => (Kelvin => 1, Meter => -1, others => 0); t_ref : constant Temperature_Type := 288.15 * Kelvin; t_coeff : constant Temperature_Gradient_Type := 6.5 * Milli * Kelvin / Meter; p_ref : constant Pressure_Type := 1013.25 * Hecto * Pascal; exp_frac : constant Float := 1.0 / 5.255; h0 : constant Length_Type := t_ref / t_coeff; prel : constant Base_Unit_Type := Base_Unit_Type(pressure / P_Ref); comp : constant Base_Unit_Type := prel**exp_frac; -- TODO: ovf check might fail neg : constant Base_Unit_Type := 1.0 - comp; begin return h0 * Unit_Type(Neg); -- FIXME: overflow check might fail end Altitude; function get_Altitude(Self : Barometer_Tag) return Length_Type is begin return Altitude(Self.sample.data.pressure); end get_Altitude; end Barometer;
35.719298
105
0.705305
583333a75c27a94a6bbc6583e7677e0f65c9d6f8
5,748
ads
Ada
source/xml/dom/matreshka-dom_processing_instructions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/xml/dom/matreshka-dom_processing_instructions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/xml/dom/matreshka-dom_processing_instructions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with League.Strings; with Matreshka.DOM_Nodes; with XML.DOM.Processing_Instructions; with XML.DOM.Visitors; package Matreshka.DOM_Processing_Instructions is pragma Preelaborate; type Processing_Instruction_Node is new Matreshka.DOM_Nodes.Node and XML.DOM.Processing_Instructions.DOM_Processing_Instruction with null record; overriding procedure Enter_Node (Self : not null access Processing_Instruction_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding function Get_Data (Self : not null access constant Processing_Instruction_Node) return League.Strings.Universal_String; overriding function Get_Node_Type (Self : not null access constant Processing_Instruction_Node) return XML.DOM.Node_Type; overriding function Get_Node_Value (Self : not null access constant Processing_Instruction_Node) return League.Strings.Universal_String renames Get_Data; overriding function Get_Target (Self : not null access constant Processing_Instruction_Node) return League.Strings.Universal_String; overriding function Get_Node_Name (Self : not null access constant Processing_Instruction_Node) return League.Strings.Universal_String renames Get_Target; overriding procedure Set_Data (Self : not null access Processing_Instruction_Node; New_Data : League.Strings.Universal_String); overriding procedure Set_Node_Value (Self : not null access Processing_Instruction_Node; New_Value : League.Strings.Universal_String) renames Set_Data; overriding procedure Leave_Node (Self : not null access Processing_Instruction_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding procedure Visit_Node (Self : not null access Processing_Instruction_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of iterator interface. end Matreshka.DOM_Processing_Instructions;
54.226415
78
0.547843
1acd449df43d3900c56d27c11940c72117afe600
338
adb
Ada
src/adacar-parametros.adb
Asier98/AdaCar
1faaed09842c0c3573f359f049f559d97ccfe454
[ "MIT" ]
null
null
null
src/adacar-parametros.adb
Asier98/AdaCar
1faaed09842c0c3573f359f049f559d97ccfe454
[ "MIT" ]
null
null
null
src/adacar-parametros.adb
Asier98/AdaCar
1faaed09842c0c3573f359f049f559d97ccfe454
[ "MIT" ]
null
null
null
pragma Ada_2012; package body AdaCar.Parametros is --------------------------- -- Convertidor_Distancia -- --------------------------- function Convertidor_Distancia (Valor : Unidades_AI) return Unidades_Distancia is begin return Valor*Factor_Distancia; end Convertidor_Distancia; end AdaCar.Parametros;
21.125
52
0.621302
226077a4ac2d6653f461812f734a5dd94fa6ff44
24,575
adb
Ada
makedict.adb
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
4
2016-10-30T13:30:55.000Z
2021-09-25T21:29:17.000Z
makedict.adb
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
1
2020-09-29T02:56:42.000Z
2020-10-06T18:50:42.000Z
makedict.adb
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
7
2016-07-07T20:40:08.000Z
2021-10-18T21:11:06.000Z
with TEXT_IO; with STRINGS_PACKAGE; use STRINGS_PACKAGE; with LATIN_FILE_NAMES; use LATIN_FILE_NAMES; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; with LINE_STUFF; use LINE_STUFF; procedure MAKEDICT is package INTEGER_IO is new TEXT_IO.INTEGER_IO(INTEGER); use TEXT_IO; use STEM_KEY_TYPE_IO; use DICTIONARY_ENTRY_IO; use PART_ENTRY_IO; use KIND_ENTRY_IO; use TRANSLATION_RECORD_IO; use AGE_TYPE_IO; use AREA_TYPE_IO; use GEO_TYPE_IO; use FREQUENCY_TYPE_IO; use SOURCE_TYPE_IO; use DICT_IO; PORTING : constant BOOLEAN := TRUE; BE_VE : VERB_ENTRY := (CON => (5, 1), KIND => TO_BE); D_K : DICTIONARY_KIND := XXX; -- ###################### START_STEM_1 : constant := 1; START_STEM_2 : constant := START_STEM_1 + MAX_STEM_SIZE + 1; START_STEM_3 : constant := START_STEM_2 + MAX_STEM_SIZE + 1; START_STEM_4 : constant := START_STEM_3 + MAX_STEM_SIZE + 1; START_PART : constant := START_STEM_4 + MAX_STEM_SIZE + 1; START_TRAN : constant INTEGER := START_PART + INTEGER(PART_ENTRY_IO.DEFAULT_WIDTH + 1); FINISH_LINE : constant INTEGER := START_TRAN + TRANSLATION_RECORD_IO.DEFAULT_WIDTH - 1; DICTFILE : DICT_IO.FILE_TYPE; INPUT, STEMLIST : TEXT_IO.FILE_TYPE; DE : DICTIONARY_ENTRY; S, LINE, BLANK_LINE : STRING(1..400) := (others => ' '); L, LL, LAST : INTEGER := 0; J : DICT_IO.COUNT := 0; MEAN_TO_BE : constant MEANING_TYPE := HEAD("be; exist; (also used to form verb perfect passive tenses)" & " with NOM PERF PPL", MAX_MEANING_SIZE); begin PUT_LINE( "Takes a DICTLINE.D_K and produces a STEMLIST.D_K and DICTFILE.D_K"); PUT_LINE("This version inserts ESSE when D_K = GEN"); PUT("What dictionary to list, GENERAL or SPECIAL (Reply G or S) =>"); GET_LINE(LINE, LAST); if LAST > 0 then if TRIM(LINE(1..LAST))(1) = 'G' or else TRIM(LINE(1..LAST))(1) = 'g' then D_K := GENERAL; elsif TRIM(LINE(1..LAST))(1) = 'S' or else TRIM(LINE(1..LAST))(1) = 's' then D_K := SPECIAL; else PUT_LINE("No such dictionary"); raise TEXT_IO.DATA_ERROR; end if; end if; OPEN(INPUT, IN_FILE, ADD_FILE_NAME_EXTENSION(DICT_LINE_NAME, DICTIONARY_KIND'IMAGE(D_K))); if not PORTING then CREATE(STEMLIST, OUT_FILE, ADD_FILE_NAME_EXTENSION(STEM_LIST_NAME, DICTIONARY_KIND'IMAGE(D_K))); end if; CREATE(DICTFILE, OUT_FILE, ADD_FILE_NAME_EXTENSION(DICT_FILE_NAME, DICTIONARY_KIND'IMAGE(D_K))); -- if D_K = GENERAL then -- PUT_LINE("WAKEDICT reads DICTLINE.d_k and produces DICTFILE.d_k"); -- PUT_LINE("WAKEDICT also produces STEMLIST.d_k"); -- PUT_LINE("This version inserts ESSE when d_k = GEN"); -- -- J := J + 1; -- -- -- First construct ESSE -- DE.STEMS(1) := "s "; -- DE.STEMS(2) := " "; -- DE.STEMS(3) := "fu "; -- DE.STEMS(4) := "fut "; -- --DE.PART := (PART => V, CON => (5, 10)); -- --DE.PART := (V, ((5, 1))); -- DE.PART := (V, BE_VE); -- DE.KIND := (V, TO_BE); -- DE.TRAN := (X, X, X, A, X); -- DE.MEAN := MEAN_TO_BE; -- -- -- if not PORTING then -- -- Load ESSE -- for I in STEM_KEY_TYPE range 1..4 loop -- PUT(STEMLIST, DE.STEMS(I)); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); -- SET_COL(STEMLIST, 45); -- PUT(STEMLIST, I, 2); PUT(STEMLIST, ' '); -- -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); -- SET_COL(STEMLIST, 50); -- INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); -- end loop; -- end if; -- -- WRITE(DICTFILE, DE, J); -- J = 1 -- end if; -- -- Now do the rest OVER_LINES: while not END_OF_FILE(INPUT) loop S := BLANK_LINE; GET_LINE(INPUT, S, LAST); if TRIM(S(1..LAST)) /= "" then L := 0; FORM_DE: begin DE.STEMS(1) := S(START_STEM_1..MAX_STEM_SIZE); --NEW_LINE; PUT(DE.STEMS(1)); DE.STEMS(2) := S(START_STEM_2..START_STEM_2+MAX_STEM_SIZE-1); DE.STEMS(3) := S(START_STEM_3..START_STEM_3+MAX_STEM_SIZE-1); DE.STEMS(4) := S(START_STEM_4..START_STEM_4+MAX_STEM_SIZE-1); --PUT('#'); PUT(INTEGER'IMAGE(L)); PUT(INTEGER'IMAGE(LAST)); --PUT('@'); GET(S(START_PART..LAST), DE.PART, L); --PUT('%'); PUT(INTEGER'IMAGE(L)); PUT(INTEGER'IMAGE(LAST)); --PUT('&'); PUT(S(L+1..LAST)); PUT('3'); --GET(S(L+1..LAST), DE.PART.POFS, DE.PART.POFS.KIND, L); GET(S(L+1..LAST), DE.TRAN.AGE, L); GET(S(L+1..LAST), DE.TRAN.AREA, L); GET(S(L+1..LAST), DE.TRAN.GEO, L); GET(S(L+1..LAST), DE.TRAN.FREQ, L); GET(S(L+1..LAST), DE.TRAN.SOURCE, L); DE.MEAN := HEAD(S(L+2..LAST), MAX_MEANING_SIZE); -- Note that this allows initial blanks -- L+2 skips over the SPACER, required because this is STRING, not ENUM exception when others => NEW_LINE; PUT_LINE("Exception"); PUT_LINE(S(1..LAST)); INTEGER_IO.PUT(INTEGER(J)); NEW_LINE; PUT(DE); NEW_LINE; end FORM_DE; J := J + 1; WRITE(DICTFILE, DE, J); if not PORTING then if DE.PART.POFS = N and then DE.STEMS(1) = DE.STEMS(2) and then DE.STEMS(1) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 0, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); -- if DE.STEMS(3) /= NULL_STEM_TYPE and DE.STEMS(3) /= ZZZ_STEM then -- PUT(STEMLIST, DE.STEMS(3)); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); -- SET_COL(STEMLIST, 45); -- INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); ---- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); ---- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); ---- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); ---- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); ---- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); -- INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); -- end if; -- if DE.STEMS(4) /= NULL_STEM_TYPE and DE.STEMS(4) /= ZZZ_STEM then -- PUT(STEMLIST, DE.STEMS(4)); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); -- SET_COL(STEMLIST, 45); -- INTEGER_IO.PUT(STEMLIST, 4, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); -- INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); -- end if; elsif DE.PART.POFS = ADJ and then DE.STEMS(1) = DE.STEMS(2) and then DE.STEMS(1) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 0, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); if DE.STEMS(3) /= NULL_STEM_TYPE and DE.STEMS(3) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(3)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end if; if DE.STEMS(4) /= NULL_STEM_TYPE and DE.STEMS(4) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(4)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 4, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end if; elsif DE.PART.POFS = ADJ and then -- POS taken care of by position DE.PART.ADJ.CO = COMP then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = ADJ and then DE.PART.ADJ.CO = SUPER then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 4, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = ADV and then -- POS taken care of by position DE.PART.ADV.CO = COMP then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 2, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = ADV and then DE.PART.ADV.CO = SUPER then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = V and then DE.STEMS(1) = DE.STEMS(2) and then DE.STEMS(1) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 0, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); if DE.STEMS(3) /= NULL_STEM_TYPE and DE.STEMS(3) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(3)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end if; if DE.STEMS(4) /= NULL_STEM_TYPE and DE.STEMS(4) /= ZZZ_STEM then PUT(STEMLIST, DE.STEMS(4)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 4, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end if; elsif DE.PART.POFS = NUM and then DE.PART.NUM.SORT = CARD then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 1, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = NUM and then DE.PART.NUM.SORT = ORD then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 2, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = NUM and then DE.PART.NUM.SORT = DIST then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 3, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); elsif DE.PART.POFS = NUM and then DE.PART.NUM.SORT = ADVERB then PUT(STEMLIST, DE.STEMS(1)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); INTEGER_IO.PUT(STEMLIST, 4, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); else for I in STEM_KEY_TYPE range 1..4 loop if DE.STEMS(I) /= ZZZ_STEM and DE.STEMS(I) /= NULL_STEM_TYPE then PUT(STEMLIST, DE.STEMS(I)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); PUT(STEMLIST, I, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end if; end loop; end if; end if; -- PORTING end if; end loop OVER_LINES; if D_K = GENERAL then J := J + 1; -- First construct ESSE DE.STEMS(1) := "s "; DE.STEMS(2) := " "; DE.STEMS(3) := "fu "; DE.STEMS(4) := "fut "; --DE.PART := (PART => V, CON => (5, 10)); --DE.PART := (V, ((5, 1))); DE.PART := (V, BE_VE); --DE.KIND := (V, TO_BE); DE.TRAN := (X, X, X, A, X); DE.MEAN := MEAN_TO_BE; if not PORTING then -- Load ESSE for I in STEM_KEY_TYPE range 1..4 loop PUT(STEMLIST, DE.STEMS(I)); PUT(STEMLIST, ' '); PUT(STEMLIST, DE.PART); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 45); PUT(STEMLIST, I, 2); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AGE); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.AREA); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.GEO); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.FREQ); PUT(STEMLIST, ' '); -- PUT(STEMLIST, DE.TRAN.SOURCE); PUT(STEMLIST, ' '); SET_COL(STEMLIST, 50); INTEGER_IO.PUT(STEMLIST, INTEGER(J), 6); NEW_LINE(STEMLIST); end loop; end if; WRITE(DICTFILE, DE, J); end if; if not PORTING then CLOSE(STEMLIST); end if; exception when TEXT_IO.DATA_ERROR => null; when others => PUT_LINE(S(1..LAST)); INTEGER_IO.PUT(INTEGER(J)); NEW_LINE; CLOSE(STEMLIST); end MAKEDICT;
51.304802
93
0.445412
c7d6bf147f4ca8c1a63b67f744e704de61c4122a
3,421
ads
Ada
source/web/tools/a2js/properties-definitions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/web/tools/a2js/properties-definitions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/tools/a2js/properties-definitions.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015, Vadim Godunko <[email protected]> -- -- 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 Properties.Definitions is pragma Pure; end Properties.Definitions;
68.42
78
0.392283
137494c9c6dc171847b58ab7b87793705af896b0
3,077
adb
Ada
ordinary/predictor_1_demo_1.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
ordinary/predictor_1_demo_1.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
ordinary/predictor_1_demo_1.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
with Predictor_1; with Text_IO; use Text_IO; with Sinu; with Ada.Numerics.Generic_Elementary_Functions; procedure predictor_1_demo_1 is type Real is digits 15; package Sinusoid is new Sinu (Real); use Sinusoid; package Sin_Integrate is new Predictor_1 (Real, Dyn_Index, Dynamical_Variable, F, "*", "+", "-", Norm); use Sin_Integrate; package math is new Ada.Numerics.Generic_Elementary_Functions(Real); use math; package rio is new Float_IO(Real); use rio; package iio is new Integer_IO(Step_Integer); use iio; Initial_Condition : Dynamical_Variable; Previous_Y, Newest_Y : Dynamical_Variable; Final_Time, Starting_Time : Real; Previous_t, Newest_t : Real; Delta_t : Real; Steps : Step_Integer; begin new_line; put ("Test integrates an equation whose solution is Sin(t)."); new_line; put ("The equation is (d/dt)**2 (Y) = -Y. (Y = Sin(t) has a period of 2*Pi.)"); new_line(2); put ("Enter number of time steps (try 1024): "); get (Steps); new_line; put ("Every time the integration advances this number of steps, ERROR is printed."); new_line; -- choose initial conditions Initial_Condition(0) := 0.0; Initial_Condition(1) := 1.0; Starting_Time := 0.0; Final_Time := 64.0; Previous_Y := Initial_Condition; Previous_t := Starting_Time; Delta_t := Final_Time - Starting_Time; for i in 1..28 loop Newest_t := Previous_t + Delta_t; Integrate (Final_State => Newest_Y, -- the result (output). Final_Time => Newest_t, -- integrate out to here (input). Initial_State => Previous_Y, -- input an initial condition (input). Initial_Time => Previous_t, -- start integrating here (input). No_Of_Steps => Steps); -- use this no_of_steps Previous_Y := Newest_Y; Previous_t := Newest_t; --put ("Final value of numerically integrated sin: "); --put (Newest_Y(0), Aft => 7); new_line; put ("Time = t ="); put (Newest_t, Aft => 7); put (", Error = Sin(t)-Y = "); put (Sin (Newest_t) - Newest_Y(0), Aft => 7); end loop; new_line(2); put ("Total elapsed time is:"); put (Newest_t / (2.0*3.14159266), Aft => 7); put (" in units of 2 pi."); new_line(2); put ("Final Remark: the Predictor-Corrector does 2 evaluations of F(t, Y)"); new_line; put ("each time step. The Runge-Kutta does 13. So the Predictor-Corrector"); new_line; put ("is the more efficient if F(t, Y) is slow to evaluate. The gravitational"); new_line; put ("N-body problem (large N) is a classic example. On the other hand, if you"); new_line; put ("want to use a large time step (and if the larger error is unimportant)"); new_line; put ("then the Runge-Kutta may be better. The stability of the Predictor-"); new_line; put ("Corrector is so poor that it restricts you to small time steps."); new_line(2); end;
29.586538
87
0.624309
c76e5fdb80201c646acb876d251885478b6c3fb4
224
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const2_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const2_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const2_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
package Deferred_Const2_Pkg is I : Integer := 16#20_3A_2D_28#; pragma Warnings (Off); S : constant string(1..4); for S'address use I'address; pragma Import (Ada, S); procedure Dummy; end Deferred_Const2_Pkg;
17.230769
33
0.700893
2956945b0ee48a330e972634cc7d2c715be50cd5
10,715
adb
Ada
src/security-contexts.adb
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
src/security-contexts.adb
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
src/security-contexts.adb
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- security-contexts -- Context to provide security information and verify permissions -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- 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.Task_Attributes; with Ada.Unchecked_Deallocation; package body Security.Contexts is use type Security.Policies.Policy_Context_Array_Access; use type Security.Policies.Policy_Access; use type Security.Policies.Policy_Context_Access; package Task_Context is new Ada.Task_Attributes (Security_Context_Access, null); procedure Free is new Ada.Unchecked_Deallocation (Object => Security.Policies.Policy_Context'Class, Name => Security.Policies.Policy_Context_Access); -- ------------------------------ -- Get the application associated with the current service operation. -- ------------------------------ function Get_User_Principal (Context : in Security_Context'Class) return Security.Principal_Access is begin return Context.Principal; end Get_User_Principal; -- ------------------------------ -- Get the permission manager. -- ------------------------------ function Get_Permission_Manager (Context : in Security_Context'Class) return Security.Policies.Policy_Manager_Access is begin return Context.Manager; end Get_Permission_Manager; -- ------------------------------ -- Get the policy with the name <b>Name</b> registered in the policy manager. -- Returns null if there is no such policy. -- ------------------------------ function Get_Policy (Context : in Security_Context'Class; Name : in String) return Security.Policies.Policy_Access is use type Security.Policies.Policy_Manager_Access; begin if Context.Manager = null then return null; else return Context.Manager.Get_Policy (Name); end if; end Get_Policy; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- Returns True if the permission is granted. -- ------------------------------ function Has_Permission (Context : in Security_Context; Permission : in Permissions.Permission_Index) return Boolean is use type Security.Policies.Policy_Manager_Access; begin if Context.Manager = null then return False; end if; declare Perm : Security.Permissions.Permission (Permission); begin return Context.Manager.Has_Permission (Context, Perm); end; end Has_Permission; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- Returns True if the permission is granted. -- ------------------------------ function Has_Permission (Context : in Security_Context; Permission : in String) return Boolean is Index : constant Permissions.Permission_Index := Permissions.Get_Permission_Index (Permission); begin return Security_Context'Class (Context).Has_Permission (Index); end Has_Permission; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- Returns True if the permission is granted. -- ------------------------------ function Has_Permission (Context : in Security_Context; Permission : in Permissions.Permission'Class) return Boolean is use type Security.Policies.Policy_Manager_Access; begin if Context.Manager = null then return False; else return Context.Manager.Has_Permission (Context, Permission); end if; end Has_Permission; -- ------------------------------ -- Initializes the service context. By creating the <b>Security_Context</b> variable, -- the instance will be associated with the current task attribute. If the current task -- already has a security context, the new security context is installed, the old one -- being kept. -- ------------------------------ overriding procedure Initialize (Context : in out Security_Context) is begin Context.Previous := Task_Context.Value; Task_Context.Set_Value (Context'Unchecked_Access); end Initialize; -- ------------------------------ -- Finalize the security context releases any object. The previous security context is -- restored to the current task attribute. -- ------------------------------ overriding procedure Finalize (Context : in out Security_Context) is procedure Free is new Ada.Unchecked_Deallocation (Object => Security.Policies.Policy_Context_Array, Name => Security.Policies.Policy_Context_Array_Access); begin Task_Context.Set_Value (Context.Previous); if Context.Contexts /= null then for I in Context.Contexts'Range loop Free (Context.Contexts (I)); end loop; Free (Context.Contexts); end if; end Finalize; -- ------------------------------ -- Set a policy context information represented by <b>Value</b> and associated with -- the policy index <b>Policy</b>. -- ------------------------------ procedure Set_Policy_Context (Context : in out Security_Context; Policy : in Security.Policies.Policy_Access; Value : in Security.Policies.Policy_Context_Access) is begin if Context.Contexts = null then Context.Contexts := Context.Manager.Create_Policy_Contexts; end if; Free (Context.Contexts (Policy.Get_Policy_Index)); Context.Contexts (Policy.Get_Policy_Index) := Value; end Set_Policy_Context; -- ------------------------------ -- Get the policy context information registered for the given security policy in the security -- context <b>Context</b>. -- Raises <b>Invalid_Context</b> if there is no such information. -- Raises <b>Invalid_Policy</b> if the policy was not set. -- ------------------------------ function Get_Policy_Context (Context : in Security_Context; Policy : in Security.Policies.Policy_Access) return Security.Policies.Policy_Context_Access is Result : Security.Policies.Policy_Context_Access; begin if Policy = null then raise Invalid_Policy; end if; if Context.Contexts = null then raise Invalid_Context; end if; Result := Context.Contexts (Policy.Get_Policy_Index); return Result; end Get_Policy_Context; -- ------------------------------ -- Returns True if a context information was registered for the security policy. -- ------------------------------ function Has_Policy_Context (Context : in Security_Context; Policy : in Security.Policies.Policy_Access) return Boolean is begin return Policy /= null and then Context.Contexts /= null and then Context.Contexts (Policy.Get_Policy_Index) /= null; end Has_Policy_Context; -- ------------------------------ -- Set the current application and user context. -- ------------------------------ procedure Set_Context (Context : in out Security_Context; Manager : in Security.Policies.Policy_Manager_Access; Principal : in Security.Principal_Access) is begin Context.Manager := Manager; Context.Principal := Principal; end Set_Context; -- ------------------------------ -- Get the current security context. -- Returns null if the current thread is not associated with any security context. -- ------------------------------ function Current return Security_Context_Access is begin return Task_Context.Value; end Current; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- ------------------------------ function Has_Permission (Permission : in Permissions.Permission_Index) return Boolean is Context : constant Security_Context_Access := Current; begin if Context = null then return False; else return Context.Has_Permission (Permission); end if; end Has_Permission; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- ------------------------------ function Has_Permission (Permission : in String) return Boolean is Context : constant Security_Context_Access := Current; begin if Context = null then return False; else return Context.Has_Permission (Permission); end if; end Has_Permission; -- ------------------------------ -- Check if the permission identified by <b>Permission</b> is allowed according to -- the current security context. -- ------------------------------ function Has_Permission (Permission : in Permissions.Permission'Class) return Boolean is Context : constant Security_Context_Access := Current; begin if Context = null then return False; else return Context.Has_Permission (Permission); end if; end Has_Permission; end Security.Contexts;
41.531008
99
0.580308
13579d3f3a3596d65c7ed9703da661bdbe885c23
1,145
adb
Ada
orka/src/orka/implementation/orka-atomics.adb
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
52
2016-07-30T23:00:28.000Z
2022-02-05T11:54:55.000Z
orka/src/orka/implementation/orka-atomics.adb
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
79
2016-08-01T18:36:48.000Z
2022-02-27T12:14:20.000Z
orka/src/orka/implementation/orka-atomics.adb
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
4
2018-04-28T22:36:26.000Z
2020-11-14T23:00:29.000Z
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <[email protected]> -- -- 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 Orka.Atomics is protected body Counter is procedure Add (Addition : Natural) is begin Value := Value + Addition; end Add; procedure Increment is begin Value := Value + 1; end Increment; procedure Decrement (Zero : out Boolean) is begin Value := Value - 1; Zero := Value = 0; end Decrement; function Count return Natural is (Value); end Counter; end Orka.Atomics;
28.625
76
0.664629
2f567e7b3dbc2eb366e1566fe6073a0bd0b4139f
4,695
adb
Ada
lib/intcode.adb
jweese/Ada_Vent_19
1d31e5b38ae1ed44aafcd1f9347f9e914fe7165d
[ "MIT" ]
1
2019-12-07T19:20:12.000Z
2019-12-07T19:20:12.000Z
lib/intcode.adb
jweese/Ada_Vent_19
1d31e5b38ae1ed44aafcd1f9347f9e914fe7165d
[ "MIT" ]
null
null
null
lib/intcode.adb
jweese/Ada_Vent_19
1d31e5b38ae1ed44aafcd1f9347f9e914fe7165d
[ "MIT" ]
null
null
null
with Ada.Text_IO; with Intcode.Op; use Intcode.Op; package body Intcode is protected body Port is entry Put(I: in Memory.Value) when Status /= Full is begin if Status = Empty then Value := I; Status := Full; end if; end Put; entry Get(X: out Maybe_Memory_Value) when Status /= Empty is begin case Status is when Full => X := (Present => True, Value => Value); Status := Empty; when others => X := (Present => False); end case; end Get; entry Close when Status /= Full is begin Status := Closed; end Close; end Port; task body Executor is PC: Memory.Address := 0; Relative_Base: Memory.Value := 0; -- physical layer of memory: Peek/Poke function Peek(From: Memory.Address) return Memory.Value is begin if From in AM.Mem'Range then return AM.Mem(From); elsif AM.Aux_Mem.Contains(From) then return AM.Aux_Mem.Element(From); else return 0; end if; end Peek; procedure Poke(To: Memory.Address; Value: Memory.Value) is begin if To in AM.Mem'Range then AM.Mem(To) := Value; elsif AM.Aux_Mem.Contains(To) then AM.Aux_Mem.Replace(To, Value); else AM.Aux_Mem.Insert(To, Value); end if; end Poke; -- logical layer of memory: Read/Store function Read( From: Memory.Address; Mode: Parameter_Mode) return Memory.Value is V: constant Memory.Value := Peek(From); begin return (case Mode is when Immediate => V, when Position => Peek(Memory.Address(V)), when Relative => Peek(Memory.Address(Relative_Base + V))); end Read; procedure Store( To: Memory.Address; Mode: Parameter_Mode; Value: Memory.Value) is V: constant Memory.Value := Peek(To); M: constant Memory.Address := (case Mode is when Position => Memory.Address(V), when Relative => Memory.Address(Relative_Base + V), when Immediate => raise Constraint_Error with "store to relative"); begin Poke(M, Value); end Store; begin loop declare Curr_Op: constant Schema := Decode(AM.Mem(PC)); Params: array (Curr_Op.Params'Range) of Memory.Value; Dst: constant Memory.Address := PC + Memory.Address(Params'Last); M: constant Parameter_Mode := Curr_Op.Params(Params'Last); Recv: Maybe_Memory_Value; begin for I in Params'Range loop Params(I) := Read( From => PC + Memory.Address(I), Mode => Curr_Op.Params(I)); end loop; PC := PC + Params'Length + 1; -- Ada.Text_IO.Put_Line(Curr_Op.Instruction'Image); case Curr_Op.Instruction is when Halt => exit; -- Arithmetic when Add => Store( To => Dst, Mode => M, Value => Params(1) + Params(2)); when Mul => Store( To => Dst, Mode => M, Value => Params(1) * Params(2)); -- I/O when Get => AM.Input.Get(Recv); if Recv.Present then Store(To => Dst, Mode => M, Value => Recv.Value); end if; when Put => AM.Output.Put(Params(1)); -- Transfer of Control when Jz => if Params(1) = 0 then PC := Memory.Address(Params(2)); end if; when Jnz => if Params(1) /= 0 then PC := Memory.Address(Params(2)); end if; -- Modify relative base when Mrb => Relative_Base := Relative_Base + Params(1); -- Comparison when Lt => Store( To => Dst, Mode => M, Value => (if Params(1) < Params(2) then 1 else 0)); when Eq => Store( To => Dst, Mode => M, Value => (if Params(1) = Params(2) then 1 else 0)); end case; end; end loop; AM.Input.Close; AM.Output.Close; end Executor; end Intcode;
30.686275
77
0.472417
c73616c980798ae811f8a2b9b26676f9e407b2b7
158
adb
Ada
llvm-2.9/test/FrontendAda/array_size.adb
DependableSystemsLab/Trident
90b38ab3ce8b7ad743986ddf66eaea7d20d921cb
[ "MIT" ]
5
2018-09-23T05:44:31.000Z
2021-09-08T18:52:37.000Z
llvm-2.9/test/FrontendAda/array_size.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
4
2019-06-13T16:27:31.000Z
2021-06-07T07:24:31.000Z
llvm-2.9/test/FrontendAda/array_size.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
4
2018-09-23T05:44:33.000Z
2021-04-20T00:29:11.000Z
-- RUN: %llvmgcc -S %s procedure Array_Size is subtype S is String (1 .. 2); type R is record A : S; end record; X : R; begin null; end;
14.363636
32
0.563291
29037aee59b81ef21d480516c6d45c165d4c38c5
4,495
ads
Ada
source/nodes/program-nodes-derived_types.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-derived_types.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-derived_types.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; with Program.Elements.Derived_Types; with Program.Element_Visitors; package Program.Nodes.Derived_Types is pragma Preelaborate; type Derived_Type is new Program.Nodes.Node and Program.Elements.Derived_Types.Derived_Type and Program.Elements.Derived_Types.Derived_Type_Text with private; function Create (Abstract_Token : Program.Lexical_Elements.Lexical_Element_Access; Limited_Token : Program.Lexical_Elements.Lexical_Element_Access; New_Token : not null Program.Lexical_Elements.Lexical_Element_Access; Parent : not null Program.Elements.Subtype_Indications .Subtype_Indication_Access) return Derived_Type; type Implicit_Derived_Type is new Program.Nodes.Node and Program.Elements.Derived_Types.Derived_Type with private; function Create (Parent : not null Program.Elements.Subtype_Indications .Subtype_Indication_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_Abstract : Boolean := False; Has_Limited : Boolean := False) return Implicit_Derived_Type with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Derived_Type is abstract new Program.Nodes.Node and Program.Elements.Derived_Types.Derived_Type with record Parent : not null Program.Elements.Subtype_Indications .Subtype_Indication_Access; end record; procedure Initialize (Self : in out Base_Derived_Type'Class); overriding procedure Visit (Self : not null access Base_Derived_Type; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Parent (Self : Base_Derived_Type) return not null Program.Elements.Subtype_Indications .Subtype_Indication_Access; overriding function Is_Derived_Type (Self : Base_Derived_Type) return Boolean; overriding function Is_Type_Definition (Self : Base_Derived_Type) return Boolean; overriding function Is_Definition (Self : Base_Derived_Type) return Boolean; type Derived_Type is new Base_Derived_Type and Program.Elements.Derived_Types.Derived_Type_Text with record Abstract_Token : Program.Lexical_Elements.Lexical_Element_Access; Limited_Token : Program.Lexical_Elements.Lexical_Element_Access; New_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_Derived_Type_Text (Self : in out Derived_Type) return Program.Elements.Derived_Types.Derived_Type_Text_Access; overriding function Abstract_Token (Self : Derived_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Limited_Token (Self : Derived_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function New_Token (Self : Derived_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Has_Abstract (Self : Derived_Type) return Boolean; overriding function Has_Limited (Self : Derived_Type) return Boolean; type Implicit_Derived_Type is new Base_Derived_Type with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; Has_Abstract : Boolean; Has_Limited : Boolean; end record; overriding function To_Derived_Type_Text (Self : in out Implicit_Derived_Type) return Program.Elements.Derived_Types.Derived_Type_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Derived_Type) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Derived_Type) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Derived_Type) return Boolean; overriding function Has_Abstract (Self : Implicit_Derived_Type) return Boolean; overriding function Has_Limited (Self : Implicit_Derived_Type) return Boolean; end Program.Nodes.Derived_Types;
32.572464
79
0.729477
067d38b805f777154967a63b6fd4d8cd973704af
2,184
ads
Ada
software/libsparklemma/src/spark.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/libsparklemma/src/spark.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/libsparklemma/src/spark.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
------------------------------------------------------------------------------ -- -- -- SPARK LIBRARY COMPONENTS -- -- -- -- S P A R K -- -- -- -- S p e c -- -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- SPARK 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. SPARK 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/>. -- -- -- ------------------------------------------------------------------------------ package SPARK with SPARK_Mode, Pure is end SPARK;
70.451613
78
0.348443
132b52738688e75dbe2c0623c92c1d616a19917e
4,413
ads
Ada
source/amf/uml/amf-standard_profile_l2-entities.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-standard_profile_l2-entities.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-standard_profile_l2-entities.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- A persistent information component representing a business concept. ------------------------------------------------------------------------------ limited with AMF.UML.Components; package AMF.Standard_Profile_L2.Entities is pragma Preelaborate; type Standard_Profile_L2_Entity is limited interface; type Standard_Profile_L2_Entity_Access is access all Standard_Profile_L2_Entity'Class; for Standard_Profile_L2_Entity_Access'Storage_Size use 0; not overriding function Get_Base_Component (Self : not null access constant Standard_Profile_L2_Entity) return AMF.UML.Components.UML_Component_Access is abstract; -- Getter of Entity::base_Component. -- not overriding procedure Set_Base_Component (Self : not null access Standard_Profile_L2_Entity; To : AMF.UML.Components.UML_Component_Access) is abstract; -- Setter of Entity::base_Component. -- end AMF.Standard_Profile_L2.Entities;
60.452055
78
0.455926
1a5b1467885a66b68de2e4b3c4aa9bacde2873a0
137,914
ads
Ada
examples/src/game_assets-tileset_collisions.ads
Fabien-Chouteau/tiled-code-gen
c4ef09eee995793115a7f3fc35f8c17f5d715322
[ "BSD-3-Clause" ]
1
2020-12-19T21:14:57.000Z
2020-12-19T21:14:57.000Z
examples/src/game_assets-tileset_collisions.ads
Fabien-Chouteau/tiled-code-gen
c4ef09eee995793115a7f3fc35f8c17f5d715322
[ "BSD-3-Clause" ]
null
null
null
examples/src/game_assets-tileset_collisions.ads
Fabien-Chouteau/tiled-code-gen
c4ef09eee995793115a7f3fc35f8c17f5d715322
[ "BSD-3-Clause" ]
null
null
null
with GESTE; pragma Style_Checks (Off); package Game_Assets.Tileset_Collisions is Tiles : aliased constant GESTE.Tile_Collisions_Array := ( 1 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 2 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 3 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 4 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 5 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,False,False)), 6 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False)), 7 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 8 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 9 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 10 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 11 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 12 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 13 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False)), 14 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False)), 15 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 16 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 17 => ((False,False,False,False,False,False,True,True,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,True,True,True,True,True,False,False,False,False,False), (False,False,False,False,False,False,True,True,True,True,True,True,False,False,False,False), (False,False,False,False,False,True,True,True,True,True,True,True,False,False,False,False), (False,False,False,False,False,True,True,True,True,True,True,True,False,False,False,False), (False,False,False,False,False,True,True,True,True,True,True,False,False,False,False,False), (False,False,False,False,True,True,True,True,True,True,True,False,False,False,False,False), (False,False,False,False,True,True,True,True,True,True,True,False,False,False,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,False,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,False,False,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,False,False,False,False,True,True,True), (False,False,False,True,True,True,True,True,False,False,False,False,False,True,True,True), (False,False,False,False,False,True,True,True,False,False,False,False,False,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,True,True,True)), 18 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,True,True,False,False,False,False,False,False,False), (False,False,False,False,False,False,True,True,True,True,True,False,False,False,False,False), (False,False,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (False,False,True,True,True,True,True,True,True,True,True,False,False,False,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,False,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,False,False,False,True,True), (False,False,True,True,True,True,True,True,True,True,True,False,False,False,True,True), (False,False,True,True,True,True,True,False,False,False,False,False,False,False,False,False), (False,False,False,True,True,True,False,False,False,False,False,False,False,False,False,False)), 19 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False)), 20 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False)), 21 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 22 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 23 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 24 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 25 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 26 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 27 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 28 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,True,True,True,True,False,False,False,False,False,False,False,False), (False,False,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (False,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (False,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False)), 29 => ((True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,True,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False)), 30 => ((True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (True,True,True,True,True,True,True,True,True,True,True,True,False,False,False,False), (False,True,True,True,True,True,True,True,True,True,True,False,False,False,False,False), (False,False,True,True,True,True,True,True,True,True,False,False,False,False,False,False), (False,False,False,False,True,True,True,True,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 31 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True)), 32 => ((False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True)), 33 => ((False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True)), 34 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True)), 35 => ((False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True)), 36 => ((False,False,False,False,False,False,False,False,False,False,False,False,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,True,True,True)), 37 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True)), 38 => ((False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True)), 39 => ((False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 40 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 41 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 42 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 43 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 44 => ((True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False), (True,True,True,True,True,True,True,True,False,False,False,False,False,False,False,False)), 45 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 46 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 47 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 48 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 49 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 50 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 51 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 52 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 53 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 54 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 55 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 56 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 57 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 58 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 59 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 60 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 61 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 62 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 63 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 64 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 65 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 66 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 67 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 68 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 69 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 70 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 71 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 72 => ((False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 73 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,True,True,True,True,True,True,False,False,False,False,False), (False,False,False,False,True,True,True,True,True,True,True,True,False,False,False,False), (False,False,False,True,True,True,True,True,True,True,True,True,True,False,False,False), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,False,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,True,True,True,True,True,True,True,True,True,True,True,True,True,True,False), (False,False,True,True,True,True,True,True,True,True,True,True,True,True,False,False), (False,False,False,True,True,True,True,True,True,True,True,True,True,False,False,False), (False,False,False,False,True,True,True,True,True,True,True,True,False,False,False,False), (False,False,False,False,False,True,True,True,True,True,True,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 74 => ((False,False,False,False,False,False,False,False,False,False,True,True,True,True,False,False), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,True,True,True,True,True,True,True,True), (False,False,False,False,False,False,False,False,False,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,True,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,True,False), (False,False,False,False,False,False,False,False,False,False,True,True,True,True,False,False)), 75 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 76 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 77 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 78 => ((True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True), (True,True,True,True,True,True,True,True,True,True,True,True,True,True,True,True)), 79 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 80 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 81 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False)), 82 => ((False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False), (False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False))); end Game_Assets.Tileset_Collisions;
104.480303
113
0.69589
586921b086dac1292dbf7e59d4f2731d426434f3
97,302
adb
Ada
src/sys/encoders/util-encoders-aes.adb
My-Colaborations/ada-util
039b219f8247e541e281bba73b61f683c52db579
[ "Apache-2.0" ]
null
null
null
src/sys/encoders/util-encoders-aes.adb
My-Colaborations/ada-util
039b219f8247e541e281bba73b61f683c52db579
[ "Apache-2.0" ]
null
null
null
src/sys/encoders/util-encoders-aes.adb
My-Colaborations/ada-util
039b219f8247e541e281bba73b61f683c52db579
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- util-encoders-aes -- AES encryption and decryption -- Copyright (C) 2017, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- 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 Util.Encoders.AES is type Sbox is array (Unsigned_32 range 0 .. 255) of Unsigned_32; type Final_Sbox is array (Unsigned_32 range 0 .. 255) of Unsigned_8; type Key_Sbox is array (Natural range 0 .. 9) of Unsigned_32; function To_Unsigned_32 (Data : in Stream_Element_Array; Offset : in Stream_Element_Offset) return Unsigned_32; pragma Inline_Always (To_Unsigned_32); procedure Put_Unsigned_32 (Data : in out Stream_Element_Array; Value : in Unsigned_32; Offset : in Stream_Element_Offset); Te0 : constant Sbox := ( 16#c66363a5#, 16#f87c7c84#, 16#ee777799#, 16#f67b7b8d#, 16#fff2f20d#, 16#d66b6bbd#, 16#de6f6fb1#, 16#91c5c554#, 16#60303050#, 16#02010103#, 16#ce6767a9#, 16#562b2b7d#, 16#e7fefe19#, 16#b5d7d762#, 16#4dababe6#, 16#ec76769a#, 16#8fcaca45#, 16#1f82829d#, 16#89c9c940#, 16#fa7d7d87#, 16#effafa15#, 16#b25959eb#, 16#8e4747c9#, 16#fbf0f00b#, 16#41adadec#, 16#b3d4d467#, 16#5fa2a2fd#, 16#45afafea#, 16#239c9cbf#, 16#53a4a4f7#, 16#e4727296#, 16#9bc0c05b#, 16#75b7b7c2#, 16#e1fdfd1c#, 16#3d9393ae#, 16#4c26266a#, 16#6c36365a#, 16#7e3f3f41#, 16#f5f7f702#, 16#83cccc4f#, 16#6834345c#, 16#51a5a5f4#, 16#d1e5e534#, 16#f9f1f108#, 16#e2717193#, 16#abd8d873#, 16#62313153#, 16#2a15153f#, 16#0804040c#, 16#95c7c752#, 16#46232365#, 16#9dc3c35e#, 16#30181828#, 16#379696a1#, 16#0a05050f#, 16#2f9a9ab5#, 16#0e070709#, 16#24121236#, 16#1b80809b#, 16#dfe2e23d#, 16#cdebeb26#, 16#4e272769#, 16#7fb2b2cd#, 16#ea75759f#, 16#1209091b#, 16#1d83839e#, 16#582c2c74#, 16#341a1a2e#, 16#361b1b2d#, 16#dc6e6eb2#, 16#b45a5aee#, 16#5ba0a0fb#, 16#a45252f6#, 16#763b3b4d#, 16#b7d6d661#, 16#7db3b3ce#, 16#5229297b#, 16#dde3e33e#, 16#5e2f2f71#, 16#13848497#, 16#a65353f5#, 16#b9d1d168#, 16#00000000#, 16#c1eded2c#, 16#40202060#, 16#e3fcfc1f#, 16#79b1b1c8#, 16#b65b5bed#, 16#d46a6abe#, 16#8dcbcb46#, 16#67bebed9#, 16#7239394b#, 16#944a4ade#, 16#984c4cd4#, 16#b05858e8#, 16#85cfcf4a#, 16#bbd0d06b#, 16#c5efef2a#, 16#4faaaae5#, 16#edfbfb16#, 16#864343c5#, 16#9a4d4dd7#, 16#66333355#, 16#11858594#, 16#8a4545cf#, 16#e9f9f910#, 16#04020206#, 16#fe7f7f81#, 16#a05050f0#, 16#783c3c44#, 16#259f9fba#, 16#4ba8a8e3#, 16#a25151f3#, 16#5da3a3fe#, 16#804040c0#, 16#058f8f8a#, 16#3f9292ad#, 16#219d9dbc#, 16#70383848#, 16#f1f5f504#, 16#63bcbcdf#, 16#77b6b6c1#, 16#afdada75#, 16#42212163#, 16#20101030#, 16#e5ffff1a#, 16#fdf3f30e#, 16#bfd2d26d#, 16#81cdcd4c#, 16#180c0c14#, 16#26131335#, 16#c3ecec2f#, 16#be5f5fe1#, 16#359797a2#, 16#884444cc#, 16#2e171739#, 16#93c4c457#, 16#55a7a7f2#, 16#fc7e7e82#, 16#7a3d3d47#, 16#c86464ac#, 16#ba5d5de7#, 16#3219192b#, 16#e6737395#, 16#c06060a0#, 16#19818198#, 16#9e4f4fd1#, 16#a3dcdc7f#, 16#44222266#, 16#542a2a7e#, 16#3b9090ab#, 16#0b888883#, 16#8c4646ca#, 16#c7eeee29#, 16#6bb8b8d3#, 16#2814143c#, 16#a7dede79#, 16#bc5e5ee2#, 16#160b0b1d#, 16#addbdb76#, 16#dbe0e03b#, 16#64323256#, 16#743a3a4e#, 16#140a0a1e#, 16#924949db#, 16#0c06060a#, 16#4824246c#, 16#b85c5ce4#, 16#9fc2c25d#, 16#bdd3d36e#, 16#43acacef#, 16#c46262a6#, 16#399191a8#, 16#319595a4#, 16#d3e4e437#, 16#f279798b#, 16#d5e7e732#, 16#8bc8c843#, 16#6e373759#, 16#da6d6db7#, 16#018d8d8c#, 16#b1d5d564#, 16#9c4e4ed2#, 16#49a9a9e0#, 16#d86c6cb4#, 16#ac5656fa#, 16#f3f4f407#, 16#cfeaea25#, 16#ca6565af#, 16#f47a7a8e#, 16#47aeaee9#, 16#10080818#, 16#6fbabad5#, 16#f0787888#, 16#4a25256f#, 16#5c2e2e72#, 16#381c1c24#, 16#57a6a6f1#, 16#73b4b4c7#, 16#97c6c651#, 16#cbe8e823#, 16#a1dddd7c#, 16#e874749c#, 16#3e1f1f21#, 16#964b4bdd#, 16#61bdbddc#, 16#0d8b8b86#, 16#0f8a8a85#, 16#e0707090#, 16#7c3e3e42#, 16#71b5b5c4#, 16#cc6666aa#, 16#904848d8#, 16#06030305#, 16#f7f6f601#, 16#1c0e0e12#, 16#c26161a3#, 16#6a35355f#, 16#ae5757f9#, 16#69b9b9d0#, 16#17868691#, 16#99c1c158#, 16#3a1d1d27#, 16#279e9eb9#, 16#d9e1e138#, 16#ebf8f813#, 16#2b9898b3#, 16#22111133#, 16#d26969bb#, 16#a9d9d970#, 16#078e8e89#, 16#339494a7#, 16#2d9b9bb6#, 16#3c1e1e22#, 16#15878792#, 16#c9e9e920#, 16#87cece49#, 16#aa5555ff#, 16#50282878#, 16#a5dfdf7a#, 16#038c8c8f#, 16#59a1a1f8#, 16#09898980#, 16#1a0d0d17#, 16#65bfbfda#, 16#d7e6e631#, 16#844242c6#, 16#d06868b8#, 16#824141c3#, 16#299999b0#, 16#5a2d2d77#, 16#1e0f0f11#, 16#7bb0b0cb#, 16#a85454fc#, 16#6dbbbbd6#, 16#2c16163a#); Te1 : constant Sbox := ( 16#a5c66363#, 16#84f87c7c#, 16#99ee7777#, 16#8df67b7b#, 16#0dfff2f2#, 16#bdd66b6b#, 16#b1de6f6f#, 16#5491c5c5#, 16#50603030#, 16#03020101#, 16#a9ce6767#, 16#7d562b2b#, 16#19e7fefe#, 16#62b5d7d7#, 16#e64dabab#, 16#9aec7676#, 16#458fcaca#, 16#9d1f8282#, 16#4089c9c9#, 16#87fa7d7d#, 16#15effafa#, 16#ebb25959#, 16#c98e4747#, 16#0bfbf0f0#, 16#ec41adad#, 16#67b3d4d4#, 16#fd5fa2a2#, 16#ea45afaf#, 16#bf239c9c#, 16#f753a4a4#, 16#96e47272#, 16#5b9bc0c0#, 16#c275b7b7#, 16#1ce1fdfd#, 16#ae3d9393#, 16#6a4c2626#, 16#5a6c3636#, 16#417e3f3f#, 16#02f5f7f7#, 16#4f83cccc#, 16#5c683434#, 16#f451a5a5#, 16#34d1e5e5#, 16#08f9f1f1#, 16#93e27171#, 16#73abd8d8#, 16#53623131#, 16#3f2a1515#, 16#0c080404#, 16#5295c7c7#, 16#65462323#, 16#5e9dc3c3#, 16#28301818#, 16#a1379696#, 16#0f0a0505#, 16#b52f9a9a#, 16#090e0707#, 16#36241212#, 16#9b1b8080#, 16#3ddfe2e2#, 16#26cdebeb#, 16#694e2727#, 16#cd7fb2b2#, 16#9fea7575#, 16#1b120909#, 16#9e1d8383#, 16#74582c2c#, 16#2e341a1a#, 16#2d361b1b#, 16#b2dc6e6e#, 16#eeb45a5a#, 16#fb5ba0a0#, 16#f6a45252#, 16#4d763b3b#, 16#61b7d6d6#, 16#ce7db3b3#, 16#7b522929#, 16#3edde3e3#, 16#715e2f2f#, 16#97138484#, 16#f5a65353#, 16#68b9d1d1#, 16#00000000#, 16#2cc1eded#, 16#60402020#, 16#1fe3fcfc#, 16#c879b1b1#, 16#edb65b5b#, 16#bed46a6a#, 16#468dcbcb#, 16#d967bebe#, 16#4b723939#, 16#de944a4a#, 16#d4984c4c#, 16#e8b05858#, 16#4a85cfcf#, 16#6bbbd0d0#, 16#2ac5efef#, 16#e54faaaa#, 16#16edfbfb#, 16#c5864343#, 16#d79a4d4d#, 16#55663333#, 16#94118585#, 16#cf8a4545#, 16#10e9f9f9#, 16#06040202#, 16#81fe7f7f#, 16#f0a05050#, 16#44783c3c#, 16#ba259f9f#, 16#e34ba8a8#, 16#f3a25151#, 16#fe5da3a3#, 16#c0804040#, 16#8a058f8f#, 16#ad3f9292#, 16#bc219d9d#, 16#48703838#, 16#04f1f5f5#, 16#df63bcbc#, 16#c177b6b6#, 16#75afdada#, 16#63422121#, 16#30201010#, 16#1ae5ffff#, 16#0efdf3f3#, 16#6dbfd2d2#, 16#4c81cdcd#, 16#14180c0c#, 16#35261313#, 16#2fc3ecec#, 16#e1be5f5f#, 16#a2359797#, 16#cc884444#, 16#392e1717#, 16#5793c4c4#, 16#f255a7a7#, 16#82fc7e7e#, 16#477a3d3d#, 16#acc86464#, 16#e7ba5d5d#, 16#2b321919#, 16#95e67373#, 16#a0c06060#, 16#98198181#, 16#d19e4f4f#, 16#7fa3dcdc#, 16#66442222#, 16#7e542a2a#, 16#ab3b9090#, 16#830b8888#, 16#ca8c4646#, 16#29c7eeee#, 16#d36bb8b8#, 16#3c281414#, 16#79a7dede#, 16#e2bc5e5e#, 16#1d160b0b#, 16#76addbdb#, 16#3bdbe0e0#, 16#56643232#, 16#4e743a3a#, 16#1e140a0a#, 16#db924949#, 16#0a0c0606#, 16#6c482424#, 16#e4b85c5c#, 16#5d9fc2c2#, 16#6ebdd3d3#, 16#ef43acac#, 16#a6c46262#, 16#a8399191#, 16#a4319595#, 16#37d3e4e4#, 16#8bf27979#, 16#32d5e7e7#, 16#438bc8c8#, 16#596e3737#, 16#b7da6d6d#, 16#8c018d8d#, 16#64b1d5d5#, 16#d29c4e4e#, 16#e049a9a9#, 16#b4d86c6c#, 16#faac5656#, 16#07f3f4f4#, 16#25cfeaea#, 16#afca6565#, 16#8ef47a7a#, 16#e947aeae#, 16#18100808#, 16#d56fbaba#, 16#88f07878#, 16#6f4a2525#, 16#725c2e2e#, 16#24381c1c#, 16#f157a6a6#, 16#c773b4b4#, 16#5197c6c6#, 16#23cbe8e8#, 16#7ca1dddd#, 16#9ce87474#, 16#213e1f1f#, 16#dd964b4b#, 16#dc61bdbd#, 16#860d8b8b#, 16#850f8a8a#, 16#90e07070#, 16#427c3e3e#, 16#c471b5b5#, 16#aacc6666#, 16#d8904848#, 16#05060303#, 16#01f7f6f6#, 16#121c0e0e#, 16#a3c26161#, 16#5f6a3535#, 16#f9ae5757#, 16#d069b9b9#, 16#91178686#, 16#5899c1c1#, 16#273a1d1d#, 16#b9279e9e#, 16#38d9e1e1#, 16#13ebf8f8#, 16#b32b9898#, 16#33221111#, 16#bbd26969#, 16#70a9d9d9#, 16#89078e8e#, 16#a7339494#, 16#b62d9b9b#, 16#223c1e1e#, 16#92158787#, 16#20c9e9e9#, 16#4987cece#, 16#ffaa5555#, 16#78502828#, 16#7aa5dfdf#, 16#8f038c8c#, 16#f859a1a1#, 16#80098989#, 16#171a0d0d#, 16#da65bfbf#, 16#31d7e6e6#, 16#c6844242#, 16#b8d06868#, 16#c3824141#, 16#b0299999#, 16#775a2d2d#, 16#111e0f0f#, 16#cb7bb0b0#, 16#fca85454#, 16#d66dbbbb#, 16#3a2c1616#); Te2 : constant Sbox := ( 16#63a5c663#, 16#7c84f87c#, 16#7799ee77#, 16#7b8df67b#, 16#f20dfff2#, 16#6bbdd66b#, 16#6fb1de6f#, 16#c55491c5#, 16#30506030#, 16#01030201#, 16#67a9ce67#, 16#2b7d562b#, 16#fe19e7fe#, 16#d762b5d7#, 16#abe64dab#, 16#769aec76#, 16#ca458fca#, 16#829d1f82#, 16#c94089c9#, 16#7d87fa7d#, 16#fa15effa#, 16#59ebb259#, 16#47c98e47#, 16#f00bfbf0#, 16#adec41ad#, 16#d467b3d4#, 16#a2fd5fa2#, 16#afea45af#, 16#9cbf239c#, 16#a4f753a4#, 16#7296e472#, 16#c05b9bc0#, 16#b7c275b7#, 16#fd1ce1fd#, 16#93ae3d93#, 16#266a4c26#, 16#365a6c36#, 16#3f417e3f#, 16#f702f5f7#, 16#cc4f83cc#, 16#345c6834#, 16#a5f451a5#, 16#e534d1e5#, 16#f108f9f1#, 16#7193e271#, 16#d873abd8#, 16#31536231#, 16#153f2a15#, 16#040c0804#, 16#c75295c7#, 16#23654623#, 16#c35e9dc3#, 16#18283018#, 16#96a13796#, 16#050f0a05#, 16#9ab52f9a#, 16#07090e07#, 16#12362412#, 16#809b1b80#, 16#e23ddfe2#, 16#eb26cdeb#, 16#27694e27#, 16#b2cd7fb2#, 16#759fea75#, 16#091b1209#, 16#839e1d83#, 16#2c74582c#, 16#1a2e341a#, 16#1b2d361b#, 16#6eb2dc6e#, 16#5aeeb45a#, 16#a0fb5ba0#, 16#52f6a452#, 16#3b4d763b#, 16#d661b7d6#, 16#b3ce7db3#, 16#297b5229#, 16#e33edde3#, 16#2f715e2f#, 16#84971384#, 16#53f5a653#, 16#d168b9d1#, 16#00000000#, 16#ed2cc1ed#, 16#20604020#, 16#fc1fe3fc#, 16#b1c879b1#, 16#5bedb65b#, 16#6abed46a#, 16#cb468dcb#, 16#bed967be#, 16#394b7239#, 16#4ade944a#, 16#4cd4984c#, 16#58e8b058#, 16#cf4a85cf#, 16#d06bbbd0#, 16#ef2ac5ef#, 16#aae54faa#, 16#fb16edfb#, 16#43c58643#, 16#4dd79a4d#, 16#33556633#, 16#85941185#, 16#45cf8a45#, 16#f910e9f9#, 16#02060402#, 16#7f81fe7f#, 16#50f0a050#, 16#3c44783c#, 16#9fba259f#, 16#a8e34ba8#, 16#51f3a251#, 16#a3fe5da3#, 16#40c08040#, 16#8f8a058f#, 16#92ad3f92#, 16#9dbc219d#, 16#38487038#, 16#f504f1f5#, 16#bcdf63bc#, 16#b6c177b6#, 16#da75afda#, 16#21634221#, 16#10302010#, 16#ff1ae5ff#, 16#f30efdf3#, 16#d26dbfd2#, 16#cd4c81cd#, 16#0c14180c#, 16#13352613#, 16#ec2fc3ec#, 16#5fe1be5f#, 16#97a23597#, 16#44cc8844#, 16#17392e17#, 16#c45793c4#, 16#a7f255a7#, 16#7e82fc7e#, 16#3d477a3d#, 16#64acc864#, 16#5de7ba5d#, 16#192b3219#, 16#7395e673#, 16#60a0c060#, 16#81981981#, 16#4fd19e4f#, 16#dc7fa3dc#, 16#22664422#, 16#2a7e542a#, 16#90ab3b90#, 16#88830b88#, 16#46ca8c46#, 16#ee29c7ee#, 16#b8d36bb8#, 16#143c2814#, 16#de79a7de#, 16#5ee2bc5e#, 16#0b1d160b#, 16#db76addb#, 16#e03bdbe0#, 16#32566432#, 16#3a4e743a#, 16#0a1e140a#, 16#49db9249#, 16#060a0c06#, 16#246c4824#, 16#5ce4b85c#, 16#c25d9fc2#, 16#d36ebdd3#, 16#acef43ac#, 16#62a6c462#, 16#91a83991#, 16#95a43195#, 16#e437d3e4#, 16#798bf279#, 16#e732d5e7#, 16#c8438bc8#, 16#37596e37#, 16#6db7da6d#, 16#8d8c018d#, 16#d564b1d5#, 16#4ed29c4e#, 16#a9e049a9#, 16#6cb4d86c#, 16#56faac56#, 16#f407f3f4#, 16#ea25cfea#, 16#65afca65#, 16#7a8ef47a#, 16#aee947ae#, 16#08181008#, 16#bad56fba#, 16#7888f078#, 16#256f4a25#, 16#2e725c2e#, 16#1c24381c#, 16#a6f157a6#, 16#b4c773b4#, 16#c65197c6#, 16#e823cbe8#, 16#dd7ca1dd#, 16#749ce874#, 16#1f213e1f#, 16#4bdd964b#, 16#bddc61bd#, 16#8b860d8b#, 16#8a850f8a#, 16#7090e070#, 16#3e427c3e#, 16#b5c471b5#, 16#66aacc66#, 16#48d89048#, 16#03050603#, 16#f601f7f6#, 16#0e121c0e#, 16#61a3c261#, 16#355f6a35#, 16#57f9ae57#, 16#b9d069b9#, 16#86911786#, 16#c15899c1#, 16#1d273a1d#, 16#9eb9279e#, 16#e138d9e1#, 16#f813ebf8#, 16#98b32b98#, 16#11332211#, 16#69bbd269#, 16#d970a9d9#, 16#8e89078e#, 16#94a73394#, 16#9bb62d9b#, 16#1e223c1e#, 16#87921587#, 16#e920c9e9#, 16#ce4987ce#, 16#55ffaa55#, 16#28785028#, 16#df7aa5df#, 16#8c8f038c#, 16#a1f859a1#, 16#89800989#, 16#0d171a0d#, 16#bfda65bf#, 16#e631d7e6#, 16#42c68442#, 16#68b8d068#, 16#41c38241#, 16#99b02999#, 16#2d775a2d#, 16#0f111e0f#, 16#b0cb7bb0#, 16#54fca854#, 16#bbd66dbb#, 16#163a2c16#); Te3 : constant Sbox := ( 16#6363a5c6#, 16#7c7c84f8#, 16#777799ee#, 16#7b7b8df6#, 16#f2f20dff#, 16#6b6bbdd6#, 16#6f6fb1de#, 16#c5c55491#, 16#30305060#, 16#01010302#, 16#6767a9ce#, 16#2b2b7d56#, 16#fefe19e7#, 16#d7d762b5#, 16#ababe64d#, 16#76769aec#, 16#caca458f#, 16#82829d1f#, 16#c9c94089#, 16#7d7d87fa#, 16#fafa15ef#, 16#5959ebb2#, 16#4747c98e#, 16#f0f00bfb#, 16#adadec41#, 16#d4d467b3#, 16#a2a2fd5f#, 16#afafea45#, 16#9c9cbf23#, 16#a4a4f753#, 16#727296e4#, 16#c0c05b9b#, 16#b7b7c275#, 16#fdfd1ce1#, 16#9393ae3d#, 16#26266a4c#, 16#36365a6c#, 16#3f3f417e#, 16#f7f702f5#, 16#cccc4f83#, 16#34345c68#, 16#a5a5f451#, 16#e5e534d1#, 16#f1f108f9#, 16#717193e2#, 16#d8d873ab#, 16#31315362#, 16#15153f2a#, 16#04040c08#, 16#c7c75295#, 16#23236546#, 16#c3c35e9d#, 16#18182830#, 16#9696a137#, 16#05050f0a#, 16#9a9ab52f#, 16#0707090e#, 16#12123624#, 16#80809b1b#, 16#e2e23ddf#, 16#ebeb26cd#, 16#2727694e#, 16#b2b2cd7f#, 16#75759fea#, 16#09091b12#, 16#83839e1d#, 16#2c2c7458#, 16#1a1a2e34#, 16#1b1b2d36#, 16#6e6eb2dc#, 16#5a5aeeb4#, 16#a0a0fb5b#, 16#5252f6a4#, 16#3b3b4d76#, 16#d6d661b7#, 16#b3b3ce7d#, 16#29297b52#, 16#e3e33edd#, 16#2f2f715e#, 16#84849713#, 16#5353f5a6#, 16#d1d168b9#, 16#00000000#, 16#eded2cc1#, 16#20206040#, 16#fcfc1fe3#, 16#b1b1c879#, 16#5b5bedb6#, 16#6a6abed4#, 16#cbcb468d#, 16#bebed967#, 16#39394b72#, 16#4a4ade94#, 16#4c4cd498#, 16#5858e8b0#, 16#cfcf4a85#, 16#d0d06bbb#, 16#efef2ac5#, 16#aaaae54f#, 16#fbfb16ed#, 16#4343c586#, 16#4d4dd79a#, 16#33335566#, 16#85859411#, 16#4545cf8a#, 16#f9f910e9#, 16#02020604#, 16#7f7f81fe#, 16#5050f0a0#, 16#3c3c4478#, 16#9f9fba25#, 16#a8a8e34b#, 16#5151f3a2#, 16#a3a3fe5d#, 16#4040c080#, 16#8f8f8a05#, 16#9292ad3f#, 16#9d9dbc21#, 16#38384870#, 16#f5f504f1#, 16#bcbcdf63#, 16#b6b6c177#, 16#dada75af#, 16#21216342#, 16#10103020#, 16#ffff1ae5#, 16#f3f30efd#, 16#d2d26dbf#, 16#cdcd4c81#, 16#0c0c1418#, 16#13133526#, 16#ecec2fc3#, 16#5f5fe1be#, 16#9797a235#, 16#4444cc88#, 16#1717392e#, 16#c4c45793#, 16#a7a7f255#, 16#7e7e82fc#, 16#3d3d477a#, 16#6464acc8#, 16#5d5de7ba#, 16#19192b32#, 16#737395e6#, 16#6060a0c0#, 16#81819819#, 16#4f4fd19e#, 16#dcdc7fa3#, 16#22226644#, 16#2a2a7e54#, 16#9090ab3b#, 16#8888830b#, 16#4646ca8c#, 16#eeee29c7#, 16#b8b8d36b#, 16#14143c28#, 16#dede79a7#, 16#5e5ee2bc#, 16#0b0b1d16#, 16#dbdb76ad#, 16#e0e03bdb#, 16#32325664#, 16#3a3a4e74#, 16#0a0a1e14#, 16#4949db92#, 16#06060a0c#, 16#24246c48#, 16#5c5ce4b8#, 16#c2c25d9f#, 16#d3d36ebd#, 16#acacef43#, 16#6262a6c4#, 16#9191a839#, 16#9595a431#, 16#e4e437d3#, 16#79798bf2#, 16#e7e732d5#, 16#c8c8438b#, 16#3737596e#, 16#6d6db7da#, 16#8d8d8c01#, 16#d5d564b1#, 16#4e4ed29c#, 16#a9a9e049#, 16#6c6cb4d8#, 16#5656faac#, 16#f4f407f3#, 16#eaea25cf#, 16#6565afca#, 16#7a7a8ef4#, 16#aeaee947#, 16#08081810#, 16#babad56f#, 16#787888f0#, 16#25256f4a#, 16#2e2e725c#, 16#1c1c2438#, 16#a6a6f157#, 16#b4b4c773#, 16#c6c65197#, 16#e8e823cb#, 16#dddd7ca1#, 16#74749ce8#, 16#1f1f213e#, 16#4b4bdd96#, 16#bdbddc61#, 16#8b8b860d#, 16#8a8a850f#, 16#707090e0#, 16#3e3e427c#, 16#b5b5c471#, 16#6666aacc#, 16#4848d890#, 16#03030506#, 16#f6f601f7#, 16#0e0e121c#, 16#6161a3c2#, 16#35355f6a#, 16#5757f9ae#, 16#b9b9d069#, 16#86869117#, 16#c1c15899#, 16#1d1d273a#, 16#9e9eb927#, 16#e1e138d9#, 16#f8f813eb#, 16#9898b32b#, 16#11113322#, 16#6969bbd2#, 16#d9d970a9#, 16#8e8e8907#, 16#9494a733#, 16#9b9bb62d#, 16#1e1e223c#, 16#87879215#, 16#e9e920c9#, 16#cece4987#, 16#5555ffaa#, 16#28287850#, 16#dfdf7aa5#, 16#8c8c8f03#, 16#a1a1f859#, 16#89898009#, 16#0d0d171a#, 16#bfbfda65#, 16#e6e631d7#, 16#4242c684#, 16#6868b8d0#, 16#4141c382#, 16#9999b029#, 16#2d2d775a#, 16#0f0f111e#, 16#b0b0cb7b#, 16#5454fca8#, 16#bbbbd66d#, 16#16163a2c#); Te4 : constant Sbox := ( 16#63636363#, 16#7c7c7c7c#, 16#77777777#, 16#7b7b7b7b#, 16#f2f2f2f2#, 16#6b6b6b6b#, 16#6f6f6f6f#, 16#c5c5c5c5#, 16#30303030#, 16#01010101#, 16#67676767#, 16#2b2b2b2b#, 16#fefefefe#, 16#d7d7d7d7#, 16#abababab#, 16#76767676#, 16#cacacaca#, 16#82828282#, 16#c9c9c9c9#, 16#7d7d7d7d#, 16#fafafafa#, 16#59595959#, 16#47474747#, 16#f0f0f0f0#, 16#adadadad#, 16#d4d4d4d4#, 16#a2a2a2a2#, 16#afafafaf#, 16#9c9c9c9c#, 16#a4a4a4a4#, 16#72727272#, 16#c0c0c0c0#, 16#b7b7b7b7#, 16#fdfdfdfd#, 16#93939393#, 16#26262626#, 16#36363636#, 16#3f3f3f3f#, 16#f7f7f7f7#, 16#cccccccc#, 16#34343434#, 16#a5a5a5a5#, 16#e5e5e5e5#, 16#f1f1f1f1#, 16#71717171#, 16#d8d8d8d8#, 16#31313131#, 16#15151515#, 16#04040404#, 16#c7c7c7c7#, 16#23232323#, 16#c3c3c3c3#, 16#18181818#, 16#96969696#, 16#05050505#, 16#9a9a9a9a#, 16#07070707#, 16#12121212#, 16#80808080#, 16#e2e2e2e2#, 16#ebebebeb#, 16#27272727#, 16#b2b2b2b2#, 16#75757575#, 16#09090909#, 16#83838383#, 16#2c2c2c2c#, 16#1a1a1a1a#, 16#1b1b1b1b#, 16#6e6e6e6e#, 16#5a5a5a5a#, 16#a0a0a0a0#, 16#52525252#, 16#3b3b3b3b#, 16#d6d6d6d6#, 16#b3b3b3b3#, 16#29292929#, 16#e3e3e3e3#, 16#2f2f2f2f#, 16#84848484#, 16#53535353#, 16#d1d1d1d1#, 16#00000000#, 16#edededed#, 16#20202020#, 16#fcfcfcfc#, 16#b1b1b1b1#, 16#5b5b5b5b#, 16#6a6a6a6a#, 16#cbcbcbcb#, 16#bebebebe#, 16#39393939#, 16#4a4a4a4a#, 16#4c4c4c4c#, 16#58585858#, 16#cfcfcfcf#, 16#d0d0d0d0#, 16#efefefef#, 16#aaaaaaaa#, 16#fbfbfbfb#, 16#43434343#, 16#4d4d4d4d#, 16#33333333#, 16#85858585#, 16#45454545#, 16#f9f9f9f9#, 16#02020202#, 16#7f7f7f7f#, 16#50505050#, 16#3c3c3c3c#, 16#9f9f9f9f#, 16#a8a8a8a8#, 16#51515151#, 16#a3a3a3a3#, 16#40404040#, 16#8f8f8f8f#, 16#92929292#, 16#9d9d9d9d#, 16#38383838#, 16#f5f5f5f5#, 16#bcbcbcbc#, 16#b6b6b6b6#, 16#dadadada#, 16#21212121#, 16#10101010#, 16#ffffffff#, 16#f3f3f3f3#, 16#d2d2d2d2#, 16#cdcdcdcd#, 16#0c0c0c0c#, 16#13131313#, 16#ecececec#, 16#5f5f5f5f#, 16#97979797#, 16#44444444#, 16#17171717#, 16#c4c4c4c4#, 16#a7a7a7a7#, 16#7e7e7e7e#, 16#3d3d3d3d#, 16#64646464#, 16#5d5d5d5d#, 16#19191919#, 16#73737373#, 16#60606060#, 16#81818181#, 16#4f4f4f4f#, 16#dcdcdcdc#, 16#22222222#, 16#2a2a2a2a#, 16#90909090#, 16#88888888#, 16#46464646#, 16#eeeeeeee#, 16#b8b8b8b8#, 16#14141414#, 16#dededede#, 16#5e5e5e5e#, 16#0b0b0b0b#, 16#dbdbdbdb#, 16#e0e0e0e0#, 16#32323232#, 16#3a3a3a3a#, 16#0a0a0a0a#, 16#49494949#, 16#06060606#, 16#24242424#, 16#5c5c5c5c#, 16#c2c2c2c2#, 16#d3d3d3d3#, 16#acacacac#, 16#62626262#, 16#91919191#, 16#95959595#, 16#e4e4e4e4#, 16#79797979#, 16#e7e7e7e7#, 16#c8c8c8c8#, 16#37373737#, 16#6d6d6d6d#, 16#8d8d8d8d#, 16#d5d5d5d5#, 16#4e4e4e4e#, 16#a9a9a9a9#, 16#6c6c6c6c#, 16#56565656#, 16#f4f4f4f4#, 16#eaeaeaea#, 16#65656565#, 16#7a7a7a7a#, 16#aeaeaeae#, 16#08080808#, 16#babababa#, 16#78787878#, 16#25252525#, 16#2e2e2e2e#, 16#1c1c1c1c#, 16#a6a6a6a6#, 16#b4b4b4b4#, 16#c6c6c6c6#, 16#e8e8e8e8#, 16#dddddddd#, 16#74747474#, 16#1f1f1f1f#, 16#4b4b4b4b#, 16#bdbdbdbd#, 16#8b8b8b8b#, 16#8a8a8a8a#, 16#70707070#, 16#3e3e3e3e#, 16#b5b5b5b5#, 16#66666666#, 16#48484848#, 16#03030303#, 16#f6f6f6f6#, 16#0e0e0e0e#, 16#61616161#, 16#35353535#, 16#57575757#, 16#b9b9b9b9#, 16#86868686#, 16#c1c1c1c1#, 16#1d1d1d1d#, 16#9e9e9e9e#, 16#e1e1e1e1#, 16#f8f8f8f8#, 16#98989898#, 16#11111111#, 16#69696969#, 16#d9d9d9d9#, 16#8e8e8e8e#, 16#94949494#, 16#9b9b9b9b#, 16#1e1e1e1e#, 16#87878787#, 16#e9e9e9e9#, 16#cececece#, 16#55555555#, 16#28282828#, 16#dfdfdfdf#, 16#8c8c8c8c#, 16#a1a1a1a1#, 16#89898989#, 16#0d0d0d0d#, 16#bfbfbfbf#, 16#e6e6e6e6#, 16#42424242#, 16#68686868#, 16#41414141#, 16#99999999#, 16#2d2d2d2d#, 16#0f0f0f0f#, 16#b0b0b0b0#, 16#54545454#, 16#bbbbbbbb#, 16#16161616#); Td0 : constant Sbox := ( 16#51f4a750#, 16#7e416553#, 16#1a17a4c3#, 16#3a275e96#, 16#3bab6bcb#, 16#1f9d45f1#, 16#acfa58ab#, 16#4be30393#, 16#2030fa55#, 16#ad766df6#, 16#88cc7691#, 16#f5024c25#, 16#4fe5d7fc#, 16#c52acbd7#, 16#26354480#, 16#b562a38f#, 16#deb15a49#, 16#25ba1b67#, 16#45ea0e98#, 16#5dfec0e1#, 16#c32f7502#, 16#814cf012#, 16#8d4697a3#, 16#6bd3f9c6#, 16#038f5fe7#, 16#15929c95#, 16#bf6d7aeb#, 16#955259da#, 16#d4be832d#, 16#587421d3#, 16#49e06929#, 16#8ec9c844#, 16#75c2896a#, 16#f48e7978#, 16#99583e6b#, 16#27b971dd#, 16#bee14fb6#, 16#f088ad17#, 16#c920ac66#, 16#7dce3ab4#, 16#63df4a18#, 16#e51a3182#, 16#97513360#, 16#62537f45#, 16#b16477e0#, 16#bb6bae84#, 16#fe81a01c#, 16#f9082b94#, 16#70486858#, 16#8f45fd19#, 16#94de6c87#, 16#527bf8b7#, 16#ab73d323#, 16#724b02e2#, 16#e31f8f57#, 16#6655ab2a#, 16#b2eb2807#, 16#2fb5c203#, 16#86c57b9a#, 16#d33708a5#, 16#302887f2#, 16#23bfa5b2#, 16#02036aba#, 16#ed16825c#, 16#8acf1c2b#, 16#a779b492#, 16#f307f2f0#, 16#4e69e2a1#, 16#65daf4cd#, 16#0605bed5#, 16#d134621f#, 16#c4a6fe8a#, 16#342e539d#, 16#a2f355a0#, 16#058ae132#, 16#a4f6eb75#, 16#0b83ec39#, 16#4060efaa#, 16#5e719f06#, 16#bd6e1051#, 16#3e218af9#, 16#96dd063d#, 16#dd3e05ae#, 16#4de6bd46#, 16#91548db5#, 16#71c45d05#, 16#0406d46f#, 16#605015ff#, 16#1998fb24#, 16#d6bde997#, 16#894043cc#, 16#67d99e77#, 16#b0e842bd#, 16#07898b88#, 16#e7195b38#, 16#79c8eedb#, 16#a17c0a47#, 16#7c420fe9#, 16#f8841ec9#, 16#00000000#, 16#09808683#, 16#322bed48#, 16#1e1170ac#, 16#6c5a724e#, 16#fd0efffb#, 16#0f853856#, 16#3daed51e#, 16#362d3927#, 16#0a0fd964#, 16#685ca621#, 16#9b5b54d1#, 16#24362e3a#, 16#0c0a67b1#, 16#9357e70f#, 16#b4ee96d2#, 16#1b9b919e#, 16#80c0c54f#, 16#61dc20a2#, 16#5a774b69#, 16#1c121a16#, 16#e293ba0a#, 16#c0a02ae5#, 16#3c22e043#, 16#121b171d#, 16#0e090d0b#, 16#f28bc7ad#, 16#2db6a8b9#, 16#141ea9c8#, 16#57f11985#, 16#af75074c#, 16#ee99ddbb#, 16#a37f60fd#, 16#f701269f#, 16#5c72f5bc#, 16#44663bc5#, 16#5bfb7e34#, 16#8b432976#, 16#cb23c6dc#, 16#b6edfc68#, 16#b8e4f163#, 16#d731dcca#, 16#42638510#, 16#13972240#, 16#84c61120#, 16#854a247d#, 16#d2bb3df8#, 16#aef93211#, 16#c729a16d#, 16#1d9e2f4b#, 16#dcb230f3#, 16#0d8652ec#, 16#77c1e3d0#, 16#2bb3166c#, 16#a970b999#, 16#119448fa#, 16#47e96422#, 16#a8fc8cc4#, 16#a0f03f1a#, 16#567d2cd8#, 16#223390ef#, 16#87494ec7#, 16#d938d1c1#, 16#8ccaa2fe#, 16#98d40b36#, 16#a6f581cf#, 16#a57ade28#, 16#dab78e26#, 16#3fadbfa4#, 16#2c3a9de4#, 16#5078920d#, 16#6a5fcc9b#, 16#547e4662#, 16#f68d13c2#, 16#90d8b8e8#, 16#2e39f75e#, 16#82c3aff5#, 16#9f5d80be#, 16#69d0937c#, 16#6fd52da9#, 16#cf2512b3#, 16#c8ac993b#, 16#10187da7#, 16#e89c636e#, 16#db3bbb7b#, 16#cd267809#, 16#6e5918f4#, 16#ec9ab701#, 16#834f9aa8#, 16#e6956e65#, 16#aaffe67e#, 16#21bccf08#, 16#ef15e8e6#, 16#bae79bd9#, 16#4a6f36ce#, 16#ea9f09d4#, 16#29b07cd6#, 16#31a4b2af#, 16#2a3f2331#, 16#c6a59430#, 16#35a266c0#, 16#744ebc37#, 16#fc82caa6#, 16#e090d0b0#, 16#33a7d815#, 16#f104984a#, 16#41ecdaf7#, 16#7fcd500e#, 16#1791f62f#, 16#764dd68d#, 16#43efb04d#, 16#ccaa4d54#, 16#e49604df#, 16#9ed1b5e3#, 16#4c6a881b#, 16#c12c1fb8#, 16#4665517f#, 16#9d5eea04#, 16#018c355d#, 16#fa877473#, 16#fb0b412e#, 16#b3671d5a#, 16#92dbd252#, 16#e9105633#, 16#6dd64713#, 16#9ad7618c#, 16#37a10c7a#, 16#59f8148e#, 16#eb133c89#, 16#cea927ee#, 16#b761c935#, 16#e11ce5ed#, 16#7a47b13c#, 16#9cd2df59#, 16#55f2733f#, 16#1814ce79#, 16#73c737bf#, 16#53f7cdea#, 16#5ffdaa5b#, 16#df3d6f14#, 16#7844db86#, 16#caaff381#, 16#b968c43e#, 16#3824342c#, 16#c2a3405f#, 16#161dc372#, 16#bce2250c#, 16#283c498b#, 16#ff0d9541#, 16#39a80171#, 16#080cb3de#, 16#d8b4e49c#, 16#6456c190#, 16#7bcb8461#, 16#d532b670#, 16#486c5c74#, 16#d0b85742#); Td1 : constant Sbox := ( 16#5051f4a7#, 16#537e4165#, 16#c31a17a4#, 16#963a275e#, 16#cb3bab6b#, 16#f11f9d45#, 16#abacfa58#, 16#934be303#, 16#552030fa#, 16#f6ad766d#, 16#9188cc76#, 16#25f5024c#, 16#fc4fe5d7#, 16#d7c52acb#, 16#80263544#, 16#8fb562a3#, 16#49deb15a#, 16#6725ba1b#, 16#9845ea0e#, 16#e15dfec0#, 16#02c32f75#, 16#12814cf0#, 16#a38d4697#, 16#c66bd3f9#, 16#e7038f5f#, 16#9515929c#, 16#ebbf6d7a#, 16#da955259#, 16#2dd4be83#, 16#d3587421#, 16#2949e069#, 16#448ec9c8#, 16#6a75c289#, 16#78f48e79#, 16#6b99583e#, 16#dd27b971#, 16#b6bee14f#, 16#17f088ad#, 16#66c920ac#, 16#b47dce3a#, 16#1863df4a#, 16#82e51a31#, 16#60975133#, 16#4562537f#, 16#e0b16477#, 16#84bb6bae#, 16#1cfe81a0#, 16#94f9082b#, 16#58704868#, 16#198f45fd#, 16#8794de6c#, 16#b7527bf8#, 16#23ab73d3#, 16#e2724b02#, 16#57e31f8f#, 16#2a6655ab#, 16#07b2eb28#, 16#032fb5c2#, 16#9a86c57b#, 16#a5d33708#, 16#f2302887#, 16#b223bfa5#, 16#ba02036a#, 16#5ced1682#, 16#2b8acf1c#, 16#92a779b4#, 16#f0f307f2#, 16#a14e69e2#, 16#cd65daf4#, 16#d50605be#, 16#1fd13462#, 16#8ac4a6fe#, 16#9d342e53#, 16#a0a2f355#, 16#32058ae1#, 16#75a4f6eb#, 16#390b83ec#, 16#aa4060ef#, 16#065e719f#, 16#51bd6e10#, 16#f93e218a#, 16#3d96dd06#, 16#aedd3e05#, 16#464de6bd#, 16#b591548d#, 16#0571c45d#, 16#6f0406d4#, 16#ff605015#, 16#241998fb#, 16#97d6bde9#, 16#cc894043#, 16#7767d99e#, 16#bdb0e842#, 16#8807898b#, 16#38e7195b#, 16#db79c8ee#, 16#47a17c0a#, 16#e97c420f#, 16#c9f8841e#, 16#00000000#, 16#83098086#, 16#48322bed#, 16#ac1e1170#, 16#4e6c5a72#, 16#fbfd0eff#, 16#560f8538#, 16#1e3daed5#, 16#27362d39#, 16#640a0fd9#, 16#21685ca6#, 16#d19b5b54#, 16#3a24362e#, 16#b10c0a67#, 16#0f9357e7#, 16#d2b4ee96#, 16#9e1b9b91#, 16#4f80c0c5#, 16#a261dc20#, 16#695a774b#, 16#161c121a#, 16#0ae293ba#, 16#e5c0a02a#, 16#433c22e0#, 16#1d121b17#, 16#0b0e090d#, 16#adf28bc7#, 16#b92db6a8#, 16#c8141ea9#, 16#8557f119#, 16#4caf7507#, 16#bbee99dd#, 16#fda37f60#, 16#9ff70126#, 16#bc5c72f5#, 16#c544663b#, 16#345bfb7e#, 16#768b4329#, 16#dccb23c6#, 16#68b6edfc#, 16#63b8e4f1#, 16#cad731dc#, 16#10426385#, 16#40139722#, 16#2084c611#, 16#7d854a24#, 16#f8d2bb3d#, 16#11aef932#, 16#6dc729a1#, 16#4b1d9e2f#, 16#f3dcb230#, 16#ec0d8652#, 16#d077c1e3#, 16#6c2bb316#, 16#99a970b9#, 16#fa119448#, 16#2247e964#, 16#c4a8fc8c#, 16#1aa0f03f#, 16#d8567d2c#, 16#ef223390#, 16#c787494e#, 16#c1d938d1#, 16#fe8ccaa2#, 16#3698d40b#, 16#cfa6f581#, 16#28a57ade#, 16#26dab78e#, 16#a43fadbf#, 16#e42c3a9d#, 16#0d507892#, 16#9b6a5fcc#, 16#62547e46#, 16#c2f68d13#, 16#e890d8b8#, 16#5e2e39f7#, 16#f582c3af#, 16#be9f5d80#, 16#7c69d093#, 16#a96fd52d#, 16#b3cf2512#, 16#3bc8ac99#, 16#a710187d#, 16#6ee89c63#, 16#7bdb3bbb#, 16#09cd2678#, 16#f46e5918#, 16#01ec9ab7#, 16#a8834f9a#, 16#65e6956e#, 16#7eaaffe6#, 16#0821bccf#, 16#e6ef15e8#, 16#d9bae79b#, 16#ce4a6f36#, 16#d4ea9f09#, 16#d629b07c#, 16#af31a4b2#, 16#312a3f23#, 16#30c6a594#, 16#c035a266#, 16#37744ebc#, 16#a6fc82ca#, 16#b0e090d0#, 16#1533a7d8#, 16#4af10498#, 16#f741ecda#, 16#0e7fcd50#, 16#2f1791f6#, 16#8d764dd6#, 16#4d43efb0#, 16#54ccaa4d#, 16#dfe49604#, 16#e39ed1b5#, 16#1b4c6a88#, 16#b8c12c1f#, 16#7f466551#, 16#049d5eea#, 16#5d018c35#, 16#73fa8774#, 16#2efb0b41#, 16#5ab3671d#, 16#5292dbd2#, 16#33e91056#, 16#136dd647#, 16#8c9ad761#, 16#7a37a10c#, 16#8e59f814#, 16#89eb133c#, 16#eecea927#, 16#35b761c9#, 16#ede11ce5#, 16#3c7a47b1#, 16#599cd2df#, 16#3f55f273#, 16#791814ce#, 16#bf73c737#, 16#ea53f7cd#, 16#5b5ffdaa#, 16#14df3d6f#, 16#867844db#, 16#81caaff3#, 16#3eb968c4#, 16#2c382434#, 16#5fc2a340#, 16#72161dc3#, 16#0cbce225#, 16#8b283c49#, 16#41ff0d95#, 16#7139a801#, 16#de080cb3#, 16#9cd8b4e4#, 16#906456c1#, 16#617bcb84#, 16#70d532b6#, 16#74486c5c#, 16#42d0b857#); Td2 : constant Sbox := ( 16#a75051f4#, 16#65537e41#, 16#a4c31a17#, 16#5e963a27#, 16#6bcb3bab#, 16#45f11f9d#, 16#58abacfa#, 16#03934be3#, 16#fa552030#, 16#6df6ad76#, 16#769188cc#, 16#4c25f502#, 16#d7fc4fe5#, 16#cbd7c52a#, 16#44802635#, 16#a38fb562#, 16#5a49deb1#, 16#1b6725ba#, 16#0e9845ea#, 16#c0e15dfe#, 16#7502c32f#, 16#f012814c#, 16#97a38d46#, 16#f9c66bd3#, 16#5fe7038f#, 16#9c951592#, 16#7aebbf6d#, 16#59da9552#, 16#832dd4be#, 16#21d35874#, 16#692949e0#, 16#c8448ec9#, 16#896a75c2#, 16#7978f48e#, 16#3e6b9958#, 16#71dd27b9#, 16#4fb6bee1#, 16#ad17f088#, 16#ac66c920#, 16#3ab47dce#, 16#4a1863df#, 16#3182e51a#, 16#33609751#, 16#7f456253#, 16#77e0b164#, 16#ae84bb6b#, 16#a01cfe81#, 16#2b94f908#, 16#68587048#, 16#fd198f45#, 16#6c8794de#, 16#f8b7527b#, 16#d323ab73#, 16#02e2724b#, 16#8f57e31f#, 16#ab2a6655#, 16#2807b2eb#, 16#c2032fb5#, 16#7b9a86c5#, 16#08a5d337#, 16#87f23028#, 16#a5b223bf#, 16#6aba0203#, 16#825ced16#, 16#1c2b8acf#, 16#b492a779#, 16#f2f0f307#, 16#e2a14e69#, 16#f4cd65da#, 16#bed50605#, 16#621fd134#, 16#fe8ac4a6#, 16#539d342e#, 16#55a0a2f3#, 16#e132058a#, 16#eb75a4f6#, 16#ec390b83#, 16#efaa4060#, 16#9f065e71#, 16#1051bd6e#, 16#8af93e21#, 16#063d96dd#, 16#05aedd3e#, 16#bd464de6#, 16#8db59154#, 16#5d0571c4#, 16#d46f0406#, 16#15ff6050#, 16#fb241998#, 16#e997d6bd#, 16#43cc8940#, 16#9e7767d9#, 16#42bdb0e8#, 16#8b880789#, 16#5b38e719#, 16#eedb79c8#, 16#0a47a17c#, 16#0fe97c42#, 16#1ec9f884#, 16#00000000#, 16#86830980#, 16#ed48322b#, 16#70ac1e11#, 16#724e6c5a#, 16#fffbfd0e#, 16#38560f85#, 16#d51e3dae#, 16#3927362d#, 16#d9640a0f#, 16#a621685c#, 16#54d19b5b#, 16#2e3a2436#, 16#67b10c0a#, 16#e70f9357#, 16#96d2b4ee#, 16#919e1b9b#, 16#c54f80c0#, 16#20a261dc#, 16#4b695a77#, 16#1a161c12#, 16#ba0ae293#, 16#2ae5c0a0#, 16#e0433c22#, 16#171d121b#, 16#0d0b0e09#, 16#c7adf28b#, 16#a8b92db6#, 16#a9c8141e#, 16#198557f1#, 16#074caf75#, 16#ddbbee99#, 16#60fda37f#, 16#269ff701#, 16#f5bc5c72#, 16#3bc54466#, 16#7e345bfb#, 16#29768b43#, 16#c6dccb23#, 16#fc68b6ed#, 16#f163b8e4#, 16#dccad731#, 16#85104263#, 16#22401397#, 16#112084c6#, 16#247d854a#, 16#3df8d2bb#, 16#3211aef9#, 16#a16dc729#, 16#2f4b1d9e#, 16#30f3dcb2#, 16#52ec0d86#, 16#e3d077c1#, 16#166c2bb3#, 16#b999a970#, 16#48fa1194#, 16#642247e9#, 16#8cc4a8fc#, 16#3f1aa0f0#, 16#2cd8567d#, 16#90ef2233#, 16#4ec78749#, 16#d1c1d938#, 16#a2fe8cca#, 16#0b3698d4#, 16#81cfa6f5#, 16#de28a57a#, 16#8e26dab7#, 16#bfa43fad#, 16#9de42c3a#, 16#920d5078#, 16#cc9b6a5f#, 16#4662547e#, 16#13c2f68d#, 16#b8e890d8#, 16#f75e2e39#, 16#aff582c3#, 16#80be9f5d#, 16#937c69d0#, 16#2da96fd5#, 16#12b3cf25#, 16#993bc8ac#, 16#7da71018#, 16#636ee89c#, 16#bb7bdb3b#, 16#7809cd26#, 16#18f46e59#, 16#b701ec9a#, 16#9aa8834f#, 16#6e65e695#, 16#e67eaaff#, 16#cf0821bc#, 16#e8e6ef15#, 16#9bd9bae7#, 16#36ce4a6f#, 16#09d4ea9f#, 16#7cd629b0#, 16#b2af31a4#, 16#23312a3f#, 16#9430c6a5#, 16#66c035a2#, 16#bc37744e#, 16#caa6fc82#, 16#d0b0e090#, 16#d81533a7#, 16#984af104#, 16#daf741ec#, 16#500e7fcd#, 16#f62f1791#, 16#d68d764d#, 16#b04d43ef#, 16#4d54ccaa#, 16#04dfe496#, 16#b5e39ed1#, 16#881b4c6a#, 16#1fb8c12c#, 16#517f4665#, 16#ea049d5e#, 16#355d018c#, 16#7473fa87#, 16#412efb0b#, 16#1d5ab367#, 16#d25292db#, 16#5633e910#, 16#47136dd6#, 16#618c9ad7#, 16#0c7a37a1#, 16#148e59f8#, 16#3c89eb13#, 16#27eecea9#, 16#c935b761#, 16#e5ede11c#, 16#b13c7a47#, 16#df599cd2#, 16#733f55f2#, 16#ce791814#, 16#37bf73c7#, 16#cdea53f7#, 16#aa5b5ffd#, 16#6f14df3d#, 16#db867844#, 16#f381caaf#, 16#c43eb968#, 16#342c3824#, 16#405fc2a3#, 16#c372161d#, 16#250cbce2#, 16#498b283c#, 16#9541ff0d#, 16#017139a8#, 16#b3de080c#, 16#e49cd8b4#, 16#c1906456#, 16#84617bcb#, 16#b670d532#, 16#5c74486c#, 16#5742d0b8#); Td3 : constant Sbox := ( 16#f4a75051#, 16#4165537e#, 16#17a4c31a#, 16#275e963a#, 16#ab6bcb3b#, 16#9d45f11f#, 16#fa58abac#, 16#e303934b#, 16#30fa5520#, 16#766df6ad#, 16#cc769188#, 16#024c25f5#, 16#e5d7fc4f#, 16#2acbd7c5#, 16#35448026#, 16#62a38fb5#, 16#b15a49de#, 16#ba1b6725#, 16#ea0e9845#, 16#fec0e15d#, 16#2f7502c3#, 16#4cf01281#, 16#4697a38d#, 16#d3f9c66b#, 16#8f5fe703#, 16#929c9515#, 16#6d7aebbf#, 16#5259da95#, 16#be832dd4#, 16#7421d358#, 16#e0692949#, 16#c9c8448e#, 16#c2896a75#, 16#8e7978f4#, 16#583e6b99#, 16#b971dd27#, 16#e14fb6be#, 16#88ad17f0#, 16#20ac66c9#, 16#ce3ab47d#, 16#df4a1863#, 16#1a3182e5#, 16#51336097#, 16#537f4562#, 16#6477e0b1#, 16#6bae84bb#, 16#81a01cfe#, 16#082b94f9#, 16#48685870#, 16#45fd198f#, 16#de6c8794#, 16#7bf8b752#, 16#73d323ab#, 16#4b02e272#, 16#1f8f57e3#, 16#55ab2a66#, 16#eb2807b2#, 16#b5c2032f#, 16#c57b9a86#, 16#3708a5d3#, 16#2887f230#, 16#bfa5b223#, 16#036aba02#, 16#16825ced#, 16#cf1c2b8a#, 16#79b492a7#, 16#07f2f0f3#, 16#69e2a14e#, 16#daf4cd65#, 16#05bed506#, 16#34621fd1#, 16#a6fe8ac4#, 16#2e539d34#, 16#f355a0a2#, 16#8ae13205#, 16#f6eb75a4#, 16#83ec390b#, 16#60efaa40#, 16#719f065e#, 16#6e1051bd#, 16#218af93e#, 16#dd063d96#, 16#3e05aedd#, 16#e6bd464d#, 16#548db591#, 16#c45d0571#, 16#06d46f04#, 16#5015ff60#, 16#98fb2419#, 16#bde997d6#, 16#4043cc89#, 16#d99e7767#, 16#e842bdb0#, 16#898b8807#, 16#195b38e7#, 16#c8eedb79#, 16#7c0a47a1#, 16#420fe97c#, 16#841ec9f8#, 16#00000000#, 16#80868309#, 16#2bed4832#, 16#1170ac1e#, 16#5a724e6c#, 16#0efffbfd#, 16#8538560f#, 16#aed51e3d#, 16#2d392736#, 16#0fd9640a#, 16#5ca62168#, 16#5b54d19b#, 16#362e3a24#, 16#0a67b10c#, 16#57e70f93#, 16#ee96d2b4#, 16#9b919e1b#, 16#c0c54f80#, 16#dc20a261#, 16#774b695a#, 16#121a161c#, 16#93ba0ae2#, 16#a02ae5c0#, 16#22e0433c#, 16#1b171d12#, 16#090d0b0e#, 16#8bc7adf2#, 16#b6a8b92d#, 16#1ea9c814#, 16#f1198557#, 16#75074caf#, 16#99ddbbee#, 16#7f60fda3#, 16#01269ff7#, 16#72f5bc5c#, 16#663bc544#, 16#fb7e345b#, 16#4329768b#, 16#23c6dccb#, 16#edfc68b6#, 16#e4f163b8#, 16#31dccad7#, 16#63851042#, 16#97224013#, 16#c6112084#, 16#4a247d85#, 16#bb3df8d2#, 16#f93211ae#, 16#29a16dc7#, 16#9e2f4b1d#, 16#b230f3dc#, 16#8652ec0d#, 16#c1e3d077#, 16#b3166c2b#, 16#70b999a9#, 16#9448fa11#, 16#e9642247#, 16#fc8cc4a8#, 16#f03f1aa0#, 16#7d2cd856#, 16#3390ef22#, 16#494ec787#, 16#38d1c1d9#, 16#caa2fe8c#, 16#d40b3698#, 16#f581cfa6#, 16#7ade28a5#, 16#b78e26da#, 16#adbfa43f#, 16#3a9de42c#, 16#78920d50#, 16#5fcc9b6a#, 16#7e466254#, 16#8d13c2f6#, 16#d8b8e890#, 16#39f75e2e#, 16#c3aff582#, 16#5d80be9f#, 16#d0937c69#, 16#d52da96f#, 16#2512b3cf#, 16#ac993bc8#, 16#187da710#, 16#9c636ee8#, 16#3bbb7bdb#, 16#267809cd#, 16#5918f46e#, 16#9ab701ec#, 16#4f9aa883#, 16#956e65e6#, 16#ffe67eaa#, 16#bccf0821#, 16#15e8e6ef#, 16#e79bd9ba#, 16#6f36ce4a#, 16#9f09d4ea#, 16#b07cd629#, 16#a4b2af31#, 16#3f23312a#, 16#a59430c6#, 16#a266c035#, 16#4ebc3774#, 16#82caa6fc#, 16#90d0b0e0#, 16#a7d81533#, 16#04984af1#, 16#ecdaf741#, 16#cd500e7f#, 16#91f62f17#, 16#4dd68d76#, 16#efb04d43#, 16#aa4d54cc#, 16#9604dfe4#, 16#d1b5e39e#, 16#6a881b4c#, 16#2c1fb8c1#, 16#65517f46#, 16#5eea049d#, 16#8c355d01#, 16#877473fa#, 16#0b412efb#, 16#671d5ab3#, 16#dbd25292#, 16#105633e9#, 16#d647136d#, 16#d7618c9a#, 16#a10c7a37#, 16#f8148e59#, 16#133c89eb#, 16#a927eece#, 16#61c935b7#, 16#1ce5ede1#, 16#47b13c7a#, 16#d2df599c#, 16#f2733f55#, 16#14ce7918#, 16#c737bf73#, 16#f7cdea53#, 16#fdaa5b5f#, 16#3d6f14df#, 16#44db8678#, 16#aff381ca#, 16#68c43eb9#, 16#24342c38#, 16#a3405fc2#, 16#1dc37216#, 16#e2250cbc#, 16#3c498b28#, 16#0d9541ff#, 16#a8017139#, 16#0cb3de08#, 16#b4e49cd8#, 16#56c19064#, 16#cb84617b#, 16#32b670d5#, 16#6c5c7448#, 16#b85742d0#); Td4 : constant Final_Sbox := ( 16#52#, 16#09#, 16#6a#, 16#d5#, 16#30#, 16#36#, 16#a5#, 16#38#, 16#bf#, 16#40#, 16#a3#, 16#9e#, 16#81#, 16#f3#, 16#d7#, 16#fb#, 16#7c#, 16#e3#, 16#39#, 16#82#, 16#9b#, 16#2f#, 16#ff#, 16#87#, 16#34#, 16#8e#, 16#43#, 16#44#, 16#c4#, 16#de#, 16#e9#, 16#cb#, 16#54#, 16#7b#, 16#94#, 16#32#, 16#a6#, 16#c2#, 16#23#, 16#3d#, 16#ee#, 16#4c#, 16#95#, 16#0b#, 16#42#, 16#fa#, 16#c3#, 16#4e#, 16#08#, 16#2e#, 16#a1#, 16#66#, 16#28#, 16#d9#, 16#24#, 16#b2#, 16#76#, 16#5b#, 16#a2#, 16#49#, 16#6d#, 16#8b#, 16#d1#, 16#25#, 16#72#, 16#f8#, 16#f6#, 16#64#, 16#86#, 16#68#, 16#98#, 16#16#, 16#d4#, 16#a4#, 16#5c#, 16#cc#, 16#5d#, 16#65#, 16#b6#, 16#92#, 16#6c#, 16#70#, 16#48#, 16#50#, 16#fd#, 16#ed#, 16#b9#, 16#da#, 16#5e#, 16#15#, 16#46#, 16#57#, 16#a7#, 16#8d#, 16#9d#, 16#84#, 16#90#, 16#d8#, 16#ab#, 16#00#, 16#8c#, 16#bc#, 16#d3#, 16#0a#, 16#f7#, 16#e4#, 16#58#, 16#05#, 16#b8#, 16#b3#, 16#45#, 16#06#, 16#d0#, 16#2c#, 16#1e#, 16#8f#, 16#ca#, 16#3f#, 16#0f#, 16#02#, 16#c1#, 16#af#, 16#bd#, 16#03#, 16#01#, 16#13#, 16#8a#, 16#6b#, 16#3a#, 16#91#, 16#11#, 16#41#, 16#4f#, 16#67#, 16#dc#, 16#ea#, 16#97#, 16#f2#, 16#cf#, 16#ce#, 16#f0#, 16#b4#, 16#e6#, 16#73#, 16#96#, 16#ac#, 16#74#, 16#22#, 16#e7#, 16#ad#, 16#35#, 16#85#, 16#e2#, 16#f9#, 16#37#, 16#e8#, 16#1c#, 16#75#, 16#df#, 16#6e#, 16#47#, 16#f1#, 16#1a#, 16#71#, 16#1d#, 16#29#, 16#c5#, 16#89#, 16#6f#, 16#b7#, 16#62#, 16#0e#, 16#aa#, 16#18#, 16#be#, 16#1b#, 16#fc#, 16#56#, 16#3e#, 16#4b#, 16#c6#, 16#d2#, 16#79#, 16#20#, 16#9a#, 16#db#, 16#c0#, 16#fe#, 16#78#, 16#cd#, 16#5a#, 16#f4#, 16#1f#, 16#dd#, 16#a8#, 16#33#, 16#88#, 16#07#, 16#c7#, 16#31#, 16#b1#, 16#12#, 16#10#, 16#59#, 16#27#, 16#80#, 16#ec#, 16#5f#, 16#60#, 16#51#, 16#7f#, 16#a9#, 16#19#, 16#b5#, 16#4a#, 16#0d#, 16#2d#, 16#e5#, 16#7a#, 16#9f#, 16#93#, 16#c9#, 16#9c#, 16#ef#, 16#a0#, 16#e0#, 16#3b#, 16#4d#, 16#ae#, 16#2a#, 16#f5#, 16#b0#, 16#c8#, 16#eb#, 16#bb#, 16#3c#, 16#83#, 16#53#, 16#99#, 16#61#, 16#17#, 16#2b#, 16#04#, 16#7e#, 16#ba#, 16#77#, 16#d6#, 16#26#, 16#e1#, 16#69#, 16#14#, 16#63#, 16#55#, 16#21#, 16#0c#, 16#7d#); -- for 128-bit blocks, Rijndael never uses more than 10 rcon values Rcon : constant Key_Sbox := ( 16#01000000#, 16#02000000#, 16#04000000#, 16#08000000#, 16#10000000#, 16#20000000#, 16#40000000#, 16#80000000#, 16#1B000000#, 16#36000000#); function To_Unsigned_32 (Data : in Stream_Element_Array; Offset : in Stream_Element_Offset) return Unsigned_32 is begin return Shift_Left (Unsigned_32 (Data (Offset)), 24) or Shift_Left (Unsigned_32 (Data (Offset + 1)), 16) or Shift_Left (Unsigned_32 (Data (Offset + 2)), 8) or Unsigned_32 (Data (Offset + 3)); end To_Unsigned_32; procedure Put_Unsigned_32 (Data : in out Stream_Element_Array; Value : in Unsigned_32; Offset : in Stream_Element_Offset) is begin Data (Offset) := Stream_Element (Shift_Right (Value, 24)); Data (Offset + 1) := Stream_Element (Shift_Right (Value, 16) and 16#0ff#); Data (Offset + 2) := Stream_Element (Shift_Right (Value, 8) and 16#0ff#); Data (Offset + 3) := Stream_Element (Value and 16#0ff#); end Put_Unsigned_32; procedure Set_Encrypt_Key (Key : out Key_Type; Data : in Secret_Key) is Temp : Unsigned_32; N : Natural := 0; I : Natural := 0; pragma Style_Checks ("-mr"); begin Key.Key (0) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 0); Key.Key (1) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 4); Key.Key (2) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 8); Key.Key (3) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 12); if Data.Length = 128 / 8 then Key.Rounds := 10; loop Temp := Key.Key (N + 3); Key.Key (N + 4) := Key.Key (N + 0) xor (Te4 (Shift_Right (Temp, 16) and 16#0ff#) and 16#ff000000#) xor (Te4 (Shift_Right (Temp, 8) and 16#0ff#) and 16#00ff0000#) xor (Te4 (Temp and 16#0ff#) and 16#0000ff00#) xor (Te4 (Shift_Right (Temp, 24) and 16#0ff#) and 16#00ff#) xor Rcon (I); Key.Key (N + 5) := Key.Key (N + 1) xor Key.Key (N + 4); Key.Key (N + 6) := Key.Key (N + 2) xor Key.Key (N + 5); Key.Key (N + 7) := Key.Key (N + 3) xor Key.Key (N + 6); I := I + 1; exit when I = 10; N := N + 4; end loop; return; end if; Key.Key (4) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 16); Key.Key (5) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 20); if Data.Length = 192 / 8 then Key.Rounds := 12; loop Temp := Key.Key (N + 5); Key.Key (N + 6) := Key.Key (N + 0) xor (Te4 (Shift_Right (Temp, 16) and 16#0ff#) and 16#ff000000#) xor (Te4 (Shift_Right (Temp, 8) and 16#0ff#) and 16#00ff0000#) xor (Te4 (Temp and 16#0ff#) and 16#0000ff00#) xor (Te4 (Shift_Right (Temp, 24) and 16#0ff#) and 16#00ff#) xor Rcon (I); Key.Key (N + 7) := Key.Key (N + 1) xor Key.Key (N + 6); Key.Key (N + 8) := Key.Key (N + 2) xor Key.Key (N + 7); Key.Key (N + 9) := Key.Key (N + 3) xor Key.Key (N + 8); I := I + 1; exit when I = 8; Key.Key (N + 10) := Key.Key (N + 4) xor Key.Key (N + 9); Key.Key (N + 11) := Key.Key (N + 5) xor Key.Key (N + 10); N := N + 6; end loop; return; end if; Key.Key (6) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 24); Key.Key (7) := To_Unsigned_32 (Data.Secret, Data.Secret'First + 28); if Data.Length = 256 / 8 then Key.Rounds := 14; loop Temp := Key.Key (N + 7); Key.Key (N + 8) := Key.Key (N + 0) xor (Te4 (Shift_Right (Temp, 16) and 16#0ff#) and 16#ff000000#) xor (Te4 (Shift_Right (Temp, 8) and 16#0ff#) and 16#00ff0000#) xor (Te4 (Temp and 16#0ff#) and 16#0000ff00#) xor (Te4 (Shift_Right (Temp, 24) and 16#0ff#) and 16#00ff#) xor Rcon (I); Key.Key (N + 8) := Key.Key (N + 0); Key.Key (N + 8) := Key.Key (N + 8) xor (Te4 (Shift_Right (Temp, 16) and 16#0ff#) and 16#ff000000#); Key.Key (N + 8) := Key.Key (N + 8) xor (Te4 (Shift_Right (Temp, 8) and 16#0ff#) and 16#00ff0000#); Key.Key (N + 8) := Key.Key (N + 8) xor (Te4 (Temp and 16#0ff#) and 16#0000ff00#); Key.Key (N + 8) := Key.Key (N + 8) xor (Te4 (Shift_Right (Temp, 24) and 16#0ff#) and 16#00ff#); Key.Key (N + 8) := Key.Key (N + 8) xor Rcon (I); Key.Key (N + 9) := Key.Key (N + 1) xor Key.Key (N + 8); Key.Key (N + 10) := Key.Key (N + 2) xor Key.Key (N + 9); Key.Key (N + 11) := Key.Key (N + 3) xor Key.Key (N + 10); I := I + 1; exit when I = 7; Temp := Key.Key (N + 11); Key.Key (N + 12) := Key.Key (N + 4) xor (Te4 (Shift_Right (Temp, 24) and 16#0ff#) and 16#ff000000#) xor (Te4 (Shift_Right (Temp, 16) and 16#0ff#) and 16#00ff0000#) xor (Te4 (Shift_Right (Temp, 8) and 16#0ff#) and 16#0000ff00#) xor (Te4 (Temp and 16#0ff#) and 16#00ff#); Key.Key (N + 13) := Key.Key (N + 5) xor Key.Key (N + 12); Key.Key (N + 14) := Key.Key (N + 6) xor Key.Key (N + 13); Key.Key (N + 15) := Key.Key (N + 7) xor Key.Key (N + 14); N := N + 8; end loop; return; end if; end Set_Encrypt_Key; procedure Swap (A, B : in out Unsigned_32); procedure Swap (A, B : in out Unsigned_32) is Temp : constant Unsigned_32 := A; begin A := B; B := Temp; end Swap; procedure Set_Decrypt_Key (Key : out Key_Type; Data : in Secret_Key) is I : Natural := 0; J : Natural := 0; Last : Natural; begin Set_Encrypt_Key (Key, Data); Last := 4 * Key.Rounds; J := Last; while I < J loop Swap (Key.Key (I), Key.Key (J)); Swap (Key.Key (I + 1), Key.Key (J + 1)); Swap (Key.Key (I + 2), Key.Key (J + 2)); Swap (Key.Key (I + 3), Key.Key (J + 3)); I := I + 4; J := J - 4; end loop; I := 4; while I <= Last - 4 loop Key.Key (I) := Td0 (Te4 (Shift_Right (Key.Key (I), 24) and 16#0ff#) and 16#0ff#) xor Td1 (Te4 (Shift_Right (Key.Key (I), 16) and 16#0ff#) and 16#0ff#) xor Td2 (Te4 (Shift_Right (Key.Key (I), 8) and 16#0ff#) and 16#0ff#) xor Td3 (Te4 (Key.Key (I) and 16#0ff#) and 16#0ff#); Key.Key (I + 1) := Td0 (Te4 (Shift_Right (Key.Key (I + 1), 24) and 16#0ff#) and 16#0ff#) xor Td1 (Te4 (Shift_Right (Key.Key (I + 1), 16) and 16#0ff#) and 16#0ff#) xor Td2 (Te4 (Shift_Right (Key.Key (I + 1), 8) and 16#0ff#) and 16#0ff#) xor Td3 (Te4 (Key.Key (I + 1) and 16#0ff#) and 16#0ff#); Key.Key (I + 2) := Td0 (Te4 (Shift_Right (Key.Key (I + 2), 24) and 16#0ff#) and 16#0ff#) xor Td1 (Te4 (Shift_Right (Key.Key (I + 2), 16) and 16#0ff#) and 16#0ff#) xor Td2 (Te4 (Shift_Right (Key.Key (I + 2), 8) and 16#0ff#) and 16#0ff#) xor Td3 (Te4 (Key.Key (I + 2) and 16#0ff#) and 16#0ff#); Key.Key (I + 3) := Td0 (Te4 (Shift_Right (Key.Key (I + 3), 24) and 16#0ff#) and 16#0ff#) xor Td1 (Te4 (Shift_Right (Key.Key (I + 3), 16) and 16#0ff#) and 16#0ff#) xor Td2 (Te4 (Shift_Right (Key.Key (I + 3), 8) and 16#0ff#) and 16#0ff#) xor Td3 (Te4 (Key.Key (I + 3) and 16#0ff#) and 16#0ff#); I := I + 4; end loop; end Set_Decrypt_Key; -- ------------------------------ -- Set the encryption initialization vector before starting the encryption. -- ------------------------------ procedure Set_IV (E : in out Cipher; IV : in Word_Block_Type) is begin E.IV := IV; end Set_IV; procedure Set_IV (E : in out Cipher; Key : in Secret_Key) is Pos : Stream_Element_Offset := Key.Secret'First; begin for I in E.IV'Range loop E.IV (I) := To_Unsigned_32 (Key.Secret, Pos); Pos := Pos + 4; end loop; end Set_IV; procedure Set_IV (E : in out Cipher; Key : in Secret_Key; IV : in Word_Block_Type) is Pos : Stream_Element_Offset := Key.Secret'First; begin E.IV := IV; for I in E.IV'Range loop exit when Pos + 3 > Key.Secret'Last; E.IV (I) := E.IV (I) xor To_Unsigned_32 (Key.Secret, Pos); Pos := Pos + 4; end loop; end Set_IV; -- ------------------------------ -- Set the padding. -- ------------------------------ procedure Set_Padding (E : in out Cipher; Padding : in AES_Padding) is begin E.Padding := Padding; end Set_Padding; -- ------------------------------ -- Get the padding used. -- ------------------------------ function Padding (E : in Cipher) return AES_Padding is begin return E.Padding; end Padding; -- ------------------------------ -- Return true if the cipher has a encryption/decryption key configured. -- ------------------------------ function Has_Key (E : in Cipher) return Boolean is begin return E.Key.Rounds > 0; end Has_Key; overriding procedure Finalize (Object : in out Cipher) is begin Object.Key.Key := (others => 0); Object.IV := (others => 0); Object.Data := (others => 0); end Finalize; -- ------------------------------ -- Set the encryption key to use. -- ------------------------------ procedure Set_Key (E : in out Encoder; Data : in Secret_Key; Mode : in AES_Mode := CBC) is begin Set_Encrypt_Key (E.Key, Data); E.Mode := Mode; end Set_Key; -- ------------------------------ -- Encodes the binary input stream represented by <b>Data</b> into -- an SHA-1 hash output stream <b>Into</b>. -- -- If the transformer does not have enough room to write the result, -- it must return in <b>Encoded</b> the index of the last encoded -- position in the <b>Data</b> stream. -- -- The transformer returns in <b>Last</b> the last valid position -- in the output stream <b>Into</b>. -- -- The <b>Encoding_Error</b> exception is raised if the input -- stream cannot be transformed. -- ------------------------------ overriding procedure Transform (E : in out Encoder; Data : in Ada.Streams.Stream_Element_Array; Into : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; Encoded : out Ada.Streams.Stream_Element_Offset) is Pos : Ada.Streams.Stream_Element_Offset := Data'First; R : Word_Block_Type; Pos_Limit : Ada.Streams.Stream_Element_Offset; Last_Limit : Ada.Streams.Stream_Element_Offset; begin Last := Into'First; if E.Data_Count > 0 then while E.Data_Count < E.Data'Last loop E.Data_Count := E.Data_Count + 1; E.Data (E.Data_Count) := Data (Pos); Pos := Pos + 1; exit when E.Data_Count = E.Data'Last; if Pos > Data'Last then Encoded := Data'Last; return; end if; end loop; -- Encrypt current block. case E.Mode is when ECB => Encrypt (E.Data, Into (Last .. Last + Block_Type'Length - 1), E.Key); when CBC => E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12); Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); when PCBC => E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12); Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12); when CFB => Encrypt (E.IV, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, Pos + 12); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); when OFB => Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (E.Data, Pos), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (E.Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (E.Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (E.Data, Pos + 12), Last + 12); when CTR => Encrypt (E.IV, R, E.Key); Put_Unsigned_32 (Into, R (1) xor To_Unsigned_32 (E.Data, Pos), Last); Put_Unsigned_32 (Into, R (2) xor To_Unsigned_32 (E.Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, R (3) xor To_Unsigned_32 (E.Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, R (4) xor To_Unsigned_32 (E.Data, Pos + 12), Last + 12); E.IV (4) := E.IV (4) + 1; if E.IV (4) = 0 then E.IV (3) := E.IV (3) + 1; end if; end case; Last := Last + Block_Type'Length; E.Data_Count := 0; end if; Pos_Limit := Data'Last - Block_Type'Length + 1; Last_Limit := Into'Last - Block_Type'Length + 1; case E.Mode is when ECB => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (Data (Pos .. Pos + Block_Type'Length - 1), Into (Last .. Last + Block_Type'Length - 1), E.Key); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CBC => while Pos <= Pos_Limit and Last <= Last_Limit loop E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Pos + 12); Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when PCBC => while Pos <= Pos_Limit and Last <= Last_Limit loop E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Pos + 12); Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Pos + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CFB => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Pos + 12); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when OFB => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (Data, Pos), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (Data, Pos + 12), Last + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CTR => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, R, E.Key); Put_Unsigned_32 (Into, R (1) xor To_Unsigned_32 (Data, Pos), Last); Put_Unsigned_32 (Into, R (2) xor To_Unsigned_32 (Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, R (3) xor To_Unsigned_32 (Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, R (4) xor To_Unsigned_32 (Data, Pos + 12), Last + 12); E.IV (4) := E.IV (4) + 1; if E.IV (4) = 0 then E.IV (3) := E.IV (3) + 1; end if; Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; end case; -- Save data that must be encoded in the next 16-byte AES block. while Pos <= Data'Last loop E.Data_Count := E.Data_Count + 1; E.Data (E.Data_Count) := Data (Pos); Pos := Pos + 1; end loop; Last := Last - 1; Encoded := Pos; end Transform; -- Finish encoding the input array. overriding procedure Finish (E : in out Encoder; Into : in out Ada.Streams.Stream_Element_Array; Last : in out Ada.Streams.Stream_Element_Offset) is Padding : constant Ada.Streams.Stream_Element_Offset := 16 - E.Data_Count; Pad_Value : constant Stream_Element := (if E.Padding = ZERO_PADDING then 0 else Stream_Element (Padding mod 16)); Pad : constant Ada.Streams.Stream_Element_Array (1 .. Padding) := (others => Pad_Value); Encoded : Ada.Streams.Stream_Element_Offset; begin E.Transform (Pad, Into, Last, Encoded); pragma Assert (Encoded = Pad'Last + 1); pragma Assert (E.Data_Count = 0); end Finish; -- ------------------------------ -- Encrypt the secret using the encoder and return the encrypted value in the buffer. -- The target buffer must be a multiple of 16-bytes block. -- ------------------------------ procedure Encrypt_Secret (E : in out Encoder; Secret : in Secret_Key; Into : out Ada.Streams.Stream_Element_Array) is Last : Ada.Streams.Stream_Element_Offset; Encoded : Ada.Streams.Stream_Element_Offset; begin E.Transform (Data => Secret.Secret, Into => Into (Into'First .. Into'Last - 16), Last => Last, Encoded => Encoded); E.Finish (Into => Into (Last + 1 .. Into'Last), Last => Last); end Encrypt_Secret; -- ------------------------------ -- Set the encryption key to use. -- ------------------------------ procedure Set_Key (E : in out Decoder; Data : in Secret_Key; Mode : in AES_Mode := CBC) is begin if Mode = OFB or MODE = CFB or MODE = CTR then Set_Encrypt_Key (E.Key, Data); else Set_Decrypt_Key (E.Key, Data); end if; E.Mode := Mode; end Set_Key; -- ------------------------------ -- Encodes the binary input stream represented by <b>Data</b> into -- an SHA-1 hash output stream <b>Into</b>. -- -- If the transformer does not have enough room to write the result, -- it must return in <b>Encoded</b> the index of the last encoded -- position in the <b>Data</b> stream. -- -- The transformer returns in <b>Last</b> the last valid position -- in the output stream <b>Into</b>. -- -- The <b>Encoding_Error</b> exception is raised if the input -- stream cannot be transformed. -- ------------------------------ overriding procedure Transform (E : in out Decoder; Data : in Ada.Streams.Stream_Element_Array; Into : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; Encoded : out Ada.Streams.Stream_Element_Offset) is Pos : Ada.Streams.Stream_Element_Offset := Data'First; R : Word_Block_Type; Pos_Limit : Ada.Streams.Stream_Element_Offset; Last_Limit : Ada.Streams.Stream_Element_Offset; begin Last := Into'First; if E.Data_Count > 0 then while E.Data_Count /= 16 loop E.Data_Count := E.Data_Count + 1; E.Data (E.Data_Count) := Data (Pos); Pos := Pos + 1; if Pos > Data'Last then Encoded := Data'Last; return; end if; end loop; -- Decrypt current block. case E.Mode is when ECB => Decrypt (E.Data, Into (Last .. Last + Block_Type'Length - 1), E.Key); when CBC => Decrypt (E.Data, E.Data2, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (E.Data2, E.Data2'First), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (E.Data2, E.Data2'First + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (E.Data2, E.Data2'First + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (E.Data2, E.Data2'First + 12), Last + 12); E.IV (1) := To_Unsigned_32 (E.Data, Pos); E.IV (2) := To_Unsigned_32 (E.Data, Pos + 4); E.IV (3) := To_Unsigned_32 (E.Data, Pos + 8); E.IV (4) := To_Unsigned_32 (E.Data, Pos + 12); when PCBC => Decrypt (E.Data, E.Data2, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data2, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data2, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data2, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data2, Pos + 12); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, Pos + 12); when CFB => Encrypt (E.IV, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, Pos + 12); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); when OFB => Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (E.Data, Pos), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (E.Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (E.Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (E.Data, Pos + 12), Last + 12); when CTR => Encrypt (E.IV, R, E.Key); Put_Unsigned_32 (Into, R (1) xor To_Unsigned_32 (E.Data, Pos), Last); Put_Unsigned_32 (Into, R (2) xor To_Unsigned_32 (E.Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, R (3) xor To_Unsigned_32 (E.Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, R (4) xor To_Unsigned_32 (E.Data, Pos + 12), Last + 12); E.IV (4) := E.IV (4) + 1; if E.IV (4) = 0 then E.IV (3) := E.IV (3) + 1; end if; end case; Last := Last + Block_Type'Length; E.Data_Count := 0; end if; -- Exclude the last 16 bytes Pos_Limit := Data'Last - Block_Type'Length; Last_Limit := Into'Last - Block_Type'Length; case E.Mode is when ECB => while Pos <= Pos_Limit and Last <= Last_Limit loop Decrypt (Data (Pos .. Pos + Block_Type'Length - 1), Into (Last .. Last + Block_Type'Length - 1), E.Key); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CBC => while Pos <= Pos_Limit and Last <= Last_Limit loop Decrypt (Data (Pos .. Pos + Block_Type'Length - 1), E.Data, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12), Last + 12); E.IV (1) := To_Unsigned_32 (Data, Pos); E.IV (2) := To_Unsigned_32 (Data, Pos + 4); E.IV (3) := To_Unsigned_32 (Data, Pos + 8); E.IV (4) := To_Unsigned_32 (Data, Pos + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when PCBC => while Pos <= Pos_Limit and Last <= Last_Limit loop Decrypt (Data (Pos .. Pos + Block_Type'Length - 1), E.Data, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12); Put_Unsigned_32 (Into, E.IV (1), Last); Put_Unsigned_32 (Into, E.IV (2), Last + 4); Put_Unsigned_32 (Into, E.IV (3), Last + 8); Put_Unsigned_32 (Into, E.IV (4), Last + 12); E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Pos); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Pos + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Pos + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Pos + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CFB => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, E.Key); declare Val : Unsigned_32; begin Val := To_Unsigned_32 (Data, Pos); Put_Unsigned_32 (Into, E.IV (1) xor Val, Last); E.IV (1) := Val; Val := To_Unsigned_32 (Data, Pos + 4); Put_Unsigned_32 (Into, E.IV (2) xor Val, Last + 4); E.IV (2) := Val; Val := To_Unsigned_32 (Data, Pos + 8); Put_Unsigned_32 (Into, E.IV (3) xor val, Last + 8); E.IV (3) := Val; Val := To_Unsigned_32 (Data, Pos + 12); Put_Unsigned_32 (Into, E.IV (4) xor Val, Last + 12); E.IV (4) := Val; end; Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when OFB => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, E.Key); Put_Unsigned_32 (Into, E.IV (1) xor To_Unsigned_32 (Data, Pos), Last); Put_Unsigned_32 (Into, E.IV (2) xor To_Unsigned_32 (Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, E.IV (3) xor To_Unsigned_32 (Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, E.IV (4) xor To_Unsigned_32 (Data, Pos + 12), Last + 12); Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; when CTR => while Pos <= Pos_Limit and Last <= Last_Limit loop Encrypt (E.IV, R, E.Key); Put_Unsigned_32 (Into, R (1) xor To_Unsigned_32 (Data, Pos), Last); Put_Unsigned_32 (Into, R (2) xor To_Unsigned_32 (Data, Pos + 4), Last + 4); Put_Unsigned_32 (Into, R (3) xor To_Unsigned_32 (Data, Pos + 8), Last + 8); Put_Unsigned_32 (Into, R (4) xor To_Unsigned_32 (Data, Pos + 12), Last + 12); E.IV (4) := E.IV (4) + 1; if E.IV (4) = 0 then E.IV (3) := E.IV (3) + 1; end if; Last := Last + Block_Type'Length; Pos := Pos + Block_Type'Length; end loop; end case; -- Save data that must be encoded in the next 16-byte AES block. if Data'Last - Pos < E.Data'Length then while Pos <= Data'Last loop E.Data_Count := E.Data_Count + 1; E.Data (E.Data_Count) := Data (Pos); Pos := Pos + 1; end loop; end if; Last := Last - 1; Encoded := Pos; end Transform; -- Finish encoding the input array. overriding procedure Finish (E : in out Decoder; Into : in out Ada.Streams.Stream_Element_Array; Last : in out Ada.Streams.Stream_Element_Offset) is Data : Block_Type; Count : Ada.Streams.Stream_Element_Offset; begin case E.Mode is when ECB => Decrypt (E.Data, Data, E.Key); when CBC => Decrypt (E.Data, Data, E.Key); Put_Unsigned_32 (Data, E.IV (1) xor To_Unsigned_32 (Data, Data'First), Data'First); Put_Unsigned_32 (Data, E.IV (2) xor To_Unsigned_32 (Data, Data'First + 4), Data'First + 4); Put_Unsigned_32 (Data, E.IV (3) xor To_Unsigned_32 (Data, Data'First + 8), Data'First + 8); Put_Unsigned_32 (Data, E.IV (4) xor To_Unsigned_32 (Data, Data'First + 12), Data'First + 12); E.IV (1) := To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := To_Unsigned_32 (E.Data, E.Data'First + 12); when PCBC => Decrypt (E.Data, Data, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (Data, Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (Data, Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (Data, Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (Data, Data'First + 12); Put_Unsigned_32 (Data, E.IV (1), Data'First); Put_Unsigned_32 (Data, E.IV (2), Data'First + 4); Put_Unsigned_32 (Data, E.IV (3), Data'First + 8); Put_Unsigned_32 (Data, E.IV (4), Data'First + 12); when OFB => Encrypt (E.IV, E.Key); Put_Unsigned_32 (Data, E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First), Data'First); Put_Unsigned_32 (Data, E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4), Data'First + 4); Put_Unsigned_32 (Data, E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8), Data'First + 8); Put_Unsigned_32 (Data, E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12), Data'First + 12); when CFB => Encrypt (E.IV, E.Key); E.IV (1) := E.IV (1) xor To_Unsigned_32 (E.Data, E.Data'First); E.IV (2) := E.IV (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4); E.IV (3) := E.IV (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8); E.IV (4) := E.IV (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12); Put_Unsigned_32 (Data, E.IV (1), Data'First); Put_Unsigned_32 (Data, E.IV (2), Data'First + 4); Put_Unsigned_32 (Data, E.IV (3), Data'First + 8); Put_Unsigned_32 (Data, E.IV (4), Data'First + 12); when CTR => declare R : Word_Block_Type; begin Encrypt (E.IV, R, E.Key); Put_Unsigned_32 (Data, R (1) xor To_Unsigned_32 (E.Data, E.Data'First), Data'First); Put_Unsigned_32 (Data, R (2) xor To_Unsigned_32 (E.Data, E.Data'First + 4), Data'First + 4); Put_Unsigned_32 (Data, R (3) xor To_Unsigned_32 (E.Data, E.Data'First + 8), Data'First + 8); Put_Unsigned_32 (Data, R (4) xor To_Unsigned_32 (E.Data, E.Data'First + 12), Data'First + 12); end; end case; if E.Padding = NO_PADDING then Last := Into'First + 16 - 1; Into (Into'First .. Last) := Data (Data'First .. Data'Last); elsif E.Padding = ZERO_PADDING then Last := Into'Last; Into (Into'First .. Last) := Data (Data'First .. Data'First + Into'Length - 1); elsif Data (Data'Last) = 0 then Last := Into'First - 1; elsif Data (Data'Last) <= 15 then Count := Data'Length - Ada.Streams.Stream_Element_Offset (Data (Data'Last)); Last := Into'First + Count - 1; Into (Into'First .. Last) := Data (Data'First .. Data'First + Count - 1); end if; E.Data_Count := 0; end Finish; -- Decrypt the content of data using the decoder and build the secret key. procedure Decrypt_Secret (E : in out Decoder; Data : in Ada.Streams.Stream_Element_Array; Secret : in out Secret_Key) is Last : Ada.Streams.Stream_Element_Offset; Encoded : Ada.Streams.Stream_Element_Offset; begin if E.Padding = NO_PADDING then E.Transform (Data => Data, Into => Secret.Secret (Secret.Secret'First .. Secret.Secret'Last), Last => Last, Encoded => Encoded); E.Finish (Into => Secret.Secret (Last + 1 .. Secret.Secret'Last), Last => Last); else E.Transform (Data => Data, Into => Secret.Secret (Secret.Secret'First .. Secret.Secret'Last - 16), Last => Last, Encoded => Encoded); E.Finish (Into => Secret.Secret (Last + 1 .. Secret.Secret'Last), Last => Last); end if; end Decrypt_Secret; procedure Encrypt (Input : in Ada.Streams.Stream_Element_Array; Output : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; Key : in Key_Type) is First : Ada.Streams.Stream_Element_Offset := Input'First; Pad : Ada.Streams.Stream_Element_Offset; Remain : Ada.Streams.Stream_Element_Offset; begin Last := Output'First; while First + 16 <= Input'Last loop Encrypt (Input (First .. First + 15), Output (Last .. Last + 15), Key); First := First + 16; Last := Last + 16; end loop; Remain := Input'Last - First; if Remain > 0 then declare B : Block_Type; begin Pad := B'Length - Remain; B (B'First .. B'First + Remain - 1) := Input (First .. Input'Last); B (B'First + Remain .. B'Last) := (others => Stream_Element (Pad)); Encrypt (B, Output (Last .. Last + 16), Key); Last := Last + 16; end; end if; end Encrypt; procedure Encrypt (Data : in out Word_Block_Type; Key : in Key_Type) is S0, S1, S2, S3 : Unsigned_32; T0, T1, T2, T3 : Unsigned_32; N : Natural := 0; R : Natural := Key.Rounds / 2; begin S0 := Data (1) xor Key.Key (0); S1 := Data (2) xor Key.Key (1); S2 := Data (3) xor Key.Key (2); S3 := Data (4) xor Key.Key (3); loop T0 := Te0 (Shift_Right (S0, 24) and 16#0ff#) xor Te1 (Shift_Right (S1, 16) and 16#0ff#) xor Te2 (Shift_Right (S2, 8) and 16#0ff#) xor Te3 (S3 and 16#0ff#) xor Key.Key (N + 4); T1 := Te0 (Shift_Right (S1, 24) and 16#0ff#) xor Te1 (Shift_Right (S2, 16) and 16#0ff#) xor Te2 (Shift_Right (S3, 8) and 16#0ff#) xor Te3 (S0 and 16#0ff#) xor Key.Key (N + 5); T2 := Te0 (Shift_Right (S2, 24) and 16#0ff#) xor Te1 (Shift_Right (S3, 16) and 16#0ff#) xor Te2 (Shift_Right (S0, 8) and 16#0ff#) xor Te3 (S1 and 16#0ff#) xor Key.Key (N + 6); T3 := Te0 (Shift_Right (S3, 24) and 16#0ff#) xor Te1 (Shift_Right (S0, 16) and 16#0ff#) xor Te2 (Shift_Right (S1, 8) and 16#0ff#) xor Te3 (S2 and 16#0ff#) xor Key.Key (N + 7); N := N + 8; R := R - 1; exit when R = 0; S0 := Te0 (Shift_Right (T0, 24) and 16#0ff#) xor Te1 (Shift_Right (T1, 16) and 16#0ff#) xor Te2 (Shift_Right (T2, 8) and 16#0ff#) xor Te3 (T3 and 16#0ff#) xor Key.Key (N + 0); S1 := Te0 (Shift_Right (T1, 24) and 16#0ff#) xor Te1 (Shift_Right (T2, 16) and 16#0ff#) xor Te2 (Shift_Right (T3, 8) and 16#0ff#) xor Te3 (T0 and 16#0ff#) xor Key.Key (N + 1); S2 := Te0 (Shift_Right (T2, 24) and 16#0ff#) xor Te1 (Shift_Right (T3, 16) and 16#0ff#) xor Te2 (Shift_Right (T0, 8) and 16#0ff#) xor Te3 (T1 and 16#0ff#) xor Key.Key (N + 2); S3 := Te0 (Shift_Right (T3, 24) and 16#0ff#) xor Te1 (Shift_Right (T0, 16) and 16#0ff#) xor Te2 (Shift_Right (T1, 8) and 16#0ff#) xor Te3 (T2 and 16#0ff#) xor Key.Key (N + 3); end loop; S0 := (Te2 (Shift_Right (T0, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T1, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T2, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T3 and 16#0ff#) and 16#0ff#) xor Key.Key (N); Data (1) := S0; S1 := (Te2 (Shift_Right (T1, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T2, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T3, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T0 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 1); Data (2) := S1; S2 := (Te2 (Shift_Right (T2, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T3, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T0, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T1 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 2); Data (3) := S2; S3 := (Te2 (Shift_Right (T3, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T0, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T1, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T2 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 3); Data (4) := S3; end Encrypt; procedure Encrypt (Input : in Word_Block_Type; Output : out Word_Block_Type; Key : in Key_Type) is S0, S1, S2, S3 : Unsigned_32; T0, T1, T2, T3 : Unsigned_32; N : Natural := 0; R : Natural := Key.Rounds / 2; begin S0 := Input (1) xor Key.Key (0); S1 := Input (2) xor Key.Key (1); S2 := Input (3) xor Key.Key (2); S3 := Input (4) xor Key.Key (3); loop T0 := Te0 (Shift_Right (S0, 24) and 16#0ff#) xor Te1 (Shift_Right (S1, 16) and 16#0ff#) xor Te2 (Shift_Right (S2, 8) and 16#0ff#) xor Te3 (S3 and 16#0ff#) xor Key.Key (N + 4); T1 := Te0 (Shift_Right (S1, 24) and 16#0ff#) xor Te1 (Shift_Right (S2, 16) and 16#0ff#) xor Te2 (Shift_Right (S3, 8) and 16#0ff#) xor Te3 (S0 and 16#0ff#) xor Key.Key (N + 5); T2 := Te0 (Shift_Right (S2, 24) and 16#0ff#) xor Te1 (Shift_Right (S3, 16) and 16#0ff#) xor Te2 (Shift_Right (S0, 8) and 16#0ff#) xor Te3 (S1 and 16#0ff#) xor Key.Key (N + 6); T3 := Te0 (Shift_Right (S3, 24) and 16#0ff#) xor Te1 (Shift_Right (S0, 16) and 16#0ff#) xor Te2 (Shift_Right (S1, 8) and 16#0ff#) xor Te3 (S2 and 16#0ff#) xor Key.Key (N + 7); N := N + 8; R := R - 1; exit when R = 0; S0 := Te0 (Shift_Right (T0, 24) and 16#0ff#) xor Te1 (Shift_Right (T1, 16) and 16#0ff#) xor Te2 (Shift_Right (T2, 8) and 16#0ff#) xor Te3 (T3 and 16#0ff#) xor Key.Key (N + 0); S1 := Te0 (Shift_Right (T1, 24) and 16#0ff#) xor Te1 (Shift_Right (T2, 16) and 16#0ff#) xor Te2 (Shift_Right (T3, 8) and 16#0ff#) xor Te3 (T0 and 16#0ff#) xor Key.Key (N + 1); S2 := Te0 (Shift_Right (T2, 24) and 16#0ff#) xor Te1 (Shift_Right (T3, 16) and 16#0ff#) xor Te2 (Shift_Right (T0, 8) and 16#0ff#) xor Te3 (T1 and 16#0ff#) xor Key.Key (N + 2); S3 := Te0 (Shift_Right (T3, 24) and 16#0ff#) xor Te1 (Shift_Right (T0, 16) and 16#0ff#) xor Te2 (Shift_Right (T1, 8) and 16#0ff#) xor Te3 (T2 and 16#0ff#) xor Key.Key (N + 3); end loop; S0 := (Te2 (Shift_Right (T0, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T1, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T2, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T3 and 16#0ff#) and 16#0ff#) xor Key.Key (N); Output (1) := S0; S1 := (Te2 (Shift_Right (T1, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T2, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T3, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T0 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 1); Output (2) := S1; S2 := (Te2 (Shift_Right (T2, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T3, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T0, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T1 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 2); Output (3) := S2; S3 := (Te2 (Shift_Right (T3, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T0, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T1, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T2 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 3); Output (4) := S3; end Encrypt; procedure Encrypt (Input : in Block_Type; Output : out Block_Type; Key : in Key_Type) is S0, S1, S2, S3 : Unsigned_32; T0, T1, T2, T3 : Unsigned_32; N : Natural := 0; R : Natural := Key.Rounds / 2; begin S0 := To_Unsigned_32 (Input, Input'First + 0) xor Key.Key (0); S1 := To_Unsigned_32 (Input, Input'First + 4) xor Key.Key (1); S2 := To_Unsigned_32 (Input, Input'First + 8) xor Key.Key (2); S3 := To_Unsigned_32 (Input, Input'First + 12) xor Key.Key (3); loop T0 := Te0 (Shift_Right (S0, 24) and 16#0ff#) xor Te1 (Shift_Right (S1, 16) and 16#0ff#) xor Te2 (Shift_Right (S2, 8) and 16#0ff#) xor Te3 (S3 and 16#0ff#) xor Key.Key (N + 4); T1 := Te0 (Shift_Right (S1, 24) and 16#0ff#) xor Te1 (Shift_Right (S2, 16) and 16#0ff#) xor Te2 (Shift_Right (S3, 8) and 16#0ff#) xor Te3 (S0 and 16#0ff#) xor Key.Key (N + 5); T2 := Te0 (Shift_Right (S2, 24) and 16#0ff#) xor Te1 (Shift_Right (S3, 16) and 16#0ff#) xor Te2 (Shift_Right (S0, 8) and 16#0ff#) xor Te3 (S1 and 16#0ff#) xor Key.Key (N + 6); T3 := Te0 (Shift_Right (S3, 24) and 16#0ff#) xor Te1 (Shift_Right (S0, 16) and 16#0ff#) xor Te2 (Shift_Right (S1, 8) and 16#0ff#) xor Te3 (S2 and 16#0ff#) xor Key.Key (N + 7); N := N + 8; R := R - 1; exit when R = 0; S0 := Te0 (Shift_Right (T0, 24) and 16#0ff#) xor Te1 (Shift_Right (T1, 16) and 16#0ff#) xor Te2 (Shift_Right (T2, 8) and 16#0ff#) xor Te3 (T3 and 16#0ff#) xor Key.Key (N + 0); S1 := Te0 (Shift_Right (T1, 24) and 16#0ff#) xor Te1 (Shift_Right (T2, 16) and 16#0ff#) xor Te2 (Shift_Right (T3, 8) and 16#0ff#) xor Te3 (T0 and 16#0ff#) xor Key.Key (N + 1); S2 := Te0 (Shift_Right (T2, 24) and 16#0ff#) xor Te1 (Shift_Right (T3, 16) and 16#0ff#) xor Te2 (Shift_Right (T0, 8) and 16#0ff#) xor Te3 (T1 and 16#0ff#) xor Key.Key (N + 2); S3 := Te0 (Shift_Right (T3, 24) and 16#0ff#) xor Te1 (Shift_Right (T0, 16) and 16#0ff#) xor Te2 (Shift_Right (T1, 8) and 16#0ff#) xor Te3 (T2 and 16#0ff#) xor Key.Key (N + 3); end loop; S0 := (Te2 (Shift_Right (T0, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T1, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T2, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T3 and 16#0ff#) and 16#0ff#) xor Key.Key (N); Put_Unsigned_32 (Output, S0, Output'First + 0); S1 := (Te2 (Shift_Right (T1, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T2, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T3, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T0 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 1); Put_Unsigned_32 (Output, S1, Output'First + 4); S2 := (Te2 (Shift_Right (T2, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T3, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T0, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T1 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 2); Put_Unsigned_32 (Output, S2, Output'First + 8); S3 := (Te2 (Shift_Right (T3, 24) and 16#0ff#) and 16#ff000000#) xor (Te3 (Shift_Right (T0, 16) and 16#0ff#) and 16#00ff0000#) xor (Te0 (Shift_Right (T1, 8) and 16#0ff#) and 16#0ff00#) xor (Te1 (T2 and 16#0ff#) and 16#0ff#) xor Key.Key (N + 3); Put_Unsigned_32 (Output, S3, Output'First + 12); end Encrypt; procedure Decrypt (Input : in Block_Type; Output : out Block_Type; Key : in Key_Type) is S0, S1, S2, S3 : Unsigned_32; T0, T1, T2, T3 : Unsigned_32; N : Natural := 0; R : Natural := Key.Rounds / 2; begin S0 := To_Unsigned_32 (Input, Input'First + 0) xor Key.Key (0); S1 := To_Unsigned_32 (Input, Input'First + 4) xor Key.Key (1); S2 := To_Unsigned_32 (Input, Input'First + 8) xor Key.Key (2); S3 := To_Unsigned_32 (Input, Input'First + 12) xor Key.Key (3); loop T0 := Td0 (Shift_Right (S0, 24) and 16#0ff#) xor Td1 (Shift_Right (S3, 16) and 16#0ff#) xor Td2 (Shift_Right (S2, 8) and 16#0ff#) xor Td3 (S1 and 16#0ff#) xor Key.Key (N + 4); T1 := Td0 (Shift_Right (S1, 24) and 16#0ff#) xor Td1 (Shift_Right (S0, 16) and 16#0ff#) xor Td2 (Shift_Right (S3, 8) and 16#0ff#) xor Td3 (S2 and 16#0ff#) xor Key.Key (N + 5); T2 := Td0 (Shift_Right (S2, 24) and 16#0ff#) xor Td1 (Shift_Right (S1, 16) and 16#0ff#) xor Td2 (Shift_Right (S0, 8) and 16#0ff#) xor Td3 (S3 and 16#0ff#) xor Key.Key (N + 6); T3 := Td0 (Shift_Right (S3, 24) and 16#0ff#) xor Td1 (Shift_Right (S2, 16) and 16#0ff#) xor Td2 (Shift_Right (S1, 8) and 16#0ff#) xor Td3 (S0 and 16#0ff#) xor Key.Key (N + 7); N := N + 8; R := R - 1; exit when R = 0; S0 := Td0 (Shift_Right (T0, 24) and 16#0ff#) xor Td1 (Shift_Right (T3, 16) and 16#0ff#) xor Td2 (Shift_Right (T2, 8) and 16#0ff#) xor Td3 (T1 and 16#0ff#) xor Key.Key (N + 0); S1 := Td0 (Shift_Right (T1, 24) and 16#0ff#) xor Td1 (Shift_Right (T0, 16) and 16#0ff#) xor Td2 (Shift_Right (T3, 8) and 16#0ff#) xor Td3 (T2 and 16#0ff#) xor Key.Key (N + 1); S2 := Td0 (Shift_Right (T2, 24) and 16#0ff#) xor Td1 (Shift_Right (T1, 16) and 16#0ff#) xor Td2 (Shift_Right (T0, 8) and 16#0ff#) xor Td3 (T3 and 16#0ff#) xor Key.Key (N + 2); S3 := Td0 (Shift_Right (T3, 24) and 16#0ff#) xor Td1 (Shift_Right (T2, 16) and 16#0ff#) xor Td2 (Shift_Right (T1, 8) and 16#0ff#) xor Td3 (T0 and 16#0ff#) xor Key.Key (N + 3); end loop; S0 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T1 and 16#0ff#)) xor Key.Key (N); Put_Unsigned_32 (Output, S0, Output'First + 0); S1 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T2 and 16#0ff#)) xor Key.Key (N + 1); Put_Unsigned_32 (Output, S1, Output'First + 4); S2 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T3 and 16#0ff#)) xor Key.Key (N + 2); Put_Unsigned_32 (Output, S2, Output'First + 8); S3 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T0 and 16#0ff#)) xor Key.Key (N + 3); Put_Unsigned_32 (Output, S3, Output'First + 12); end Decrypt; procedure Decrypt (Input : in Word_Block_Type; Output : out Word_Block_Type; Key : in Key_Type) is S0, S1, S2, S3 : Unsigned_32; T0, T1, T2, T3 : Unsigned_32; N : Natural := 0; R : Natural := Key.Rounds / 2; begin S0 := Input (1) xor Key.Key (0); S1 := Input (2) xor Key.Key (1); S2 := Input (3) xor Key.Key (2); S3 := Input (4) xor Key.Key (3); loop T0 := Td0 (Shift_Right (S0, 24) and 16#0ff#) xor Td1 (Shift_Right (S3, 16) and 16#0ff#) xor Td2 (Shift_Right (S2, 8) and 16#0ff#) xor Td3 (S1 and 16#0ff#) xor Key.Key (N + 4); T1 := Td0 (Shift_Right (S1, 24) and 16#0ff#) xor Td1 (Shift_Right (S0, 16) and 16#0ff#) xor Td2 (Shift_Right (S3, 8) and 16#0ff#) xor Td3 (S2 and 16#0ff#) xor Key.Key (N + 5); T2 := Td0 (Shift_Right (S2, 24) and 16#0ff#) xor Td1 (Shift_Right (S1, 16) and 16#0ff#) xor Td2 (Shift_Right (S0, 8) and 16#0ff#) xor Td3 (S3 and 16#0ff#) xor Key.Key (N + 6); T3 := Td0 (Shift_Right (S3, 24) and 16#0ff#) xor Td1 (Shift_Right (S2, 16) and 16#0ff#) xor Td2 (Shift_Right (S1, 8) and 16#0ff#) xor Td3 (S0 and 16#0ff#) xor Key.Key (N + 7); N := N + 8; R := R - 1; exit when R = 0; S0 := Td0 (Shift_Right (T0, 24) and 16#0ff#) xor Td1 (Shift_Right (T3, 16) and 16#0ff#) xor Td2 (Shift_Right (T2, 8) and 16#0ff#) xor Td3 (T1 and 16#0ff#) xor Key.Key (N + 0); S1 := Td0 (Shift_Right (T1, 24) and 16#0ff#) xor Td1 (Shift_Right (T0, 16) and 16#0ff#) xor Td2 (Shift_Right (T3, 8) and 16#0ff#) xor Td3 (T2 and 16#0ff#) xor Key.Key (N + 1); S2 := Td0 (Shift_Right (T2, 24) and 16#0ff#) xor Td1 (Shift_Right (T1, 16) and 16#0ff#) xor Td2 (Shift_Right (T0, 8) and 16#0ff#) xor Td3 (T3 and 16#0ff#) xor Key.Key (N + 2); S3 := Td0 (Shift_Right (T3, 24) and 16#0ff#) xor Td1 (Shift_Right (T2, 16) and 16#0ff#) xor Td2 (Shift_Right (T1, 8) and 16#0ff#) xor Td3 (T0 and 16#0ff#) xor Key.Key (N + 3); end loop; S0 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T1 and 16#0ff#)) xor Key.Key (N); Output (1) := S0; S1 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T2 and 16#0ff#)) xor Key.Key (N + 1); Output (2) := S1; S2 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T0, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T3 and 16#0ff#)) xor Key.Key (N + 2); Output (3) := S2; S3 := Shift_Left (Unsigned_32 (Td4 (Shift_Right (T3, 24) and 16#0ff#)), 24) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T2, 16) and 16#0ff#)), 16) xor Shift_Left (Unsigned_32 (Td4 (Shift_Right (T1, 8) and 16#0ff#)), 8) xor Unsigned_32 (Td4 (T0 and 16#0ff#)) xor Key.Key (N + 3); Output (4) := S3; end Decrypt; end Util.Encoders.AES;
47.650343
111
0.558622
589da1fcf228bac2a5dd48519929981c67b7ffb6
1,550
ads
Ada
source/oasis/program-elements-function_calls.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-function_calls.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-function_calls.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
2
2019-09-14T23:18:50.000Z
2019-10-02T10:11:40.000Z
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; with Program.Elements.Parameter_Associations; package Program.Elements.Function_Calls is pragma Pure (Program.Elements.Function_Calls); type Function_Call is limited interface and Program.Elements.Expressions.Expression; type Function_Call_Access is access all Function_Call'Class with Storage_Size => 0; not overriding function Prefix (Self : Function_Call) return not null Program.Elements.Expressions.Expression_Access is abstract; not overriding function Parameters (Self : Function_Call) return Program.Elements.Parameter_Associations .Parameter_Association_Vector_Access is abstract; type Function_Call_Text is limited interface; type Function_Call_Text_Access is access all Function_Call_Text'Class with Storage_Size => 0; not overriding function To_Function_Call_Text (Self : aliased in out Function_Call) return Function_Call_Text_Access is abstract; not overriding function Left_Bracket_Token (Self : Function_Call_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Right_Bracket_Token (Self : Function_Call_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Function_Calls;
31.632653
73
0.749032
31a7363cf6481149963b3cd92e8ca18ff0d07232
910
ads
Ada
gdb-7.3/gdb/testsuite/gdb.ada/rec_return/pck.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
gdb-7.3/gdb/testsuite/gdb.ada/rec_return/pck.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
gdb-7.3/gdb/testsuite/gdb.ada/rec_return/pck.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
-- Copyright 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/>. with System; package Pck is type Rec is record X: Integer; S: String (1..8); end record; function Bar return Rec; procedure Do_Nothing (A : System.Address); end Pck;
31.37931
73
0.714286
1300c17f8c7e93b5705129b77c229632b213602c
4,689
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009y.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009y.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009y.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CD1009Y.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 A RECORD REPRESENTATION CLAUSE MAY BE GIVEN IN THE -- PRIVATE PART OF A PACKAGE FOR A PRIVATE TYPE, WHOSE FULL TYPE -- DECLARATION IS A RECORD TYPE, DECLARED IN THE VISIBLE PART -- OF THE SAME PACKAGE. -- HISTORY: -- VCL 10/09/87 CREATED ORIGINAL TEST. -- BCB 03/20/89 CHANGED EXTENSION FROM '.ADA' TO '.DEP', CORRECTED -- CHECKS FOR FAILURE. WITH SYSTEM; WITH REPORT; USE REPORT; PROCEDURE CD1009Y IS BEGIN TEST ("CD1009Y", "A RECORD REPRESENTATION CLAUSE MAY BE GIVEN " & "IN THE PRIVATE PART OF A PACKAGE FOR A " & "PRIVATE TYPE, WHOSE FULL TYPE DECLARATION IS " & "A RECORD TYPE DECLARED IN THE " & "VISIBLE PART OF THE SAME PACKAGE"); DECLARE PACKAGE PACK IS UNITS_PER_INTEGER : CONSTANT := (INTEGER'SIZE + SYSTEM.STORAGE_UNIT - 1) / SYSTEM.STORAGE_UNIT; TYPE CHECK_TYPE_1 IS PRIVATE; PROCEDURE P; PRIVATE TYPE CHECK_TYPE_1 IS RECORD I1 : INTEGER RANGE 0 .. 255; B1 : BOOLEAN; B2 : BOOLEAN; I2 : INTEGER RANGE 0 .. 15; END RECORD; FOR CHECK_TYPE_1 USE RECORD I1 AT 0 * UNITS_PER_INTEGER RANGE 0 .. INTEGER'SIZE - 1; B1 AT 1 * UNITS_PER_INTEGER RANGE 0 .. BOOLEAN'SIZE - 1; B2 AT 2 * UNITS_PER_INTEGER RANGE 0 .. BOOLEAN'SIZE - 1; I2 AT 3 * UNITS_PER_INTEGER RANGE 0 .. INTEGER'SIZE - 1; END RECORD; END PACK; PACKAGE BODY PACK IS PROCEDURE P IS R1 : CHECK_TYPE_1; BEGIN IF R1.I1'FIRST_BIT /= 0 OR R1.I1'LAST_BIT /= INTEGER'SIZE - 1 OR R1.I1'POSITION /= 0 THEN FAILED ("INCORRECT REPRESENTATION FOR R1.I1"); END IF; IF R1.B1'FIRST_BIT /= 0 OR R1.B1'LAST_BIT /= BOOLEAN'SIZE - 1 OR R1.B1'POSITION /= 1 * UNITS_PER_INTEGER THEN FAILED ("INCORRECT REPRESENTATION FOR R1.B1"); END IF; IF R1.B2'FIRST_BIT /= 0 OR R1.B2'LAST_BIT /= BOOLEAN'SIZE - 1 OR R1.B2'POSITION /= 2 * UNITS_PER_INTEGER THEN FAILED ("INCORRECT REPRESENTATION FOR R1.B2"); END IF; IF R1.I2'FIRST_BIT /= 0 OR R1.I2'LAST_BIT /= INTEGER'SIZE - 1 OR R1.I2'POSITION /= 3 * UNITS_PER_INTEGER THEN FAILED ("INCORRECT REPRESENTATION FOR R1.I2"); END IF; END P; END PACK; USE PACK; BEGIN P; END; RESULT; END CD1009Y;
40.422414
79
0.493069
57ce8909c47e3bbfef1d5c5847b6defd00798a54
19,375
ads
Ada
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-scb.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-scb.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-scb.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32WL5x_CM0P.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.SCB is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CPUID_Revision_Field is HAL.UInt4; subtype CPUID_PartNo_Field is HAL.UInt12; subtype CPUID_Constant_Field is HAL.UInt4; subtype CPUID_Variant_Field is HAL.UInt4; subtype CPUID_Implementer_Field is HAL.UInt8; -- CPUID base register type CPUID_Register is record -- Read-only. Revision number Revision : CPUID_Revision_Field; -- Read-only. Part number of the processor PartNo : CPUID_PartNo_Field; -- Read-only. Reads as 0xF Constant_k : CPUID_Constant_Field; -- Read-only. Variant number Variant : CPUID_Variant_Field; -- Read-only. Implementer code Implementer : CPUID_Implementer_Field; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPUID_Register use record Revision at 0 range 0 .. 3; PartNo at 0 range 4 .. 15; Constant_k at 0 range 16 .. 19; Variant at 0 range 20 .. 23; Implementer at 0 range 24 .. 31; end record; subtype ICSR_VECTACTIVE_Field is HAL.UInt9; subtype ICSR_VECTPENDING_Field is HAL.UInt7; -- Interrupt control and state register type ICSR_Register is record -- Active vector VECTACTIVE : ICSR_VECTACTIVE_Field := 16#0#; -- unspecified Reserved_9_10 : HAL.UInt2 := 16#0#; -- Return to base level RETTOBASE : Boolean := False; -- Pending vector VECTPENDING : ICSR_VECTPENDING_Field := 16#0#; -- unspecified Reserved_19_21 : HAL.UInt3 := 16#0#; -- Interrupt pending flag ISRPENDING : Boolean := False; -- unspecified Reserved_23_24 : HAL.UInt2 := 16#0#; -- SysTick exception clear-pending bit PENDSTCLR : Boolean := False; -- SysTick exception set-pending bit PENDSTSET : Boolean := False; -- PendSV clear-pending bit PENDSVCLR : Boolean := False; -- PendSV set-pending bit PENDSVSET : Boolean := False; -- unspecified Reserved_29_30 : HAL.UInt2 := 16#0#; -- NMI set-pending bit. NMIPENDSET : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ICSR_Register use record VECTACTIVE at 0 range 0 .. 8; Reserved_9_10 at 0 range 9 .. 10; RETTOBASE at 0 range 11 .. 11; VECTPENDING at 0 range 12 .. 18; Reserved_19_21 at 0 range 19 .. 21; ISRPENDING at 0 range 22 .. 22; Reserved_23_24 at 0 range 23 .. 24; PENDSTCLR at 0 range 25 .. 25; PENDSTSET at 0 range 26 .. 26; PENDSVCLR at 0 range 27 .. 27; PENDSVSET at 0 range 28 .. 28; Reserved_29_30 at 0 range 29 .. 30; NMIPENDSET at 0 range 31 .. 31; end record; subtype VTOR_TBLOFF_Field is HAL.UInt21; -- Vector table offset register type VTOR_Register is record -- unspecified Reserved_0_8 : HAL.UInt9 := 16#0#; -- Vector table base offset field TBLOFF : VTOR_TBLOFF_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for VTOR_Register use record Reserved_0_8 at 0 range 0 .. 8; TBLOFF at 0 range 9 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype AIRCR_PRIGROUP_Field is HAL.UInt3; subtype AIRCR_VECTKEYSTAT_Field is HAL.UInt16; -- Application interrupt and reset control register type AIRCR_Register is record -- VECTRESET VECTRESET : Boolean := False; -- VECTCLRACTIVE VECTCLRACTIVE : Boolean := False; -- SYSRESETREQ SYSRESETREQ : Boolean := False; -- unspecified Reserved_3_7 : HAL.UInt5 := 16#0#; -- PRIGROUP PRIGROUP : AIRCR_PRIGROUP_Field := 16#0#; -- unspecified Reserved_11_14 : HAL.UInt4 := 16#0#; -- ENDIANESS ENDIANESS : Boolean := False; -- Register key VECTKEYSTAT : AIRCR_VECTKEYSTAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for AIRCR_Register use record VECTRESET at 0 range 0 .. 0; VECTCLRACTIVE at 0 range 1 .. 1; SYSRESETREQ at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; PRIGROUP at 0 range 8 .. 10; Reserved_11_14 at 0 range 11 .. 14; ENDIANESS at 0 range 15 .. 15; VECTKEYSTAT at 0 range 16 .. 31; end record; -- System control register type SCR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- SLEEPONEXIT SLEEPONEXIT : Boolean := False; -- SLEEPDEEP SLEEPDEEP : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Send Event on Pending bit SEVEONPEND : Boolean := False; -- unspecified Reserved_5_31 : HAL.UInt27 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SCR_Register use record Reserved_0_0 at 0 range 0 .. 0; SLEEPONEXIT at 0 range 1 .. 1; SLEEPDEEP at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; SEVEONPEND at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; -- Configuration and control register type CCR_Register is record -- Configures how the processor enters Thread mode NONBASETHRDENA : Boolean := False; -- USERSETMPEND USERSETMPEND : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- UNALIGN_ TRP UNALIGN_TRP : Boolean := False; -- DIV_0_TRP DIV_0_TRP : Boolean := False; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- BFHFNMIGN BFHFNMIGN : Boolean := False; -- STKALIGN STKALIGN : Boolean := False; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CCR_Register use record NONBASETHRDENA at 0 range 0 .. 0; USERSETMPEND at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; UNALIGN_TRP at 0 range 3 .. 3; DIV_0_TRP at 0 range 4 .. 4; Reserved_5_7 at 0 range 5 .. 7; BFHFNMIGN at 0 range 8 .. 8; STKALIGN at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; subtype SHPR1_PRI_4_Field is HAL.UInt8; subtype SHPR1_PRI_5_Field is HAL.UInt8; subtype SHPR1_PRI_6_Field is HAL.UInt8; -- System handler priority registers type SHPR1_Register is record -- Priority of system handler 4 PRI_4 : SHPR1_PRI_4_Field := 16#0#; -- Priority of system handler 5 PRI_5 : SHPR1_PRI_5_Field := 16#0#; -- Priority of system handler 6 PRI_6 : SHPR1_PRI_6_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHPR1_Register use record PRI_4 at 0 range 0 .. 7; PRI_5 at 0 range 8 .. 15; PRI_6 at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype SHPR2_PRI_11_Field is HAL.UInt8; -- System handler priority registers type SHPR2_Register is record -- unspecified Reserved_0_23 : HAL.UInt24 := 16#0#; -- Priority of system handler 11 PRI_11 : SHPR2_PRI_11_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHPR2_Register use record Reserved_0_23 at 0 range 0 .. 23; PRI_11 at 0 range 24 .. 31; end record; subtype SHPR3_PRI_14_Field is HAL.UInt8; subtype SHPR3_PRI_15_Field is HAL.UInt8; -- System handler priority registers type SHPR3_Register is record -- unspecified Reserved_0_15 : HAL.UInt16 := 16#0#; -- Priority of system handler 14 PRI_14 : SHPR3_PRI_14_Field := 16#0#; -- Priority of system handler 15 PRI_15 : SHPR3_PRI_15_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHPR3_Register use record Reserved_0_15 at 0 range 0 .. 15; PRI_14 at 0 range 16 .. 23; PRI_15 at 0 range 24 .. 31; end record; -- System handler control and state register type SHCSR_Register is record -- Memory management fault exception active bit MEMFAULTACT : Boolean := False; -- Bus fault exception active bit BUSFAULTACT : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Usage fault exception active bit USGFAULTACT : Boolean := False; -- unspecified Reserved_4_6 : HAL.UInt3 := 16#0#; -- SVC call active bit SVCALLACT : Boolean := False; -- Debug monitor active bit MONITORACT : Boolean := False; -- unspecified Reserved_9_9 : HAL.Bit := 16#0#; -- PendSV exception active bit PENDSVACT : Boolean := False; -- SysTick exception active bit SYSTICKACT : Boolean := False; -- Usage fault exception pending bit USGFAULTPENDED : Boolean := False; -- Memory management fault exception pending bit MEMFAULTPENDED : Boolean := False; -- Bus fault exception pending bit BUSFAULTPENDED : Boolean := False; -- SVC call pending bit SVCALLPENDED : Boolean := False; -- Memory management fault enable bit MEMFAULTENA : Boolean := False; -- Bus fault enable bit BUSFAULTENA : Boolean := False; -- Usage fault enable bit USGFAULTENA : Boolean := False; -- unspecified Reserved_19_31 : HAL.UInt13 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHCSR_Register use record MEMFAULTACT at 0 range 0 .. 0; BUSFAULTACT at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; USGFAULTACT at 0 range 3 .. 3; Reserved_4_6 at 0 range 4 .. 6; SVCALLACT at 0 range 7 .. 7; MONITORACT at 0 range 8 .. 8; Reserved_9_9 at 0 range 9 .. 9; PENDSVACT at 0 range 10 .. 10; SYSTICKACT at 0 range 11 .. 11; USGFAULTPENDED at 0 range 12 .. 12; MEMFAULTPENDED at 0 range 13 .. 13; BUSFAULTPENDED at 0 range 14 .. 14; SVCALLPENDED at 0 range 15 .. 15; MEMFAULTENA at 0 range 16 .. 16; BUSFAULTENA at 0 range 17 .. 17; USGFAULTENA at 0 range 18 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; -- Configurable fault status register type CFSR_UFSR_BFSR_MMFSR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Instruction access violation flag IACCVIOL : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Memory manager fault on unstacking for a return from exception MUNSTKERR : Boolean := False; -- Memory manager fault on stacking for exception entry. MSTKERR : Boolean := False; -- MLSPERR MLSPERR : Boolean := False; -- unspecified Reserved_6_6 : HAL.Bit := 16#0#; -- Memory Management Fault Address Register (MMAR) valid flag MMARVALID : Boolean := False; -- Instruction bus error IBUSERR : Boolean := False; -- Precise data bus error PRECISERR : Boolean := False; -- Imprecise data bus error IMPRECISERR : Boolean := False; -- Bus fault on unstacking for a return from exception UNSTKERR : Boolean := False; -- Bus fault on stacking for exception entry STKERR : Boolean := False; -- Bus fault on floating-point lazy state preservation LSPERR : Boolean := False; -- unspecified Reserved_14_14 : HAL.Bit := 16#0#; -- Bus Fault Address Register (BFAR) valid flag BFARVALID : Boolean := False; -- Undefined instruction usage fault UNDEFINSTR : Boolean := False; -- Invalid state usage fault INVSTATE : Boolean := False; -- Invalid PC load usage fault INVPC : Boolean := False; -- No coprocessor usage fault. NOCP : Boolean := False; -- unspecified Reserved_20_23 : HAL.UInt4 := 16#0#; -- Unaligned access usage fault UNALIGNED : Boolean := False; -- Divide by zero usage fault DIVBYZERO : Boolean := False; -- unspecified Reserved_26_31 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CFSR_UFSR_BFSR_MMFSR_Register use record Reserved_0_0 at 0 range 0 .. 0; IACCVIOL at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; MUNSTKERR at 0 range 3 .. 3; MSTKERR at 0 range 4 .. 4; MLSPERR at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; MMARVALID at 0 range 7 .. 7; IBUSERR at 0 range 8 .. 8; PRECISERR at 0 range 9 .. 9; IMPRECISERR at 0 range 10 .. 10; UNSTKERR at 0 range 11 .. 11; STKERR at 0 range 12 .. 12; LSPERR at 0 range 13 .. 13; Reserved_14_14 at 0 range 14 .. 14; BFARVALID at 0 range 15 .. 15; UNDEFINSTR at 0 range 16 .. 16; INVSTATE at 0 range 17 .. 17; INVPC at 0 range 18 .. 18; NOCP at 0 range 19 .. 19; Reserved_20_23 at 0 range 20 .. 23; UNALIGNED at 0 range 24 .. 24; DIVBYZERO at 0 range 25 .. 25; Reserved_26_31 at 0 range 26 .. 31; end record; -- Hard fault status register type HFSR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Vector table hard fault VECTTBL : Boolean := False; -- unspecified Reserved_2_29 : HAL.UInt28 := 16#0#; -- Forced hard fault FORCED : Boolean := False; -- Reserved for Debug use DEBUG_VT : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for HFSR_Register use record Reserved_0_0 at 0 range 0 .. 0; VECTTBL at 0 range 1 .. 1; Reserved_2_29 at 0 range 2 .. 29; FORCED at 0 range 30 .. 30; DEBUG_VT at 0 range 31 .. 31; end record; -- Auxiliary control register type ACTRL_Register is record -- DISMCYCINT DISMCYCINT : Boolean := False; -- DISDEFWBUF DISDEFWBUF : Boolean := False; -- DISFOLD DISFOLD : Boolean := False; -- unspecified Reserved_3_7 : HAL.UInt5 := 16#0#; -- DISFPCA DISFPCA : Boolean := False; -- DISOOFP DISOOFP : Boolean := False; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ACTRL_Register use record DISMCYCINT at 0 range 0 .. 0; DISDEFWBUF at 0 range 1 .. 1; DISFOLD at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; DISFPCA at 0 range 8 .. 8; DISOOFP at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- System control block type SCB_Peripheral is record -- CPUID base register CPUID : aliased CPUID_Register; -- Interrupt control and state register ICSR : aliased ICSR_Register; -- Vector table offset register VTOR : aliased VTOR_Register; -- Application interrupt and reset control register AIRCR : aliased AIRCR_Register; -- System control register SCR : aliased SCR_Register; -- Configuration and control register CCR : aliased CCR_Register; -- System handler priority registers SHPR1 : aliased SHPR1_Register; -- System handler priority registers SHPR2 : aliased SHPR2_Register; -- System handler priority registers SHPR3 : aliased SHPR3_Register; -- System handler control and state register SHCSR : aliased SHCSR_Register; -- Configurable fault status register CFSR_UFSR_BFSR_MMFSR : aliased CFSR_UFSR_BFSR_MMFSR_Register; -- Hard fault status register HFSR : aliased HFSR_Register; -- Memory management fault address register MMFAR : aliased HAL.UInt32; -- Bus fault address register BFAR : aliased HAL.UInt32; -- Auxiliary fault status register AFSR : aliased HAL.UInt32; end record with Volatile; for SCB_Peripheral use record CPUID at 16#0# range 0 .. 31; ICSR at 16#4# range 0 .. 31; VTOR at 16#8# range 0 .. 31; AIRCR at 16#C# range 0 .. 31; SCR at 16#10# range 0 .. 31; CCR at 16#14# range 0 .. 31; SHPR1 at 16#18# range 0 .. 31; SHPR2 at 16#1C# range 0 .. 31; SHPR3 at 16#20# range 0 .. 31; SHCSR at 16#24# range 0 .. 31; CFSR_UFSR_BFSR_MMFSR at 16#28# range 0 .. 31; HFSR at 16#2C# range 0 .. 31; MMFAR at 16#34# range 0 .. 31; BFAR at 16#38# range 0 .. 31; AFSR at 16#3C# range 0 .. 31; end record; -- System control block SCB_Periph : aliased SCB_Peripheral with Import, Address => SCB_Base; -- System control block ACTLR type SCB_ACTRL_Peripheral is record -- Auxiliary control register ACTRL : aliased ACTRL_Register; end record with Volatile; for SCB_ACTRL_Peripheral use record ACTRL at 0 range 0 .. 31; end record; -- System control block ACTLR SCB_ACTRL_Periph : aliased SCB_ACTRL_Peripheral with Import, Address => SCB_ACTRL_Base; end STM32_SVD.SCB;
34.90991
72
0.581935
ad43fbc760f9a9ca22de4abfd8832a51e93ffa66
23,328
adb
Ada
src/keystore-io-files.adb
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
25
2019-05-07T20:35:50.000Z
2021-11-30T10:35:47.000Z
src/keystore-io-files.adb
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
12
2019-12-16T23:30:00.000Z
2021-09-26T18:52:41.000Z
src/keystore-io-files.adb
My-Colaborations/ada-keystore
6ab222c2df81f32309c5a7b4f94a475214ef5ce3
[ "Apache-2.0" ]
3
2019-12-18T21:30:04.000Z
2021-01-06T08:30:36.000Z
----------------------------------------------------------------------- -- keystore-io-files -- Ada keystore IO for files -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- 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.IO_Exceptions; with Ada.Unchecked_Deallocation; with Ada.Directories; with Interfaces.C.Strings; with Util.Log.Loggers; with Util.Strings; with Util.Systems.Os; with Util.Systems.Constants; -- File header -- +------------------+ -- | 41 64 61 00 | 4b = Ada -- | 00 9A 72 57 | 4b = 10/12/1815 -- | 01 9D B1 AC | 4b = 27/11/1852 -- | 00 00 00 01 | 4b = Version 1 -- +------------------+ -- | Keystore UUID | 16b -- | Storage ID | 4b -- | Block size | 4b -- | PAD 0 | 4b -- | Header HMAC-256 | 32b -- +------------------+----- package body Keystore.IO.Files is use Ada.Strings.Unbounded; use type Util.Systems.Types.File_Type; use type Interfaces.C.int; use Util.Systems.Constants; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Keystore.IO.Files"); subtype off_t is Util.Systems.Types.off_t; function Sys_Error return String; function Get_Default_Data (Path : in String) return String; procedure Free is new Ada.Unchecked_Deallocation (Object => File_Stream, Name => File_Stream_Access); function Sys_Error return String is Msg : constant Interfaces.C.Strings.chars_ptr := Util.Systems.Os.Strerror (Util.Systems.Os.Errno); begin return Interfaces.C.Strings.Value (Msg); end Sys_Error; function Hash (Value : Storage_Identifier) return Ada.Containers.Hash_Type is begin return Ada.Containers.Hash_Type (Value); end Hash; function Get_Default_Data (Path : in String) return String is Pos : constant Natural := Util.Strings.Rindex (Path, '.'); begin if Pos > 0 then return Path (Path'First .. Pos - 1); else return Ada.Directories.Containing_Directory (Path); end if; end Get_Default_Data; -- ------------------------------ -- Open the wallet stream. -- ------------------------------ procedure Open (Stream : in out Wallet_Stream; Path : in String; Data_Path : in String) is begin if Data_Path'Length > 0 then Stream.Descriptor.Open (Path, Data_Path, Stream.Sign); else Stream.Descriptor.Open (Path, Get_Default_Data (Path), Stream.Sign); end if; end Open; procedure Create (Stream : in out Wallet_Stream; Path : in String; Data_Path : in String; Config : in Wallet_Config) is begin if Data_Path'Length > 0 then Stream.Descriptor.Create (Path, Data_Path, Config, Stream.Sign); else Stream.Descriptor.Create (Path, Get_Default_Data (Path), Config, Stream.Sign); end if; if Config.Storage_Count > 1 then Stream.Add_Storage (Config.Storage_Count - 1); end if; end Create; -- ------------------------------ -- Get information about the keystore file. -- ------------------------------ function Get_Info (Stream : in out Wallet_Stream) return Wallet_Info is File : File_Stream_Access; begin Stream.Descriptor.Get (DEFAULT_STORAGE_ID, File); return File.Get_Info; end Get_Info; -- ------------------------------ -- Read from the wallet stream the block identified by the number and -- call the `Process` procedure with the data block content. -- ------------------------------ overriding procedure Read (Stream : in out Wallet_Stream; Block : in Storage_Block; Process : not null access procedure (Data : in IO_Block_Type)) is File : File_Stream_Access; begin Stream.Descriptor.Get (Block.Storage, File); File.Read (Block.Block, Process); end Read; -- ------------------------------ -- Write in the wallet stream the block identified by the block number. -- ------------------------------ overriding procedure Write (Stream : in out Wallet_Stream; Block : in Storage_Block; Process : not null access procedure (Data : out IO_Block_Type)) is File : File_Stream_Access; begin Stream.Descriptor.Get (Block.Storage, File); File.Write (Block.Block, Process); end Write; -- ------------------------------ -- Allocate a new block and return the block number in `Block`. -- ------------------------------ overriding procedure Allocate (Stream : in out Wallet_Stream; Kind : in Block_Kind; Block : out Storage_Block) is File : File_Stream_Access; begin Stream.Descriptor.Allocate (Kind, Block.Storage, File); File.Allocate (Block.Block); end Allocate; -- ------------------------------ -- Release the block number. -- ------------------------------ overriding procedure Release (Stream : in out Wallet_Stream; Block : in Storage_Block) is File : File_Stream_Access; begin Stream.Descriptor.Get (Block.Storage, File); File.Release (Block.Block); end Release; overriding function Is_Used (Stream : in out Wallet_Stream; Block : in Storage_Block) return Boolean is File : File_Stream_Access; begin Stream.Descriptor.Get (Block.Storage, File); return File.Is_Used (Block.Block); end Is_Used; overriding procedure Set_Header_Data (Stream : in out Wallet_Stream; Index : in Header_Slot_Index_Type; Kind : in Header_Slot_Type; Data : in Ada.Streams.Stream_Element_Array) is File : File_Stream_Access; begin Stream.Descriptor.Get (DEFAULT_STORAGE_ID, File); File.Set_Header_Data (Index, Kind, Data, Stream.Sign); end Set_Header_Data; overriding procedure Get_Header_Data (Stream : in out Wallet_Stream; Index : in Header_Slot_Index_Type; Kind : out Header_Slot_Type; Data : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset) is File : File_Stream_Access; begin Stream.Descriptor.Get (DEFAULT_STORAGE_ID, File); File.Get_Header_Data (Index, Kind, Data, Last); end Get_Header_Data; -- ------------------------------ -- Add up to Count data storage files associated with the wallet. -- ------------------------------ procedure Add_Storage (Stream : in out Wallet_Stream; Count : in Positive) is begin Stream.Descriptor.Add_Storage (Count, Stream.Sign); end Add_Storage; -- ------------------------------ -- Close the wallet stream and release any resource. -- ------------------------------ procedure Close (Stream : in out Wallet_Stream) is begin Stream.Descriptor.Close; end Close; function Get_Block_Offset (Block : in Block_Number) return off_t is (Util.Systems.Types.off_t (Block) * Block_Size); protected body File_Stream is procedure Open (File_Descriptor : in Util.Systems.Types.File_Type; Storage : in Storage_Identifier; Sign : in Secret_Key; File_Size : in Block_Count; UUID : out UUID_Type) is begin File.Initialize (File_Descriptor); Size := File_Size; Current_Pos := Block_Size; Header.Buffer := Buffers.Allocate ((Storage, HEADER_BLOCK_NUM)); declare Buf : constant Buffers.Buffer_Accessor := Header.Buffer.Data.Value; Last : Ada.Streams.Stream_Element_Offset; begin File.Read (Data, Last); if Last /= Data'Last then Log.Warn ("Header block is too short"); raise Invalid_Keystore; end if; Buf.Data := Data (Buf.Data'Range); Keystore.IO.Headers.Sign_Header (Header, Sign); if Header.HMAC /= Data (BT_HMAC_HEADER_POS .. Data'Last) then Log.Warn ("Header block HMAC signature is invalid"); raise Invalid_Block; end if; Keystore.IO.Headers.Read_Header (Header); UUID := Header.UUID; end; end Open; procedure Create (File_Descriptor : in Util.Systems.Types.File_Type; Storage : in Storage_Identifier; UUID : in UUID_Type; Sign : in Secret_Key) is begin File.Initialize (File_Descriptor); Size := 1; Current_Pos := Block_Size; Header.Buffer := Buffers.Allocate ((Storage, HEADER_BLOCK_NUM)); Header.UUID := UUID; Keystore.IO.Headers.Build_Header (UUID, Storage, Header); Keystore.IO.Headers.Sign_Header (Header, Sign); declare Buf : constant Buffers.Buffer_Accessor := Header.Buffer.Data.Value; begin File.Write (Buf.Data); File.Write (Header.HMAC); end; end Create; function Get_Info return Wallet_Info is Result : Wallet_Info; begin Result.UUID := Header.UUID; Result.Header_Count := Header.Data_Count; Result.Storage_Count := Header.Storage_Count; return Result; end Get_Info; -- Read from the wallet stream the block identified by the number and -- call the `Process` procedure with the data block content. procedure Read (Block : in Block_Number; Process : not null access procedure (Data : in IO_Block_Type)) is Pos : constant off_t := Get_Block_Offset (Block); Last : Ada.Streams.Stream_Element_Offset; begin if Pos /= Current_Pos then File.Seek (Pos => Pos, Mode => Util.Systems.Types.SEEK_SET); end if; File.Read (Data, Last); Process (Data); Current_Pos := Pos + Block_Size; end Read; -- Write in the wallet stream the block identified by the block number. procedure Write (Block : in Block_Number; Process : not null access procedure (Data : out IO_Block_Type)) is Pos : constant off_t := Get_Block_Offset (Block); begin if Pos /= Current_Pos then File.Seek (Pos => Pos, Mode => Util.Systems.Types.SEEK_SET); end if; Process (Data); File.Write (Data); Current_Pos := Pos + Block_Size; end Write; -- ------------------------------ -- Returns true if the block number is allocated. -- ------------------------------ function Is_Used (Block : in Block_Number) return Boolean is begin return Block <= Size and not Free_Blocks.Contains (Block); end Is_Used; -- ------------------------------ -- Allocate a new block and return the block number in `Block`. -- ------------------------------ procedure Allocate (Block : out Block_Number) is begin if not Free_Blocks.Is_Empty then Block := Free_Blocks.First_Element; Free_Blocks.Delete_First; else Block := Block_Number (Size); Size := Size + 1; end if; end Allocate; -- ------------------------------ -- Release the block number. -- ------------------------------ procedure Release (Block : in Block_Number) is begin Free_Blocks.Insert (Block); end Release; procedure Save_Header (Sign : in Secret_Key) is Buf : constant Buffers.Buffer_Accessor := Header.Buffer.Data.Value; begin Keystore.IO.Headers.Sign_Header (Header, Sign); File.Seek (Pos => 0, Mode => Util.Systems.Types.SEEK_SET); File.Write (Buf.Data); File.Write (Header.HMAC); Current_Pos := Block_Size; end Save_Header; procedure Set_Header_Data (Index : in Header_Slot_Index_Type; Kind : in Header_Slot_Type; Data : in Ada.Streams.Stream_Element_Array; Sign : in Secret_Key) is begin IO.Headers.Set_Header_Data (Header, Index, Kind, Data); Save_Header (Sign); end Set_Header_Data; procedure Get_Header_Data (Index : in Header_Slot_Index_Type; Kind : out Header_Slot_Type; Data : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset) is begin IO.Headers.Get_Header_Data (Header, Index, Kind, Data, Last); end Get_Header_Data; procedure Add_Storage (Identifier : in Storage_Identifier; Sign : in Secret_Key) is Pos : Block_Index; begin IO.Headers.Add_Storage (Header, Identifier, 1, Pos); Save_Header (Sign); end Add_Storage; procedure Scan_Storage (Process : not null access procedure (Storage : in Wallet_Storage)) is begin IO.Headers.Scan_Storage (Header, Process); end Scan_Storage; procedure Close is Last : Block_Number := Size; Free_Block : Block_Number; Iter : Block_Number_Sets.Cursor := Free_Blocks.Last; begin -- Look at free blocks to see if we can truncate the file when -- the last blocks are all deleted. while Block_Number_Sets.Has_Element (Iter) loop Free_Block := Block_Number_Sets.Element (Iter); exit when Free_Block /= Last - 1; Last := Last - 1; Block_Number_Sets.Previous (Iter); end loop; -- We have the last deleted block and we can truncate the file to it inclusive. if Last /= Size then declare Length : constant off_t := Get_Block_Offset (Last); Result : Integer; begin Result := Util.Systems.Os.Sys_Ftruncate (File.Get_File, Length); if Result /= 0 then Log.Warn ("Truncate to drop deleted blocks failed: {0}", Sys_Error); end if; end; end if; File.Close; end Close; end File_Stream; protected body Stream_Descriptor is function Get_Storage_Path (Storage_Id : in Storage_Identifier) return String is Prefix : constant String := To_String (UUID); Index : constant String := Storage_Identifier'Image (Storage_Id); Name : constant String := Prefix & "-" & Index (Index'First + 1 .. Index'Last); begin return Ada.Directories.Compose (To_String (Directory), Name & ".dkt"); end Get_Storage_Path; procedure Open (Path : in String; Identifier : in Storage_Identifier; Sign : in Secret_Key; Tag : out UUID_Type) is Fd : Util.Systems.Types.File_Type := Util.Systems.Os.NO_FILE; P : Interfaces.C.Strings.chars_ptr; File : File_Stream_Access; Flags : Interfaces.C.int; Stat : aliased Util.Systems.Types.Stat_Type; Size : Block_Count; Result : Integer; begin Flags := O_CLOEXEC + O_RDWR; P := Interfaces.C.Strings.New_String (Path); Fd := Util.Systems.Os.Sys_Open (P, Flags, 8#600#); Interfaces.C.Strings.Free (P); if Fd = Util.Systems.Os.NO_FILE then Log.Warn ("Cannot open keystore '{0}': {1}", Path, Sys_Error); raise Ada.IO_Exceptions.Name_Error with Path; end if; Result := Util.Systems.Os.Sys_Fstat (Fd, Stat'Access); if Result /= 0 or Stat.st_size mod IO.Block_Size /= 0 then Result := Util.Systems.Os.Sys_Close (Fd); Log.Error ("Invalid or truncated keystore file '{0}': size is incorrect", Path); raise Keystore.Invalid_Keystore with Path; end if; Size := Block_Count (Stat.st_size / IO.Block_Size); File := new File_Stream; Files.Insert (Identifier, File); File.Open (Fd, Identifier, Sign, Size, Tag); end Open; procedure Open (Path : in String; Data_Path : in String; Sign : in Secret_Key) is procedure Open_Storage (Storage : in Wallet_Storage); procedure Open_Storage (Storage : in Wallet_Storage) is Path : constant String := Get_Storage_Path (Storage.Identifier); Tag : UUID_Type; begin Open (Path, Storage.Identifier, Sign, Tag); if Tag /= UUID then Log.Error ("Invalid UUID for storage file {0}", Path); end if; if Storage.Identifier > Last_Id then Last_Id := Storage.Identifier; end if; Alloc_Id := 1; exception when Ada.IO_Exceptions.Name_Error => raise Keystore.Invalid_Storage with Path; end Open_Storage; File : File_Stream_Access; begin if Data_Path'Length > 0 then Directory := To_Unbounded_String (Data_Path); else Directory := To_Unbounded_String (Ada.Directories.Containing_Directory (Path)); end if; Open (Path, DEFAULT_STORAGE_ID, Sign, UUID); Get (DEFAULT_STORAGE_ID, File); Last_Id := DEFAULT_STORAGE_ID; File.Scan_Storage (Open_Storage'Access); end Open; procedure Create (Path : in String; Data_Path : in String; Config : in Wallet_Config; Sign : in Secret_Key) is Fd : Util.Systems.Types.File_Type := Util.Systems.Os.NO_FILE; P : Interfaces.C.Strings.chars_ptr; File : File_Stream_Access; Flags : Interfaces.C.int; Result : Integer with Unreferenced => True; begin Directory := To_Unbounded_String (Data_Path); Flags := O_CREAT + O_TRUNC + O_CLOEXEC + O_RDWR; if not Config.Overwrite then Flags := Flags + O_EXCL; end if; P := Interfaces.C.Strings.New_String (Path); Fd := Util.Systems.Os.Sys_Open (P, Flags, 8#600#); Interfaces.C.Strings.Free (P); if Fd = Util.Systems.Os.NO_FILE then Log.Error ("Cannot create keystore '{0}': {1}", Path, Sys_Error); raise Ada.IO_Exceptions.Name_Error with Path; end if; File := new File_Stream; Random.Generate (UUID); File.Create (Fd, DEFAULT_STORAGE_ID, UUID, Sign); Files.Insert (DEFAULT_STORAGE_ID, File); Last_Id := DEFAULT_STORAGE_ID; end Create; procedure Create_Storage (Storage_Id : in Storage_Identifier; Sign : in Secret_Key) is Path : constant String := Get_Storage_Path (Storage_Id); Fd : Util.Systems.Types.File_Type := Util.Systems.Os.NO_FILE; P : Interfaces.C.Strings.chars_ptr; File : File_Stream_Access; Flags : Interfaces.C.int; Result : Integer with Unreferenced => True; begin Flags := O_CREAT + O_TRUNC + O_CLOEXEC + O_RDWR; P := Interfaces.C.Strings.New_String (Path); Fd := Util.Systems.Os.Sys_Open (P, Flags, 8#600#); Interfaces.C.Strings.Free (P); if Fd = Util.Systems.Os.NO_FILE then Log.Error ("Cannot create keystore storage '{0}': {1}", Path, Sys_Error); raise Ada.IO_Exceptions.Name_Error with Path; end if; File := new File_Stream; File.Create (Fd, Storage_Id, UUID, Sign); Files.Insert (Storage_Id, File); end Create_Storage; procedure Add_Storage (Count : in Positive; Sign : in Secret_Key) is File : File_Stream_Access; Dir : constant String := To_String (Directory); begin Get (DEFAULT_STORAGE_ID, File); if not Ada.Directories.Exists (Dir) then Ada.Directories.Create_Path (Dir); end if; for I in 1 .. Count loop Last_Id := Last_Id + 1; Create_Storage (Last_Id, Sign); File.Add_Storage (Last_Id, Sign); end loop; if Alloc_Id = DEFAULT_STORAGE_ID then Alloc_Id := 1; end if; end Add_Storage; procedure Get (Storage : in Storage_Identifier; File : out File_Stream_Access) is Pos : constant File_Stream_Maps.Cursor := Files.Find (Storage); begin if not File_Stream_Maps.Has_Element (Pos) then Log.Error ("Storage{0} not found", Storage_Identifier'Image (Storage)); raise Keystore.Invalid_Storage; end if; File := File_Stream_Maps.Element (Pos); end Get; procedure Allocate (Kind : in Block_Kind; Storage : out Storage_Identifier; File : out File_Stream_Access) is begin if Kind = IO.MASTER_BLOCK or Kind = IO.DIRECTORY_BLOCK or Last_Id = DEFAULT_STORAGE_ID then Storage := DEFAULT_STORAGE_ID; else Storage := Alloc_Id; Alloc_Id := Alloc_Id + 1; if Alloc_Id > Last_Id then Alloc_Id := 1; end if; end if; Get (Storage, File); end Allocate; procedure Close is First : File_Stream_Maps.Cursor; File : File_Stream_Access; begin while not File_Stream_Maps.Is_Empty (Files) loop First := Files.First; File := File_Stream_Maps.Element (First); Files.Delete (First); File.Close; Free (File); end loop; end Close; end Stream_Descriptor; end Keystore.IO.Files;
37.747573
92
0.556284
1af89380f16741930103d6393aaee10f7b03b7ec
4,628
adb
Ada
1A/S5/PIM/tps/tp8solution/abr.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
4
2020-05-02T12:32:32.000Z
2022-01-12T20:20:35.000Z
1A/S5/PIM/tps/tp8solution/abr.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
2
2021-01-14T20:03:26.000Z
2022-01-30T01:10:00.000Z
1A/S5/PIM/tps/tp8solution/abr.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
13
2020-11-11T21:28:11.000Z
2022-02-19T13:54:22.000Z
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Unchecked_Deallocation; package body ABR is procedure Free is new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_ABR); procedure Initialiser(Abr: out T_ABR) is begin Abr := Null; end Initialiser; function Est_Vide (Abr : T_Abr) return Boolean is begin return Abr = Null; end; function Taille (Abr : in T_ABR) return Integer is begin if Abr = Null then return 0; else return 1 + Taille (Abr.all.Sous_Arbre_Gauche) + Taille (Abr.all.Sous_Arbre_Droit); end if; end Taille; procedure Inserer (Abr : in out T_ABR ; Cle : in Character ; Donnee : in Integer) is begin if Abr = Null then Abr := new T_Noeud'(Cle, Donnee, Null, Null); elsif Abr.all.Cle < Cle then Inserer (Abr.all.Sous_Arbre_Droit, Cle, Donnee); elsif Cle < Abr.all.Cle then Inserer (Abr.all.Sous_Arbre_Gauche, Cle, Donnee); else -- { Abr.all.Cle = Cle } raise Cle_Presente_Exception; end if; end Inserer; -- Retourner le noeud qui contient la clé Clé. -- Exception : Cle_Absente_Exception si la clé est absente function Le_Noeud (Abr: in T_Abr ; Cle : in Character) return T_ABR is begin if Abr = Null then raise Cle_Absente_Exception; elsif Abr.all.Cle < Cle then return Le_Noeud (Abr.all.Sous_Arbre_Droit, Cle); elsif Cle < Abr.all.Cle then return Le_Noeud (Abr.all.Sous_Arbre_Gauche, Cle); else -- { Abr.all.Cle = Cle } return Abr; end if; end Le_Noeud; procedure Modifier (Abr : in out T_ABR ; Cle : in Character ; Donnee : in Integer) is begin Le_Noeud (Abr, Cle).all.Donnee := Donnee; end Modifier; function La_Donnee (Abr : in T_ABR ; Cle : in Character) return Integer is begin return Le_Noeud (Abr, Cle).all.Donnee; end La_Donnee; -- Décrocher le noeud de Abr qui a la plus petite clé. Il est récupéré -- dans Min. Abr ne doit pas être vide. procedure Decrocher_Min (Abr : in out T_ABR; Min : out T_Abr) with Pre => Abr /= Null, Post => Min /= Null and then Taille (Min) = 1 -- une feuille and then not (Abr'Old.all.Cle < Min.all.Cle) -- plus petite clé ! and then Taille (Abr) = Taille (Abr)'Old - 1 -- un décroché is begin if Abr.all.Sous_Arbre_Gauche = Null then -- min trouvé Min := Abr; Abr := Abr.all.Sous_Arbre_Droit; else Decrocher_Min (Abr.all.Sous_Arbre_Gauche, Min); end if; end Decrocher_Min; procedure Supprimer (Abr : in out T_ABR ; Cle : in Character) is A_Detruire : T_ABR; begin if Abr = Null then raise Cle_Absente_Exception; elsif Abr.all.Cle < Cle then Supprimer (Abr.all.Sous_Arbre_Droit, Cle); elsif Cle < Abr.all.Cle then Supprimer (Abr.all.Sous_Arbre_Gauche, Cle); else -- { Abr.all.Cle = Cle } -- Supprimer le noeud Abr A_Detruire := Abr; if Abr.all.Sous_Arbre_Gauche = Null then Abr := Abr.all.Sous_Arbre_Droit; elsif Abr.all.Sous_Arbre_Droit = Null then Abr := Abr.all.Sous_Arbre_Gauche; else declare Min: T_ABR; begin Decrocher_Min (Abr.all.Sous_Arbre_Droit, Min); Min.all.Sous_Arbre_Gauche := Abr.all.Sous_Arbre_Gauche; Min.all.Sous_Arbre_Droit := Abr.all.Sous_Arbre_Droit; Abr := Min; end; end if; Free (A_Detruire); end if; end Supprimer; procedure Vider (Abr : in out T_ABR) is begin if Abr = Null then Null; else Vider (Abr.all.Sous_Arbre_Gauche); Vider (Abr.all.Sous_Arbre_Droit); Free (Abr); end if; end Vider; procedure Afficher (Abr : in T_Abr) is begin if Abr = Null then Null; else Afficher (Abr.all.Sous_Arbre_Gauche); Put (Abr.all.Cle); Put (" : "); Put (Abr.all.Donnee, 0); New_Line; Afficher (Abr.all.Sous_Arbre_Droit); end if; end Afficher; procedure Afficher_Debug (Abr : in T_Abr) is procedure Indenter(Decalage : in Integer) is begin for I in 1..Decalage loop Put (' '); end loop; end Indenter; -- Afficher un arbre à la profondeur Profondeur et qui à du côté -- indiqué (< pour Gauche et > pour droit, - pour la racine). procedure Afficher_Profondeur (Abr : in T_Abr ; Profondeur : in Integer ; Cote : in Character) is begin if Abr = Null then Null; else Indenter (Profondeur * 4); Put (Cote & ' '); Put (Abr.all.Cle); Put (" : "); Put (Abr.all.Donnee, 0); New_Line; Afficher_Profondeur (Abr.all.Sous_Arbre_Gauche, Profondeur + 1, '<'); Afficher_Profondeur (Abr.all.Sous_Arbre_Droit, Profondeur + 1, '>'); end if; end Afficher_Profondeur; begin Afficher_Profondeur (Abr, 0, '-'); end Afficher_Debug; end ABR;
24.748663
99
0.674157
3111be33ebf10d02d5a8c953a57629d0c9f73418
3,475
ads
Ada
source/shell-directory_iteration.ads
charlie5/aShell
f1a54d99db759314b7a62c84167f797d71f645ae
[ "ISC" ]
11
2016-11-03T10:33:19.000Z
2022-02-22T09:57:26.000Z
source/shell-directory_iteration.ads
charlie5/aShell
f1a54d99db759314b7a62c84167f797d71f645ae
[ "ISC" ]
2
2016-12-14T05:21:52.000Z
2017-02-02T07:04:35.000Z
source/shell-directory_iteration.ads
charlie5/aShell
f1a54d99db759314b7a62c84167f797d71f645ae
[ "ISC" ]
1
2016-11-21T17:51:25.000Z
2016-11-21T17:51:25.000Z
with Ada.Iterator_Interfaces, Ada.Directories, Ada.Containers.Vectors; private with Ada.Finalization; package Shell.Directory_Iteration is type Directory is tagged private with Default_Iterator => Iterate, Iterator_Element => Constant_Reference_Type, Constant_Indexing => Element_Value; function To_Directory (Path : in String; Recurse : in Boolean := False) return Directory; function Path (Container : in Directory) return String; type Cursor is private; function Has_Element (Pos : Cursor) return Boolean; subtype Directory_Entry_Type is Ada.Directories.Directory_Entry_Type; type Constant_Reference_Type (Element : not null access constant Directory_Entry_Type) is private with Implicit_Dereference => Element; package Directory_Iterators is new Ada.Iterator_Interfaces (Cursor, Has_Element); function Iterate (Container : Directory) return Directory_Iterators.Forward_Iterator'Class; function Element_Value (Container : Directory; Pos : Cursor) return Constant_Reference_Type; private type Directory is tagged record Path : Unbounded_String; Recurse : Boolean; end record; type Constant_Reference_Type (Element : not null access constant Directory_Entry_Type) is null record; subtype Search_Type is Ada.Directories.Search_Type; type Search_Access is access all Search_Type; type Directory_Access is access all Directory; type Directory_Entry_Access is access all Directory_Entry_Type; -- Entries -- package Entry_Vectors is new ada.Containers.Vectors (Index_Type => Positive, Element_Type => Directory_Entry_Access); type Entries is new Entry_Vectors.Vector with null record; -- Cursor -- type Cursor is record Container : Directory_Access; Directory_Entry : Directory_Entry_Access; end record; No_Element : constant Cursor := Cursor' (Container => null, Directory_Entry => null); -- String Vectors -- package Strings_Vector is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Unbounded_String); -- Iterator -- type Iterator_State is record Prior : Directory_Entry_Access; -- Used to free expired directory entries. Subdirs : Strings_Vector.Vector; -- Used to recurse through sub-directories. end record; type Iterator_State_Access is access all Iterator_State; type Iterator is new Ada.Finalization.Controlled and Directory_Iterators.Forward_Iterator with record Container : Directory_Access; Search : Search_Access; -- Access is due to Search_Type being limited. State : Iterator_State_Access; -- Access allows modifying the Iterator state in functions. end record; overriding function First (Object : in Iterator) return Cursor; overriding function Next (Object : in Iterator; Position : in Cursor) return Cursor; overriding procedure Finalize (Object : in out Iterator); end Shell.Directory_Iteration;
29.956897
111
0.643453
2e1c412d6f8e63214dcbc2bfa45ead074b8867eb
1,172
ads
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/frame_args/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/frame_args/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/frame_args/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2007-2017 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with System; package Pck is type Struct is record A : Integer; B : Integer; end record; type Arr is array (1 .. 3) of Integer; procedure Call_Me (Int : Integer; Flt : Float; Bln : Boolean; Ary : Arr; -- Non scalar Chr : Character; Sad : System.Address; Rec : Struct); -- Non scalar end Pck;
30.842105
73
0.622014
2e6c18022b44dbbe2020ae4caa44aa585406694a
2,611
adb
Ada
src/implementation/yaml-stacks.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
32
2017-08-02T16:45:34.000Z
2021-08-18T20:12:57.000Z
src/implementation/yaml-stacks.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
16
2018-06-10T07:09:30.000Z
2022-03-26T18:28:40.000Z
src/implementation/yaml-stacks.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
5
2017-09-19T16:54:22.000Z
2020-04-09T07:17:02.000Z
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Unchecked_Deallocation; package body Yaml.Stacks is procedure Adjust (Object : in out Stack) is begin if Object.Data /= null then Object.Data.Refcount := Object.Data.Refcount + 1; end if; end Adjust; procedure Free_Element_Array is new Ada.Unchecked_Deallocation (Element_Array, Element_Array_Access); procedure Finalize (Object : in out Stack) is procedure Free_Holder is new Ada.Unchecked_Deallocation (Holder, Holder_Access); Reference : Holder_Access := Object.Data; begin Object.Data := null; if Reference /= null then Reference.Refcount := Reference.Refcount - 1; if Reference.Refcount = 0 then Free_Element_Array (Reference.Elements); Free_Holder (Reference); end if; end if; end Finalize; function New_Stack (Initial_Capacity : Positive) return Stack is begin return Ret : constant Stack := (Ada.Finalization.Controlled with Data => new Holder) do Ret.Data.Elements := new Element_Array (1 .. Initial_Capacity); Ret.Data.Length := 0; end return; end New_Stack; function Top (Object : in out Stack) return access Element_Type is (Object.Data.Elements (Object.Data.Length)'Access); function Length (Object : Stack) return Natural is (if Object.Data = null then 0 else Object.Data.Length); function Element (Object : Stack; Index : Positive) return access Element_Type is (Object.Data.Elements (Index)'Access); procedure Pop (Object : in out Stack) is begin Object.Data.Length := Object.Data.Length - 1; end Pop; procedure Push (Object : in out Stack; Value : Element_Type) is begin if Object.Data = null then Object := New_Stack (32); end if; if Object.Data.Length = Object.Data.Elements.all'Last then declare New_Array : constant Element_Array_Access := new Element_Array (1 .. Object.Data.Length * 2); begin New_Array (1 .. Object.Data.Length) := Object.Data.Elements.all; Free_Element_Array (Object.Data.Elements); Object.Data.Elements := New_Array; end; end if; Object.Data.Length := Object.Data.Length + 1; Object.Data.Elements (Object.Data.Length) := Value; end Push; function Initialized (Object : Stack) return Boolean is (Object.Data /= null); end Yaml.Stacks;
33.050633
76
0.646879
31c15113dbb9a6b7ff1a4f6a88fce13d5378e4aa
1,113
ads
Ada
src/commands-destroy.ads
GLADORG/glad-cli
d6a804ea51b52d84bf590f061e05f404787a79f2
[ "MIT" ]
null
null
null
src/commands-destroy.ads
GLADORG/glad-cli
d6a804ea51b52d84bf590f061e05f404787a79f2
[ "MIT" ]
3
2021-09-03T16:44:49.000Z
2021-09-03T16:45:24.000Z
src/commands-destroy.ads
GLADORG/glad-cli
d6a804ea51b52d84bf590f061e05f404787a79f2
[ "MIT" ]
null
null
null
with AAA.Strings; with CLIC.TTY; with Ada.Text_IO; private with GNAT.Strings; package Commands.Destroy is package IO renames Ada.Text_IO; package TT renames CLIC.TTY; type Command is new Commands.Command with private; overriding function Name (Cmd : Command) return CLIC.Subcommand.Identifier is ("destroy"); overriding procedure Execute (Cmd : in out Command; Args : AAA.Strings.Vector); overriding function Long_Description (Cmd : Command) return AAA.Strings.Vector is (AAA.Strings.Empty_Vector.Append ("Destroys code generated by" & " " & TT.Terminal("generate") & " " & "command.") .New_Line ); overriding procedure Setup_Switches (Cmd : in out Command; Config : in out CLIC.Subcommand.Switches_Configuration); overriding function Short_Description (Cmd : Command) return String is ("Destroys code generated by" & " " & TT.Terminal("generate") & " " & "command."); overriding function Usage_Custom_Parameters (Cmd : Command) return String is (""); private type Command is new Commands.Command with null record; end Commands.Destroy;
27.825
87
0.716083
ad412b6343bbbf3888f369f294aa135bd1ce231c
6,114
ads
Ada
source/required/s-ststop.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/required/s-ststop.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/required/s-ststop.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Streams.Block_Transmission.Strings; with Ada.Streams.Block_Transmission.Wide_Strings; with Ada.Streams.Block_Transmission.Wide_Wide_Strings; with System.Storage_Elements; package System.Strings.Stream_Ops is pragma Pure; pragma Suppress (All_Checks); -- for instantiation -- required for String'Read by compiler (s-ststop.ads) procedure String_Read_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : out String) renames Ada.Streams.Block_Transmission.Strings.Read; -- required for String'Write by compiler (s-ststop.ads) procedure String_Write_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : String) renames Ada.Streams.Block_Transmission.Strings.Write; -- required for String'Input by compiler (s-ststop.ads) function String_Input_Blk_IO is new Ada.Streams.Block_Transmission.Input ( Positive, Character, String, String_Read_Blk_IO); -- required for String'Output by compiler (s-ststop.ads) procedure String_Output_Blk_IO is new Ada.Streams.Block_Transmission.Output ( Positive, Character, String, String_Write_Blk_IO); -- required for Wide_String'Read by compiler (s-ststop.ads) procedure Wide_String_Read_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : out Wide_String) renames Ada.Streams.Block_Transmission.Wide_Strings.Read; -- required for Wide_String'Write by compiler (s-ststop.ads) procedure Wide_String_Write_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : Wide_String) renames Ada.Streams.Block_Transmission.Wide_Strings.Write; -- required for Wide_String'Input by compiler (s-ststop.ads) function Wide_String_Input_Blk_IO is new Ada.Streams.Block_Transmission.Input ( Positive, Wide_Character, Wide_String, Wide_String_Read_Blk_IO); -- required for Wide_String'Output by compiler (s-ststop.ads) procedure Wide_String_Output_Blk_IO is new Ada.Streams.Block_Transmission.Output ( Positive, Wide_Character, Wide_String, Wide_String_Write_Blk_IO); -- required for Wide_Wide_String'Read by compiler (s-ststop.ads) procedure Wide_Wide_String_Read_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : out Wide_Wide_String) renames Ada.Streams.Block_Transmission.Wide_Wide_Strings.Read; -- required for Wide_Wide_String'Write by compiler (s-ststop.ads) procedure Wide_Wide_String_Write_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : Wide_Wide_String) renames Ada.Streams.Block_Transmission.Wide_Wide_Strings.Write; -- required for Wide_Wide_String'Input by compiler (s-ststop.ads) function Wide_Wide_String_Input_Blk_IO is new Ada.Streams.Block_Transmission.Input ( Positive, Wide_Wide_Character, Wide_Wide_String, Wide_Wide_String_Read_Blk_IO); -- required for Wide_Wide_String'Output by compiler (s-ststop.ads) procedure Wide_Wide_String_Output_Blk_IO is new Ada.Streams.Block_Transmission.Output ( Positive, Wide_Wide_Character, Wide_Wide_String, Wide_Wide_String_Write_Blk_IO); -- required for System.Storage_Elements.Storage_Array'Read (s-ststop.ads) procedure Storage_Array_Read_Blk_IO is new Ada.Streams.Block_Transmission.Read ( Storage_Elements.Storage_Offset, Storage_Elements.Storage_Element, Storage_Elements.Storage_Array); -- required for System.Storage_Elements.Storage_Array'Write (s-ststop.ads) procedure Storage_Array_Write_Blk_IO is new Ada.Streams.Block_Transmission.Write ( Storage_Elements.Storage_Offset, Storage_Elements.Storage_Element, Storage_Elements.Storage_Array); -- required for System.Storage_Elements.Storage_Array'Input (s-ststop.ads) function Storage_Array_Input_Blk_IO is new Ada.Streams.Block_Transmission.Input ( Storage_Elements.Storage_Offset, Storage_Elements.Storage_Element, Storage_Elements.Storage_Array, Storage_Array_Read_Blk_IO); -- required for System.Storage_Elements.Storage_Array'Output (s-ststop.ads) procedure Storage_Array_Output_Blk_IO is new Ada.Streams.Block_Transmission.Output ( Storage_Elements.Storage_Offset, Storage_Elements.Storage_Element, Storage_Elements.Storage_Array, Storage_Array_Write_Blk_IO); -- required for Ada.Streams.Stream_Element_Array'Read (s-ststop.ads) procedure Stream_Element_Array_Read_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : out Ada.Streams.Stream_Element_Array) renames Ada.Streams.Block_Transmission.Stream_Element_Arrays.Read; -- required for Ada.Streams.Stream_Element_Array'Write (s-ststop.ads) procedure Stream_Element_Array_Write_Blk_IO ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Item : Ada.Streams.Stream_Element_Array) renames Ada.Streams.Block_Transmission.Stream_Element_Arrays.Write; -- required for Ada.Streams.Stream_Element_Array'Input (s-ststop.ads) function Stream_Element_Array_Input_Blk_IO is new Ada.Streams.Block_Transmission.Input ( Ada.Streams.Stream_Element_Offset, Ada.Streams.Stream_Element, Ada.Streams.Stream_Element_Array, Stream_Element_Array_Read_Blk_IO); -- required for Ada.Streams.Stream_Element_Array'Output (s-ststop.ads) procedure Stream_Element_Array_Output_Blk_IO is new Ada.Streams.Block_Transmission.Output ( Ada.Streams.Stream_Element_Offset, Ada.Streams.Stream_Element, Ada.Streams.Stream_Element_Array, Stream_Element_Array_Write_Blk_IO); end System.Strings.Stream_Ops;
39.445161
79
0.736506
1330fab564d3afb1927049d5f4efdbb3cb66c9d5
2,881
adb
Ada
drivers/pe_landscape.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/pe_landscape.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/pe_landscape.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
with Numerics, Ada.Text_IO; use Numerics, Ada.Text_IO; procedure PE_Landscape is use Real_IO, Int_IO, Real_Functions; α : constant Real := 1.0e-2; R : constant Real := π * 0.7028; function Phi (R : in Real) return Real is begin return 0.5 * (1.0 + Tanh (50.0 * (R - 0.5))); end Phi; function PE (Q : in Real_Vector) return Real is PE_G, PE_M : Real; T : Real renames Q (1); S : Real renames Q (2); R : constant Real := 2.0 * abs (Cos (0.5 * (T + S))); Cs : constant Real := Cos (S); Ct : constant Real := Cos (T); C2tps : constant Real := Cos (2.0 * T + S); Ctp2s : constant Real := Cos (T + 2.0 * S); Vo, Vi, Tmp, Ro : Real; begin Ro := 0.9; if R < Ro then return -250.0; end if; Tmp := 1.0 / R; PE_G := Ct + 2.0 * C2tps; Vi := 0.01 * Exp (-12.0 * (R - Ro)) / (R - Ro) ** 2; Vo := (Tmp ** 3) * Cos (2.0 * (T + S)) - 3.0 * (Tmp ** 5) * ((Ct + C2tps) * (Cs + Ctp2s)); PE_M := Cos (2.0 * T) - 3.0 * Ct ** 2 + Cos (2.0 * S) - 3.0 * Cs ** 2 + Vo * Phi (R) + Vi * (1.0 - Phi (R)); return (1.0 * ((α / 6.0) * PE_M - PE_G)); end PE; function PE2 (Q : in Real_Vector) return Real is PE_G, PE_M : Real; T : Real renames Q (1); S : Real renames Q (2); R : constant Real := 2.0 * abs (Cos (0.5 * (T + S))); Cs : constant Real := Cos (S); Ct : constant Real := Cos (T); C2tps : constant Real := Cos (2.0 * T + S); Ctp2s : constant Real := Cos (T + 2.0 * S); Vo : Real; begin PE_G := Ct + 2.0 * C2tps; Vo := (Cos (2.0 * (T + S)) * R ** 2 - 3.0 * ((Ct + C2tps) * (Cs + Ctp2s))) / R ** 5; PE_M := Cos (2.0 * T) - 3.0 * Ct ** 2 + Cos (2.0 * S) - 3.0 * Cs ** 2 + Vo; return ((α / 6.0) * PE_M - PE_G); end PE2; function Coordinate_Transform (X : in Real_Vector) return Real_Vector is Y : Real_Vector (1 .. 2); begin Y (1) := 0.5 * (3.0 * X (1) + X (2)); Y (2) := 0.5 * (-3.0 * X (1) + X (2)); return Y; end Coordinate_Transform; N : constant Nat := 1_000; Dx : constant Real := 2.0 / Real (N); X, Y : Real_Vector (1 .. 2); R13, Tmp : Real; Max_Diff : Real := 0.0; begin for I in 1 .. N loop X (1) := -1.0 + (Real (I) - 0.5) * Dx; for J in 1 .. N loop X (2) := -1.0 + (Real (J) - 0.5) * Dx; Y := R * Coordinate_Transform (X); Tmp := abs ((PE (Y) - PE2 (Y)) / PE2 (Y)); R13 := 2.0 * Cos (0.5 * (Y (1) + Y (2))); if R13 > 1.0 then if Tmp > Max_Diff then Max_Diff := Tmp; Put (Y (1)); Put (", "); Put (Y (2)); New_Line; Put (" difference = "); Put (Max_Diff); New_Line; New_Line; end if; end if; end loop; end loop; end PE_Landscape;
30.648936
81
0.452274
584564aab8203ab77fd40b5edf284b9673976a37
2,568
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-expint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-expint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-expint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . E X P I N T -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Integer exponentiation (checks on) package System.Exp_Int is pragma Pure; function Exp_Integer (Left : Integer; Right : Natural) return Integer; end System.Exp_Int;
59.72093
78
0.387461
58d45164261cd430fa5ea1c59be0dd9ebe98f9d8
9,151
adb
Ada
source/zcx/c-unwind_pe.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/zcx/c-unwind_pe.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/zcx/c-unwind_pe.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
with Ada.Unchecked_Conversion; with System.Address_To_Constant_Access_Conversions; with System.Storage_Elements; with C.stdint; package body C.unwind_pe is pragma Suppress (All_Checks); use type System.Storage_Elements.Storage_Offset; procedure unreachable with Import, Convention => Intrinsic, External_Name => "__builtin_unreachable"; pragma No_Return (unreachable); package unsigned_char_const_ptr_Conv is new System.Address_To_Constant_Access_Conversions ( C.unsigned_char, C.unsigned_char_const_ptr); function "+" (Left : C.unsigned_char_const_ptr; Right : C.ptrdiff_t) return C.unsigned_char_const_ptr with Convention => Intrinsic; pragma Inline_Always ("+"); function "+" (Left : C.unsigned_char_const_ptr; Right : C.ptrdiff_t) return C.unsigned_char_const_ptr is begin return unsigned_char_const_ptr_Conv.To_Pointer ( unsigned_char_const_ptr_Conv.To_Address (Left) + System.Storage_Elements.Storage_Offset (Right)); end "+"; -- implementation function size_of_encoded_value (encoding : unsigned_char) return unsigned_int is begin if encoding = DW_EH_PE_omit then return 0; end if; case encoding and 16#07# is when DW_EH_PE_absptr => return void_ptr'Size / Standard'Storage_Unit; when DW_EH_PE_udata2 => return 2; when DW_EH_PE_udata4 => return 4; when DW_EH_PE_udata8 => return 8; when others => null; end case; gxx_abort; end size_of_encoded_value; function base_of_encoded_value ( encoding : unsigned_char; context : access unwind.struct_Unwind_Context) return unwind.Unwind_Ptr is begin if encoding = DW_EH_PE_omit then return 0; end if; case encoding and 16#70# is when DW_EH_PE_absptr | DW_EH_PE_pcrel | DW_EH_PE_aligned => return 0; when DW_EH_PE_textrel => return unwind.Unwind_GetTextRelBase (context); when DW_EH_PE_datarel => return unwind.Unwind_GetDataRelBase (context); when DW_EH_PE_funcrel => return unwind.Unwind_GetRegionStart (context); when others => null; end case; gxx_abort; end base_of_encoded_value; function read_uleb128 ( p : access constant unsigned_char; val : access unwind.uleb128_t) return unsigned_char_const_ptr is Mutable_p : unsigned_char_const_ptr := unsigned_char_const_ptr (p); shift : unsigned_int := 0; byte : unsigned_char; result : unwind.uleb128_t; begin result := 0; loop byte := Mutable_p.all; Mutable_p := Mutable_p + 1; if shift >= unwind.uleb128_t'Size then unreachable; end if; result := result or Shift_Left ( unwind.uleb128_t (byte) and 16#7f#, Natural (shift)); shift := shift + 7; exit when not ((byte and 16#80#) /= 0); end loop; val.all := result; return Mutable_p; end read_uleb128; function read_sleb128 ( p : access constant unsigned_char; val : access unwind.sleb128_t) return unsigned_char_const_ptr is Mutable_p : unsigned_char_const_ptr := unsigned_char_const_ptr (p); shift : unsigned_int := 0; byte : unsigned_char; result : unwind.uleb128_t; begin result := 0; loop byte := Mutable_p.all; Mutable_p := Mutable_p + 1; if shift >= unwind.uleb128_t'Size then unreachable; end if; result := result or Shift_Left ( unwind.uleb128_t (byte) and 16#7f#, Natural (shift)); shift := shift + 7; exit when not ((byte and 16#80#) /= 0); end loop; if shift < result'Size and then (byte and 16#40#) /= 0 then result := result or (-Shift_Left (1, Natural (shift))); end if; val.all := unwind.sleb128_t (result); return Mutable_p; end read_sleb128; function read_encoded_value_with_base ( encoding : unsigned_char; base : unwind.Unwind_Ptr; p : access constant unsigned_char; val : access unwind.Unwind_Ptr) return unsigned_char_const_ptr is function Cast is new Ada.Unchecked_Conversion (void_ptr, unwind.Unwind_Internal_Ptr); type Unwind_Internal_Ptr_ptr is access all unwind.Unwind_Internal_Ptr; function Cast is new Ada.Unchecked_Conversion ( unwind.Unwind_Internal_Ptr, Unwind_Internal_Ptr_ptr); Mutable_p : unsigned_char_const_ptr := unsigned_char_const_ptr (p); type unaligned (unchecked_tag : unsigned_int := 0) is record case unchecked_tag is when 0 => ptr : void_ptr; when DW_EH_PE_udata2 => u2 : stdint.uint16_t; when DW_EH_PE_udata4 => u4 : stdint.uint32_t; when DW_EH_PE_udata8 => u8 : stdint.uint64_t; when DW_EH_PE_sdata2 => s2 : stdint.int16_t; when DW_EH_PE_sdata4 => s4 : stdint.int32_t; when others => -- DW_EH_PE_sdata8 s8 : stdint.int64_t; end case; end record; pragma Unchecked_Union (unaligned); type unaligned_ptr is access all unaligned; function Cast is new Ada.Unchecked_Conversion (unsigned_char_const_ptr, unaligned_ptr); function Cast is new Ada.Unchecked_Conversion ( unaligned_ptr, unwind.Unwind_Internal_Ptr); u : constant unaligned_ptr := Cast (Mutable_p); result : unwind.Unwind_Internal_Ptr; begin if encoding = DW_EH_PE_aligned then declare a : unwind.Unwind_Internal_Ptr := unwind.Unwind_Internal_Ptr ( System.Storage_Elements.To_Integer ( unsigned_char_const_ptr_Conv.To_Address (Mutable_p))); begin a := (a + void_ptr'Size / Standard'Storage_Unit - 1) and -(void_ptr'Size / Standard'Storage_Unit); result := Cast (a).all; Mutable_p := unsigned_char_const_ptr_Conv.To_Pointer ( System'To_Address ( System.Storage_Elements.Integer_Address ( a + void_ptr'Size / Standard'Storage_Unit))); end; else case encoding and 16#0f# is when DW_EH_PE_absptr => result := Cast (u.ptr); Mutable_p := Mutable_p + void_ptr'Size / Standard'Storage_Unit; when DW_EH_PE_uleb128 => declare tmp : aliased unwind.uleb128_t; begin Mutable_p := read_uleb128 (Mutable_p, tmp'Access); result := unwind.Unwind_Internal_Ptr (tmp); end; when DW_EH_PE_sleb128 => declare tmp : aliased unwind.sleb128_t; begin Mutable_p := read_sleb128 (Mutable_p, tmp'Access); result := unwind.Unwind_Internal_Ptr (tmp); end; when DW_EH_PE_udata2 => result := unwind.Unwind_Internal_Ptr (u.u2); Mutable_p := Mutable_p + 2; when DW_EH_PE_udata4 => result := unwind.Unwind_Internal_Ptr (u.u4); Mutable_p := Mutable_p + 4; when DW_EH_PE_udata8 => result := unwind.Unwind_Internal_Ptr (u.u8); Mutable_p := Mutable_p + 8; when DW_EH_PE_sdata2 => result := unwind.Unwind_Internal_Ptr (u.s2); Mutable_p := Mutable_p + 2; when DW_EH_PE_sdata4 => result := unwind.Unwind_Internal_Ptr (u.s4); Mutable_p := Mutable_p + 4; when DW_EH_PE_sdata8 => result := unwind.Unwind_Internal_Ptr (u.s8); Mutable_p := Mutable_p + 8; when others => gxx_abort; end case; if result /= 0 then if (encoding and 16#70#) = DW_EH_PE_pcrel then result := result + Cast (u); else result := result + base; end if; if (encoding and DW_EH_PE_indirect) /= 0 then result := Cast (result).all; end if; end if; end if; val.all := result; return Mutable_p; end read_encoded_value_with_base; function read_encoded_value ( context : access unwind.struct_Unwind_Context; encoding : unsigned_char; p : access constant unsigned_char; val : access unwind.Unwind_Ptr) return unsigned_char_const_ptr is begin return read_encoded_value_with_base ( encoding, base_of_encoded_value (encoding, context), p, val); end read_encoded_value; end C.unwind_pe;
34.145522
79
0.586712
58dd623b2d692242f6b1ad33920256c78939962d
783
ada
Ada
Task/String-matching/Ada/string-matching.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/String-matching/Ada/string-matching.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/String-matching/Ada/string-matching.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Text_IO; use Ada.Text_IO; procedure Match_Strings is S1 : constant String := "abcd"; S2 : constant String := "abab"; S3 : constant String := "ab"; begin if S1'Length >= S3'Length and then S1 (S1'First..S1'First + S3'Length - 1) = S3 then Put_Line (''' & S1 & "' starts with '" & S3 & '''); end if; if S2'Length >= S3'Length and then S2 (S2'Last - S3'Length + 1..S2'Last) = S3 then Put_Line (''' & S2 & "' ends with '" & S3 & '''); end if; Put_Line (''' & S3 & "' first appears in '" & S1 & "' at" & Integer'Image (Index (S1, S3))); Put_Line ( ''' & S3 & "' appears in '" & S2 & ''' & Integer'Image (Ada.Strings.Fixed.Count (S2, S3)) & " times" ); end Match_Strings;
37.285714
95
0.561941
1a405f3c052d70477d80848461b50dbaeedd0dec
1,218
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_name_error_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
2
2015-11-12T11:16:20.000Z
2021-08-24T22:32:04.000Z
tier-1/xcb/source/thin/xcb-xcb_name_error_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
1
2018-06-05T05:19:35.000Z
2021-11-20T01:13:23.000Z
tier-1/xcb/source/thin/xcb-xcb_name_error_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with xcb.xcb_request_error_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_name_error_t is -- Item -- subtype Item is xcb.xcb_request_error_t.Item; -- Item_Array -- type Item_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_name_error_t.Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_name_error_t.Item, Element_Array => xcb.xcb_name_error_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_name_error_t.Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_name_error_t.Pointer, Element_Array => xcb.xcb_name_error_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_name_error_t;
27.066667
79
0.671593
13a3fe5082c527ba54913cf4ec8c1edea7a46449
1,931
adb
Ada
separation/src/test_separation.adb
gerr135/ada_gems
fc1b55e991766110581fcc340c8bc7c51ef7a49b
[ "BSD-2-Clause" ]
6
2020-11-26T20:01:50.000Z
2022-03-04T22:22:12.000Z
separation/src/test_separation.adb
gerr135/ada_gems
fc1b55e991766110581fcc340c8bc7c51ef7a49b
[ "BSD-2-Clause" ]
null
null
null
separation/src/test_separation.adb
gerr135/ada_gems
fc1b55e991766110581fcc340c8bc7c51ef7a49b
[ "BSD-2-Clause" ]
null
null
null
-- -- Test unit for this demo. -- -- 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. -- with Ada.Text_IO; use Ada.Text_IO; with data_storage; use data_storage; with algorithmic; use algorithmic; procedure test_separation is begin Put_Line("Test of the algorithmic separation; base case"); Put("Invoking Naive algorithm: "); declare ND : Naive_Data; result : Integer; begin ND.Set_Data(3); result := ND.Do_Naive_Calculation(3); Put_Line(" 3 + 3^3 = " & result'Img); end; Put("Invoking Optimized algorithm: "); declare OD : Optimized_Data; result : Integer; begin OD.Set_Data(3); OD.Set_Extra_Data(3**3); result := OD.Do_Optimized_Calculation(3); Put_Line(" 3 + 3^3 = " & result'Img); end; New_Line; Put_Line("Testing invocation by 3rd parties"); Put("Naive algorithm, "); declare ND : Naive_Data; UT : Unrelated_Type; result : Integer; begin ND.Set_Data(3); result := do_some_calc_messy(UT, 3, ND); Put("messy: 3 + 3^3 = " & result'Img & ", "); result := do_some_calc_oop(UT, 3, ND); Put_Line("oop: 3 + 3^3 = " & result'Img); end; Put("Optimized algorithm, "); declare OD : Optimized_Data; UT : Unrelated_Type; result : Integer; begin OD.Set_Data(3); result := do_some_calc_messy(UT, 3, OD); -- NOTE how our invocation is exactly the same as in naive case!! Put("messy: 3 + 3^3 = " & result'Img & ", "); result := do_some_calc_oop(UT, 3, OD); Put_Line("oop: 3 + 3^3 = " & result'Img); -- ditto here end; end test_separation;
30.171875
116
0.595028
135e435b9695808d895326afce8abb81b12bcfcc
2,874
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-io-put__vxworks.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-io-put__vxworks.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-io-put__vxworks.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 1995-2020, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- vxworks zfp version of Put (C : Character) with Interfaces.C; use Interfaces.C; separate (GNAT.IO) procedure Put (C : Character) is function ioGlobalStdGet (File : int) return int; pragma Import (C, ioGlobalStdGet, "ioGlobalStdGet"); procedure fdprintf (File : int; Format : String; Value : Character); pragma Import (C, fdprintf, "fdprintf"); Stdout_ID : constant int := 1; begin fdprintf (ioGlobalStdGet (Stdout_ID), "%c" & ASCII.NUL, C); end Put;
53.222222
78
0.40675
ad76de871fd8096924bb8c9aafce5594d9edc360
324,415
adb
Ada
submissions/M3/lab3_aes_hls/aes_hls_prj/sol2/.autopilot/db/MixColumns.sched.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
submissions/M3/lab3_aes_hls/aes_hls_prj/sol2/.autopilot/db/MixColumns.sched.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
submissions/M3/lab3_aes_hls/aes_hls_prj/sol2/.autopilot/db/MixColumns.sched.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>MixColumns</name> <ret_bitwidth>128</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>state_0_0_read</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>state[0][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>state_0_1_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[0][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>state_0_2_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[0][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>state_0_3_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[0][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>state_1_0_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[1][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>state_1_1_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[1][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>state_1_2_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[1][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_8"> <Value> <Obj> <type>1</type> <id>8</id> <name>state_1_3_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[1][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>state_2_0_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[2][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>state_2_1_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[2][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_11"> <Value> <Obj> <type>1</type> <id>11</id> <name>state_2_2_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[2][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_12"> <Value> <Obj> <type>1</type> <id>12</id> <name>state_2_3_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[2][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_13"> <Value> <Obj> <type>1</type> <id>13</id> <name>state_3_0_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[3][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_14"> <Value> <Obj> <type>1</type> <id>14</id> <name>state_3_1_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[3][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_15"> <Value> <Obj> <type>1</type> <id>15</id> <name>state_3_2_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[3][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_16"> <Value> <Obj> <type>1</type> <id>16</id> <name>state_3_3_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state[3][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>149</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_17"> <Value> <Obj> <type>0</type> <id>17</id> <name>state_3_3_read32</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>168</item> <item>169</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>18</id> <name>state_3_2_read31</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>170</item> <item>171</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>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>19</id> <name>state_3_1_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>172</item> <item>173</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>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>20</id> <name>state_3_0_read_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>174</item> <item>175</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>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>21</id> <name>state_2_3_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>176</item> <item>177</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>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>22</id> <name>state_2_2_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>178</item> <item>179</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>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>23</id> <name>state_2_1_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>180</item> <item>181</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>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>24</id> <name>state_2_0_read_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>182</item> <item>183</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>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>25</id> <name>state_1_3_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>184</item> <item>185</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>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>26</id> <name>state_1_2_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>186</item> <item>187</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>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>27</id> <name>state_1_1_read22</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>188</item> <item>189</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>28</id> <name>state_1_0_read21</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>190</item> <item>191</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>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>29</id> <name>state_0_3_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>192</item> <item>193</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>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>30</id> <name>state_0_2_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>194</item> <item>195</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>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>31</id> <name>state_0_1_read_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>196</item> <item>197</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>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>32</id> <name>state_0_0_read_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>314</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>314</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>198</item> <item>199</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>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>33</id> <name>xor_ln319</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>200</item> <item>201</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>34</id> <name>xor_ln319_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>202</item> <item>203</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>35</id> <name>xor_ln319_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>204</item> <item>205</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>36</id> <name>shl_ln311</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>206</item> <item>208</item> </oprand_edges> <opcode>shl</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="_37"> <Value> <Obj> <type>0</type> <id>37</id> <name>tmp</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>210</item> <item>211</item> <item>213</item> </oprand_edges> <opcode>bitselect</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="_38"> <Value> <Obj> <type>0</type> <id>38</id> <name>select_ln311</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>214</item> <item>216</item> <item>218</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>39</id> <name>xor_ln322</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>219</item> <item>220</item> </oprand_edges> <opcode>xor</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="_40"> <Value> <Obj> <type>0</type> <id>40</id> <name>xor_ln322_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>221</item> <item>222</item> </oprand_edges> <opcode>xor</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="_41"> <Value> <Obj> <type>0</type> <id>41</id> <name>xor_ln322_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>223</item> <item>224</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>42</id> <name>xor_ln323</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>323</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>323</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>225</item> <item>226</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>43</id> <name>shl_ln311_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>227</item> <item>228</item> </oprand_edges> <opcode>shl</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>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>229</item> <item>230</item> <item>231</item> </oprand_edges> <opcode>bitselect</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>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>45</id> <name>select_ln311_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>232</item> <item>233</item> <item>234</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>46</id> <name>xor_ln325</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>235</item> <item>236</item> </oprand_edges> <opcode>xor</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>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>47</id> <name>xor_ln325_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>237</item> <item>238</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>48</id> <name>xor_ln325_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>239</item> <item>240</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>2</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>49</id> <name>xor_ln326</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>326</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>326</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>241</item> <item>242</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</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>50</id> <name>shl_ln311_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>243</item> <item>244</item> </oprand_edges> <opcode>shl</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>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>245</item> <item>246</item> <item>247</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>35</m_topoIndex> <m_clusterGroupNumber>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>52</id> <name>select_ln311_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>248</item> <item>249</item> <item>250</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>53</id> <name>xor_ln328</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>251</item> <item>252</item> </oprand_edges> <opcode>xor</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>37</m_topoIndex> <m_clusterGroupNumber>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>54</id> <name>xor_ln328_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>253</item> <item>254</item> </oprand_edges> <opcode>xor</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>38</m_topoIndex> <m_clusterGroupNumber>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>55</id> <name>xor_ln328_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>255</item> <item>256</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>39</m_topoIndex> <m_clusterGroupNumber>3</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>56</id> <name>xor_ln329</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>329</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>329</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>257</item> <item>258</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>40</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>57</id> <name>shl_ln311_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>259</item> <item>260</item> </oprand_edges> <opcode>shl</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>41</m_topoIndex> <m_clusterGroupNumber>4</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>261</item> <item>262</item> <item>263</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>42</m_topoIndex> <m_clusterGroupNumber>4</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>59</id> <name>select_ln311_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>264</item> <item>265</item> <item>266</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>43</m_topoIndex> <m_clusterGroupNumber>4</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>60</id> <name>xor_ln331</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>267</item> <item>268</item> </oprand_edges> <opcode>xor</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>44</m_topoIndex> <m_clusterGroupNumber>4</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>61</id> <name>xor_ln331_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName>state[0][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>269</item> <item>270</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>45</m_topoIndex> <m_clusterGroupNumber>4</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>62</id> <name>xor_ln319_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>271</item> <item>272</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>46</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>63</id> <name>xor_ln319_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>273</item> <item>274</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>47</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>64</id> <name>xor_ln319_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>275</item> <item>276</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>48</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>65</id> <name>shl_ln311_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>277</item> <item>278</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>49</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>66</id> <name>tmp_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>279</item> <item>280</item> <item>281</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>50</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>67</id> <name>select_ln311_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>282</item> <item>283</item> <item>284</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>51</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>68</id> <name>xor_ln322_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>285</item> <item>286</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>52</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>69</id> <name>xor_ln322_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>287</item> <item>288</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>53</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>70</id> <name>xor_ln322_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>289</item> <item>290</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>54</m_topoIndex> <m_clusterGroupNumber>5</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>71</id> <name>xor_ln323_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>323</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>323</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>291</item> <item>292</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>55</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>72</id> <name>shl_ln311_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>293</item> <item>294</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>56</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>73</id> <name>tmp_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>295</item> <item>296</item> <item>297</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>57</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>74</id> <name>select_ln311_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>298</item> <item>299</item> <item>300</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>58</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>75</id> <name>xor_ln325_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>301</item> <item>302</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>59</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>76</id> <name>xor_ln325_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>303</item> <item>304</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>60</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>77</id> <name>xor_ln325_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>305</item> <item>306</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>61</m_topoIndex> <m_clusterGroupNumber>6</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>78</id> <name>xor_ln326_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>326</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>326</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>307</item> <item>308</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>62</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>79</id> <name>shl_ln311_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>309</item> <item>310</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>63</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>80</id> <name>tmp_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>311</item> <item>312</item> <item>313</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>64</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>81</id> <name>select_ln311_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>314</item> <item>315</item> <item>316</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>65</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>82</id> <name>xor_ln328_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>317</item> <item>318</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>66</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>83</id> <name>xor_ln328_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>319</item> <item>320</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>67</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>84</id> <name>xor_ln328_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>321</item> <item>322</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>68</m_topoIndex> <m_clusterGroupNumber>7</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>85</id> <name>xor_ln329_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>329</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>329</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>323</item> <item>324</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>69</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>86</id> <name>shl_ln311_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>325</item> <item>326</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>70</m_topoIndex> <m_clusterGroupNumber>8</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>87</id> <name>tmp_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>327</item> <item>328</item> <item>329</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>71</m_topoIndex> <m_clusterGroupNumber>8</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>88</id> <name>select_ln311_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>330</item> <item>331</item> <item>332</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>72</m_topoIndex> <m_clusterGroupNumber>8</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_89"> <Value> <Obj> <type>0</type> <id>89</id> <name>xor_ln331_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>333</item> <item>334</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>73</m_topoIndex> <m_clusterGroupNumber>8</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>90</id> <name>xor_ln331_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName>state[1][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>335</item> <item>336</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>74</m_topoIndex> <m_clusterGroupNumber>8</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_91"> <Value> <Obj> <type>0</type> <id>91</id> <name>xor_ln319_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>337</item> <item>338</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>75</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>92</id> <name>xor_ln319_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>339</item> <item>340</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>76</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>93</id> <name>xor_ln319_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>341</item> <item>342</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>77</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>94</id> <name>shl_ln311_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>343</item> <item>344</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>78</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_95"> <Value> <Obj> <type>0</type> <id>95</id> <name>tmp_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>345</item> <item>346</item> <item>347</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>79</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_96"> <Value> <Obj> <type>0</type> <id>96</id> <name>select_ln311_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>348</item> <item>349</item> <item>350</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>80</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_97"> <Value> <Obj> <type>0</type> <id>97</id> <name>xor_ln322_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>351</item> <item>352</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>81</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_98"> <Value> <Obj> <type>0</type> <id>98</id> <name>xor_ln322_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>353</item> <item>354</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>82</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_99"> <Value> <Obj> <type>0</type> <id>99</id> <name>xor_ln322_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>355</item> <item>356</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>83</m_topoIndex> <m_clusterGroupNumber>9</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_100"> <Value> <Obj> <type>0</type> <id>100</id> <name>xor_ln323_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>323</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>323</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>357</item> <item>358</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>84</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_101"> <Value> <Obj> <type>0</type> <id>101</id> <name>shl_ln311_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>359</item> <item>360</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>85</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_102"> <Value> <Obj> <type>0</type> <id>102</id> <name>tmp_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>361</item> <item>362</item> <item>363</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>86</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_103"> <Value> <Obj> <type>0</type> <id>103</id> <name>select_ln311_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>364</item> <item>365</item> <item>366</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>87</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_104"> <Value> <Obj> <type>0</type> <id>104</id> <name>xor_ln325_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>367</item> <item>368</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>88</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_105"> <Value> <Obj> <type>0</type> <id>105</id> <name>xor_ln325_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>369</item> <item>370</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>89</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_106"> <Value> <Obj> <type>0</type> <id>106</id> <name>xor_ln325_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>371</item> <item>372</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>90</m_topoIndex> <m_clusterGroupNumber>10</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_107"> <Value> <Obj> <type>0</type> <id>107</id> <name>xor_ln326_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>326</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>326</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>373</item> <item>374</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>91</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_108"> <Value> <Obj> <type>0</type> <id>108</id> <name>shl_ln311_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>375</item> <item>376</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>92</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_109"> <Value> <Obj> <type>0</type> <id>109</id> <name>tmp_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>377</item> <item>378</item> <item>379</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>93</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_110"> <Value> <Obj> <type>0</type> <id>110</id> <name>select_ln311_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>380</item> <item>381</item> <item>382</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>94</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_111"> <Value> <Obj> <type>0</type> <id>111</id> <name>xor_ln328_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>383</item> <item>384</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>95</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_112"> <Value> <Obj> <type>0</type> <id>112</id> <name>xor_ln328_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>385</item> <item>386</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>96</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_113"> <Value> <Obj> <type>0</type> <id>113</id> <name>xor_ln328_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>387</item> <item>388</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>97</m_topoIndex> <m_clusterGroupNumber>11</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_114"> <Value> <Obj> <type>0</type> <id>114</id> <name>xor_ln329_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>329</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>329</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>389</item> <item>390</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>98</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_115"> <Value> <Obj> <type>0</type> <id>115</id> <name>shl_ln311_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>391</item> <item>392</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>99</m_topoIndex> <m_clusterGroupNumber>12</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_116"> <Value> <Obj> <type>0</type> <id>116</id> <name>tmp_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>393</item> <item>394</item> <item>395</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>100</m_topoIndex> <m_clusterGroupNumber>12</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_117"> <Value> <Obj> <type>0</type> <id>117</id> <name>select_ln311_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>396</item> <item>397</item> <item>398</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>101</m_topoIndex> <m_clusterGroupNumber>12</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_118"> <Value> <Obj> <type>0</type> <id>118</id> <name>xor_ln331_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>399</item> <item>400</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>102</m_topoIndex> <m_clusterGroupNumber>12</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_119"> <Value> <Obj> <type>0</type> <id>119</id> <name>xor_ln331_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName>state[2][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>401</item> <item>402</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>103</m_topoIndex> <m_clusterGroupNumber>12</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_120"> <Value> <Obj> <type>0</type> <id>120</id> <name>xor_ln319_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>403</item> <item>404</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>104</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_121"> <Value> <Obj> <type>0</type> <id>121</id> <name>xor_ln319_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>405</item> <item>406</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>105</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_122"> <Value> <Obj> <type>0</type> <id>122</id> <name>xor_ln319_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>319</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>319</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>407</item> <item>408</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>106</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_123"> <Value> <Obj> <type>0</type> <id>123</id> <name>shl_ln311_12</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>409</item> <item>410</item> </oprand_edges> <opcode>shl</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>107</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_124"> <Value> <Obj> <type>0</type> <id>124</id> <name>tmp_12</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>411</item> <item>412</item> <item>413</item> </oprand_edges> <opcode>bitselect</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>108</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_125"> <Value> <Obj> <type>0</type> <id>125</id> <name>select_ln311_12</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>321</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>414</item> <item>415</item> <item>416</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>109</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_126"> <Value> <Obj> <type>0</type> <id>126</id> <name>xor_ln322_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>417</item> <item>418</item> </oprand_edges> <opcode>xor</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>110</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_127"> <Value> <Obj> <type>0</type> <id>127</id> <name>xor_ln322_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>419</item> <item>420</item> </oprand_edges> <opcode>xor</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>111</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_128"> <Value> <Obj> <type>0</type> <id>128</id> <name>xor_ln322_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>322</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>322</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>421</item> <item>422</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>112</m_topoIndex> <m_clusterGroupNumber>13</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_129"> <Value> <Obj> <type>0</type> <id>129</id> <name>xor_ln323_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>323</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>323</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>423</item> <item>424</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>113</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_130"> <Value> <Obj> <type>0</type> <id>130</id> <name>shl_ln311_13</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>425</item> <item>426</item> </oprand_edges> <opcode>shl</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>114</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_131"> <Value> <Obj> <type>0</type> <id>131</id> <name>tmp_13</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>427</item> <item>428</item> <item>429</item> </oprand_edges> <opcode>bitselect</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>115</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_132"> <Value> <Obj> <type>0</type> <id>132</id> <name>select_ln311_13</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>324</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>430</item> <item>431</item> <item>432</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>116</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_133"> <Value> <Obj> <type>0</type> <id>133</id> <name>xor_ln325_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>433</item> <item>434</item> </oprand_edges> <opcode>xor</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>117</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_134"> <Value> <Obj> <type>0</type> <id>134</id> <name>xor_ln325_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>435</item> <item>436</item> </oprand_edges> <opcode>xor</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>118</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_135"> <Value> <Obj> <type>0</type> <id>135</id> <name>xor_ln325_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>325</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>325</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>437</item> <item>438</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>119</m_topoIndex> <m_clusterGroupNumber>14</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_136"> <Value> <Obj> <type>0</type> <id>136</id> <name>xor_ln326_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>326</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>326</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>439</item> <item>440</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>120</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_137"> <Value> <Obj> <type>0</type> <id>137</id> <name>shl_ln311_14</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>441</item> <item>442</item> </oprand_edges> <opcode>shl</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>121</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_138"> <Value> <Obj> <type>0</type> <id>138</id> <name>tmp_14</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>443</item> <item>444</item> <item>445</item> </oprand_edges> <opcode>bitselect</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>122</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_139"> <Value> <Obj> <type>0</type> <id>139</id> <name>select_ln311_14</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>327</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>446</item> <item>447</item> <item>448</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>123</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_140"> <Value> <Obj> <type>0</type> <id>140</id> <name>xor_ln328_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>449</item> <item>450</item> </oprand_edges> <opcode>xor</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>124</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_141"> <Value> <Obj> <type>0</type> <id>141</id> <name>xor_ln328_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>451</item> <item>452</item> </oprand_edges> <opcode>xor</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>125</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_142"> <Value> <Obj> <type>0</type> <id>142</id> <name>xor_ln328_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>328</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>328</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>453</item> <item>454</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>126</m_topoIndex> <m_clusterGroupNumber>15</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_143"> <Value> <Obj> <type>0</type> <id>143</id> <name>xor_ln329_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>329</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>329</second> </item> </second> </item> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>455</item> <item>456</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.79</m_delay> <m_topoIndex>127</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_144"> <Value> <Obj> <type>0</type> <id>144</id> <name>shl_ln311_15</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>457</item> <item>458</item> </oprand_edges> <opcode>shl</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>128</m_topoIndex> <m_clusterGroupNumber>16</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_145"> <Value> <Obj> <type>0</type> <id>145</id> <name>tmp_15</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</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>459</item> <item>460</item> <item>461</item> </oprand_edges> <opcode>bitselect</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>129</m_topoIndex> <m_clusterGroupNumber>16</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_146"> <Value> <Obj> <type>0</type> <id>146</id> <name>select_ln311_15</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>311</lineNumber> <contextFuncName>xtime</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>330</second> </item> <item> <first> <first>c_src/aes.c</first> <second>xtime</second> </first> <second>311</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>462</item> <item>463</item> <item>464</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>130</m_topoIndex> <m_clusterGroupNumber>16</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_147"> <Value> <Obj> <type>0</type> <id>147</id> <name>xor_ln331_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>465</item> <item>466</item> </oprand_edges> <opcode>xor</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>131</m_topoIndex> <m_clusterGroupNumber>16</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_148"> <Value> <Obj> <type>0</type> <id>148</id> <name>xor_ln331_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>331</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>331</second> </item> </second> </item> </inlineStackInfo> <originalName>state[3][3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>467</item> <item>468</item> </oprand_edges> <opcode>xor</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.97</m_delay> <m_topoIndex>132</m_topoIndex> <m_clusterGroupNumber>16</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_149"> <Value> <Obj> <type>0</type> <id>149</id> <name>mrv</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>470</item> <item>471</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>133</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_150"> <Value> <Obj> <type>0</type> <id>150</id> <name>mrv_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>472</item> <item>473</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>134</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_151"> <Value> <Obj> <type>0</type> <id>151</id> <name>mrv_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>474</item> <item>475</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>135</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_152"> <Value> <Obj> <type>0</type> <id>152</id> <name>mrv_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>476</item> <item>477</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>136</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_153"> <Value> <Obj> <type>0</type> <id>153</id> <name>mrv_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>478</item> <item>479</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>137</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_154"> <Value> <Obj> <type>0</type> <id>154</id> <name>mrv_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>480</item> <item>481</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>138</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_155"> <Value> <Obj> <type>0</type> <id>155</id> <name>mrv_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>482</item> <item>483</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>139</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_156"> <Value> <Obj> <type>0</type> <id>156</id> <name>mrv_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>484</item> <item>485</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>140</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_157"> <Value> <Obj> <type>0</type> <id>157</id> <name>mrv_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>486</item> <item>487</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>141</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_158"> <Value> <Obj> <type>0</type> <id>158</id> <name>mrv_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>488</item> <item>489</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>142</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_159"> <Value> <Obj> <type>0</type> <id>159</id> <name>mrv_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>490</item> <item>491</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>143</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_160"> <Value> <Obj> <type>0</type> <id>160</id> <name>mrv_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>492</item> <item>493</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>144</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_161"> <Value> <Obj> <type>0</type> <id>161</id> <name>mrv_12</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>494</item> <item>495</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>145</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_162"> <Value> <Obj> <type>0</type> <id>162</id> <name>mrv_13</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>496</item> <item>497</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>146</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_163"> <Value> <Obj> <type>0</type> <id>163</id> <name>mrv_14</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>498</item> <item>499</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>147</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_164"> <Value> <Obj> <type>0</type> <id>164</id> <name>mrv_s</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>500</item> <item>501</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>148</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_165"> <Value> <Obj> <type>0</type> <id>165</id> <name>_ln333</name> <fileName>c_src/aes.c</fileName> <fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory> <lineNumber>333</lineNumber> <contextFuncName>MixColumns</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>MixColumns</second> </first> <second>333</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>502</item> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>149</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </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="_166"> <Value> <Obj> <type>2</type> <id>207</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_167"> <Value> <Obj> <type>2</type> <id>212</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>7</content> </item> <item class_id_reference="16" object_id="_168"> <Value> <Obj> <type>2</type> <id>215</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>27</content> </item> <item class_id_reference="16" object_id="_169"> <Value> <Obj> <type>2</type> <id>217</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>0</content> </item> <item class_id_reference="16" object_id="_170"> <Value> <Obj> <type>2</type> <id>469</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>128</bitwidth> </Value> <const_type>4</const_type> <content>&lt;Undef not integral&gt;</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="_171"> <Obj> <type>3</type> <id>166</id> <name>MixColumns</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>149</count> <item_version>0</item_version> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>43</item> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>67</item> <item>68</item> <item>69</item> <item>70</item> <item>71</item> <item>72</item> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>77</item> <item>78</item> <item>79</item> <item>80</item> <item>81</item> <item>82</item> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> <item>94</item> <item>95</item> <item>96</item> <item>97</item> <item>98</item> <item>99</item> <item>100</item> <item>101</item> <item>102</item> <item>103</item> <item>104</item> <item>105</item> <item>106</item> <item>107</item> <item>108</item> <item>109</item> <item>110</item> <item>111</item> <item>112</item> <item>113</item> <item>114</item> <item>115</item> <item>116</item> <item>117</item> <item>118</item> <item>119</item> <item>120</item> <item>121</item> <item>122</item> <item>123</item> <item>124</item> <item>125</item> <item>126</item> <item>127</item> <item>128</item> <item>129</item> <item>130</item> <item>131</item> <item>132</item> <item>133</item> <item>134</item> <item>135</item> <item>136</item> <item>137</item> <item>138</item> <item>139</item> <item>140</item> <item>141</item> <item>142</item> <item>143</item> <item>144</item> <item>145</item> <item>146</item> <item>147</item> <item>148</item> <item>149</item> <item>150</item> <item>151</item> <item>152</item> <item>153</item> <item>154</item> <item>155</item> <item>156</item> <item>157</item> <item>158</item> <item>159</item> <item>160</item> <item>161</item> <item>162</item> <item>163</item> <item>164</item> <item>165</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>297</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_172"> <id>169</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_173"> <id>171</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_174"> <id>173</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_175"> <id>175</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_176"> <id>177</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_177"> <id>179</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_178"> <id>181</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_179"> <id>183</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_180"> <id>185</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_181"> <id>187</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_182"> <id>189</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_183"> <id>191</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_184"> <id>193</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_185"> <id>195</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>30</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_186"> <id>197</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_187"> <id>199</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_188"> <id>200</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_189"> <id>201</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_190"> <id>202</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_191"> <id>203</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_192"> <id>204</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_193"> <id>205</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_194"> <id>206</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_195"> <id>208</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_196"> <id>211</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_197"> <id>213</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_198"> <id>214</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_199"> <id>216</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_200"> <id>218</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_201"> <id>219</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_202"> <id>220</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_203"> <id>221</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_204"> <id>222</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_205"> <id>223</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_206"> <id>224</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_207"> <id>225</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_208"> <id>226</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_209"> <id>227</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_210"> <id>228</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_211"> <id>230</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_212"> <id>231</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_213"> <id>232</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_214"> <id>233</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_215"> <id>234</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_216"> <id>235</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_217"> <id>236</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_218"> <id>237</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_219"> <id>238</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_220"> <id>239</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_221"> <id>240</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_222"> <id>241</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_223"> <id>242</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_224"> <id>243</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_225"> <id>244</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_226"> <id>246</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_227"> <id>247</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_228"> <id>248</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_229"> <id>249</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_230"> <id>250</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_231"> <id>251</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_232"> <id>252</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_233"> <id>253</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_234"> <id>254</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_235"> <id>255</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_236"> <id>256</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_237"> <id>257</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_238"> <id>258</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_239"> <id>259</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_240"> <id>260</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_241"> <id>262</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_242"> <id>263</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_243"> <id>264</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>59</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_244"> <id>265</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>59</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_245"> <id>266</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>59</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_246"> <id>267</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_247"> <id>268</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_248"> <id>269</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_249"> <id>270</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_250"> <id>271</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_251"> <id>272</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_252"> <id>273</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_253"> <id>274</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_254"> <id>275</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_255"> <id>276</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_256"> <id>277</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_257"> <id>278</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_258"> <id>280</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_259"> <id>281</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_260"> <id>282</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_261"> <id>283</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_262"> <id>284</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_263"> <id>285</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_264"> <id>286</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_265"> <id>287</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_266"> <id>288</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_267"> <id>289</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_268"> <id>290</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_269"> <id>291</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_270"> <id>292</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_271"> <id>293</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>72</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_272"> <id>294</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>72</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_273"> <id>296</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_274"> <id>297</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_275"> <id>298</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_276"> <id>299</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_277"> <id>300</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_278"> <id>301</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_279"> <id>302</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_280"> <id>303</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_281"> <id>304</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_282"> <id>305</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>77</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_283"> <id>306</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>77</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_284"> <id>307</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_285"> <id>308</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_286"> <id>309</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_287"> <id>310</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_288"> <id>312</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>80</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_289"> <id>313</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>80</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_290"> <id>314</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_291"> <id>315</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_292"> <id>316</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_293"> <id>317</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_294"> <id>318</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_295"> <id>319</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_296"> <id>320</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_297"> <id>321</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_298"> <id>322</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_299"> <id>323</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>85</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_300"> <id>324</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>85</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_301"> <id>325</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_302"> <id>326</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_303"> <id>328</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_304"> <id>329</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_305"> <id>330</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_306"> <id>331</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_307"> <id>332</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_308"> <id>333</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_309"> <id>334</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_310"> <id>335</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_311"> <id>336</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_312"> <id>337</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_313"> <id>338</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_314"> <id>339</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_315"> <id>340</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_316"> <id>341</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>93</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_317"> <id>342</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>93</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_318"> <id>343</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>94</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_319"> <id>344</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>94</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_320"> <id>346</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_321"> <id>347</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_322"> <id>348</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>96</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_323"> <id>349</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>96</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_324"> <id>350</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>96</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_325"> <id>351</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_326"> <id>352</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_327"> <id>353</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_328"> <id>354</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_329"> <id>355</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>99</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_330"> <id>356</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>99</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_331"> <id>357</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_332"> <id>358</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_333"> <id>359</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_334"> <id>360</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_335"> <id>362</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_336"> <id>363</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_337"> <id>364</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_338"> <id>365</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_339"> <id>366</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_340"> <id>367</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>104</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_341"> <id>368</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>104</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_342"> <id>369</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>105</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_343"> <id>370</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>105</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_344"> <id>371</id> <edge_type>1</edge_type> <source_obj>105</source_obj> <sink_obj>106</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_345"> <id>372</id> <edge_type>1</edge_type> <source_obj>104</source_obj> <sink_obj>106</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_346"> <id>373</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_347"> <id>374</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_348"> <id>375</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>108</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_349"> <id>376</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>108</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_350"> <id>378</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_351"> <id>379</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_352"> <id>380</id> <edge_type>1</edge_type> <source_obj>109</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_353"> <id>381</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_354"> <id>382</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_355"> <id>383</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>111</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_356"> <id>384</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>111</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_357"> <id>385</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_358"> <id>386</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_359"> <id>387</id> <edge_type>1</edge_type> <source_obj>112</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_360"> <id>388</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_361"> <id>389</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_362"> <id>390</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_363"> <id>391</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="_364"> <id>392</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_365"> <id>394</id> <edge_type>1</edge_type> <source_obj>114</source_obj> <sink_obj>116</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_366"> <id>395</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>116</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_367"> <id>396</id> <edge_type>1</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="_368"> <id>397</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>117</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_369"> <id>398</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>117</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_370"> <id>399</id> <edge_type>1</edge_type> <source_obj>115</source_obj> <sink_obj>118</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_371"> <id>400</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>118</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_372"> <id>401</id> <edge_type>1</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="_373"> <id>402</id> <edge_type>1</edge_type> <source_obj>117</source_obj> <sink_obj>119</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_374"> <id>403</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>120</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_375"> <id>404</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>120</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_376"> <id>405</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>121</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_377"> <id>406</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>121</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_378"> <id>407</id> <edge_type>1</edge_type> <source_obj>121</source_obj> <sink_obj>122</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_379"> <id>408</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>122</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_380"> <id>409</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>123</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_381"> <id>410</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>123</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_382"> <id>412</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>124</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_383"> <id>413</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>124</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_384"> <id>414</id> <edge_type>1</edge_type> <source_obj>124</source_obj> <sink_obj>125</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_385"> <id>415</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>125</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_386"> <id>416</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>125</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_387"> <id>417</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>126</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_388"> <id>418</id> <edge_type>1</edge_type> <source_obj>123</source_obj> <sink_obj>126</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_389"> <id>419</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>127</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_390"> <id>420</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>127</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_391"> <id>421</id> <edge_type>1</edge_type> <source_obj>127</source_obj> <sink_obj>128</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_392"> <id>422</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>128</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_393"> <id>423</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>129</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_394"> <id>424</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>129</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_395"> <id>425</id> <edge_type>1</edge_type> <source_obj>129</source_obj> <sink_obj>130</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_396"> <id>426</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>130</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_397"> <id>428</id> <edge_type>1</edge_type> <source_obj>129</source_obj> <sink_obj>131</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_398"> <id>429</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>131</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_399"> <id>430</id> <edge_type>1</edge_type> <source_obj>131</source_obj> <sink_obj>132</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_400"> <id>431</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>132</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_401"> <id>432</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>132</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_402"> <id>433</id> <edge_type>1</edge_type> <source_obj>132</source_obj> <sink_obj>133</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_403"> <id>434</id> <edge_type>1</edge_type> <source_obj>130</source_obj> <sink_obj>133</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_404"> <id>435</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>134</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_405"> <id>436</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>134</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_406"> <id>437</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>135</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_407"> <id>438</id> <edge_type>1</edge_type> <source_obj>133</source_obj> <sink_obj>135</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_408"> <id>439</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>136</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_409"> <id>440</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>136</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_410"> <id>441</id> <edge_type>1</edge_type> <source_obj>136</source_obj> <sink_obj>137</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_411"> <id>442</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>137</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_412"> <id>444</id> <edge_type>1</edge_type> <source_obj>136</source_obj> <sink_obj>138</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_413"> <id>445</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>138</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_414"> <id>446</id> <edge_type>1</edge_type> <source_obj>138</source_obj> <sink_obj>139</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_415"> <id>447</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>139</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_416"> <id>448</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>139</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_417"> <id>449</id> <edge_type>1</edge_type> <source_obj>139</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_418"> <id>450</id> <edge_type>1</edge_type> <source_obj>137</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_419"> <id>451</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>141</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_420"> <id>452</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>141</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_421"> <id>453</id> <edge_type>1</edge_type> <source_obj>141</source_obj> <sink_obj>142</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_422"> <id>454</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>142</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_423"> <id>455</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>143</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_424"> <id>456</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>143</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_425"> <id>457</id> <edge_type>1</edge_type> <source_obj>143</source_obj> <sink_obj>144</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_426"> <id>458</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>144</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_427"> <id>460</id> <edge_type>1</edge_type> <source_obj>143</source_obj> <sink_obj>145</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_428"> <id>461</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>145</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_429"> <id>462</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>146</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_430"> <id>463</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>146</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_431"> <id>464</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>146</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_432"> <id>465</id> <edge_type>1</edge_type> <source_obj>144</source_obj> <sink_obj>147</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_433"> <id>466</id> <edge_type>1</edge_type> <source_obj>121</source_obj> <sink_obj>147</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_434"> <id>467</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>148</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_435"> <id>468</id> <edge_type>1</edge_type> <source_obj>146</source_obj> <sink_obj>148</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_436"> <id>470</id> <edge_type>1</edge_type> <source_obj>469</source_obj> <sink_obj>149</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_437"> <id>471</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>149</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_438"> <id>472</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>150</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_439"> <id>473</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>150</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_440"> <id>474</id> <edge_type>1</edge_type> <source_obj>150</source_obj> <sink_obj>151</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_441"> <id>475</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>151</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_442"> <id>476</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>152</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_443"> <id>477</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>152</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_444"> <id>478</id> <edge_type>1</edge_type> <source_obj>152</source_obj> <sink_obj>153</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_445"> <id>479</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>153</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_446"> <id>480</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>154</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_447"> <id>481</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>154</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_448"> <id>482</id> <edge_type>1</edge_type> <source_obj>154</source_obj> <sink_obj>155</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_449"> <id>483</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>155</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_450"> <id>484</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>156</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_451"> <id>485</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>156</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_452"> <id>486</id> <edge_type>1</edge_type> <source_obj>156</source_obj> <sink_obj>157</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_453"> <id>487</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>157</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_454"> <id>488</id> <edge_type>1</edge_type> <source_obj>157</source_obj> <sink_obj>158</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_455"> <id>489</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>158</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_456"> <id>490</id> <edge_type>1</edge_type> <source_obj>158</source_obj> <sink_obj>159</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_457"> <id>491</id> <edge_type>1</edge_type> <source_obj>113</source_obj> <sink_obj>159</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_458"> <id>492</id> <edge_type>1</edge_type> <source_obj>159</source_obj> <sink_obj>160</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_459"> <id>493</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>160</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_460"> <id>494</id> <edge_type>1</edge_type> <source_obj>160</source_obj> <sink_obj>161</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_461"> <id>495</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>161</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_462"> <id>496</id> <edge_type>1</edge_type> <source_obj>161</source_obj> <sink_obj>162</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_463"> <id>497</id> <edge_type>1</edge_type> <source_obj>135</source_obj> <sink_obj>162</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_464"> <id>498</id> <edge_type>1</edge_type> <source_obj>162</source_obj> <sink_obj>163</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_465"> <id>499</id> <edge_type>1</edge_type> <source_obj>142</source_obj> <sink_obj>163</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_466"> <id>500</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>164</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_467"> <id>501</id> <edge_type>1</edge_type> <source_obj>148</source_obj> <sink_obj>164</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_468"> <id>502</id> <edge_type>1</edge_type> <source_obj>164</source_obj> <sink_obj>165</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="_469"> <mId>1</mId> <mTag>MixColumns</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>166</item> </basic_blocks> <mII>1</mII> <mDepth>1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>149</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>17</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>53</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>55</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>72</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>74</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>76</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>77</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>79</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>80</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>82</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>83</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>85</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>86</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>88</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>89</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>91</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>92</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>94</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>95</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>97</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>100</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>104</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>105</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>106</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>107</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>108</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>109</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>111</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>112</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>113</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>114</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>115</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>116</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>117</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>118</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>119</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>120</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>121</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>122</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>123</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>124</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>125</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>126</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>127</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>128</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>129</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>130</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>131</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>132</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>133</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>134</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>135</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>136</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>137</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>138</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>139</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>140</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>141</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>142</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>143</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>144</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>145</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>146</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>147</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>148</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>149</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>150</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>151</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>152</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>153</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>154</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>155</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>156</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>157</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>158</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>159</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>160</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>161</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>162</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>163</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>164</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>165</first> <second> <first>0</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>166</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</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="_470"> <region_name>MixColumns</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>166</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>1</pipe_depth> </item> </regions> <dp_fu_nodes class_id="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>
27.791913
91
0.598779
59fc30990c318d045f06c93f913ae46c79076b77
564
ads
Ada
tests/crafts-test_data.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
80
2017-04-08T23:14:07.000Z
2022-02-10T22:30:51.000Z
tests/crafts-test_data.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
89
2017-06-24T08:18:26.000Z
2021-11-12T04:37:36.000Z
tests/crafts-test_data.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
9
2018-04-14T16:37:25.000Z
2020-03-21T14:33:49.000Z
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with AUnit.Test_Fixtures; package Crafts.Test_Data is -- begin read only type Test is new AUnit.Test_Fixtures.Test_Fixture -- end read only with null record; procedure Set_Up(Gnattest_T: in out Test); procedure Tear_Down(Gnattest_T: in out Test); end Crafts.Test_Data;
29.684211
75
0.755319
ad1c1c184f9d55559d890fdd19ad6bb9a547a348
1,211
ads
Ada
src/tom/library/sl/ada/oneidstrategy.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
36
2016-02-19T12:09:49.000Z
2022-02-03T13:13:21.000Z
src/tom/library/sl/ada/oneidstrategy.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
null
null
null
src/tom/library/sl/ada/oneidstrategy.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
6
2017-11-30T17:07:10.000Z
2022-03-12T14:46:21.000Z
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; package OneIdStrategy is ARG : constant Integer := 0; type OneId is new AbstractStrategyCombinator and Object with null record; ---------------------------------------------------------------------------- -- Object implementation ---------------------------------------------------------------------------- function toString(o: OneId) return String; ---------------------------------------------------------------------------- -- Strategy implementation ---------------------------------------------------------------------------- function visitLight(str:access OneId; any: ObjectPtr; intro: access Introspector'Class) return ObjectPtr; function visit(str: access OneId; intro: access Introspector'Class) return Integer; ---------------------------------------------------------------------------- procedure makeOneId(o : in out OneId; v: StrategyPtr); function newOneId(v: StrategyPtr) return StrategyPtr; ---------------------------------------------------------------------------- end OneIdStrategy;
43.25
106
0.493807
adef1743691b3ed2ce867c5f3d35a416c2b66025
2,202
adb
Ada
source/numerics/required/s-fatsfl.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/numerics/required/s-fatsfl.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/numerics/required/s-fatsfl.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
package body System.Fat_Sflt is function frexp (value : Short_Float; exp : access Integer) return Short_Float with Import, Convention => Intrinsic, External_Name => "__builtin_frexpf"; function inf return Short_Float with Import, Convention => Intrinsic, External_Name => "__builtin_inff"; function isfinite (X : Short_Float) return Integer with Import, Convention => Intrinsic, External_Name => "__builtin_isfinite"; pragma Warnings (Off, isfinite); -- [gcc 4.6] excessive prototype checking package body Attr_Short_Float is function Compose (Fraction : Short_Float; Exponent : Integer) return Short_Float is begin return Scaling (Attr_Short_Float.Fraction (Fraction), Exponent); end Compose; function Exponent (X : Short_Float) return Integer is Result : aliased Integer; Dummy : Short_Float; begin Dummy := frexp (X, Result'Access); return Result; end Exponent; function Fraction (X : Short_Float) return Short_Float is Dummy : aliased Integer; begin return frexp (X, Dummy'Access); end Fraction; function Leading_Part (X : Short_Float; Radix_Digits : Integer) return Short_Float is S : constant Integer := Radix_Digits - Exponent (X); begin return Scaling (Truncation (Scaling (X, S)), -S); end Leading_Part; function Machine (X : Short_Float) return Short_Float is begin return Short_Float (Long_Long_Float (X)); -- ??? end Machine; function Pred (X : Short_Float) return Short_Float is begin return Adjacent (X, -inf); end Pred; function Succ (X : Short_Float) return Short_Float is begin return Adjacent (X, inf); end Succ; function Unbiased_Rounding (X : Short_Float) return Short_Float is begin return X - Remainder (X, 1.0); end Unbiased_Rounding; function Valid (X : not null access Short_Float) return Boolean is begin return isfinite (X.all) /= 0; end Valid; end Attr_Short_Float; end System.Fat_Sflt;
29.756757
78
0.639873
1aeee53d1ac8939a4e39b179689cdabae36d037f
2,462
ads
Ada
source/oasis/program-elements-record_component_associations.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/oasis/program-elements-record_component_associations.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/oasis/program-elements-record_component_associations.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Associations; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Record_Component_Associations is pragma Pure (Program.Elements.Record_Component_Associations); type Record_Component_Association is limited interface and Program.Elements.Associations.Association; type Record_Component_Association_Access is access all Record_Component_Association'Class with Storage_Size => 0; not overriding function Choices (Self : Record_Component_Association) return Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Component_Value (Self : Record_Component_Association) return Program.Elements.Expressions.Expression_Access is abstract; type Record_Component_Association_Text is limited interface; type Record_Component_Association_Text_Access is access all Record_Component_Association_Text'Class with Storage_Size => 0; not overriding function To_Record_Component_Association_Text (Self : in out Record_Component_Association) return Record_Component_Association_Text_Access is abstract; not overriding function Arrow_Token (Self : Record_Component_Association_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Box_Token (Self : Record_Component_Association_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; type Record_Component_Association_Vector is limited interface and Program.Element_Vectors.Element_Vector; type Record_Component_Association_Vector_Access is access all Record_Component_Association_Vector'Class with Storage_Size => 0; overriding function Element (Self : Record_Component_Association_Vector; Index : Positive) return not null Program.Elements.Element_Access is abstract with Post'Class => Element'Result.Is_Record_Component_Association; function To_Record_Component_Association (Self : Record_Component_Association_Vector'Class; Index : Positive) return not null Record_Component_Association_Access is (Self.Element (Index).To_Record_Component_Association); end Program.Elements.Record_Component_Associations;
37.30303
79
0.788383
221b83a3fd7c75a946ee207c129ed6407b304393
4,160
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-restri.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-restri.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-restri.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . R E S T R I C T I O N S -- -- -- -- 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/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides a run-time interface for checking the set of -- restrictions that applies to the current partition. The information -- comes both from explicit restriction pragmas present, and also from -- compile time checking. -- The package simply contains an instantiation of System.Rident, but -- with names discarded, so that we do not have image tables for the -- large restriction enumeration types at run time. pragma Compiler_Unit_Warning; with System.Rident; package System.Restrictions is pragma Preelaborate; pragma Discard_Names; package Rident is new System.Rident; -- Instantiate a copy of System.Rident without enumeration image names Run_Time_Restrictions : Rident.Restrictions_Info; -- Restrictions as set by the user, or detected by the binder. See details -- in package System.Rident for what restrictions are included in the list -- and the format of the information. -- -- Note that a restriction which is both Set and Violated at run-time means -- that the violation was detected as part of the Ada run-time and not as -- part of user code. ------------------ -- Subprograms -- ----------------- function Abort_Allowed return Boolean; pragma Inline (Abort_Allowed); -- Tests to see if abort is allowed by the current restrictions settings. -- For abort to be allowed, either No_Abort_Statements must be False, or -- Max_Asynchronous_Select_Nesting must be non-zero. function Tasking_Allowed return Boolean; pragma Inline (Tasking_Allowed); -- Tests to see if tasking operations are allowed by the current -- restrictions settings. For tasking to be allowed, No_Tasking must -- be False, and Max_Tasks must not be set to zero. end System.Restrictions;
53.333333
79
0.523317
132d0260a38b8f171c9b440c83598c62b002cca2
3,500
ads
Ada
dependencies/agar/ada-gui/agar-gui-widget-notebook.ads
amvb/GUCEF
08fd423bbb5cdebbe4b70df24c0ae51716b65825
[ "Apache-2.0" ]
286
2017-07-31T20:05:16.000Z
2022-03-26T20:26:24.000Z
dependencies/agar/ada-gui/agar-gui-widget-notebook.ads
amvb/GUCEF
08fd423bbb5cdebbe4b70df24c0ae51716b65825
[ "Apache-2.0" ]
67
2017-08-30T18:56:21.000Z
2021-09-08T03:38:20.000Z
dependencies/agar/ada-gui/agar-gui-widget-notebook.ads
amvb/GUCEF
08fd423bbb5cdebbe4b70df24c0ae51716b65825
[ "Apache-2.0" ]
31
2017-08-14T13:34:12.000Z
2022-03-14T15:33:49.000Z
with agar.core.tail_queue; with agar.gui.text; with agar.gui.widget.box; package agar.gui.widget.notebook is use type c.unsigned; type tab_t; type tab_access_t is access all tab_t; pragma convention (c, tab_access_t); package tab_tail_queue is new agar.core.tail_queue (entry_type => tab_access_t); type tab_alignment_t is ( NOTEBOOK_TABS_TOP, NOTEBOOK_TABS_BOTTOM, NOTEBOOK_TABS_LEFT, NOTEBOOK_TABS_RIGHT ); for tab_alignment_t use ( NOTEBOOK_TABS_TOP => 0, NOTEBOOK_TABS_BOTTOM => 1, NOTEBOOK_TABS_LEFT => 2, NOTEBOOK_TABS_RIGHT => 3 ); for tab_alignment_t'size use c.unsigned'size; pragma convention (c, tab_alignment_t); label_max : constant := 64; type text_t is array (1 .. label_max) of aliased c.char; pragma convention (c, text_t); type tab_t is record box : agar.gui.widget.box.box_t; label : c.int; label_text : text_t; tabs : tab_tail_queue.entry_t; end record; pragma convention (c, tab_t); type flags_t is new c.unsigned; NOTEBOOK_HFILL : constant flags_t := 16#01#; NOTEBOOK_VFILL : constant flags_t := 16#02#; NOTEBOOK_HIDE_TABS : constant flags_t := 16#04#; NOTEBOOK_EXPAND : constant flags_t := NOTEBOOK_HFILL or NOTEBOOK_VFILL; type notebook_t is record widget : aliased widget_t; tab_align : tab_alignment_t; flags : flags_t; bar_w : c.int; bar_h : c.int; cont_w : c.int; cont_h : c.int; spacing : c.int; padding : c.int; tab_font : agar.gui.text.font_access_t; label_partial : c.int; label_partial_width : c.int; sel_tab : tab_access_t; tabs : tab_tail_queue.head_t; r : agar.gui.rect.rect_t; end record; type notebook_access_t is access all notebook_t; pragma convention (c, notebook_t); pragma convention (c, notebook_access_t); -- API function allocate (parent : widget_access_t; flags : flags_t) return notebook_access_t; pragma import (c, allocate, "AG_NotebookNew"); procedure set_padding (notebook : notebook_access_t; padding : natural); pragma inline (set_padding); procedure set_spacing (notebook : notebook_access_t; spacing : natural); pragma inline (set_spacing); procedure set_tab_alignment (notebook : notebook_access_t; alignment : tab_alignment_t); pragma import (c, set_tab_alignment, "AG_NotebookSetTabAlignment"); procedure set_tab_font (notebook : notebook_access_t; font : agar.gui.text.font_access_t); pragma import (c, set_tab_font, "AG_NotebookSetTabFont"); procedure set_tab_visibility (notebook : notebook_access_t; flag : boolean := false); pragma inline (set_tab_visibility); -- tabs procedure add_tab (notebook : notebook_access_t; name : string; box_type : agar.gui.widget.box.type_t); pragma inline (add_tab); procedure delete_tab (notebook : notebook_access_t; tab : tab_access_t); pragma import (c, delete_tab, "AG_NotebookDelTab"); procedure select_tab (notebook : notebook_access_t; tab : tab_access_t); pragma import (c, select_tab, "AG_NotebookSelectTab"); function widget (notebook : notebook_access_t) return widget_access_t; pragma inline (widget); end agar.gui.widget.notebook;
28
76
0.66
41d443feb239d066a0b80fd51cd0491726ef90b8
8,353
ads
Ada
bb-runtimes/src/system/system-xi-e500v2.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/src/system/system-xi-e500v2.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/src/system/system-xi-e500v2.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M -- -- -- -- S p e c -- -- (PPC/E500v2 EABISPE Version) -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Restrictions (No_Exception_Propagation); -- Only local exception handling is supported in this profile pragma Restrictions (No_Exception_Registration); -- Disable exception name registration. This capability is not used because -- it is only required by exception stream attributes which are not supported -- in this run time. pragma Restrictions (No_Implicit_Dynamic_Code); -- Pointers to nested subprograms are not allowed in this run time, in order -- to prevent the compiler from building "trampolines". pragma Restrictions (No_Finalization); -- Controlled types are not supported in this run time pragma Restrictions (No_Tasking); -- Tasking is not supported in this run time pragma Discard_Names; -- Disable explicitly the generation of names associated with entities in -- order to reduce the amount of storage used. These names are not used anyway -- (attributes such as 'Image and 'Value are not supported in this run time). package System is pragma Pure; -- Note that we take advantage of the implementation permission to make -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada -- 2005, this is Pure in any case (AI-362). pragma No_Elaboration_Code_All; -- Allow the use of that restriction in units that WITH this unit type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; -- System-Dependent Named Numbers Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1); Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1; Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size; Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1; Max_Base_Digits : constant := Long_Long_Float'Digits; Max_Digits : constant := Long_Long_Float'Digits; Max_Mantissa : constant := Standard'Max_Integer_Size - 1; Fine_Delta : constant := 2.0 ** (-Max_Mantissa); Tick : constant := 0.0; -- Storage-related Declarations type Address is private; pragma Preelaborable_Initialization (Address); Null_Address : constant Address; Storage_Unit : constant := 8; Word_Size : constant := 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 := High_Order_First; pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning -- Priority-related Declarations (RM D.1) -- ??? need comments explaining the values below 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 type Address is mod Memory_Size; Null_Address : constant Address := 0; -------------------------------------- -- System Implementation Parameters -- -------------------------------------- -- These parameters provide information about the target that is used -- by the compiler. They are in the private part of System, where they -- can be accessed using the special circuitry in the Targparm unit -- whose source should be consulted for more detailed descriptions -- of the individual switch values. Atomic_Sync_Default : constant Boolean := False; Backend_Divide_Checks : constant Boolean := False; Backend_Overflow_Checks : constant Boolean := True; Command_Line_Args : constant Boolean := False; Configurable_Run_Time : constant Boolean := True; Denorm : constant Boolean := True; Duration_32_Bits : constant Boolean := True; Exit_Status_Supported : constant Boolean := False; Fractional_Fixed_Ops : constant Boolean := False; Frontend_Layout : constant Boolean := False; Machine_Overflows : constant Boolean := True; Machine_Rounds : constant Boolean := True; Preallocated_Stacks : constant Boolean := False; -- MPC8548ECE Chip Errata Rev 8: signed zero not reliable Signed_Zeros : constant Boolean := False; Stack_Check_Default : constant Boolean := False; Stack_Check_Probes : constant Boolean := False; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; Always_Compatible_Rep : constant Boolean := True; Suppress_Standard_Library : constant Boolean := True; Use_Ada_Main_Program_Name : constant Boolean := False; Frontend_Exceptions : constant Boolean := False; ZCX_By_Default : constant Boolean := True; end System;
47.731429
79
0.581109
1248df864f8efcd50e68338f3b50efeac17fc4a8
412
ada
Ada
Task/Binary-digits/Ada/binary-digits.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2021-05-05T13:42:20.000Z
2021-05-05T13:42:20.000Z
Task/Binary-digits/Ada/binary-digits.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Binary-digits/Ada/binary-digits.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
with ada.text_io; use ada.text_io; procedure binary is bit : array (0..1) of character := ('0','1'); function bin_image (n : Natural) return string is (if n < 2 then (1 => bit (n)) else bin_image (n / 2) & bit (n mod 2)); test_values : array (1..3) of Natural := (5,50,9000); begin for test of test_values loop put_line ("Output for" & test'img & " is " & bin_image (test)); end loop; end binary;
29.428571
72
0.631068
adf03301b1f49e714e04c10abccfed3b579d1cb8
2,531
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stboha.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stboha.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stboha.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . S T R I N G S . B O U N D E D . H A S H -- -- -- -- B o d y -- -- -- -- Copyright (C) 2004-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with System.String_Hash; function Ada.Strings.Bounded.Hash (Key : Bounded.Bounded_String) return Containers.Hash_Type is use Ada.Containers; function Hash_Fun is new System.String_Hash.Hash (Character, String, Hash_Type); begin return Hash_Fun (Bounded.To_String (Key)); end Ada.Strings.Bounded.Hash;
61.731707
78
0.41367
2e5b2c9ee68a6efe5e07abe65814ec31aede3af5
4,335
ads
Ada
bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/a-sytaco.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/a-sytaco.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/a-sytaco.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S Y N C H R O N O U S _ T A S K _ C O N T R O L -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2021, 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. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is the generic bare board version of this package with Ada.Task_Identification; package Ada.Synchronous_Task_Control with SPARK_Mode is pragma Preelaborate; -- In accordance with Ada 2005 AI-362 type Suspension_Object is limited private with Default_Initial_Condition; procedure Set_True (S : in out Suspension_Object) with Global => null, Depends => (S => null, null => S); procedure Set_False (S : in out Suspension_Object) with Global => null, Depends => (S => null, null => S); function Current_State (S : Suspension_Object) return Boolean with Volatile_Function, Global => Ada.Task_Identification.Tasking_State; procedure Suspend_Until_True (S : in out Suspension_Object) with Global => null, Depends => (S => null, null => S); private pragma SPARK_Mode (Off); -- Using a protected object may seem overkill, but assuming the -- appropriate restrictions (such as those imposed by the Ravenscar -- profile) protected operations are very efficient. Moreover, this -- allows for a generic implementation that is not dependent on the -- underlying operating system. protected type Suspension_Object is entry Wait with Max_Queue_Length => 1; -- At most one task can be waiting, in accordance to D.10/10 procedure Set_False; procedure Set_True; function Get_Open return Boolean; pragma Interrupt_Priority; private Open : Boolean := False; -- Status end Suspension_Object; end Ada.Synchronous_Task_Control;
46.612903
78
0.461361
573490a0888f14b223cd8e6e09d8299ec2013232
9,051
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack20.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack20.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack20.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 2 0 -- -- -- -- 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.Storage_Elements; with System.Unsigned_Types; package body System.Pack_20 is subtype Bit_Order is System.Bit_Order; Reverse_Bit_Order : constant Bit_Order := Bit_Order'Val (1 - Bit_Order'Pos (System.Default_Bit_Order)); subtype Ofs is System.Storage_Elements.Storage_Offset; subtype Uns is System.Unsigned_Types.Unsigned; subtype N07 is System.Unsigned_Types.Unsigned range 0 .. 7; use type System.Storage_Elements.Storage_Offset; use type System.Unsigned_Types.Unsigned; type Cluster is record E0, E1, E2, E3, E4, E5, E6, E7 : Bits_20; end record; for Cluster use record E0 at 0 range 0 * Bits .. 0 * Bits + Bits - 1; E1 at 0 range 1 * Bits .. 1 * Bits + Bits - 1; E2 at 0 range 2 * Bits .. 2 * Bits + Bits - 1; E3 at 0 range 3 * Bits .. 3 * Bits + Bits - 1; E4 at 0 range 4 * Bits .. 4 * Bits + Bits - 1; E5 at 0 range 5 * Bits .. 5 * Bits + Bits - 1; E6 at 0 range 6 * Bits .. 6 * Bits + Bits - 1; E7 at 0 range 7 * Bits .. 7 * Bits + Bits - 1; end record; for Cluster'Size use Bits * 8; for Cluster'Alignment use Integer'Min (Standard'Maximum_Alignment, 1 + 1 * Boolean'Pos (Bits mod 2 = 0) + 2 * Boolean'Pos (Bits mod 4 = 0)); -- Use maximum possible alignment, given the bit field size, since this -- will result in the most efficient code possible for the field. type Cluster_Ref is access Cluster; type Rev_Cluster is new Cluster with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_Cluster_Ref is access Rev_Cluster; -- The following declarations are for the case where the address -- passed to GetU_20 or SetU_20 is not guaranteed to be aligned. -- These routines are used when the packed array is itself a -- component of a packed record, and therefore may not be aligned. type ClusterU is new Cluster; for ClusterU'Alignment use 1; type ClusterU_Ref is access ClusterU; type Rev_ClusterU is new ClusterU with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_ClusterU_Ref is access Rev_ClusterU; ------------ -- Get_20 -- ------------ function Get_20 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_20 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else case N07 (Uns (N) mod 8) is when 0 => return C.E0; when 1 => return C.E1; when 2 => return C.E2; when 3 => return C.E3; when 4 => return C.E4; when 5 => return C.E5; when 6 => return C.E6; when 7 => return C.E7; end case; end if; end Get_20; ------------- -- GetU_20 -- ------------- function GetU_20 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_20 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else case N07 (Uns (N) mod 8) is when 0 => return C.E0; when 1 => return C.E1; when 2 => return C.E2; when 3 => return C.E3; when 4 => return C.E4; when 5 => return C.E5; when 6 => return C.E6; when 7 => return C.E7; end case; end if; end GetU_20; ------------ -- Set_20 -- ------------ procedure Set_20 (Arr : System.Address; N : Natural; E : Bits_20; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else case N07 (Uns (N) mod 8) is when 0 => C.E0 := E; when 1 => C.E1 := E; when 2 => C.E2 := E; when 3 => C.E3 := E; when 4 => C.E4 := E; when 5 => C.E5 := E; when 6 => C.E6 := E; when 7 => C.E7 := E; end case; end if; end Set_20; ------------- -- SetU_20 -- ------------- procedure SetU_20 (Arr : System.Address; N : Natural; E : Bits_20; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else case N07 (Uns (N) mod 8) is when 0 => C.E0 := E; when 1 => C.E1 := E; when 2 => C.E2 := E; when 3 => C.E3 := E; when 4 => C.E4 := E; when 5 => C.E5 := E; when 6 => C.E6 := E; when 7 => C.E7 := E; end case; end if; end SetU_20; end System.Pack_20;
36.059761
78
0.467352
3dd9135d492127785af350058107efdac65162b4
2,340
ads
Ada
buttons/obj/b__main.ads
Fabien-Chouteau/microbit_examples
a926cc69faf2cb7805f5dff508b587f2ed7fc065
[ "BSD-3-Clause" ]
null
null
null
buttons/obj/b__main.ads
Fabien-Chouteau/microbit_examples
a926cc69faf2cb7805f5dff508b587f2ed7fc065
[ "BSD-3-Clause" ]
null
null
null
buttons/obj/b__main.ads
Fabien-Chouteau/microbit_examples
a926cc69faf2cb7805f5dff508b587f2ed7fc065
[ "BSD-3-Clause" ]
1
2022-02-10T03:35:38.000Z
2022-02-10T03:35:38.000Z
pragma Warnings (Off); pragma Ada_95; pragma Restrictions (No_Exception_Propagation); with System; with System.Parameters; with System.Secondary_Stack; package ada_main is GNAT_Version : constant String := "GNAT Version: Pro 21.0w (20200723-93)" & ASCII.NUL; pragma Export (C, GNAT_Version, "__gnat_version"); Ada_Main_Program_Name : constant String := "_ada_main" & ASCII.NUL; pragma Export (C, Ada_Main_Program_Name, "__gnat_ada_main_program_name"); procedure adainit; pragma Export (C, adainit, "adainit"); procedure main; pragma Export (C, main, "main"); -- BEGIN ELABORATION ORDER -- ada%s -- interfaces%s -- system%s -- ada.exceptions%s -- ada.exceptions%b -- system.machine_code%s -- system.parameters%s -- system.storage_elements%s -- system.storage_elements%b -- system.secondary_stack%s -- system.secondary_stack%b -- ada.tags%s -- ada.tags%b -- system.unsigned_types%s -- system.assertions%s -- system.assertions%b -- cortex_m%s -- cortex_m_svd%s -- hal%s -- cortex_m_svd.nvic%s -- nrf_svd%s -- nrf_svd.aar%s -- nrf_svd.adc%s -- nrf_svd.ccm%s -- nrf_svd.clock%s -- nrf_svd.ecb%s -- nrf_svd.gpio%s -- nrf_svd.gpiote%s -- nrf_svd.power%s -- nrf_svd.ppi%s -- nrf_svd.qdec%s -- nrf_svd.radio%s -- nrf_svd.rng%s -- nrf_svd.rtc%s -- nrf_svd.spi%s -- nrf_svd.temp%s -- nrf_svd.timer%s -- nrf_svd.twi%s -- nrf_svd.uart%s -- nrf_svd.wdt%s -- cortex_m.nvic%s -- cortex_m.nvic%b -- hal.gpio%s -- hal.i2c%s -- hal.spi%s -- hal.time%s -- hal.uart%s -- nrf%s -- nrf.events%s -- nrf.events%b -- nrf.gpio%s -- nrf.gpio%b -- nrf.interrupts%s -- nrf.interrupts%b -- nrf.rtc%s -- nrf.rtc%b -- nrf.spi_master%s -- nrf.spi_master%b -- nrf.tasks%s -- nrf.tasks%b -- nrf.clock%s -- nrf.clock%b -- nrf.timers%s -- nrf.timers%b -- nrf.twi%s -- nrf.twi%b -- nrf.uart%s -- nrf.uart%b -- nrf.device%s -- microbit%s -- microbit.time%s -- microbit.time%b -- microbit.buttons%s -- microbit.buttons%b -- microbit.display%s -- microbit.display%b -- main%b -- END ELABORATION ORDER end ada_main;
22.5
76
0.590598
13b90bbc52b6de1ae628e80cec4075e87555be4c
5,646
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83031a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83031a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83031a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C83031A.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 AN IMPLICIT DECLARATION OF A PREDEFINED OPERATOR OR -- AN ENUMERATION LITERAL IS HIDDEN BY A SUBPROGRAM DECLARATION OR -- A RENAMING DECLARATION WHICH DECLARES A HOMOGRAPH OF THE -- OPERATOR OR LITERAL. -- HISTORY: -- VCL 08/10/88 CREATED ORIGINAL TEST. -- JRL 03/20/92 ELIMINATED REDUNDANT TESTING. WITH REPORT; USE REPORT; PROCEDURE C83031A IS BEGIN TEST ("C83031A", "AN IMPLICIT DECLARATION OF A PREDEFINED " & "OPERATOR OR AN ENUMERATION LITERAL IS HIDDEN " & "BY A SUBPROGRAM DECLARATION OR A RENAMING " & "DECLARATION WHICH DECLARES A HOMOGRAPH OF THE " & "OPERATOR OR LITERAL"); DECLARE -- CHECK SUBPROGRAM DECLARATIONS OF OPERATORS PACKAGE P IS TYPE INT IS RANGE -20 .. 20; M : INT := 3 * INT(IDENT_INT(3)); N : INT := 4 + INT(IDENT_INT(4)); FUNCTION "*" (LEFT, RIGHT : INT) RETURN INT; TYPE INT2 IS PRIVATE; FUNCTION "+" (LEFT, RIGHT : INT2) RETURN INT2; PRIVATE FUNCTION "+" (LEFT, RIGHT : INT) RETURN INT RENAMES "/" ; TYPE INT2 IS RANGE -20 .. 20; END P; USE P; PACKAGE BODY P IS FUNCTION "*" (LEFT, RIGHT : INT) RETURN INT IS BEGIN RETURN LEFT / RIGHT; END "*"; FUNCTION "+" (LEFT, RIGHT : INT2) RETURN INT2 IS BEGIN RETURN LEFT - RIGHT; END "+"; BEGIN IF 2 * INT(IDENT_INT(2)) /= 1 THEN FAILED ("INCORRECT VALUE RETURNED IN CALL TO " & "EXPLICIT '*' OPERATOR - 1"); END IF; IF N /= 8 THEN FAILED ("INCORRECT INITIAL VALUE FOR N - 1"); END IF; N := 2 + 2; IF N /= INT(IDENT_INT (1)) THEN FAILED ("INCORRECT VALUE FOR N AFTER CALL TO " & "EXPLICIT '+' OPERATOR - 1"); END IF; DECLARE Q : INT2 := 8 + 9; BEGIN IF Q /= -1 THEN FAILED ("INCORRECT VALUE FOR Q"); END IF; END; END P; BEGIN IF M /= 9 THEN FAILED ("INCORRECT INITIAL VALUE FOR M - 2"); END IF; IF 2 * INT(IDENT_INT(2)) /= 1 THEN FAILED ("INCORRECT VALUE RETURNED IN CALL TO " & "EXPLICIT '*' OPERATOR - 2"); END IF; N := 2 + 2; IF N /= INT(IDENT_INT (4)) THEN FAILED ("INCORRECT VALUE FOR N AFTER CALL TO " & "IMPLICIT '+' OPERATOR - 2"); END IF; END; DECLARE -- CHECK SUBPROGRAM DECLARATIONS OF ENUMERATION LITERALS. PACKAGE P1 IS TYPE ENUM1 IS (E11, E12, E13); TYPE PRIV1 IS PRIVATE; FUNCTION E11 RETURN PRIV1; PRIVATE TYPE PRIV1 IS NEW ENUM1; FUNCTION E12 RETURN PRIV1 RENAMES E13; END P1; USE P1; E13 : INTEGER := IDENT_INT (5); FUNCTION E12 RETURN ENUM1 RENAMES E11 ; FUNCTION CHECK (E: ENUM1) RETURN INTEGER IS BEGIN RETURN ENUM1'POS (E); END CHECK; FUNCTION CHECK (E: INTEGER) RETURN INTEGER IS BEGIN RETURN INTEGER'POS (E); END CHECK; PACKAGE BODY P1 IS FUNCTION E11 RETURN PRIV1 IS BEGIN RETURN E13; END E11; BEGIN IF PRIV1'(E11) /= E13 THEN FAILED ("INCORRECT VALUE FOR E11"); END IF; IF E12 /= PRIV1'LAST THEN FAILED ("INCORRECT VALUE FOR E12 - 1"); END IF; END P1; BEGIN IF E12 /= ENUM1'FIRST THEN FAILED ("INCORRECT VALUE FOR E12 - 2"); END IF; IF CHECK (E13) /= 5 THEN FAILED ("INCORRECT VALUE FOR E13"); END IF; END; RESULT; END C83031A;
34.426829
79
0.504074
adff925595c76d46038c49f31a051cb985eae450
2,050
adb
Ada
examples/use_cpu.adb
jorge-real/TTS
8b40a3457a78a2c662d72afda358f89939acbe86
[ "MIT" ]
1
2019-06-06T09:08:59.000Z
2019-06-06T09:08:59.000Z
examples/use_cpu.adb
jorge-real/TTS
8b40a3457a78a2c662d72afda358f89939acbe86
[ "MIT" ]
null
null
null
examples/use_cpu.adb
jorge-real/TTS
8b40a3457a78a2c662d72afda358f89939acbe86
[ "MIT" ]
null
null
null
-- with Ada.Text_IO, Ada.Real_Time; -- use Ada.Text_IO, Ada.Real_Time; package body Use_CPU is -- T1, T2, T3 : Time; -- Time_Measured : Time_Span; -- Tolerance : Time_Span := Microseconds (50); -- X : Float := 0.0; -- Min : Integer := 0; -- Max : Integer := 10_000_000; -- NTimes : Integer := (Max - Min) / 2; -- Number of iterations to calibrate for 10 ms use of CPU procedure Iterate (Iterations : in Integer) with Inline is X : Float := 0.0; begin for I in 1 .. Iterations loop X := X + 16.25; X := X - 16.25; X := X + 16.25; X := X - 16.25; X := X + 16.25; X := X - 16.25; end loop; end Iterate; procedure Work (Amount_MS : in Natural) is -- Constant 27464 comes from several calibration runs on the STM32F4 Discovery board Iterations : Integer := (27464 * Amount_MS) / 10; -- (NTimes * Amount_MS) / 10; begin Iterate (Iterations); end Work; -- begin -- Put ("Calibrating nr. of iterations for 10 ms..."); -- loop -- --Put("Trying" & Integer'Image(NTimes) & " times:"); -- --Put(" ." & Integer'Image(NTimes) ); -- Put ("."); -- T1 := Clock; -- Iterate (NTimes); -- T2 := Clock; -- T3 := Clock; -- Time_Measured := (T2 - T1 - (T3 - T2)); -- --Put(" Took" & Duration'Image(To_Duration(Time_Measured)) & " seconds."); -- if abs (Time_Measured - Milliseconds (10)) <= Tolerance then -- exit; -- elsif (Time_Measured > Milliseconds (10)) then -- NTimes too large -> reduce -- Max := NTimes; -- else -- NTimes too short -> increase -- Min := NTimes; -- end if; -- --Put_Line (" Searching now range" & Integer'Image(Min) & " .. " & Integer'Image(Max)); -- NTimes := Min + ((Max - Min) / 2); -- end loop; -- Put_Line (" Done!"); -- Put_Line(" Nr. of iterations for 10 ms =" & Integer'Image(NTimes)); -- New_Line; end Use_CPU;
32.03125
101
0.521463
ad73431b88699f6084c16bd91b4ccaa53b2414f0
930
adb
Ada
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/funcall_param/pck.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
3
2021-05-04T17:09:06.000Z
2021-10-04T07:19:26.000Z
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/funcall_param/pck.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/funcall_param/pck.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2008-2020 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;
32.068966
73
0.71828
13397335a631e90246bae3c7fbbb2076a15340ca
12,019
adb
Ada
tools-src/gnu/gcc/gcc/ada/a-tigeau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
80
2015-01-02T10:14:04.000Z
2021-06-07T06:29:49.000Z
tools-src/gnu/gcc/gcc/ada/a-tigeau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
9
2015-05-14T11:03:12.000Z
2018-01-04T07:12:58.000Z
tools-src/gnu/gcc/gcc/ada/a-tigeau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- A D A . T E X T _ I O . G E N E R I C _ A U X -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ with Interfaces.C_Streams; use Interfaces.C_Streams; with System.File_IO; with System.File_Control_Block; package body Ada.Text_IO.Generic_Aux is package FIO renames System.File_IO; package FCB renames System.File_Control_Block; subtype AP is FCB.AFCB_Ptr; ------------------------ -- Check_End_Of_Field -- ------------------------ procedure Check_End_Of_Field (File : File_Type; Buf : String; Stop : Integer; Ptr : Integer; Width : Field) is begin if Ptr > Stop then return; elsif Width = 0 then raise Data_Error; else for J in Ptr .. Stop loop if not Is_Blank (Buf (J)) then raise Data_Error; end if; end loop; end if; end Check_End_Of_Field; ----------------------- -- Check_On_One_Line -- ----------------------- procedure Check_On_One_Line (File : File_Type; Length : Integer) is begin FIO.Check_Write_Status (AP (File)); if File.Line_Length /= 0 then if Count (Length) > File.Line_Length then raise Layout_Error; elsif File.Col + Count (Length) > File.Line_Length + 1 then New_Line (File); end if; end if; end Check_On_One_Line; ---------- -- Getc -- ---------- function Getc (File : File_Type) return int is ch : int; begin ch := fgetc (File.Stream); if ch = EOF and then ferror (File.Stream) /= 0 then raise Device_Error; else return ch; end if; end Getc; -------------- -- Is_Blank -- -------------- function Is_Blank (C : Character) return Boolean is begin return C = ' ' or else C = ASCII.HT; end Is_Blank; ---------- -- Load -- ---------- procedure Load (File : File_Type; Buf : out String; Ptr : in out Integer; Char : Character; Loaded : out Boolean) is ch : int; begin ch := Getc (File); if ch = Character'Pos (Char) then Store_Char (File, ch, Buf, Ptr); Loaded := True; else Ungetc (ch, File); Loaded := False; end if; end Load; procedure Load (File : File_Type; Buf : out String; Ptr : in out Integer; Char : Character) is ch : int; begin ch := Getc (File); if ch = Character'Pos (Char) then Store_Char (File, ch, Buf, Ptr); else Ungetc (ch, File); end if; end Load; procedure Load (File : File_Type; Buf : out String; Ptr : in out Integer; Char1 : Character; Char2 : Character; Loaded : out Boolean) is ch : int; begin ch := Getc (File); if ch = Character'Pos (Char1) or else ch = Character'Pos (Char2) then Store_Char (File, ch, Buf, Ptr); Loaded := True; else Ungetc (ch, File); Loaded := False; end if; end Load; procedure Load (File : File_Type; Buf : out String; Ptr : in out Integer; Char1 : Character; Char2 : Character) is ch : int; begin ch := Getc (File); if ch = Character'Pos (Char1) or else ch = Character'Pos (Char2) then Store_Char (File, ch, Buf, Ptr); else Ungetc (ch, File); end if; end Load; ----------------- -- Load_Digits -- ----------------- procedure Load_Digits (File : File_Type; Buf : out String; Ptr : in out Integer; Loaded : out Boolean) is ch : int; After_Digit : Boolean; begin ch := Getc (File); if ch not in Character'Pos ('0') .. Character'Pos ('9') then Loaded := False; else Loaded := True; After_Digit := True; loop Store_Char (File, ch, Buf, Ptr); ch := Getc (File); if ch in Character'Pos ('0') .. Character'Pos ('9') then After_Digit := True; elsif ch = Character'Pos ('_') and then After_Digit then After_Digit := False; else exit; end if; end loop; end if; Ungetc (ch, File); end Load_Digits; procedure Load_Digits (File : File_Type; Buf : out String; Ptr : in out Integer) is ch : int; After_Digit : Boolean; begin ch := Getc (File); if ch in Character'Pos ('0') .. Character'Pos ('9') then After_Digit := True; loop Store_Char (File, ch, Buf, Ptr); ch := Getc (File); if ch in Character'Pos ('0') .. Character'Pos ('9') then After_Digit := True; elsif ch = Character'Pos ('_') and then After_Digit then After_Digit := False; else exit; end if; end loop; end if; Ungetc (ch, File); end Load_Digits; -------------------------- -- Load_Extended_Digits -- -------------------------- procedure Load_Extended_Digits (File : File_Type; Buf : out String; Ptr : in out Integer; Loaded : out Boolean) is ch : int; After_Digit : Boolean := False; begin Loaded := False; loop ch := Getc (File); if ch in Character'Pos ('0') .. Character'Pos ('9') or else ch in Character'Pos ('a') .. Character'Pos ('f') or else ch in Character'Pos ('A') .. Character'Pos ('F') then After_Digit := True; elsif ch = Character'Pos ('_') and then After_Digit then After_Digit := False; else exit; end if; Store_Char (File, ch, Buf, Ptr); Loaded := True; end loop; Ungetc (ch, File); end Load_Extended_Digits; procedure Load_Extended_Digits (File : File_Type; Buf : out String; Ptr : in out Integer) is Junk : Boolean; begin Load_Extended_Digits (File, Buf, Ptr, Junk); end Load_Extended_Digits; --------------- -- Load_Skip -- --------------- procedure Load_Skip (File : File_Type) is C : Character; begin FIO.Check_Read_Status (AP (File)); -- Loop till we find a non-blank character (note that as usual in -- Text_IO, blank includes horizontal tab). Note that Get deals with -- the Before_LM and Before_LM_PM flags appropriately. loop Get (File, C); exit when not Is_Blank (C); end loop; Ungetc (Character'Pos (C), File); File.Col := File.Col - 1; end Load_Skip; ---------------- -- Load_Width -- ---------------- procedure Load_Width (File : File_Type; Width : Field; Buf : out String; Ptr : in out Integer) is ch : int; begin FIO.Check_Read_Status (AP (File)); -- If we are immediately before a line mark, then we have no characters. -- This is always a data error, so we may as well raise it right away. if File.Before_LM then raise Data_Error; else for J in 1 .. Width loop ch := Getc (File); if ch = EOF then return; elsif ch = LM then Ungetc (ch, File); return; else Store_Char (File, ch, Buf, Ptr); end if; end loop; end if; end Load_Width; ----------- -- Nextc -- ----------- function Nextc (File : File_Type) return int is ch : int; begin ch := fgetc (File.Stream); if ch = EOF then if ferror (File.Stream) /= 0 then raise Device_Error; else return EOF; end if; else Ungetc (ch, File); return ch; end if; end Nextc; -------------- -- Put_Item -- -------------- procedure Put_Item (File : File_Type; Str : String) is begin Check_On_One_Line (File, Str'Length); Put (File, Str); end Put_Item; ---------------- -- Store_Char -- ---------------- procedure Store_Char (File : File_Type; ch : int; Buf : out String; Ptr : in out Integer) is begin File.Col := File.Col + 1; if Ptr = Buf'Last then raise Data_Error; else Ptr := Ptr + 1; Buf (Ptr) := Character'Val (ch); end if; end Store_Char; ----------------- -- String_Skip -- ----------------- procedure String_Skip (Str : String; Ptr : out Integer) is begin Ptr := Str'First; loop if Ptr > Str'Last then raise End_Error; elsif not Is_Blank (Str (Ptr)) then return; else Ptr := Ptr + 1; end if; end loop; end String_Skip; ------------ -- Ungetc -- ------------ procedure Ungetc (ch : int; File : File_Type) is begin if ch /= EOF then if ungetc (ch, File.Stream) = EOF then raise Device_Error; end if; end if; end Ungetc; end Ada.Text_IO.Generic_Aux;
24.987526
79
0.467094
1390a3bc31ba2e65df48e1fa8e5257ab5d99e9d2
16,828
ads
Ada
tier-0/swig/source/swig-pointers.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
2
2015-11-12T11:16:20.000Z
2021-08-24T22:32:04.000Z
1-base/swig/source/swig-pointers.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2018-06-05T05:19:35.000Z
2021-11-20T01:13:23.000Z
1-base/swig/source/swig-pointers.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
with interfaces.C.Pointers, interfaces.C.Strings, system.Address_To_Access_Conversions; package swig.Pointers -- -- Contains pointers to Swig related C type definitions not found in the 'interfaces.C' family. -- is -- void_ptr -- package C_void_ptr_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.void_ptr, element_Array => void_ptr_Array, default_Terminator => system.null_Address); subtype void_ptr_Pointer is C_void_ptr_Pointers.Pointer; -- opaque struct_ptr -- type opaque_structure_ptr is access swig.opaque_structure; type opaque_structure_ptr_array is array (interfaces.c.Size_t range <>) of aliased opaque_structure_ptr; package C_opaque_structure_ptr_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => opaque_structure_ptr, element_Array => opaque_structure_ptr_array, default_Terminator => null); subtype opaque_structure_ptr_Pointer is C_opaque_structure_ptr_Pointers.Pointer; -- incomplete class -- type incomplete_class_ptr is access swig.incomplete_class; type incomplete_class_ptr_array is array (interfaces.c.Size_t range <>) of aliased incomplete_class_ptr; package C_incomplete_class_ptr_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => incomplete_class_ptr, element_Array => incomplete_class_ptr_array, default_Terminator => null); subtype incomplete_class_ptr_Pointer is C_incomplete_class_ptr_Pointers.Pointer; -- bool* -- package c_bool_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.bool, element_Array => bool_Array, default_Terminator => 0); subtype bool_Pointer is c_bool_Pointers.Pointer; type bool_Pointer_array is array (interfaces.c.Size_t range <>) of aliased bool_Pointer; -- bool** -- package C_bool_pointer_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => bool_Pointer, element_Array => bool_Pointer_array, default_Terminator => null); subtype bool_pointer_Pointer is C_bool_pointer_Pointers.Pointer; -- char* [] -- type chars_ptr_array is array (interfaces.c.Size_t range <>) of aliased interfaces.c.strings.chars_Ptr; -- standard Ada does not have 'aliased' package C_chars_ptr_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.strings.chars_ptr, element_Array => chars_ptr_array, default_Terminator => interfaces.c.strings.Null_Ptr); subtype chars_ptr_Pointer is C_chars_ptr_Pointers.Pointer; -- char** [] -- type chars_ptr_Pointer_array is array (interfaces.c.Size_t range <>) of aliased chars_ptr_Pointer; package C_chars_ptr_pointer_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => chars_ptr_Pointer, element_Array => chars_ptr_Pointer_array, default_Terminator => null); subtype chars_ptr_pointer_Pointer is C_chars_ptr_pointer_Pointers.Pointer; -- wchar_t* -- package c_wchar_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.wchar_t, element_Array => interfaces.c.wchar_array, default_Terminator => interfaces.c.wchar_t'First); subtype wchar_t_Pointer is c_wchar_t_Pointers.Pointer; -- signed char* -- package c_signed_char_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.signed_Char, element_Array => swig.signed_char_Array, default_Terminator => 0); subtype signed_char_Pointer is c_signed_char_Pointers.Pointer; -- unsigned char* -- package c_unsigned_char_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.unsigned_Char, element_Array => unsigned_char_Array, default_Terminator => 0); subtype unsigned_char_Pointer is c_unsigned_char_Pointers.Pointer; -- short* -- package c_short_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Short, element_Array => short_Array, default_Terminator => 0); subtype short_Pointer is c_short_Pointers.Pointer; -- unsigned short* -- package c_unsigned_short_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.unsigned_Short, element_Array => unsigned_short_Array, default_Terminator => 0); subtype unsigned_short_Pointer is c_unsigned_short_Pointers.Pointer; -- int* -- package c_int_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Int, element_Array => int_Array, default_Terminator => 0); subtype int_Pointer is c_int_Pointers.Pointer; -- int** -- type int_pointer_Array is array (interfaces.c.size_t range <>) of aliased int_Pointer; package c_int_pointer_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => int_Pointer, element_Array => int_pointer_Array, default_Terminator => null); subtype int_pointer_Pointer is c_int_pointer_Pointers.Pointer; -- size_t* -- package c_size_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Size_t, element_Array => size_t_Array, default_Terminator => 0); subtype size_t_Pointer is c_size_t_Pointers.Pointer; -- unsigned* -- package c_unsigned_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Unsigned, element_Array => unsigned_Array, default_Terminator => 0); subtype unsigned_Pointer is c_unsigned_Pointers.Pointer; -- long* -- package c_long_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Long, element_Array => long_Array, default_Terminator => 0); subtype long_Pointer is c_long_Pointers.Pointer; -- unsigned long* -- package c_unsigned_long_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.unsigned_Long, element_Array => unsigned_long_Array, default_Terminator => 0); subtype unsigned_long_Pointer is c_unsigned_long_Pointers.Pointer; -- long long* -- package c_long_long_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.long_Long, element_Array => long_long_Array, default_Terminator => 0); subtype long_long_Pointer is c_long_long_Pointers.Pointer; -- unsigned long long* -- package c_unsigned_long_long_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.unsigned_long_Long, element_Array => unsigned_long_long_Array, default_Terminator => 0); subtype unsigned_long_long_Pointer is c_unsigned_long_long_Pointers.Pointer; -- int8_t* -- package c_int8_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.int8_t, element_Array => swig.int8_t_Array, default_Terminator => 0); subtype int8_t_Pointer is c_int8_t_Pointers.Pointer; -- int16_t* -- package c_int16_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.int16_t, element_Array => swig.int16_t_Array, default_Terminator => 0); subtype int16_t_Pointer is c_int16_t_Pointers.Pointer; -- int32_t* -- package c_int32_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.int32_t, element_Array => swig.int32_t_Array, default_Terminator => 0); subtype int32_t_Pointer is c_int32_t_Pointers.Pointer; -- int64_t* -- package c_int64_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.int64_t, element_Array => swig.int64_t_Array, default_Terminator => 0); subtype int64_t_Pointer is c_int64_t_Pointers.Pointer; -- uint8_t*' -- package c_uint8_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.uint8_t, element_Array => swig.uint8_t_Array, default_Terminator => 0); subtype uint8_t_Pointer is c_uint8_t_Pointers.Pointer; -- uint16_t*' -- package c_uint16_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.uint16_t, element_Array => swig.uint16_t_Array, default_Terminator => 0); subtype uint16_t_Pointer is c_uint16_t_Pointers.Pointer; -- uint32_t*' -- package c_uint32_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.uint32_t, element_Array => swig.uint32_t_Array, default_Terminator => 0); subtype uint32_t_Pointer is c_uint32_t_Pointers.Pointer; -- uint64_t*' -- package c_uint64_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => swig.uint64_t, element_Array => swig.uint64_t_Array, default_Terminator => 0); subtype uint64_t_Pointer is c_uint64_t_Pointers.Pointer; -- float*' package c_float_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.c_Float, element_Array => float_Array, default_Terminator => 0.0); subtype float_Pointer is c_float_Pointers.Pointer; -- double*' -- package c_double_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.Double, element_Array => double_Array, default_Terminator => 0.0); subtype double_Pointer is c_double_Pointers.Pointer; -- long double*' -- package c_long_double_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element => interfaces.c.long_Double, element_Array => long_double_Array, default_Terminator => 0.0); subtype long_double_Pointer is c_long_double_Pointers.Pointer; -- std::string -- type std_string is private; type std_string_Pointer is access all std_String; type std_string_Array is array (interfaces.c.size_t range <>) of aliased std_String; -- Utility -- package void_Conversions is new system.Address_To_Access_Conversions (swig.Void); private type std_String is record M_dataplus : swig.void_ptr; -- which is a subtype of system.Address end record; end Swig.Pointers; -- tbd: use sensible default_Terminator's.
49.934718
148
0.454659
c7608a0915b6d25466cf101ddee42f781a083ad1
9,240
adb
Ada
src/aco-od.adb
osannolik/ada-canopen
2ebf21a20da87dc367172d9e402cb6a8cdb7e8c7
[ "Apache-2.0" ]
6
2018-05-12T22:08:04.000Z
2021-07-25T20:55:12.000Z
src/aco-od.adb
osannolik/ada-canopen
2ebf21a20da87dc367172d9e402cb6a8cdb7e8c7
[ "Apache-2.0" ]
null
null
null
src/aco-od.adb
osannolik/ada-canopen
2ebf21a20da87dc367172d9e402cb6a8cdb7e8c7
[ "Apache-2.0" ]
2
2021-06-15T11:56:46.000Z
2021-06-21T13:56:01.000Z
with Ada.Tags; with ACO.OD_Types.Entries; with Interfaces; package body ACO.OD is use ACO.OD_Types.Entries; use Interfaces; function Object (This : Object_Dictionary'Class; Index : Object_Index) return Object_Ref is (This.Objects (This.Index_Map (Index))); function Object_Exist (This : Object_Dictionary'Class; Index : Object_Index) return Boolean is (This.Index_Map (Index) /= No_Index); function Entry_Exist (This : Object_Dictionary'Class; Index : Object_Index; Subindex : Object_Subindex) return Boolean is Arr_Idx : constant Index_Type := This.Index_Map (Index); begin return Arr_Idx /= No_Index and then Subindex in This.Objects (Arr_Idx).Entries'Range; end Entry_Exist; function Maximum_Nof_Entries (This : Object_Dictionary; Index : Object_Index) return Natural is (This.Object (Index).Entries'Length); function Is_Entry_Compatible (This : Object_Dictionary; An_Entry : Entry_Base'Class; Index : Object_Index; Subindex : Object_Subindex) return Boolean is use type Ada.Tags.Tag; OD_Entry : constant Entry_Ref := This.Object (Index).Entries (Subindex); begin return OD_Entry'Tag = An_Entry'Tag; end Is_Entry_Compatible; function Is_Entry_Writable (This : Object_Dictionary; Index : Entry_Index) return Boolean is begin if This.Entry_Exist (Index.Object, Index.Sub) then return This.Object (Index.Object).Entries (Index.Sub).Is_Writable; else return False; end if; end Is_Entry_Writable; function Is_Entry_Readable (This : Object_Dictionary; Index : Entry_Index) return Boolean is begin if This.Entry_Exist (Index.Object, Index.Sub) then return This.Object (Index.Object).Entries (Index.Sub).Is_Readable; else return False; end if; end Is_Entry_Readable; function Get_Entry (This : Object_Dictionary; Index : Object_Index; Subindex : Object_Subindex) return Entry_Base'Class is (This.Object (Index).Entries (Subindex).all); procedure Set_Entry (This : in out Object_Dictionary; New_Entry : in Entry_Base'Class; Index : in Object_Index; Subindex : in Object_Subindex; Silently : in Boolean := False) is begin This.Object (Index).Entries (Subindex).all := New_Entry; if not Silently then This.Events.Node_Events.Put ((Event => ACO.Events.OD_Entry_Update, Index => (Index, Subindex))); end if; end Set_Entry; procedure Set_Node_State (This : in out Object_Dictionary; Node_State : in ACO.States.State) is Prev : ACO.States.State; begin Prev := This.Node_State; This.Node_State := Node_State; This.Events.Node_Events.Put ((Event => ACO.Events.State_Transition, State => (Previous => Prev, Current => Node_State))); end Set_Node_State; function Get_Node_State (This : Object_Dictionary) return ACO.States.State is (This.Node_State); function Get_Hbt_Node_Id (Reg : U32) return ACO.Messages.Node_Nr is (ACO.Messages.Node_Nr (Shift_Right (Reg, 16) and 16#FF#)); function Get_Hbt_Slave_Subindex (This : Object_Dictionary; Node_Id : ACO.Messages.Node_Nr) return Object_Subindex is Object : constant Object_Ref := This.Object (Heartbeat_Consumer_Index); begin for I in 1 .. Object.Entries'Last loop declare E_Ref : constant Entry_Ref := Object.Entries (I); Reg : constant U32 := Entry_U32 (E_Ref.all).Read; use type ACO.Messages.Node_Nr; begin if Get_Hbt_Node_Id (Reg) = Node_Id then return Object_Subindex (I); end if; end; end loop; return 0; -- First entry is always max subindex, not slave data end Get_Hbt_Slave_Subindex; procedure Set_Heartbeat_Consumer_Period (This : in out Object_Dictionary; Node_Id : in ACO.Messages.Node_Nr; Period : in Natural) is function Set_Hbt_Period (Reg : U32; Period : Natural) return U32 is ((Reg and 16#FFFF0000#) or (U32 (Period) and 16#FFFF#)); Subindex : Object_Subindex; E : Entry_U32; begin Subindex := This.Get_Hbt_Slave_Subindex (Node_Id); if This.Entry_Exist (Heartbeat_Consumer_Index, Subindex) then E := Entry_U32 (This.Get_Entry (Heartbeat_Consumer_Index, Subindex)); E.Write (Set_Hbt_Period (E.Read, Period)); This.Set_Entry (E, Heartbeat_Consumer_Index, Subindex); end if; end Set_Heartbeat_Consumer_Period; function Get_Heartbeat_Consumer_Period (This : Object_Dictionary; Node_Id : ACO.Messages.Node_Nr) return Natural is function Get_Hbt_Period (Reg : U32) return Natural is (Natural (Reg and 16#FFFF#)); Subindex : Object_Subindex; Reg : U32; begin Subindex := This.Get_Hbt_Slave_Subindex (Node_Id); if This.Entry_Exist (Heartbeat_Consumer_Index, Subindex) then Reg := Entry_U32 (This.Get_Entry (Heartbeat_Consumer_Index, Subindex)).Read; return Get_Hbt_Period (Reg); else return 0; end if; end Get_Heartbeat_Consumer_Period; procedure Set_Heartbeat_Producer_Period (This : in out Object_Dictionary; Period : in Natural) is E : Entry_U16; begin E.Write (U16 (Period)); This.Set_Entry (E, Heartbeat_Producer_Index, 0); end Set_Heartbeat_Producer_Period; function Get_Heartbeat_Producer_Period (This : Object_Dictionary) return Natural is Period : U16; begin if This.Entry_Exist (Heartbeat_Producer_Index, 0) then Period := Entry_U16 (This.Get_Entry (Heartbeat_Producer_Index, 0)).Read; return Natural (Period); else return 0; end if; end Get_Heartbeat_Producer_Period; procedure Set_Communication_Cycle_Period (This : in out Object_Dictionary; Period : in Natural) is E : Entry_U32; begin E.Write (U32 (Period)); This.Set_Entry (E, Comm_Cycle_Period_Index, 0); end Set_Communication_Cycle_Period; function Get_Communication_Cycle_Period (This : Object_Dictionary) return Natural is Period : U32; begin Period := Entry_U32 (This.Get_Entry (Comm_Cycle_Period_Index, 0)).Read; return Natural (Period); end Get_Communication_Cycle_Period; procedure Set_Sync_Counter_Overflow (This : in out Object_Dictionary; Period : in Natural) is E : Entry_U8; begin E.Write (U8 (Period)); This.Set_Entry (E, Sync_Counter_Overflow_Index, 0); end Set_Sync_Counter_Overflow; function Get_Sync_Counter_Overflow (This : Object_Dictionary) return Natural is Period : U8; begin Period := Entry_U8 (This.Get_Entry (Sync_Counter_Overflow_Index, 0)).Read; return Natural (Period); end Get_Sync_Counter_Overflow; function Get_SDO_Server_Parameters (This : Object_Dictionary) return ACO.SDO_Sessions.SDO_Parameter_Array is J : Object_Index := SDO_Server_Base_Index; begin while This.Object_Exist (J) loop J := J + 1; end loop; declare use ACO.Messages, ACO.SDO_Sessions; Result : SDO_Parameter_Array (0 .. Natural (J - SDO_Server_Base_Index) - 1); begin J := SDO_Server_Base_Index; for I in Result'Range loop Result (I) := (CAN_Id_C2S => Id_Type (Entry_U32 (This.Get_Entry (J, 1)).Read and 16#7FF#), CAN_Id_S2C => Id_Type (Entry_U32 (This.Get_Entry (J, 2)).Read and 16#7FF#), Node => Node_Nr (Entry_U8 (This.Get_Entry (J, 3)).Read and 16#7F#)); J := J + 1; end loop; return Result; end; end Get_SDO_Server_Parameters; function Get_SDO_Client_Parameters (This : Object_Dictionary) return ACO.SDO_Sessions.SDO_Parameter_Array is J : Object_Index := SDO_Client_Base_Index; begin while This.Object_Exist (J) loop J := J + 1; end loop; declare use ACO.Messages, ACO.SDO_Sessions; Result : SDO_Parameter_Array (0 .. Natural (J - SDO_Client_Base_Index) - 1); begin J := SDO_Client_Base_Index; for I in Result'Range loop Result (I) := (CAN_Id_C2S => Id_Type (Entry_U32 (This.Get_Entry (J, 1)).Read and 16#7FF#), CAN_Id_S2C => Id_Type (Entry_U32 (This.Get_Entry (J, 2)).Read and 16#7FF#), Node => Node_Nr (Entry_U8 (This.Get_Entry (J, 3)).Read and 16#7F#)); J := J + 1; end loop; return Result; end; end Get_SDO_Client_Parameters; end ACO.OD;
29.806452
85
0.623701
3d64b2993c472efce67f0a52e1683d2ab5ab47bf
3,051
ads
Ada
firehog/ncurses/Ada95/samples/sample-text_io_demo.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-text_io_demo.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-text_io_demo.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
1
2019-12-26T10:18:16.000Z
2019-12-26T10:18:16.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Sample.Text_IO_Demo -- -- -- -- S P E C -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 1998 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer <[email protected]> 1996 -- Version Control -- $Revision: 1.5 $ -- Binding Version 00.93 ------------------------------------------------------------------------------ package Sample.Text_IO_Demo is procedure Demo; end Sample.Text_IO_Demo;
66.326087
78
0.414946
c7e04de4e7635ba0f0c2dfac566e6b220b000771
499
adb
Ada
gi_01/src/run_gb_03.adb
gerr135/gnat_bugs
e2e1c085c96919924c13bef99409766525a76712
[ "Unlicense" ]
null
null
null
gi_01/src/run_gb_03.adb
gerr135/gnat_bugs
e2e1c085c96919924c13bef99409766525a76712
[ "Unlicense" ]
null
null
null
gi_01/src/run_gb_03.adb
gerr135/gnat_bugs
e2e1c085c96919924c13bef99409766525a76712
[ "Unlicense" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with issue; with wa1; with wa2; procedure run_gb_03 is B1 : wa1.Base; B2 : wa2.Base; BI : issue.Base; begin Put_Line("started main"); Put_Line("starting workaround 1"); B1.Set_Smth(1); Put_Line("workaround 1 done"); New_Line; Put_Line("starting workaround 2"); B2.Set_Smth(1); Put_Line("workaround 2 done"); New_Line; Put_Line("starting issue"); BI.Set_Smth(1); Put_Line("issue done"); end run_gb_03;
19.192308
38
0.645291
062320e600d8bf946b4ec8d7a31a4c47ccd68c58
1,307
ads
Ada
regtests/util-properties-json-tests.ads
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
60
2015-01-18T23:05:34.000Z
2022-03-20T18:56:30.000Z
regtests/util-properties-json-tests.ads
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
20
2016-09-15T16:41:30.000Z
2022-03-29T22:02:32.000Z
regtests/util-properties-json-tests.ads
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
10
2015-02-13T04:00:45.000Z
2022-03-20T18:57:54.000Z
----------------------------------------------------------------------- -- util-properties-json-tests -- Test reading JSON file into properties -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Tests; package Util.Properties.JSON.Tests is procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite); type Test is new Util.Tests.Test with null record; -- Test loading a JSON file into a properties object. procedure Test_Parse_JSON (T : in out Test); -- Test loading a JSON file into a properties object. procedure Test_Read_JSON (T : in out Test); end Util.Properties.JSON.Tests;
38.441176
76
0.654935
ad8969007d41a62b3873c82ecea786e899b7feb4
6,924
ads
Ada
source/nodes/program-nodes-block_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-block_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-block_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Element_Vectors; with Program.Elements.Exception_Handlers; with Program.Elements.Identifiers; with Program.Elements.Block_Statements; with Program.Element_Visitors; package Program.Nodes.Block_Statements is pragma Preelaborate; type Block_Statement is new Program.Nodes.Node and Program.Elements.Block_Statements.Block_Statement and Program.Elements.Block_Statements.Block_Statement_Text with private; function Create (Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Colon_Token : Program.Lexical_Elements .Lexical_Element_Access; Declare_Token : Program.Lexical_Elements .Lexical_Element_Access; Declarations : Program.Element_Vectors.Element_Vector_Access; Begin_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; Exception_Token : Program.Lexical_Elements .Lexical_Element_Access; Exception_Handlers : Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access; End_Token : not null Program.Lexical_Elements .Lexical_Element_Access; End_Statement_Identifier : Program.Elements.Identifiers.Identifier_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Block_Statement; type Implicit_Block_Statement is new Program.Nodes.Node and Program.Elements.Block_Statements.Block_Statement with private; function Create (Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Declarations : Program.Element_Vectors.Element_Vector_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; Exception_Handlers : Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access; End_Statement_Identifier : Program.Elements.Identifiers.Identifier_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Block_Statement with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Block_Statement is abstract new Program.Nodes.Node and Program.Elements.Block_Statements.Block_Statement with record Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Declarations : Program.Element_Vectors .Element_Vector_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; Exception_Handlers : Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access; End_Statement_Identifier : Program.Elements.Identifiers .Identifier_Access; end record; procedure Initialize (Self : in out Base_Block_Statement'Class); overriding procedure Visit (Self : not null access Base_Block_Statement; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Statement_Identifier (Self : Base_Block_Statement) return Program.Elements.Defining_Identifiers.Defining_Identifier_Access; overriding function Declarations (Self : Base_Block_Statement) return Program.Element_Vectors.Element_Vector_Access; overriding function Statements (Self : Base_Block_Statement) return not null Program.Element_Vectors.Element_Vector_Access; overriding function Exception_Handlers (Self : Base_Block_Statement) return Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access; overriding function End_Statement_Identifier (Self : Base_Block_Statement) return Program.Elements.Identifiers.Identifier_Access; overriding function Is_Block_Statement (Self : Base_Block_Statement) return Boolean; overriding function Is_Statement (Self : Base_Block_Statement) return Boolean; type Block_Statement is new Base_Block_Statement and Program.Elements.Block_Statements.Block_Statement_Text with record Colon_Token : Program.Lexical_Elements.Lexical_Element_Access; Declare_Token : Program.Lexical_Elements.Lexical_Element_Access; Begin_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Exception_Token : Program.Lexical_Elements.Lexical_Element_Access; End_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_Block_Statement_Text (Self : in out Block_Statement) return Program.Elements.Block_Statements.Block_Statement_Text_Access; overriding function Colon_Token (Self : Block_Statement) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Declare_Token (Self : Block_Statement) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Begin_Token (Self : Block_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Exception_Token (Self : Block_Statement) return Program.Lexical_Elements.Lexical_Element_Access; overriding function End_Token (Self : Block_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Semicolon_Token (Self : Block_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; type Implicit_Block_Statement is new Base_Block_Statement with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Block_Statement_Text (Self : in out Implicit_Block_Statement) return Program.Elements.Block_Statements.Block_Statement_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Block_Statement) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Block_Statement) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Block_Statement) return Boolean; end Program.Nodes.Block_Statements;
36.829787
79
0.731658
ade99af155fc9c5d0b53d02421668dfcb6fcd4b0
25,127
adb
Ada
test/unit/src/test_tokenizers.adb
Statkus/json-ada
5f0d6a62e1f8adcc534fa90b763f033c5421b493
[ "Apache-2.0" ]
null
null
null
test/unit/src/test_tokenizers.adb
Statkus/json-ada
5f0d6a62e1f8adcc534fa90b763f033c5421b493
[ "Apache-2.0" ]
null
null
null
test/unit/src/test_tokenizers.adb
Statkus/json-ada
5f0d6a62e1f8adcc534fa90b763f033c5421b493
[ "Apache-2.0" ]
null
null
null
-- -- Copyright (c) 2016 onox <[email protected]> -- 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.Characters.Latin_1; with Ahven; use Ahven; with JSON.Streams; with JSON.Tokenizers; with JSON.Types; package body Test_Tokenizers is package Types is new JSON.Types (Long_Integer, Long_Float); package Tokenizers is new JSON.Tokenizers (Types); use type JSON.Streams.AS.Stream_Element_Offset; String_Offset_Message : constant String := "String value at wrong offset"; String_Length_Message : constant String := "String value has incorrect length"; overriding procedure Initialize (T : in out Test) is begin T.Set_Name ("Tokenizers"); T.Add_Test_Routine (Test_Null_Token'Access, "Tokenize text 'null'"); T.Add_Test_Routine (Test_True_Token'Access, "Tokenize text 'true'"); T.Add_Test_Routine (Test_False_Token'Access, "Tokenize text 'false'"); T.Add_Test_Routine (Test_Empty_String_Token'Access, "Tokenize text '""""'"); T.Add_Test_Routine (Test_Non_Empty_String_Token'Access, "Tokenize text '""test""'"); T.Add_Test_Routine (Test_Number_String_Token'Access, "Tokenize text '""12.34""'"); T.Add_Test_Routine (Test_Escaped_Character_String_Token'Access, "Tokenize text '""horizontal\ttab""'"); T.Add_Test_Routine (Test_Escaped_Quotation_Solidus_String_Token'Access, "Tokenize text '""foo\""\\bar""'"); T.Add_Test_Routine (Test_Zero_Number_Token'Access, "Tokenize text '0'"); T.Add_Test_Routine (Test_Integer_Number_Token'Access, "Tokenize text '42'"); T.Add_Test_Routine (Test_Float_Number_Token'Access, "Tokenize text '3.14'"); T.Add_Test_Routine (Test_Negative_Float_Number_Token'Access, "Tokenize text '-2.71'"); T.Add_Test_Routine (Test_Integer_Exponent_Number_Token'Access, "Tokenize text '4e2'"); T.Add_Test_Routine (Test_Float_Exponent_Number_Token'Access, "Tokenize text '0.314e1'"); T.Add_Test_Routine (Test_Float_Negative_Exponent_Number_Token'Access, "Tokenize text '4e-1'"); T.Add_Test_Routine (Test_Empty_Array_Tokens'Access, "Tokenize text '[]'"); T.Add_Test_Routine (Test_One_Element_Array_Tokens'Access, "Tokenize text '[null]'"); T.Add_Test_Routine (Test_Two_Elements_Array_Tokens'Access, "Tokenize text '[1,2]'"); T.Add_Test_Routine (Test_Empty_Object_Tokens'Access, "Tokenize text '{}'"); T.Add_Test_Routine (Test_One_Pair_Object_Tokens'Access, "Tokenize text '{""foo"":""bar""}'"); T.Add_Test_Routine (Test_Two_Pairs_Object_Tokens'Access, "Tokenize text '{""foo"": true,""bar"":false}'"); -- Exceptions T.Add_Test_Routine (Test_Control_Character_String_Exception'Access, "Reject text '""no\nnewline""'"); T.Add_Test_Routine (Test_Unexpected_Escaped_Character_String_Exception'Access, "Reject text '""unexpected\xcharacter""'"); T.Add_Test_Routine (Test_Minus_Number_EOF_Exception'Access, "Reject text '-'"); T.Add_Test_Routine (Test_Minus_Number_Exception'Access, "Reject text '-,'"); T.Add_Test_Routine (Test_End_Dot_Number_Exception'Access, "Reject text '3.'"); T.Add_Test_Routine (Test_End_Exponent_Number_Exception'Access, "Reject text '1E'"); T.Add_Test_Routine (Test_End_Dot_Exponent_Number_Exception'Access, "Reject text '1.E'"); T.Add_Test_Routine (Test_End_Exponent_Minus_Number_Exception'Access, "Reject text '1E-'"); T.Add_Test_Routine (Test_Prefixed_Plus_Number_Exception'Access, "Reject text '+42'"); T.Add_Test_Routine (Test_Leading_Zeroes_Integer_Number_Exception'Access, "Reject text '-02'"); T.Add_Test_Routine (Test_Leading_Zeroes_Float_Number_Exception'Access, "Reject text '-003.14'"); T.Add_Test_Routine (Test_Incomplete_True_Text_Exception'Access, "Reject text 'tr'"); T.Add_Test_Routine (Test_Incomplete_False_Text_Exception'Access, "Reject text 'f'"); T.Add_Test_Routine (Test_Incomplete_Null_Text_Exception'Access, "Reject text 'nul'"); T.Add_Test_Routine (Test_Unknown_Keyword_Text_Exception'Access, "Reject text 'unexpected'"); end Initialize; use type Tokenizers.Token_Kind; procedure Assert_Kind is new Assert_Equal (Tokenizers.Token_Kind, Tokenizers.Token_Kind'Image); procedure Expect_EOF (Stream : aliased in out JSON.Streams.Stream'Class) is Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token, Expect_EOF => True); exception when Tokenizers.Tokenizer_Error => Fail ("Expected EOF"); end Expect_EOF; -- Keyword procedure Test_Null_Token is Text : aliased String := "null"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Null_Token, "Not Null_Token"); Expect_EOF (Stream); end Test_Null_Token; procedure Test_True_Token is Text : aliased String := "true"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Boolean_Token, "Not Boolean_Token"); Assert (Token.Boolean_Value, "Boolean value not True"); Expect_EOF (Stream); end Test_True_Token; procedure Test_False_Token is Text : aliased String := "false"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Boolean_Token, "Not Boolean_Token"); Assert (not Token.Boolean_Value, "Boolean value not False"); Expect_EOF (Stream); end Test_False_Token; -- String procedure Test_Empty_String_Token is Text : aliased String := """"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 2, String_Offset_Message); Assert (Token.String_Length = 0, String_Length_Message); Expect_EOF (Stream); end Test_Empty_String_Token; procedure Test_Non_Empty_String_Token is Text : aliased String := """test"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 2, String_Offset_Message); Assert (Token.String_Length = 4, String_Length_Message); Expect_EOF (Stream); end Test_Non_Empty_String_Token; procedure Test_Number_String_Token is Text : aliased String := """12.34"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 2, String_Offset_Message); Assert (Token.String_Length = 5, String_Length_Message); Expect_EOF (Stream); end Test_Number_String_Token; procedure Test_Escaped_Character_String_Token is Text : aliased String := """horizontal\ttab"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 2, String_Offset_Message); Assert (Token.String_Length = 15, String_Length_Message); Expect_EOF (Stream); end Test_Escaped_Character_String_Token; procedure Test_Escaped_Quotation_Solidus_String_Token is Text : aliased String := """foo\""\\bar"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 2, String_Offset_Message); Assert (Token.String_Length = 10, String_Length_Message); Expect_EOF (Stream); end Test_Escaped_Quotation_Solidus_String_Token; -- Integer/Float number procedure Test_Zero_Number_Token is Text : aliased String := "0"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Integer_Token, "Not Integer_Token"); Assert (Token.Integer_Value = 0, "Integer value not equal to 0"); Expect_EOF (Stream); end Test_Zero_Number_Token; procedure Test_Integer_Number_Token is Text : aliased String := "42"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Integer_Token, "Not Integer_Token"); Assert (Token.Integer_Value = 42, "Integer value not equal to 42"); Expect_EOF (Stream); end Test_Integer_Number_Token; procedure Test_Float_Number_Token is Text : aliased String := "3.14"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Float_Token, "Not Float_Token"); Assert (Token.Float_Value = 3.14, "Float value not equal to 3.14"); Expect_EOF (Stream); end Test_Float_Number_Token; procedure Test_Negative_Float_Number_Token is Text : aliased String := "-2.71"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Float_Token, "Not Float_Token"); Assert (Token.Float_Value = -2.71, "Float value not equal to -2.71"); Expect_EOF (Stream); end Test_Negative_Float_Number_Token; procedure Test_Integer_Exponent_Number_Token is Text : aliased String := "4e2"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Integer_Token, "Not Integer_Token"); Assert (Token.Integer_Value = 400, "Integer value not equal to 400"); Expect_EOF (Stream); end Test_Integer_Exponent_Number_Token; procedure Test_Float_Exponent_Number_Token is Text : aliased String := "0.314e1"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Float_Token, "Not Float_Token"); Assert (Token.Float_Value = 3.14, "Float value not equal to 3.14"); Expect_EOF (Stream); end Test_Float_Exponent_Number_Token; procedure Test_Float_Negative_Exponent_Number_Token is Text : aliased String := "4e-1"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Float_Token, "Not Float_Token"); Assert (Token.Float_Value = 0.4, "Float value not equal to 0.4"); Expect_EOF (Stream); end Test_Float_Negative_Exponent_Number_Token; -- Array procedure Test_Empty_Array_Tokens is Text : aliased String := "[]"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Array_Token, "Not Begin_Array_Token"); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Array_Token, "Not End_Array_Token"); Expect_EOF (Stream); end Test_Empty_Array_Tokens; procedure Test_One_Element_Array_Tokens is Text : aliased String := "[null]"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Array_Token, "Not Begin_Array_Token"); -- null Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Null_Token, "Not Null_Token"); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Array_Token, "Not End_Array_Token"); Expect_EOF (Stream); end Test_One_Element_Array_Tokens; procedure Test_Two_Elements_Array_Tokens is Text : aliased String := "[1,2]"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Array_Token, "Not Begin_Array_Token"); -- 1 Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Integer_Token, "Not Integer_Token"); Assert (Token.Integer_Value = 1, "Integer value not equal to 1"); -- , Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Value_Separator_Token, "Not Value_Separator_Token"); -- 2 Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Integer_Token, "Not Integer_Token"); Assert (Token.Integer_Value = 2, "Integer value not equal to 2"); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Array_Token, "Not End_Array_Token"); Expect_EOF (Stream); end Test_Two_Elements_Array_Tokens; -- Object procedure Test_Empty_Object_Tokens is Text : aliased String := "{}"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Object_Token, "Not Begin_Object_Token"); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Object_Token, "Not End_Object_Token"); Expect_EOF (Stream); end Test_Empty_Object_Tokens; procedure Test_One_Pair_Object_Tokens is Text : aliased String := "{""foo"":""bar""}"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Object_Token, "Not Begin_Object_Token"); -- "foo" Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 3, String_Offset_Message); Assert (Token.String_Length = 3, String_Length_Message); -- : Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Name_Separator_Token, "Not Name_Separator_Token"); -- "bar" Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 9, String_Offset_Message); Assert (Token.String_Length = 3, String_Length_Message); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Object_Token, "Not End_Object_Token"); Expect_EOF (Stream); end Test_One_Pair_Object_Tokens; procedure Test_Two_Pairs_Object_Tokens is Text : aliased String := "{""foo"":true,""bar"":false}"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Begin_Object_Token, "Not Begin_Object_Token"); -- "foo" Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 3, String_Offset_Message); Assert (Token.String_Length = 3, String_Length_Message); -- : Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Name_Separator_Token, "Not Name_Separator_Token"); -- true Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Boolean_Token, "Not Boolean_Token"); Assert (Token.Boolean_Value, "Boolean value not True"); -- , Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Value_Separator_Token, "Not Value_Separator_Token"); -- "bar" Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.String_Token, "Not String_Token"); Assert (Token.String_Offset = 14, String_Offset_Message); Assert (Token.String_Length = 3, String_Length_Message); -- : Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Name_Separator_Token, "Not Name_Separator_Token"); -- false Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.Boolean_Token, "Not Boolean_Token"); Assert (not Token.Boolean_Value, "Boolean value not False"); Tokenizers.Read_Token (Stream, Token); Assert_Kind (Token.Kind, Tokenizers.End_Object_Token, "Not End_Object_Token"); Expect_EOF (Stream); end Test_Two_Pairs_Object_Tokens; -- Exceptions procedure Test_Control_Character_String_Exception is LF : Character renames Ada.Characters.Latin_1.LF; Text : aliased String := """no" & LF & "newline"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Control_Character_String_Exception; procedure Test_Unexpected_Escaped_Character_String_Exception is Text : aliased String := """unexpected\xcharacter"""; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Unexpected_Escaped_Character_String_Exception; procedure Test_Minus_Number_EOF_Exception is Text : aliased String := "-"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Minus_Number_EOF_Exception; procedure Test_Minus_Number_Exception is Text : aliased String := "-,"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Minus_Number_Exception; procedure Test_End_Dot_Number_Exception is Text : aliased String := "3."; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_End_Dot_Number_Exception; procedure Test_End_Exponent_Number_Exception is Text : aliased String := "1E"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_End_Exponent_Number_Exception; procedure Test_End_Dot_Exponent_Number_Exception is Text : aliased String := "1.E"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_End_Dot_Exponent_Number_Exception; procedure Test_End_Exponent_Minus_Number_Exception is Text : aliased String := "1E-"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_End_Exponent_Minus_Number_Exception; procedure Test_Prefixed_Plus_Number_Exception is Text : aliased String := "+42"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Prefixed_Plus_Number_Exception; procedure Test_Leading_Zeroes_Integer_Number_Exception is Text : aliased String := "-02"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Leading_Zeroes_Integer_Number_Exception; procedure Test_Leading_Zeroes_Float_Number_Exception is Text : aliased String := "-003.14"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Leading_Zeroes_Float_Number_Exception; procedure Test_Incomplete_True_Text_Exception is Text : aliased String := "tr"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Incomplete_True_Text_Exception; procedure Test_Incomplete_False_Text_Exception is Text : aliased String := "f"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Incomplete_False_Text_Exception; procedure Test_Incomplete_Null_Text_Exception is Text : aliased String := "nul"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Incomplete_Null_Text_Exception; procedure Test_Unknown_Keyword_Text_Exception is Text : aliased String := "unexpected"; Stream : aliased JSON.Streams.Stream'Class := JSON.Streams.Create_Stream (Text'Access); Token : Tokenizers.Token; begin Tokenizers.Read_Token (Stream, Token); Fail ("Expected Tokenizer_Error"); exception when Tokenizers.Tokenizer_Error => null; end Test_Unknown_Keyword_Text_Exception; end Test_Tokenizers;
42.018395
128
0.709277
c7bc72c6c12a06ffc2d4f8e73b2bcdc57972abc9
370
ads
Ada
memsim-master/src/bram.ads
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/bram.ads
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/bram.ads
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
-- Package to provide information on how memories can be implemented in BRAM. -- This package relies on the Device package for information on BRAMs. package BRAM is -- Get the number of BRAMs that would be required for the -- specified memory aspect ratio. function Get_Count(width : Natural; depth : Natural) return Natural; end BRAM;
30.833333
77
0.708108
ad62bfee6af74ad91b605daebe01e8f562ea2b02
3,497
ads
Ada
source/libgela/gela-containers-stacks.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/libgela/gela-containers-stacks.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/libgela/gela-containers-stacks.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ -- Purpose: with Gela.Embeded_Links.Lists; generic type Element_Type is private; package Gela.Containers.Stacks is pragma Preelaborate (Stacks); type Stack is limited private; function Is_Empty (Container : Stack) return Boolean; function Length (Container : Stack) return Natural; procedure Clear (Container : in out Stack); procedure Push (Container : in out Stack; Item : in Element_Type); procedure Pop (Container : in out Stack; Item : out Element_Type); procedure Pop (Container : in out Stack); function Top (Container : Stack) return Element_Type; private type Node; type Node_Access is access all Node; type Node is record Next : Node_Access; Data : Element_Type; end record; function Get_Next (Item : Node_Access) return Node_Access; procedure Set_Next (Item, Next : Node_Access); pragma Inline (Get_Next, Set_Next); package E is new Gela.Embeded_Links.Lists (Node, Node_Access); type Stack is new E.List; end Gela.Containers.Stacks; ------------------------------------------------------------------------------ -- Copyright (c) 2006, 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. ------------------------------------------------------------------------------
41.630952
79
0.602516
572baf3d8e73177d442d89d8d141440bd9a2bb7a
5,763
adb
Ada
source/web/servlet/servlet-request_wrappers.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
null
null
null
source/web/servlet/servlet-request_wrappers.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/servlet/servlet-request_wrappers.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014-2016, Vadim Godunko <[email protected]> -- -- 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 Servlet.Request_Wrappers is ---------------------- -- Get_Input_Stream -- ---------------------- overriding function Get_Input_Stream (Self : Servlet_Request_Wrapper) return not null access Ada.Streams.Root_Stream_Type'Class is begin return Self.Request.Get_Input_Stream; end Get_Input_Stream; ------------------------- -- Get_Parameter_Names -- ------------------------- overriding function Get_Parameter_Names (Self : Servlet_Request_Wrapper) return League.String_Vectors.Universal_String_Vector is begin return Self.Request.Get_Parameter_Names; end Get_Parameter_Names; -------------------------- -- Get_Parameter_Values -- -------------------------- overriding function Get_Parameter_Values (Self : Servlet_Request_Wrapper; Name : League.Strings.Universal_String) return League.String_Vectors.Universal_String_Vector is begin return Self.Request.Get_Parameter_Values (Name); end Get_Parameter_Values; ---------------- -- Get_Scheme -- ---------------- overriding function Get_Scheme (Self : Servlet_Request_Wrapper) return League.Strings.Universal_String is begin return Self.Request.Get_Scheme; end Get_Scheme; --------------------- -- Get_Server_Name -- --------------------- overriding function Get_Server_Name (Self : Servlet_Request_Wrapper) return League.Strings.Universal_String is begin return Self.Request.Get_Server_Name; end Get_Server_Name; --------------------- -- Get_Server_Port -- --------------------- overriding function Get_Server_Port (Self : Servlet_Request_Wrapper) return Positive is begin return Self.Request.Get_Server_Port; end Get_Server_Port; ------------------------- -- Get_Servlet_Context -- ------------------------- overriding function Get_Servlet_Context (Self : Servlet_Request_Wrapper) return access Servlet.Contexts.Servlet_Context'Class is begin return Self.Request.Get_Servlet_Context; end Get_Servlet_Context; ------------------------ -- Is_Async_Supported -- ------------------------ overriding function Is_Async_Supported (Self : not null access Servlet_Request_Wrapper) return Boolean is begin return Self.Request.Is_Async_Supported; end Is_Async_Supported; end Servlet.Request_Wrappers;
43.330827
78
0.485685
13a438058419e9a27acce8ddd0be01d75f71b1b4
12,951
adb
Ada
ada/gui/agar-text.adb
auzkok/libagar
8dffa4afe73df47cf7e461c3073b744373d3af0b
[ "BSD-2-Clause" ]
286
2017-07-31T20:05:16.000Z
2022-03-26T20:26:24.000Z
ada/gui/agar-text.adb
auzkok/libagar
8dffa4afe73df47cf7e461c3073b744373d3af0b
[ "BSD-2-Clause" ]
67
2017-08-30T18:56:21.000Z
2021-09-08T03:38:20.000Z
ada/gui/agar-text.adb
auzkok/libagar
8dffa4afe73df47cf7e461c3073b744373d3af0b
[ "BSD-2-Clause" ]
31
2017-08-14T13:34:12.000Z
2022-03-14T15:33:49.000Z
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . T E X T -- -- B o d y -- -- -- -- Copyright (c) 2019 Julien Nadeau Carriere ([email protected]) -- -- -- -- Permission to use, copy, modify, and/or distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ package body Agar.Text is -- -- Initialize the font engine. -- function Init_Text_Subsystem return Boolean is begin return 0 = AG_InitTextSubsystem; end; -- -- Release all resources allocated by the font engine. -- procedure Destroy_Text_Subsystem is begin AG_DestroyTextSubsystem; end; -- -- Set the default font from a "<Face>:<Size>:<Flags>" string. -- procedure Set_Default_Font (Spec : in String) is Ch_Spec : aliased C.char_array := C.To_C(Spec); begin AG_TextParseFontSpec (Spec => CS.To_Chars_Ptr(Ch_Spec'Unchecked_Access)); end; -- -- Load (or fetch from cache) a font. -- function Fetch_Font (Family : in String := "_agFontVera"; Size : in AG_Font_Points := AG_Font_Points(12); Bold : in Boolean := False; Italic : in Boolean := False; Underlined : in Boolean := False; Uppercase : in Boolean := False; Semibold : in Boolean := False; Upright_Italic : in Boolean := False; Semicondensed : in Boolean := False; Condensed : in Boolean := False) return Font_Access is Ch_Family : aliased C.char_array := C.To_C(Family); C_Size : aliased AG_Font_Points := Size; Flags : aliased C.unsigned := 0; begin if Bold then Flags := Flags or FONT_BOLD; end if; if Italic then Flags := Flags or FONT_ITALIC; end if; if Underlined then Flags := Flags or FONT_UNDERLINE; end if; if Uppercase then Flags := Flags or FONT_UPPERCASE; end if; if Semibold then Flags := Flags or FONT_SEMIBOLD; end if; if Upright_Italic then Flags := Flags or FONT_UPRIGHT_ITALIC; end if; if Semicondensed then Flags := Flags or FONT_SEMICONDENSED; end if; if Condensed then Flags := Flags or FONT_CONDENSED; end if; return AG_FetchFont (Family => CS.To_Chars_Ptr(Ch_Family'Unchecked_Access), Size => C_Size'Unchecked_Access, Flags => Flags); end; -- -- Set the current font to the specified family+size+style (or just size). -- procedure Text_Set_Font (Family : in String := "_agFontVera"; Size : in AG_Font_Points := AG_Font_Points(12); Bold : in Boolean := False; Italic : in Boolean := False; Underlined : in Boolean := False; Uppercase : in Boolean := False; Semibold : in Boolean := False; Upright_Italic : in Boolean := False; Semicondensed : in Boolean := False; Condensed : in Boolean := False) is Ch_Family : aliased C.char_array := C.To_C(Family); C_Size : aliased AG_Font_Points := Size; Flags : aliased C.unsigned := 0; Result : aliased Font_Access; begin if Bold then Flags := Flags or FONT_BOLD; end if; if Italic then Flags := Flags or FONT_ITALIC; end if; if Underlined then Flags := Flags or FONT_UNDERLINE; end if; if Uppercase then Flags := Flags or FONT_UPPERCASE; end if; if Semibold then Flags := Flags or FONT_SEMIBOLD; end if; if Upright_Italic then Flags := Flags or FONT_UPRIGHT_ITALIC; end if; if Semicondensed then Flags := Flags or FONT_SEMICONDENSED; end if; if Condensed then Flags := Flags or FONT_CONDENSED; end if; Result := AG_TextFontLookup (Family => CS.To_Chars_Ptr(Ch_Family'Unchecked_Access), Size => C_Size'Unchecked_Access, Flags => Flags); end; -- -- Set the current font to a given % of the current font size. -- procedure Text_Set_Font (Percent : in Natural) is Result : aliased Font_Access; begin Result := AG_TextFontPct (Percent => C.int(Percent)); end; -- -- Return the expected size in pixels of rendered (UTF-8) text. -- procedure Size_Text (Text : in String; W,H : out Natural) is Ch_Text : aliased C.char_array := C.To_C(Text); C_W, C_H : aliased C.int; begin AG_TextSize (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access), W => C_W'Access, H => C_H'Access); W := Natural(C_W); H := Natural(C_H); end; -- -- Return the expected size in pixels of rendered (UTF-8) text, -- and the line count. -- procedure Size_Text (Text : in String; W,H : out Natural; Line_Count : out Natural) is Ch_Text : aliased C.char_array := C.To_C(Text); C_W, C_H : aliased C.int; C_NLines : aliased C.unsigned; begin AG_TextSizeMulti (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access), W => C_W'Access, H => C_H'Access, W_Lines => null, N_Lines => C_NLines'Access); W := Natural(C_W); H := Natural(C_H); Line_Count := Natural(C_NLines); end; -- -- Return the expected size in pixels of rendered (UTF-8) text, -- and the line count, and the width of each line. -- procedure Size_Text (Text : in String; W,H : out Natural; Line_Count : out Natural; Line_Widths : out Text_Line_Widths) is use Line_Width_Array; Ch_Text : aliased C.char_array := C.To_C(Text); C_W, C_H : aliased C.int; C_WLines : aliased Line_Width_Array.Pointer; C_NLines : aliased C.unsigned; begin AG_TextSizeMulti (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access), W => C_W'Access, H => C_H'Access, W_Lines => C_WLines, N_Lines => C_NLines'Access); W := Natural(C_W); H := Natural(C_H); Line_Count := Natural(C_NLines); Line_Widths.Clear; for Index in 1 .. Line_Count loop declare Element : Natural; begin if C_WLines /= null then Element := Natural(C_WLines.all); Line_Widths.Append (Element); end if; end; Increment (C_WLines); end loop; end; -- -- Display an info, warning or error message. -- procedure Text_Msg (Title : in AG_Text_Message_Title := INFO; Text : in String) is Ch_Text : aliased C.char_array := C.To_C(Text); begin AG_TextMsgS (Title => Title, Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; -- -- Display an info, warning or error message (for a # of milliseconds). -- #if AG_TIMERS procedure Text_Msg (Title : in AG_Text_Message_Title := INFO; Text : in String; Time : in Natural := 2000) is Ch_Text : aliased C.char_array := C.To_C(Text); begin AG_TextTmsgS (Title => Title, Time => Unsigned_32(Time), Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; #end if; -- -- Display an info message (with a "Don't tell me again" option -- tied to the Config setting named by Key). -- procedure Text_Info (Key, Text : in String) is Ch_Key : aliased C.char_array := C.To_C(Key); Ch_Text : aliased C.char_array := C.To_C(Text); begin AG_TextInfoS (Key => CS.To_Chars_Ptr(Ch_Key'Unchecked_Access), Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; -- -- Display a warning message (with a "Don't tell me again" option -- tied to the Config setting named by Key). -- procedure Text_Warning (Key, Text : in String) is Ch_Key : aliased C.char_array := C.To_C(Key); Ch_Text : aliased C.char_array := C.To_C(Text); begin AG_TextWarningS (Key => CS.To_Chars_Ptr(Ch_Key'Unchecked_Access), Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; -- -- Display an error message alert. -- procedure Text_Error (Text : in String) is Ch_Text : aliased C.char_array := C.To_C(Text); begin AG_TextErrorS (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; -- -- Calculate the X,Y offsets required to justify and vertically-align -- a text surface of a given size within a given area of pixels. -- procedure Text_Align (W_Area, H_Area : in Natural; W_Text, H_Text : in Natural; L_Pad, R_Pad : in Natural := 0; T_Pad, B_Pad : in Natural := 0; Justify : in AG_Text_Justify := CENTER; Valign : in AG_Text_Valign := MIDDLE; X,Y : out Integer) is C_X, C_Y : aliased C.int; begin AG_TextAlign (X => C_X'Access, Y => C_Y'Access, W_Area => C.int(W_Area), H_Area => C.int(H_Area), W_Text => C.int(W_Text), H_Text => C.int(H_Text), L_Pad => C.int(L_Pad), R_Pad => C.int(R_Pad), T_Pad => C.int(T_Pad), B_Pad => C.int(B_Pad), Justify => Justify, Valign => Valign); X := Integer(C_X); Y := Integer(C_Y); end; -- -- Calculate the X offset required to justify rendered text in an area. -- function Text_Justify (W_Area, W_Text : in Natural) return Integer is Result : C.int; begin Result := AG_TextJustifyOffset (W_Area => C.int(W_Area), W_Text => C.int(W_Text)); return Integer(Result); end; -- -- Calculate the Y offset required to vertically align rendered text -- in an area. -- function Text_Valign (H_Area, H_Text : in Natural) return Integer is Result : C.int; begin Result := AG_TextValignOffset (H_Area => C.int(H_Area), H_Text => C.int(H_Text)); return Integer(Result); end; -- -- Set State Attribute: Tab Width (in pixels). -- procedure Text_Set_Tab_Width (Width : Natural) is begin AG_TextTabWidth (Pixels => C.int(Width)); end; -- -- Render text to a new surface (UTF-8). -- function Text_Render (Text : in String) return SU.Surface_not_null_Access is Ch_Text : aliased C.char_array := C.To_C(Text); begin return AG_TextRender (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); end; -- -- Render text and blit it to an existing surface (UTF-8). -- procedure Text_Render (Text : in String; Surface : in SU.Surface_not_null_Access; X,Y : in Natural := 0) is Ch_Text : aliased C.char_array := C.To_C(Text); Tmp_Surface : constant SU.Surface_not_null_Access := AG_TextRender (Text => CS.To_Chars_Ptr(Ch_Text'Unchecked_Access)); begin SU.Blit_Surface (Source => Tmp_Surface, Target => Surface, Dst_X => X, Dst_Y => Y); SU.Free_Surface (Surface => Tmp_Surface); end; -- -- Render text and blit it to an existing surface (UCS-4 internal). -- procedure Text_Render (Text : in AG_Char_not_null_Access; Surface : in SU.Surface_not_null_Access; X,Y : in Natural := 0) is Text_State : aliased AG_Text_State; Tmp_Surface : SU.Surface_Access; begin Copy_Text_State(Text_State'Unchecked_Access); Tmp_Surface := Text_Render (Text => Text, Font => Text_State.Font, Color_BG => Text_State.Color_BG'Unchecked_Access, Color => Text_State.Color'Unchecked_Access); SU.Blit_Surface (Source => Tmp_Surface, Target => Surface, Dst_X => X, Dst_Y => Y); SU.Free_Surface (Surface => Tmp_Surface); end; end Agar.Text;
30.835714
78
0.579492
ad34637545e8146dd6d366bc02cf049d0d89ba40
3,740
ads
Ada
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstfftf64_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
1
2018-01-18T00:51:00.000Z
2018-01-18T00:51:00.000Z
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstfftf64_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
null
null
null
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstfftf64_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
null
null
null
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfft_h; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfftf64_h is -- GStreamer -- * Copyright (C) <2007> Sebastian Dröge <[email protected]> -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Library General Public -- * License as published by the Free Software Foundation; either -- * version 2 of the License, or (at your option) any later version. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Library General Public License for more details. -- * -- * You should have received a copy of the GNU Library General Public -- * License along with this library; if not, write to the -- * Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- * Boston, MA 02111-1307, USA. -- type GstFFTF64; type u_GstFFTF64_u_padding_array is array (0 .. 3) of System.Address; --subtype GstFFTF64 is u_GstFFTF64; -- gst/fft/gstfftf64.h:30 type GstFFTF64Complex; --subtype GstFFTF64Complex is u_GstFFTF64Complex; -- gst/fft/gstfftf64.h:31 -- FIXME 0.11: Move the struct definition to the sources, -- * there's no reason to have it public. -- --* -- * GstFFTF64: -- * -- * Instance structure for #GstFFTF64. -- * -- -- <private> type GstFFTF64 is record cfg : System.Address; -- gst/fft/gstfftf64.h:44 inverse : aliased GLIB.gboolean; -- gst/fft/gstfftf64.h:45 len : aliased GLIB.gint; -- gst/fft/gstfftf64.h:46 u_padding : u_GstFFTF64_u_padding_array; -- gst/fft/gstfftf64.h:47 end record; pragma Convention (C_Pass_By_Copy, GstFFTF64); -- gst/fft/gstfftf64.h:42 -- Copy of kiss_fft_f64_cpx for documentation reasons, -- * do NOT change! --* -- * GstFFTF64Complex: -- * @r: Real part -- * @i: Imaginary part -- * -- * Data type for complex numbers composed of -- * 64 bit float. -- * -- type GstFFTF64Complex is record r : aliased GLIB.gdouble; -- gst/fft/gstfftf64.h:64 i : aliased GLIB.gdouble; -- gst/fft/gstfftf64.h:65 end record; pragma Convention (C_Pass_By_Copy, GstFFTF64Complex); -- gst/fft/gstfftf64.h:62 -- Functions function gst_fft_f64_new (len : GLIB.gint; inverse : GLIB.gboolean) return access GstFFTF64; -- gst/fft/gstfftf64.h:70 pragma Import (C, gst_fft_f64_new, "gst_fft_f64_new"); procedure gst_fft_f64_fft (self : access GstFFTF64; timedata : access GLIB.gdouble; freqdata : access GstFFTF64Complex); -- gst/fft/gstfftf64.h:71 pragma Import (C, gst_fft_f64_fft, "gst_fft_f64_fft"); procedure gst_fft_f64_inverse_fft (self : access GstFFTF64; freqdata : access constant GstFFTF64Complex; timedata : access GLIB.gdouble); -- gst/fft/gstfftf64.h:72 pragma Import (C, gst_fft_f64_inverse_fft, "gst_fft_f64_inverse_fft"); procedure gst_fft_f64_free (self : access GstFFTF64); -- gst/fft/gstfftf64.h:73 pragma Import (C, gst_fft_f64_free, "gst_fft_f64_free"); procedure gst_fft_f64_window (self : access GstFFTF64; timedata : access GLIB.gdouble; window : GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfft_h.GstFFTWindow); -- gst/fft/gstfftf64.h:75 pragma Import (C, gst_fft_f64_window, "gst_fft_f64_window"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfftf64_h;
35.619048
122
0.698663
2e7c47947f62e8201daac9d60ff2707b08eb4947
7,003
ads
Ada
source/xml/dom/matreshka-dom_elements.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/xml/dom/matreshka-dom_elements.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/xml/dom/matreshka-dom_elements.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with League.Strings; with Matreshka.DOM_Nodes; with XML.DOM.Attributes; with XML.DOM.Elements; with XML.DOM.Visitors; package Matreshka.DOM_Elements is pragma Preelaborate; type Abstract_Element_Node is abstract new Matreshka.DOM_Nodes.Node and XML.DOM.Elements.DOM_Element with record First_Attribute : Matreshka.DOM_Nodes.Node_Access; Last_Attribute : Matreshka.DOM_Nodes.Node_Access; end record; type Element_L2_Parameters is record Document : not null Matreshka.DOM_Nodes.Document_Access; Namespace_URI : League.Strings.Universal_String; Prefix : League.Strings.Universal_String; Local_Name : League.Strings.Universal_String; end record; not overriding function Create (Parameters : not null access Element_L2_Parameters) return Abstract_Element_Node is abstract; -- Dispatching constructor. overriding procedure Enter_Node (Self : not null access Abstract_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding function Get_Attribute_Node_NS (Self : not null access Abstract_Element_Node; Namespace_URI : League.Strings.Universal_String; Local_Name : League.Strings.Universal_String) return XML.DOM.Attributes.DOM_Attribute_Access; overriding function Get_Node_Type (Self : not null access constant Abstract_Element_Node) return XML.DOM.Node_Type; overriding function Get_Tag_Name (Self : not null access constant Abstract_Element_Node) return League.Strings.Universal_String; overriding function Get_Node_Name (Self : not null access constant Abstract_Element_Node) return League.Strings.Universal_String renames Get_Tag_Name; overriding procedure Leave_Node (Self : not null access Abstract_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding function Set_Attribute_Node_NS (Self : not null access Abstract_Element_Node; New_Attr : not null XML.DOM.Attributes.DOM_Attribute_Access) return XML.DOM.Attributes.DOM_Attribute_Access; overriding procedure Visit_Node (Self : not null access Abstract_Element_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of iterator interface. type Element_Node is new Abstract_Element_Node and XML.DOM.Elements.DOM_Element with record Namespace_URI : League.Strings.Universal_String; Prefix : League.Strings.Universal_String; Local_Name : League.Strings.Universal_String; end record; overriding function Create (Parameters : not null access Element_L2_Parameters) return Element_Node; overriding function Get_Local_Name (Self : not null access constant Element_Node) return League.Strings.Universal_String; overriding function Get_Namespace_URI (Self : not null access constant Element_Node) return League.Strings.Universal_String; package Constructors is procedure Initialize (Self : not null access Abstract_Element_Node'Class; Document : not null Matreshka.DOM_Nodes.Document_Access); end Constructors; end Matreshka.DOM_Elements;
47.965753
78
0.574754
c79b5a0b5f398b2a96ea06b829baa9dc9108732d
6,796
adb
Ada
ada-gui/agar-gui-widget-editable.adb
adsr/agar
3ee8e7f3346f872c1ddd58541fd64d50e8adbd96
[ "BSD-2-Clause" ]
3
2017-09-12T18:06:53.000Z
2021-10-05T04:50:03.000Z
ada-gui/agar-gui-widget-editable.adb
adsr/agar
3ee8e7f3346f872c1ddd58541fd64d50e8adbd96
[ "BSD-2-Clause" ]
1
2019-02-28T04:34:09.000Z
2019-02-28T04:34:09.000Z
ada-gui/agar-gui-widget-editable.adb
adsr/agar
3ee8e7f3346f872c1ddd58541fd64d50e8adbd96
[ "BSD-2-Clause" ]
null
null
null
package body agar.gui.widget.editable is package cbinds is procedure set_static (editable : editable_access_t; enable : c.int); pragma import (c, set_static, "AG_EditableSetStatic"); procedure set_password (editable : editable_access_t; enable : c.int); pragma import (c, set_password, "AG_EditableSetPassword"); procedure set_integer_only (editable : editable_access_t; enable : c.int); pragma import (c, set_integer_only, "AG_EditableSetIntOnly"); procedure set_float_only (editable : editable_access_t; enable : c.int); pragma import (c, set_float_only, "AG_EditableSetFltOnly"); procedure size_hint (editable : editable_access_t; text : cs.chars_ptr); pragma import (c, size_hint, "AG_EditableSizeHint"); procedure size_hint_pixels (editable : editable_access_t; width : c.int; height : c.int); pragma import (c, size_hint_pixels, "AG_EditableSizeHintPixels"); function map_position (editable : editable_access_t; x : c.int; y : c.int; pos : access c.int; absolute : c.int) return c.int; pragma import (c, map_position, "AG_EditableMapPosition"); procedure move_cursor (editable : editable_access_t; x : c.int; y : c.int; absolute : c.int); pragma import (c, move_cursor, "AG_EditableMoveCursor"); function get_cursor_position (editable : editable_access_t) return c.int; pragma import (c, get_cursor_position, "AG_EditableGetCursorPos"); function set_cursor_position (editable : editable_access_t; index : c.int) return c.int; pragma import (c, set_cursor_position, "AG_EditableSetCursorPos"); procedure set_string (editable : editable_access_t; text : cs.chars_ptr); pragma import (c, set_string, "AG_EditableSetString"); procedure set_string_ucs4 (editable : editable_access_t; text : access c.char32_t); pragma import (c, set_string_ucs4, "AG_EditableSetStringUCS4"); function get_integer (editable : editable_access_t) return c.int; pragma import (c, get_integer, "AG_EditableInt"); function get_float (editable : editable_access_t) return c.c_float; pragma import (c, get_float, "AG_EditableFlt"); function get_long_float (editable : editable_access_t) return c.double; pragma import (c, get_long_float, "AG_EditableDbl"); end cbinds; procedure set_static (editable : editable_access_t; enable : boolean) is begin if enable then cbinds.set_static (editable => editable, enable => 1); else cbinds.set_static (editable => editable, enable => 0); end if; end set_static; procedure set_password (editable : editable_access_t; enable : boolean) is begin if enable then cbinds.set_password (editable => editable, enable => 1); else cbinds.set_password (editable => editable, enable => 0); end if; end set_password; procedure set_integer_only (editable : editable_access_t; enable : boolean) is begin if enable then cbinds.set_integer_only (editable => editable, enable => 1); else cbinds.set_integer_only (editable => editable, enable => 0); end if; end set_integer_only; procedure set_float_only (editable : editable_access_t; enable : boolean) is begin if enable then cbinds.set_float_only (editable => editable, enable => 1); else cbinds.set_float_only (editable => editable, enable => 0); end if; end set_float_only; procedure size_hint (editable : editable_access_t; text : string) is ca_text : aliased c.char_array := c.to_c (text); begin cbinds.size_hint (editable => editable, text => cs.to_chars_ptr (ca_text'unchecked_access)); end size_hint; procedure size_hint_pixels (editable : editable_access_t; width : positive; height : positive) is begin cbinds.size_hint_pixels (editable => editable, width => c.int (width), height => c.int (height)); end size_hint_pixels; -- cursor manipulation procedure map_position (editable : editable_access_t; x : integer; y : integer; index : out natural; pos : out cursor_pos_t; absolute : boolean) is c_abs : c.int := 0; c_pos : aliased c.int; c_ind : c.int; begin if absolute then c_abs := 1; end if; c_ind := cbinds.map_position (editable => editable, x => c.int (x), y => c.int (y), pos => c_pos'unchecked_access, absolute => c_abs); index := natural (c_ind); pos := cursor_pos_t'val (c_pos); end map_position; procedure move_cursor (editable : editable_access_t; x : integer; y : integer; absolute : boolean) is c_abs : c.int := 0; begin if absolute then c_abs := 1; end if; cbinds.move_cursor (editable => editable, x => c.int (x), y => c.int (y), absolute => c_abs); end move_cursor; function get_cursor_position (editable : editable_access_t) return natural is begin return natural (cbinds.get_cursor_position (editable)); end get_cursor_position; function set_cursor_position (editable : editable_access_t; index : integer) return integer is begin return integer (cbinds.set_cursor_position (editable, c.int (index))); end set_cursor_position; -- text manipulation procedure set_string (editable : editable_access_t; text : string) is ca_text : aliased c.char_array := c.to_c (text); begin cbinds.set_string (editable, cs.to_chars_ptr (ca_text'unchecked_access)); end set_string; procedure set_string_ucs4 (editable : editable_access_t; text : wide_wide_string) is ca_text : aliased c.char32_array := c.to_c (text); begin cbinds.set_string_ucs4 (editable, ca_text(ca_text'first)'unchecked_access); end set_string_ucs4; function get_integer (editable : editable_access_t) return integer is begin return integer (cbinds.get_integer (editable)); end get_integer; function get_float (editable : editable_access_t) return float is begin return float (cbinds.get_float (editable)); end get_float; function get_long_float (editable : editable_access_t) return long_float is begin return long_float (cbinds.get_long_float (editable)); end get_long_float; function widget (editable : editable_access_t) return widget_access_t is begin return editable.widget'access; end widget; end agar.gui.widget.editable;
28.675105
79
0.659653
228d43a8ba36acaca080d8d954c4d5a37ed3c4af
823
ads
Ada
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-framebuffer_filler.ads
fabiojna02/OpenCellular
45b6a202d6b2e2485c89955b9a6da920c4d56ddb
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2019-02-05T09:50:07.000Z
2019-02-05T09:50:07.000Z
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-framebuffer_filler.ads
aimin-wang/OpenCellular
5308146bf7edf43cc81c0e4d15305b711117070a
[ "CC-BY-4.0", "BSD-3-Clause" ]
13
2018-10-12T21:29:09.000Z
2018-10-25T20:06:51.000Z
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-framebuffer_filler.ads
aimin-wang/OpenCellular
5308146bf7edf43cc81c0e4d15305b711117070a
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- 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 2 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. -- with System; with HW; use type HW.Int32; package HW.GFX.Framebuffer_Filler is procedure Fill (Linear_FB : Word64; Framebuffer : Framebuffer_Type) with Pre => Framebuffer.Width <= Framebuffer.Stride; end HW.GFX.Framebuffer_Filler;
27.433333
71
0.739976
134888809d6004f1f036076b5d12395a750324c5
4,461
adb
Ada
1A/PIM/projet/pagerank.adb
anajmedd/ENSEEIHT
e4077fe8882ae35be52e53f29a3a988a0d6f83f0
[ "Apache-2.0" ]
null
null
null
1A/PIM/projet/pagerank.adb
anajmedd/ENSEEIHT
e4077fe8882ae35be52e53f29a3a988a0d6f83f0
[ "Apache-2.0" ]
null
null
null
1A/PIM/projet/pagerank.adb
anajmedd/ENSEEIHT
e4077fe8882ae35be52e53f29a3a988a0d6f83f0
[ "Apache-2.0" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Ada.float_Text_IO; use Ada.float_Text_IO; with Ada.integer_Text_IO; use Ada.integer_Text_IO; with Ada.Command_Line; use Ada.Command_Line; with matrice_pleine; with google_creuse; procedure pagerank is function capacite(fichier : in String ) return integer is C : integer; file: file_type; begin open(file,in_File,fichier); get(file, C); close(file); return C; end capacite; c : integer := capacite(Argument(Argument_count)); package matrice_N is new matrice_pleine(Capacite => c); use matrice_N; package matrice_c is new google_creuse(Capacite => c); use matrice_c; V : matrice_N.T_Vecteur_integer; M : matrice_N.T_matrice; M_c : matrice_c.matricep; poids : matrice_N.T_Vecteur_float; indice : matrice_N.T_Vecteur_integer; poids_c : matrice_c.Vecteur_float; indice_c : matrice_c.Vecteur_integer; Nombre_iteration : integer := 150; alpha : float := 0.85; implementation_naive : boolean ; procedure implementation is begin if Argument_Count = 1 then implementation_naive := false; elsif Argument_Count = 2 then if Argument (1) /= "-P" then raise constraint_error; else implementation_naive := (Argument (1) = "-P"); end if; elsif Argument_Count = 3 and Argument (1) = "-A" then if float'Value(Argument (2)) < 0.0 or float'Value(Argument (2)) > 1.0 then raise constraint_error; else alpha := Float'Value(Argument (2)); end if; elsif Argument_Count = 3 and Argument (1) = "-I" then if Integer'Value(Argument (2)) < 0 then raise constraint_error; else Nombre_iteration := Integer'Value(Argument (2)); end if; elsif Argument_Count = 4 and Argument (2) = "-I" then if Integer'Value(Argument (3)) < 0 then raise constraint_error; else Nombre_iteration := Integer'Value(Argument (3)); end if; if Argument (1) /= "-P" then raise constraint_error; else implementation_naive := (Argument (1) = "-P"); end if; elsif Argument_Count = 4 and Argument (2) = "-A" then if float'Value(Argument (3)) < 0.0 or float'Value(Argument (3)) > 1.0 then raise constraint_error; else alpha := Float'Value(Argument (3)); end if; if Argument (1) /= "-P" then raise constraint_error; else implementation_naive := (Argument (1) = "-P"); end if; elsif Argument_Count = 6 and Argument (2) = "-I" and Argument (4) = "-A" then if float'Value(Argument (5)) < 0.0 or float'Value(Argument (5)) > 1.0 then raise constraint_error; else alpha := Float'Value(Argument (5)); end if; if Integer'Value(Argument (3)) < 0 then raise constraint_error; else Nombre_iteration := Integer'Value(Argument (3)); end if; if Argument (1) /= "-P" then raise constraint_error; else implementation_naive := (Argument (1) = "-P"); end if; else null; end if; Exception when constraint_error => put("Veuillez entrez une valeur de alpha entre 0 et 1 et un nombre d'iteration positif et -P ou non dans le premier paramètre !!!"); end implementation; begin if implementation_naive then matrice_N.vecteur_hyperliens(Argument(Argument_count),V ,M ); matrice_N.calculh(M,V); matrice_N.calculS(M); matrice_N.calculG(M); poids := (1..c => 1.0/float(c)); for i in 1..Nombre_iteration loop poids := matrice_N.produit(M,poids); end loop; matrice_N.Trier(poids,indice ); matrice_N.Ecrire(poids ,"poids.p",alpha,Nombre_iteration); matrice_N.Ecrire(indice,"noeuds.net"); else matrice_c.initialiser(M_c); poids := (1..c => 1.0/float(c)); matrice_c.lire(M_c,Argument(Argument_count)); matrice_c.calculS(M_c); for n in 1..Nombre_iteration loop matrice_c.Produit(M_c,poids_c,alpha); end loop; matrice_c.Trier(poids_c,indice_c); matrice_c.Ecrire(poids_c ,"poids.p",alpha,Nombre_iteration); matrice_c.Ecrire(indice_c,"noeuds.net"); end if; end pagerank;
22.417085
154
0.603228
adf19b0d70052b1534b5aa81c29b58dc31f28018
4,479
ads
Ada
src/inverter_adc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
src/inverter_adc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
src/inverter_adc.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.ADC; use STM32.ADC; with STM_Board; use STM_Board; package Inverter_ADC is -- Performs analog to digital conversions in a timed manner. -- The timer starts ADC conversions and, at the end of conversion, it -- produces an interrupt that actualizes the buffer of ADC values and -- corrects the duty cycle for variations in battery voltage. Sensor_Frequency_Hz : constant := 5_000; -- Timer PWM frequency that controls start of ADC convertion. subtype Voltage is Float; -- Represents an electric measure. ADC_Vref : constant Voltage := 3.3; -- ADC full scale voltage. Battery_V : constant Voltage := 12.0; -- Battery nominal voltage. subtype Battery_V_Range is Voltage range (Battery_V * 0.8) .. (Battery_V * 1.2); -- Battery voltage tolerance is Battery_V ± 20%. Battery_Relation : constant Float := 10_000.0 / 90_900.0; -- 10 kΩ / 90.9 kΩ -- Resistive relation between the measured ADC input and the battery -- voltage. This depends on the electronic circuitry. Inverter_Power : constant Voltage := 300.0; -- Inverter nominal electrical power. Battery_I : constant Voltage := Inverter_Power / Battery_V_Range'First; -- Battery nominal current with maximum inverter power and -- minimum battery voltage. subtype Battery_I_Range is Voltage range 0.0 .. (Battery_I * 1.1); -- Battery current tolerance is Battery_I + 10%. Output_V : constant Voltage := 220.0; -- AC output RMS voltage. subtype Output_V_Range is Voltage range (Output_V * 0.9) .. (Output_V * 1.1); -- AC ouput voltage tolerance is Output_V ± 10%. Output_Relation : constant Float := 10_000.0 / 90_900.0; -- 10 kΩ / 90.9 kΩ -- Resistive relation between the measured ADC input and the AC output -- voltage. This depends on the electronic circuitry. type ADC_Reading is (V_Battery, I_Battery, V_Output); -- Specifies the available readings. procedure Initialize_ADC; -- Initialize the ADCs. function Get_Sample (Reading : in ADC_Reading) return Voltage with Pre => Is_Initialized; -- Get the specified ADC reading. subtype Gain_Range is Float range 0.0 .. 1.0; -- For correcting battery voltage and AC output variation. Sine_Gain : Gain_Range := 0.0; function Battery_Gain (V_Setpoint : Battery_V_Range := Battery_V_Range'First; V_Actual : Voltage := Get_Sample (V_Battery)) return Gain_Range; -- Calculate the gain of the sinusoid as a function of the -- battery voltage. function Test_V_Battery return Boolean with Pre => Is_Initialized; -- Test if battery voltage is between maximum and minimum. function Test_I_Battery return Boolean with Pre => Is_Initialized; -- Test if battery current is below maximum. function Test_V_Output return Boolean with Pre => Is_Initialized; -- Test if output voltage is between maximum and minimum. function Is_Initialized return Boolean; private Initialized : Boolean := False; ADC_V_Per_Lsb : constant Float := ADC_Vref / 4_095.0; -- 12 bit type Regular_Samples_Array is array (ADC_Reading'Range) of UInt16; for Regular_Samples_Array'Component_Size use 16; Regular_Samples : Regular_Samples_Array := (others => 0) with Volatile; type ADC_Settings is record GPIO_Entry : GPIO_Point; ADC_Entry : ADC_Point; Channel_Rank : Regular_Channel_Rank; end record; type ADC_Readings is array (ADC_Reading'Range) of ADC_Settings; ADC_Reading_Settings : constant ADC_Readings := ((V_Battery) => (GPIO_Entry => ADC_Battery_V_Pin, ADC_Entry => ADC_Battery_V_Point, Channel_Rank => 1), (I_Battery) => (GPIO_Entry => ADC_Battery_I_Pin, ADC_Entry => ADC_Battery_I_Point, Channel_Rank => 2), (V_Output) => (GPIO_Entry => ADC_Output_V_Pin, ADC_Entry => ADC_Output_V_Point, Channel_Rank => 3)); protected Sensor_Handler is pragma Interrupt_Priority (Sensor_ISR_Priority); private Rank : ADC_Reading := ADC_Reading'First; Counter : Integer := 0; -- For testing the output. procedure Sensor_ADC_Handler with Attach_Handler => Sensor_Interrupt; end Sensor_Handler; end Inverter_ADC;
33.425373
83
0.677607
1af6fca30412bfbe9dc5c61d64f8700d559811ab
4,785
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-except.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-except.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-except.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . E X C E P T I O N S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2000-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. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides an interface for raising predefined exceptions -- with an exception message. It can be used from Pure units. -- There is no prohibition in Ada that prevents exceptions being raised -- from within pure units. The raise statement is perfectly acceptable. -- However, it is not normally possible to raise an exception with a -- message because the routine Ada.Exceptions.Raise_Exception is not in -- a Pure unit. This is an annoying and unnecessary restriction and this -- package allows for raising the standard predefined exceptions at least. package GNAT.Exceptions is pragma Pure; type Exception_Type is limited null record; -- Type used to specify which exception to raise -- Really Exception_Type is Exception_Id, but Exception_Id can't be -- used directly since it is declared in the non-pure unit Ada.Exceptions, -- Exception_Id is in fact simply a pointer to the type Exception_Data -- declared in System.Standard_Library (which is also non-pure). So what -- we do is to define it here as a by reference type (any by reference -- type would do), and then Import the definitions from Standard_Library. -- Since this is a by reference type, these will be passed by reference, -- which has the same effect as passing a pointer. -- This type is not private because keeping it by reference would require -- defining it in a way (e.g. using a tagged type) that would drag in other -- run-time files, which is unwanted in the case of e.g. Ravenscar where we -- want to minimize the number of run-time files needed by default. CE : constant Exception_Type; -- Constraint_Error PE : constant Exception_Type; -- Program_Error SE : constant Exception_Type; -- Storage_Error TE : constant Exception_Type; -- Tasking_Error -- One of these constants is used in the call to specify the exception procedure Raise_Exception (E : Exception_Type; Message : String); pragma Import (Ada, Raise_Exception, "__gnat_raise_exception"); pragma No_Return (Raise_Exception); -- Raise specified exception with specified message private pragma Import (C, CE, "constraint_error"); pragma Import (C, PE, "program_error"); pragma Import (C, SE, "storage_error"); pragma Import (C, TE, "tasking_error"); -- References to the exception structures in the standard library end GNAT.Exceptions;
57.650602
79
0.550052
228d66a1cc266f47cfd0fec516c160ff4afd45da
5,339
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtcoio.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtcoio.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtcoio.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . W I D E _ T E X T _ IO . C O M P L E X _ I O -- -- -- -- 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 Ada.Wide_Text_IO.Complex_Aux; with System.WCh_Con; use System.WCh_Con; with System.WCh_WtS; use System.WCh_WtS; with Ada.Unchecked_Conversion; package body Ada.Wide_Text_IO.Complex_IO is package Aux renames Ada.Wide_Text_IO.Complex_Aux; subtype LLF is Long_Long_Float; -- Type used for calls to routines in Aux function TFT is new Ada.Unchecked_Conversion (File_Type, Ada.Wide_Text_IO.File_Type); -- This unchecked conversion is to get around a visibility bug in -- GNAT version 2.04w. It should be possible to simply use the -- subtype declared above and do normal checked conversions. --------- -- Get -- --------- procedure Get (File : File_Type; Item : out Complex; Width : Field := 0) is Real_Item : Real'Base; Imag_Item : Real'Base; begin Aux.Get (TFT (File), LLF (Real_Item), LLF (Imag_Item), Width); Item := (Real_Item, Imag_Item); exception when Constraint_Error => raise Data_Error; end Get; --------- -- Get -- --------- procedure Get (Item : out Complex; Width : Field := 0) is begin Get (Current_Input, Item, Width); end Get; --------- -- Get -- --------- procedure Get (From : Wide_String; Item : out Complex; Last : out Positive) is Real_Item : Real'Base; Imag_Item : Real'Base; S : constant String := Wide_String_To_String (From, WCEM_Upper); -- String on which we do the actual conversion. Note that the method -- used for wide character encoding is irrelevant, since if there is -- a character outside the Standard.Character range then the call to -- Aux.Gets will raise Data_Error in any case. begin Aux.Gets (S, LLF (Real_Item), LLF (Imag_Item), Last); Item := (Real_Item, Imag_Item); exception when Data_Error => raise Constraint_Error; end Get; --------- -- Put -- --------- procedure Put (File : File_Type; Item : Complex; Fore : Field := Default_Fore; Aft : Field := Default_Aft; Exp : Field := Default_Exp) is begin Aux.Put (TFT (File), LLF (Re (Item)), LLF (Im (Item)), Fore, Aft, Exp); end Put; --------- -- Put -- --------- procedure Put (Item : Complex; Fore : Field := Default_Fore; Aft : Field := Default_Aft; Exp : Field := Default_Exp) is begin Put (Current_Output, Item, Fore, Aft, Exp); end Put; --------- -- Put -- --------- procedure Put (To : out Wide_String; Item : Complex; Aft : Field := Default_Aft; Exp : Field := Default_Exp) is S : String (To'First .. To'Last); begin Aux.Puts (S, LLF (Re (Item)), LLF (Im (Item)), Aft, Exp); for J in S'Range loop To (J) := Wide_Character'Val (Character'Pos (S (J))); end loop; end Put; end Ada.Wide_Text_IO.Complex_IO;
33.36875
78
0.488856
adf61fb4bfb6977d580a6eeb69483a0b9dcad662
1,438
ads
Ada
firmware/coreboot/3rdparty/libhwbase/debug/hw-debug.ads
fabiojna02/OpenCellular
45b6a202d6b2e2485c89955b9a6da920c4d56ddb
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2019-11-04T07:11:25.000Z
2019-11-04T07:11:25.000Z
firmware/coreboot/3rdparty/libhwbase/debug/hw-debug.ads
aimin-wang/OpenCellular
5308146bf7edf43cc81c0e4d15305b711117070a
[ "CC-BY-4.0", "BSD-3-Clause" ]
13
2018-10-12T21:29:09.000Z
2018-10-25T20:06:51.000Z
firmware/coreboot/3rdparty/libhwbase/debug/hw-debug.ads
aimin-wang/OpenCellular
5308146bf7edf43cc81c0e4d15305b711117070a
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
-- -- Copyright (C) 2015 secunet Security Networks AG -- -- 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 2 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. -- package HW.Debug is procedure Put (Item : String); procedure Put_Line (Item : String); procedure New_Line; procedure Put_Word8 (Item : Word8); procedure Put_Word16 (Item : Word16); procedure Put_Word32 (Item : Word32); procedure Put_Word64 (Item : Word64); procedure Put_Int8 (Item : Int8); procedure Put_Int16 (Item : Int16); procedure Put_Int32 (Item : Int32); procedure Put_Int64 (Item : Int64); procedure Put_Reg8 (Name : String; Item : Word8); procedure Put_Reg16 (Name : String; Item : Word16); procedure Put_Reg32 (Name : String; Item : Word32); procedure Put_Reg64 (Name : String; Item : Word64); procedure Put_Buffer (Name : String; Buf : in Buffer; Len : in Buffer_Range); procedure Set_Register_Write_Delay (Value : Word64); Procedure Register_Write_Wait; end HW.Debug; -- vim: set ts=8 sts=3 sw=3 et:
32.681818
80
0.716968
2ef5cab17e15885c4560543fccc501e2c7ed3096
7,749
adb
Ada
src/bb_pico_bsp-lvgl_backend.adb
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
src/bb_pico_bsp-lvgl_backend.adb
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
src/bb_pico_bsp-lvgl_backend.adb
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
with Ada.Text_IO; with Interfaces; use Interfaces; with HAL; with Lv; use Lv; with Lv.Color; with Lv.Hal.Disp; use Lv.Hal.Disp; with Lv.Hal.Indev; use Lv.Hal.Indev; with Lv.Indev; with Lv.Objx; with Lv.Objx.Img; with Lv.Vdb; with BB_Pico_Bsp.LCD; with BB_Pico_Bsp.Keyboard; with BB_Pico_Bsp.Touch; with BBQ10KBD; package body BB_Pico_Bsp.LVGL_Backend is LV_Disp_Drv : aliased Disp_Drv_T; LV_Disp : Disp_T; LV_Indev_Pointer_Drv : aliased Indev_Drv_T; LV_Indev_Keypad_Drv : aliased Indev_Drv_T; LV_Indev_Keypad : Indev_T; LV_Indev_Pointer : Indev_T; Cursor_Obj : Lv.Objx.Img.Instance; Pointer : Indev_Data_T; function Read_Pointer (Data : access Indev_Data_T) return U_Bool with Convention => C; function Read_Keypad (Data : access Indev_Data_T) return U_Bool with Convention => C; procedure Disp_Flush (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : access constant Color_Array) with Convention => C; procedure Disp_Fill (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : Lv.Color.Color_T) with Convention => C; procedure Disp_Map (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : access constant Color_Array) with Convention => C; ---------------- -- Initialize -- ---------------- procedure Initialize (Enable_Pointer : Boolean := True) is Mouse_Cursor_Icon : Integer; pragma Import (C, Mouse_Cursor_Icon, "mouse_cursor_icon"); begin Lv.Hal.Disp.Init_Drv (LV_Disp_Drv'Access); LV_Disp_Drv.Disp_Flush := Disp_Flush'Access; LV_Disp_Drv.Disp_Fill := Disp_Fill'Access; LV_Disp_Drv.Disp_Map := Disp_Map'Access; LV_Disp := Lv.Hal.Disp.Register (LV_Disp_Drv'Access); Lv.Hal.Disp.Set_Active (LV_Disp); Pointer.Union.Point := (0, 0); Pointer.State := Lv.Hal.Indev.State_Rel; Lv.Hal.Indev.Init_Drv (LV_Indev_Keypad_Drv'Access); LV_Indev_Keypad_Drv.Read := Read_Keypad'Access; LV_Indev_Keypad_Drv.C_Type := Lv.Hal.Indev.Type_Keypad; LV_Indev_Keypad := Lv.Hal.Indev.Register (LV_Indev_Keypad_Drv'Access); Lv.Hal.Indev.Init_Drv (LV_Indev_Pointer_Drv'Access); LV_Indev_Pointer_Drv.Read := Read_Pointer'Access; LV_Indev_Pointer_Drv.C_Type := Lv.Hal.Indev.Type_Pointer; LV_Indev_Pointer := Lv.Hal.Indev.Register (LV_Indev_Pointer_Drv'Access); if Enable_Pointer then Cursor_Obj := Lv.Objx.Img.Create (Lv.Objx.Scr_Act, Lv.Objx.No_Obj); Lv.Objx.Img.Set_Src (Cursor_Obj, Mouse_Cursor_Icon'Address); Lv.Indev.Set_Cursor (LV_Indev_Pointer, Cursor_Obj); end if; end Initialize; ------------------ -- Keypad_Indev -- ------------------ function Keypad_Indev return Lv.Hal.Indev.Indev_T is (LV_Indev_Keypad); ------------------ -- Read_Pointer -- ------------------ function Read_Pointer (Data : access Indev_Data_T) return U_Bool is begin Pointer.State := Lv.Hal.Indev.State_Rel; for Elt of BB_Pico_Bsp.Touch.Get_All_Touch_Points loop if Elt.Weight /= 0 then Pointer.Union.Point.X := Integer_16 (Elt.X); Pointer.Union.Point.Y := Integer_16 (Elt.Y); Pointer.State := Lv.Hal.Indev.State_Pr; end if; end loop; Data.all := Pointer; return 0; end Read_Pointer; ----------------- -- Read_Keypad -- ----------------- function Read_Keypad (Data : access Indev_Data_T) return U_Bool is use BBQ10KBD; State : Key_State; begin loop State := BB_Pico_Bsp.Keyboard.Key_FIFO_Pop; case State.Kind is when Error => return 0; -- No more events when Held_Pressed => null; -- LVGL doesn't have a held pressed event when others => declare Pressed : constant Boolean := State.Kind = BBQ10KBD.Pressed; begin case State.Code is when Keyboard.KEY_JOY_UP => Data.Union.Key := Lv.LV_KEY_UP; when Keyboard.KEY_JOY_DOWN => Data.Union.Key := Lv.LV_KEY_DOWN; when Keyboard.KEY_JOY_LEFT => Data.Union.Key := Lv.LV_KEY_LEFT; when Keyboard.KEY_JOY_RIGHT => Data.Union.Key := Lv.LV_KEY_RIGHT; when Keyboard.KEY_JOY_CENTER => Data.Union.Key := Lv.LV_KEY_ENTER; when Keyboard.KEY_BTN_LEFT1 => Data.Union.Key := Lv.LV_KEY_PREV; when Keyboard.KEY_BTN_LEFT2 => Data.Union.Key := Lv.LV_KEY_HOME; when Keyboard.KEY_BTN_RIGHT1 => Data.Union.Key := Lv.LV_KEY_BACKSPACE; when Keyboard.KEY_BTN_RIGHT2 => Data.Union.Key := Lv.LV_KEY_NEXT; when others => Data.Union.Key := Unsigned_32 (State.Code); end case; Data.State := (if Pressed then Lv.Hal.Indev.State_Pr else Lv.Hal.Indev.State_Rel); return 1; end; end case; end loop; end Read_Keypad; ---------------- -- Disp_Flush -- ---------------- procedure Disp_Flush (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : access constant Color_Array) is Width : constant Natural := LCD.Width; Height : constant Natural := LCD.Height; Len : constant Int32_T := (X2 - X1 + 1) * (Y2 - Y1 + 1); begin LCD.Wait_For_DMA; if X2 < 0 or else Y2 < 0 or else X1 > Int32_T (Width - 1) or else Y1 > Int32_T (Height - 1) then Lv.Vdb.Flush_Ready; return; end if; LCD.Send_Pixels (Natural (X1), Natural (Y1), Natural (X2), Natural (Y2), Color.all'Address, HAL.UInt32 (Len), Blocking => False); Lv.Vdb.Flush_Ready; end Disp_Flush; --------------- -- Disp_Fill -- --------------- procedure Disp_Fill (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : Lv.Color.Color_T) is C : constant Uint16_T := Lv.Color.Color_To16 (Color); pragma Unreferenced (C); Width : constant Natural := LCD.Width; Height : constant Natural := LCD.Height; Len : constant Int32_T := (X2 - X1) * (Y2 - Y1); pragma Unreferenced (Len); begin if X2 < 0 or else Y2 < 0 or else X1 > Int32_T (Width - 1) or else Y1 > Int32_T (Height - 1) then Lv.Vdb.Flush_Ready; return; end if; Lv.Vdb.Flush_Ready; end Disp_Fill; -------------- -- Disp_Map -- -------------- procedure Disp_Map (X1 : Int32_T; Y1 : Int32_T; X2 : Int32_T; Y2 : Int32_T; Color : access constant Color_Array) is begin Ada.Text_IO.Put_Line ("X1:" & X1'Img); Ada.Text_IO.Put_Line ("Y1:" & Y1'Img); Ada.Text_IO.Put_Line ("X2:" & X2'Img); Ada.Text_IO.Put_Line ("Y2:" & Y2'Img); Ada.Text_IO.Put_Line ("Length:" & Color'Length'Img); Ada.Text_IO.Put_Line ("First:" & Color'First'Img); end Disp_Map; end BB_Pico_Bsp.LVGL_Backend;
27.774194
78
0.547038
1354ab23b2cde5fe1c5562ae7af5eb242041f3e5
402
ads
Ada
src/risi_script-interpreter.ads
OneWingedShark/Risi
894edaa3805de4ad49b08360a127280ff5109516
[ "MIT" ]
1
2015-01-18T23:11:12.000Z
2015-01-18T23:11:12.000Z
src/risi_script-interpreter.ads
OneWingedShark/Risi
894edaa3805de4ad49b08360a127280ff5109516
[ "MIT" ]
null
null
null
src/risi_script-interpreter.ads
OneWingedShark/Risi
894edaa3805de4ad49b08360a127280ff5109516
[ "MIT" ]
null
null
null
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); with Risi_Script.Types.Patterns, Risi_Script.Types.Identifier, Risi_Script.Types.Identifier.Scope, Risi_Script.Types.Implementation, Risi_Script.Interfaces; Package Risi_Script.Interpreter is Use Risi_Script.Interfaces; Type Virtual_Machine is tagged -- new VM and Stack_Interface with null record; End Risi_Script.Interpreter;
22.333333
69
0.813433
2e37e3b0e9c54a620e28b97722a62dbd39210c75
26,836
adb
Ada
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-simplex_solver-voronoi.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-simplex_solver-voronoi.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-simplex_solver-voronoi.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with -- math.algebra.linear.d3, impact.d3.Vector; package body impact.d3.collision.simplex_Solver.voronoi is --- btUsageBitfield -- procedure reset (Self : out btUsageBitfield) is begin self.usedVertexA := False; self.usedVertexB := False; self.usedVertexC := False; self.usedVertexD := False; end reset; --- btSubSimplexClosestResult -- procedure reset (Self : in out btSubSimplexClosestResult) is begin Self.m_degenerate := False; setBarycentricCoordinates (Self); reset (Self.m_usedVertices); end reset; procedure setBarycentricCoordinates (Self : out btSubSimplexClosestResult; a, b, c, d : in math.Real := 0.0) is begin Self.m_barycentricCoords (1) := a; Self.m_barycentricCoords (2) := b; Self.m_barycentricCoords (3) := c; Self.m_barycentricCoords (4) := d; end setBarycentricCoordinates; function isValid (Self : in btSubSimplexClosestResult) return Boolean is begin return Self.m_barycentricCoords (1) >= 0.0 and then Self.m_barycentricCoords (2) >= 0.0 and then Self.m_barycentricCoords (3) >= 0.0 and then Self.m_barycentricCoords (4) >= 0.0; end isValid; --- impact.d3.collision.simplex_Solver.voronoi -- VERTA : constant := 1; VERTB : constant := 2; VERTC : constant := 3; VERTD : constant := 4; CATCH_DEGENERATE_TETRAHEDRON : constant Boolean := True; overriding procedure reset (Self : in out Item) is begin -- clear the simplex, remove all the vertices -- Self.m_cachedValidClosest := False; Self.m_numVertices := 0; Self.m_needsUpdate := True; Self.m_lastW := (math.Infinity, math.Infinity, math.Infinity); reset (Self.m_cachedBC); end reset; overriding procedure addVertex (Self : in out Item; w, p, q : in math.Vector_3) is begin Self.m_lastW := w; Self.m_needsUpdate := True; Self.m_numVertices := Self.m_numVertices + 1; Self.m_simplexVectorW (Self.m_numVertices) := w; Self.m_simplexPointsP (Self.m_numVertices) := p; Self.m_simplexPointsQ (Self.m_numVertices) := q; end addVertex; -- return/calculate the closest vertex -- overriding function closest (Self : access Item; v : access math.Vector_3) return Boolean is Success : constant Boolean := Self.updateClosestVectorAndPoints; begin v.all := Self.m_cachedV; return Success; end closest; overriding function maxVertex (Self : in Item) return Real is use impact.d3.Vector; numverts : constant Integer := Self.numVertices; maxV : math.Real := 0.0; curLen2 : math.Real; begin for i in 1 .. numverts loop curLen2 := length2 (Self.m_simplexVectorW (i)); -- tbd: check length2 is correct. if maxV < curLen2 then maxV := curLen2; end if; end loop; return maxV; end maxVertex; overriding function fullSimplex (Self : in Item) return Boolean is begin return Self.m_numVertices = 4; end fullSimplex; overriding function getSimplex (Self : in Item; pBuf, qBuf, yBuf : access impact.d3.collision.simplex_Solver.Vector_3_array) return Integer is begin for i in 1 .. Self.numVertices loop yBuf (i) := Self.m_simplexVectorW (i); pBuf (i) := Self.m_simplexPointsP (i); qBuf (i) := Self.m_simplexPointsQ (i); end loop; return Self.numVertices; end getSimplex; overriding function inSimplex (Self : in Item; w : in math.Vector_3) return Boolean is use impact.d3.Vector, math.Vectors; found : Boolean := False; numverts : constant Integer := Self.numVertices; begin -- w is in the current (reduced) simplex -- for i in 1 .. numverts loop if BT_USE_EQUAL_VERTEX_THRESHOLD then if distance2 (Self.m_simplexVectorW (i), w) <= Self.m_equalVertexThreshold then Found := True; end if; else if Self.m_simplexVectorW (i) = w then Found := True; end if; end if; end loop; -- check in case lastW is already removed -- if w = Self.m_lastW then return True; end if; return found; end inSimplex; overriding procedure backup_closest (Self : in out Item; v : out math.Vector_3) is begin v := Self.m_cachedV; end backup_closest; overriding function emptySimplex (Self : in Item) return Boolean is begin return Self.numVertices = 0; end emptySimplex; function updateClosestVectorAndPoints (Self : access Item) return Boolean is begin if Self.m_needsUpdate then reset (Self.m_cachedBC); Self.m_needsUpdate := False; case Self.numVertices is when 0 => Self.m_cachedValidClosest := False; when 1 => Self.m_cachedP1 := Self.m_simplexPointsP (1); Self.m_cachedP2 := Self.m_simplexPointsQ (1); Self.m_cachedV := Self.m_cachedP1 - Self.m_cachedP2; -- == m_simplexVectorW[0] reset (Self.m_cachedBC); setBarycentricCoordinates (Self.m_cachedBC, 1.0, 0.0, 0.0, 0.0); Self.m_cachedValidClosest := isValid (Self.m_cachedBC); when 2 => -- closest point origin from line segment declare use impact.d3.Vector; from : math.Vector_3 renames Self.m_simplexVectorW (1); to : math.Vector_3 renames Self.m_simplexVectorW (2); nearest : math.Vector_3; pragma Unreferenced (nearest); p : constant math.Vector_3 := (0.0, 0.0, 0.0); diff : math.Vector_3 := p - from; v : constant math.Vector_3 := to - from; t : math.Real := dot (v, diff); -- v.dot (diff); dotVV : math.Real; begin if t > 0.0 then dotVV := dot (v, v); -- v.dot (v); if t < dotVV then t := t / dotVV; diff := diff - t*v; Self.m_cachedBC.m_usedVertices.usedVertexA := True; Self.m_cachedBC.m_usedVertices.usedVertexB := True; else t := 1.0; diff := diff - v; -- reduce to 1 point Self.m_cachedBC.m_usedVertices.usedVertexB := True; end if; else t := 0.0; -- reduce to 1 point Self.m_cachedBC.m_usedVertices.usedVertexA := True; end if; setBarycentricCoordinates (Self.m_cachedBC, 1.0-t, t); nearest := from + t*v; Self.m_cachedP1 := Self.m_simplexPointsP (1) + t * (Self.m_simplexPointsP (2) - Self.m_simplexPointsP (1)); Self.m_cachedP2 := Self.m_simplexPointsQ (1) + t * (Self.m_simplexPointsQ (2) - Self.m_simplexPointsQ (1)); Self.m_cachedV := Self.m_cachedP1 - Self.m_cachedP2; Self.reduceVertices (Self.m_cachedBC.m_usedVertices); Self.m_cachedValidClosest := isValid (Self.m_cachedBC); end; when 3 => -- closest point origin from triangle declare p : constant math.Vector_3 := (0.0, 0.0, 0.0); a : math.Vector_3 renames Self.m_simplexVectorW (1); b : math.Vector_3 renames Self.m_simplexVectorW (2); c : math.Vector_3 renames Self.m_simplexVectorW (3); unused : Boolean; pragma Unreferenced (unused); begin unused := closestPtPointTriangle (Self.all, p, a, b, c, Self.m_cachedBC'Access); Self.m_cachedP1 := Self.m_simplexPointsP (1) * Self.m_cachedBC.m_barycentricCoords (1) + Self.m_simplexPointsP (2) * Self.m_cachedBC.m_barycentricCoords (2) + Self.m_simplexPointsP (3) * Self.m_cachedBC.m_barycentricCoords (3); Self.m_cachedP2 := Self.m_simplexPointsQ (1) * Self.m_cachedBC.m_barycentricCoords (1) + Self.m_simplexPointsQ (2) * Self.m_cachedBC.m_barycentricCoords (2) + Self.m_simplexPointsQ (3) * Self.m_cachedBC.m_barycentricCoords (3); Self.m_cachedV := Self.m_cachedP1 - Self.m_cachedP2; Self.reduceVertices (Self.m_cachedBC.m_usedVertices); Self.m_cachedValidClosest := isValid (Self.m_cachedBC); end; when 4 => declare p : constant math.Vector_3 := (0.0, 0.0, 0.0); a : math.Vector_3 renames Self.m_simplexVectorW (1); b : math.Vector_3 renames Self.m_simplexVectorW (2); c : math.Vector_3 renames Self.m_simplexVectorW (3); d : math.Vector_3 renames Self.m_simplexVectorW (4); hasSeperation : constant Boolean := Self.closestPtPointTetrahedron (p, a, b, c, d, Self.m_cachedBC'Access); Break_early : Boolean := False; begin if hasSeperation then Self.m_cachedP1 := Self.m_simplexPointsP (1) * Self.m_cachedBC.m_barycentricCoords (1) + Self.m_simplexPointsP (2) * Self.m_cachedBC.m_barycentricCoords (2) + Self.m_simplexPointsP (3) * Self.m_cachedBC.m_barycentricCoords (3) + Self.m_simplexPointsP (4) * Self.m_cachedBC.m_barycentricCoords (4); Self.m_cachedP2 := Self.m_simplexPointsQ (1) * Self.m_cachedBC.m_barycentricCoords (1) + Self.m_simplexPointsQ (2) * Self.m_cachedBC.m_barycentricCoords (2) + Self.m_simplexPointsQ (3) * Self.m_cachedBC.m_barycentricCoords (3) + Self.m_simplexPointsQ (4) * Self.m_cachedBC.m_barycentricCoords (4); Self.m_cachedV := Self.m_cachedP1 - Self.m_cachedP2; Self.reduceVertices (Self.m_cachedBC.m_usedVertices); else if Self.m_cachedBC.m_degenerate then Self.m_cachedValidClosest := False; else Self.m_cachedValidClosest := True; -- degenerate case == false, penetration = true + zero Self.m_cachedV := (0.0, 0.0, 0.0); end if; Break_early := True; -- break; end if; if not Break_early then Self.m_cachedValidClosest := isValid (Self.m_cachedBC); end if; -- closest point origin from tetrahedron end; when others => Self.m_cachedValidClosest := False; end case; end if; return Self.m_cachedValidClosest; end updateClosestVectorAndPoints; overriding procedure compute_points (Self : in out Item; p1, p2 : out math.Vector_3) is unused : Boolean; pragma Unreferenced (unused); begin unused := updateClosestVectorAndPoints (Self'Access); p1 := Self.m_cachedP1; p2 := Self.m_cachedP2; end compute_points; overriding function numVertices (Self : in Item) return Integer is begin return Self.m_numVertices; end numVertices; procedure removeVertex (Self : in out Item; Index : in Integer) is begin pragma Assert (Self.m_numVertices > 0); Self.m_simplexVectorW (index) := Self.m_simplexVectorW (Self.m_numVertices); Self.m_simplexPointsP (index) := Self.m_simplexPointsP (Self.m_numVertices); Self.m_simplexPointsQ (index) := Self.m_simplexPointsQ (Self.m_numVertices); Self.m_numVertices := Self.m_numVertices - 1; end removeVertex; procedure reduceVertices (Self : in out Item; usedVerts : in btUsageBitfield) is begin if Self.numVertices >= 4 and then not usedVerts.usedVertexD then removeVertex (Self, 4); end if; if Self.numVertices >= 3 and then not usedVerts.usedVertexC then removeVertex (Self, 3); end if; if Self.numVertices >= 2 and then not usedVerts.usedVertexB then removeVertex (Self, 2); end if; if Self.numVertices >= 1 and then not usedVerts.usedVertexA then removeVertex (Self, 1); end if; end reduceVertices; function closestPtPointTetrahedron (Self : in Item; p : in math.Vector_3; a, b, c, d : in math.Vector_3; finalResult : access btSubSimplexClosestResult) return Boolean is use impact.d3.Vector; tempResult : aliased btSubSimplexClosestResult; bestSqDist, sqDist : math.Real; pointOutsideABC, pointOutsideACD, pointOutsideADB, pointOutsideBDC : Boolean; q : math.Vector_3; unused : Boolean; pragma Unreferenced (unused); begin -- Start out assuming point inside all halfspaces, so closest to itself -- finalResult.m_closestPointOnSimplex := p; reset (finalResult.m_usedVertices); finalResult.m_usedVertices.usedVertexA := True; finalResult.m_usedVertices.usedVertexB := True; finalResult.m_usedVertices.usedVertexC := True; finalResult.m_usedVertices.usedVertexD := True; begin pointOutsideABC := Self.pointOutsideOfPlane (p, a, b, c, d); pointOutsideACD := Self.pointOutsideOfPlane (p, a, c, d, b); pointOutsideADB := Self.pointOutsideOfPlane (p, a, d, b, c); pointOutsideBDC := Self.pointOutsideOfPlane (p, b, d, c, a); exception when degenerate_Triangle => finalResult.m_degenerate := True; return False; end; if not pointOutsideABC and then not pointOutsideACD and then not pointOutsideADB and then not pointOutsideBDC then return False; end if; bestSqDist := math.Infinity; -- If point outside face abc then compute closest point on abc if pointOutsideABC then unused := closestPtPointTriangle (Self, p, a, b, c, tempResult'Access); q := tempResult.m_closestPointOnSimplex; sqDist := dot (q - p, q - p); -- Update best closest point if (squared) distance is less than current best if sqDist < bestSqDist then bestSqDist := sqDist; finalResult.m_closestPointOnSimplex := q; -- convert result bitmask! reset (finalResult.m_usedVertices); finalResult.m_usedVertices.usedVertexA := tempResult.m_usedVertices.usedVertexA; finalResult.m_usedVertices.usedVertexB := tempResult.m_usedVertices.usedVertexB; finalResult.m_usedVertices.usedVertexC := tempResult.m_usedVertices.usedVertexC; setBarycentricCoordinates (finalResult.all, tempResult.m_barycentricCoords (VERTA), tempResult.m_barycentricCoords (VERTB), tempResult.m_barycentricCoords (VERTC), 0.0); end if; end if; -- Repeat test for face acd if pointOutsideACD then unused := closestPtPointTriangle (Self, p, a, c, d, tempResult'Access); q := tempResult.m_closestPointOnSimplex; -- convert result bitmask! sqDist := dot (q - p, q - p); if sqDist < bestSqDist then bestSqDist := sqDist; finalResult.m_closestPointOnSimplex := q; reset (finalResult.m_usedVertices); finalResult.m_usedVertices.usedVertexA := tempResult.m_usedVertices.usedVertexA; finalResult.m_usedVertices.usedVertexC := tempResult.m_usedVertices.usedVertexB; finalResult.m_usedVertices.usedVertexD := tempResult.m_usedVertices.usedVertexC; setBarycentricCoordinates (finalResult.all, tempResult.m_barycentricCoords (VERTA), 0.0, tempResult.m_barycentricCoords (VERTB), tempResult.m_barycentricCoords (VERTC)); end if; end if; -- Repeat test for face adb if pointOutsideADB then unused := closestPtPointTriangle (Self, p, a, d, b, tempResult'Access); q := tempResult.m_closestPointOnSimplex; -- convert result bitmask! sqDist := dot (q - p, q - p); if sqDist < bestSqDist then bestSqDist := sqDist; finalResult.m_closestPointOnSimplex := q; reset (finalResult.m_usedVertices); finalResult.m_usedVertices.usedVertexA := tempResult.m_usedVertices.usedVertexA; finalResult.m_usedVertices.usedVertexB := tempResult.m_usedVertices.usedVertexC; finalResult.m_usedVertices.usedVertexD := tempResult.m_usedVertices.usedVertexB; setBarycentricCoordinates (finalResult.all, tempResult.m_barycentricCoords (VERTA), tempResult.m_barycentricCoords (VERTC), 0.0, tempResult.m_barycentricCoords (VERTB)); end if; end if; -- Repeat test for face bdc if pointOutsideBDC then unused := closestPtPointTriangle (Self, p, b, d, c, tempResult'Access); q := tempResult.m_closestPointOnSimplex; -- convert result bitmask! sqDist := dot (q - p, q - p); if sqDist < bestSqDist then bestSqDist := sqDist; finalResult.m_closestPointOnSimplex := q; reset (finalResult.m_usedVertices); -- finalResult.m_usedVertices.usedVertexB := tempResult.m_usedVertices.usedVertexA; finalResult.m_usedVertices.usedVertexC := tempResult.m_usedVertices.usedVertexC; finalResult.m_usedVertices.usedVertexD := tempResult.m_usedVertices.usedVertexB; setBarycentricCoordinates (finalResult.all, 0.0, tempResult.m_barycentricCoords (VERTA), tempResult.m_barycentricCoords (VERTC), tempResult.m_barycentricCoords (VERTB)); end if; end if; -- help! we ended up full ! if finalResult.m_usedVertices.usedVertexA and then finalResult.m_usedVertices.usedVertexB and then finalResult.m_usedVertices.usedVertexC and then finalResult.m_usedVertices.usedVertexD then return True; end if; return True; end closestPtPointTetrahedron; function pointOutsideOfPlane (Self : in Item; p : in math.Vector_3; a, b, c, d : in math.Vector_3) return Boolean is pragma Unreferenced (Self); use impact.d3.Vector; normal : constant math.Vector_3 := cross (b - a, c - a); signp : constant math.Real := dot (p - a, normal); -- [AP AB AC] signd : constant math.Real := dot (d - a, normal); -- [AD AB AC] begin if CATCH_DEGENERATE_TETRAHEDRON then -- if BT_USE_DOUBLE_PRECISION then if signd * signd < (1.0e-8 * 1.0e-8) then raise degenerate_Triangle; end if; -- else -- if signd * signd < (1.0e-4 * 1.0e-4) then -- -- printf("affine dependent/degenerate\n");// -- raise degenerate_triangle_Error; -- end if; -- end if; end if; -- Points on opposite sides if expression signs are opposite -- return signp * signd < 0.0; end pointOutsideOfPlane; function closestPtPointTriangle (Self : in Item; p : in math.Vector_3; a, b, c : in math.Vector_3; Result : access btSubSimplexClosestResult) return Boolean is pragma Unreferenced (Self); use impact.d3.Vector; begin reset (result.m_usedVertices); -- Check if P in vertex region outside A declare ab : constant math.Vector_3 := b - a; ac : constant math.Vector_3 := c - a; ap : constant math.Vector_3 := p - a; d1 : math.Real := dot (ab, ap); d2 : math.Real := dot (ac, ap); begin if d1 <= 0.0 and then d2 <= 0.0 then result.m_closestPointOnSimplex := a; result.m_usedVertices.usedVertexA := True; setBarycentricCoordinates (result.all, 1.0, 0.0, 0.0); return True; -- a; // barycentric coordinates (1,0,0) end if; -- Check if P in vertex region outside B declare bp : constant math.Vector_3 := p - b; d3 : math.Real := dot (ab, bp); d4 : math.Real := dot (ac, bp); begin if d3 >= 0.0 and then d4 <= d3 then result.m_closestPointOnSimplex := b; result.m_usedVertices.usedVertexB := True; setBarycentricCoordinates (result.all, 0.0, 1.0, 0.0); return True; -- b; // barycentric coordinates (0,1,0) end if; -- Check if P in edge region of AB, if so return projection of P onto AB declare vc : math.Real := d1 * d4 - d3*d2; v : math.Real; begin if vc <= 0.0 and then d1 >= 0.0 and then d3 <= 0.0 then v := d1 / (d1 - d3); result.m_closestPointOnSimplex := a + v * ab; result.m_usedVertices.usedVertexA := True; result.m_usedVertices.usedVertexB := True; setBarycentricCoordinates (result.all, 1.0-v, v, 0.0); return True; -- return a + v * ab; // barycentric coordinates (1-v,v,0) end if; -- Check if P in vertex region outside C declare cp : constant math.Vector_3 := p - c; d5 : math.Real := dot (ab, cp); d6 : math.Real := dot (ac, cp); begin if d6 >= 0.0 and then d5 <= d6 then result.m_closestPointOnSimplex := c; result.m_usedVertices.usedVertexC := True; setBarycentricCoordinates (result.all, 0.0, 0.0, 1.0); return True; -- //c; // barycentric coordinates (0,0,1) end if; -- Check if P in edge region of AC, if so return projection of P onto AC declare vb : math.Real := d5 * d2 - d1*d6; w : math.Real; begin if vb <= 0.0 and then d2 >= 0.0 and then d6 <= 0.0 then w := d2 / (d2 - d6); result.m_closestPointOnSimplex := a + w * ac; result.m_usedVertices.usedVertexA := True; result.m_usedVertices.usedVertexC := True; setBarycentricCoordinates (result.all, 1.0-w, 0.0, w); return True; -- return a + w * ac; // barycentric coordinates (1-w,0,w) end if; -- Check if P in edge region of BC, if so return projection of P onto BC declare va : math.Real := d3 * d6 - d5*d4; w : math.Real; begin if va <= 0.0 and then (d4 - d3) >= 0.0 and then (d5 - d6) >= 0.0 then w := (d4 - d3) / ((d4 - d3) + (d5 - d6)); result.m_closestPointOnSimplex := b + w * (c - b); result.m_usedVertices.usedVertexB := True; result.m_usedVertices.usedVertexC := True; setBarycentricCoordinates (result.all, 0.0, 1.0-w, w); return True; -- // return b + w * (c - b); // barycentric coordinates (0,1-w,w) end if; -- P inside face region. Compute Q through its barycentric coordinates (u,v,w) declare denom : constant math.Real := 1.0 / (va + vb + vc); v : constant math.Real := vb * denom; w : constant math.Real := vc * denom; begin result.m_closestPointOnSimplex := a + ab * v + ac * w; result.m_usedVertices.usedVertexA := True; result.m_usedVertices.usedVertexB := True; result.m_usedVertices.usedVertexC := True; setBarycentricCoordinates (result.all, 1.0-v-w, v, w); return True; -- return a + ab * v + ac * w; // = u*a + v*b + w*c, u = va * denom = impact.d3.Scalar(1.0) - v - w end; end; end; end; end; end; end; end closestPtPointTriangle; end impact.d3.collision.simplex_Solver.voronoi;
31.796209
149
0.532717