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
0e0394212c8d6ea45078866b30c46ce51cd2ae46
357
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/incomplete5.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/incomplete5.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/incomplete5.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
with Incomplete5_Pkg; package Incomplete5 is type Rec1 is private; type Rec2 is private; package My_G is new Incomplete5_Pkg (Rec1); use My_G; function Get (O: Base_Object) return Integer; private type Rec1 is record I : Integer; end record; type Rec2 is record A : Access_Type; end record; end Incomplete5;
13.730769
48
0.677871
0e83dd6193723017c5b081b3f0f1d99d284bb3d7
4,286
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-poosiz.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/s-poosiz.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-poosiz.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . P O O L _ S I Z E -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2011, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- 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_Pools; with System.Storage_Elements; package System.Pool_Size is pragma Elaborate_Body; -- Needed to ensure that library routines can execute allocators ------------------------ -- Stack_Bounded_Pool -- ------------------------ -- Allocation strategy: -- Pool is a regular stack array, no use of malloc -- user specified size -- Space of pool is globally reclaimed by normal stack management -- Used in the compiler for access types with 'STORAGE_SIZE rep. clause -- Only used for allocating objects of the same type. type Stack_Bounded_Pool (Pool_Size : System.Storage_Elements.Storage_Count; Elmt_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count) is new System.Storage_Pools.Root_Storage_Pool with record First_Free : System.Storage_Elements.Storage_Count; First_Empty : System.Storage_Elements.Storage_Count; Aligned_Elmt_Size : System.Storage_Elements.Storage_Count; The_Pool : System.Storage_Elements.Storage_Array (1 .. Pool_Size); end record; overriding function Storage_Size (Pool : Stack_Bounded_Pool) return System.Storage_Elements.Storage_Count; overriding procedure Allocate (Pool : in out Stack_Bounded_Pool; Address : out System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); overriding procedure Deallocate (Pool : in out Stack_Bounded_Pool; Address : System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); overriding procedure Initialize (Pool : in out Stack_Bounded_Pool); end System.Pool_Size;
51.638554
79
0.505133
18e3e18f59d2992a2d722a15ecaaa9f3f511d261
24,975
ads
Ada
arch/ARM/STM32/svd/stm32f103/stm32_svd-adc.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/stm32f103/stm32_svd-adc.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32f103/stm32_svd-adc.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- -- status register type SR_Register is record -- Analog watchdog flag AWD : Boolean := False; -- Regular channel end of conversion EOC : Boolean := False; -- Injected channel end of conversion JEOC : Boolean := False; -- Injected channel start flag JSTRT : Boolean := False; -- Regular channel start flag STRT : Boolean := False; -- unspecified Reserved_5_31 : HAL.UInt27 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record AWD at 0 range 0 .. 0; EOC at 0 range 1 .. 1; JEOC at 0 range 2 .. 2; JSTRT at 0 range 3 .. 3; STRT at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; subtype CR1_AWDCH_Field is HAL.UInt5; subtype CR1_DISCNUM_Field is HAL.UInt3; subtype CR1_DUALMOD_Field is HAL.UInt4; -- control register 1 type CR1_Register is record -- Analog watchdog channel select bits AWDCH : CR1_AWDCH_Field := 16#0#; -- Interrupt enable for EOC EOCIE : Boolean := False; -- Analog watchdog interrupt enable AWDIE : Boolean := False; -- Interrupt enable for injected channels JEOCIE : Boolean := False; -- Scan mode SCAN : Boolean := False; -- Enable the watchdog on a single channel in scan mode AWDSGL : Boolean := False; -- Automatic injected group conversion JAUTO : Boolean := False; -- Discontinuous mode on regular channels DISCEN : Boolean := False; -- Discontinuous mode on injected channels JDISCEN : Boolean := False; -- Discontinuous mode channel count DISCNUM : CR1_DISCNUM_Field := 16#0#; -- Dual mode selection DUALMOD : CR1_DUALMOD_Field := 16#0#; -- unspecified Reserved_20_21 : HAL.UInt2 := 16#0#; -- Analog watchdog enable on injected channels JAWDEN : Boolean := False; -- Analog watchdog enable on regular channels AWDEN : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record AWDCH at 0 range 0 .. 4; EOCIE at 0 range 5 .. 5; AWDIE at 0 range 6 .. 6; JEOCIE at 0 range 7 .. 7; SCAN at 0 range 8 .. 8; AWDSGL at 0 range 9 .. 9; JAUTO at 0 range 10 .. 10; DISCEN at 0 range 11 .. 11; JDISCEN at 0 range 12 .. 12; DISCNUM at 0 range 13 .. 15; DUALMOD at 0 range 16 .. 19; Reserved_20_21 at 0 range 20 .. 21; JAWDEN at 0 range 22 .. 22; AWDEN at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CR2_JEXTSEL_Field is HAL.UInt3; subtype CR2_EXTSEL_Field is HAL.UInt3; -- control register 2 type CR2_Register is record -- A/D converter ON / OFF ADON : Boolean := False; -- Continuous conversion CONT : Boolean := False; -- A/D calibration CAL : Boolean := False; -- Reset calibration RSTCAL : Boolean := False; -- unspecified Reserved_4_7 : HAL.UInt4 := 16#0#; -- Direct memory access mode DMA : Boolean := False; -- unspecified Reserved_9_10 : HAL.UInt2 := 16#0#; -- Data alignment ALIGN : Boolean := False; -- External event select for injected group JEXTSEL : CR2_JEXTSEL_Field := 16#0#; -- External trigger conversion mode for injected channels JEXTTRIG : Boolean := False; -- unspecified Reserved_16_16 : HAL.Bit := 16#0#; -- External event select for regular group EXTSEL : CR2_EXTSEL_Field := 16#0#; -- External trigger conversion mode for regular channels EXTTRIG : Boolean := False; -- Start conversion of injected channels JSWSTART : Boolean := False; -- Start conversion of regular channels SWSTART : Boolean := False; -- Temperature sensor and VREFINT enable TSVREFE : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record ADON at 0 range 0 .. 0; CONT at 0 range 1 .. 1; CAL at 0 range 2 .. 2; RSTCAL at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; DMA at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; ALIGN at 0 range 11 .. 11; JEXTSEL at 0 range 12 .. 14; JEXTTRIG at 0 range 15 .. 15; Reserved_16_16 at 0 range 16 .. 16; EXTSEL at 0 range 17 .. 19; EXTTRIG at 0 range 20 .. 20; JSWSTART at 0 range 21 .. 21; SWSTART at 0 range 22 .. 22; TSVREFE at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- SMPR1_SMP array element subtype SMPR1_SMP_Element is HAL.UInt3; -- SMPR1_SMP array type SMPR1_SMP_Field_Array is array (10 .. 17) of SMPR1_SMP_Element with Component_Size => 3, Size => 24; -- Type definition for SMPR1_SMP type SMPR1_SMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- SMP as a value Val : HAL.UInt24; when True => -- SMP as an array Arr : SMPR1_SMP_Field_Array; end case; end record with Unchecked_Union, Size => 24; for SMPR1_SMP_Field use record Val at 0 range 0 .. 23; Arr at 0 range 0 .. 23; end record; -- sample time register 1 type SMPR1_Register is record -- Channel 10 sample time selection SMP : SMPR1_SMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SMPR1_Register use record SMP at 0 range 0 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- SMPR2_SMP array element subtype SMPR2_SMP_Element is HAL.UInt3; -- SMPR2_SMP array type SMPR2_SMP_Field_Array is array (0 .. 9) of SMPR2_SMP_Element with Component_Size => 3, Size => 30; -- Type definition for SMPR2_SMP type SMPR2_SMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- SMP as a value Val : HAL.UInt30; when True => -- SMP as an array Arr : SMPR2_SMP_Field_Array; end case; end record with Unchecked_Union, Size => 30; for SMPR2_SMP_Field use record Val at 0 range 0 .. 29; Arr at 0 range 0 .. 29; end record; -- sample time register 2 type SMPR2_Register is record -- Channel 0 sample time selection SMP : SMPR2_SMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SMPR2_Register use record SMP at 0 range 0 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype JOFR1_JOFFSET1_Field is HAL.UInt12; -- injected channel data offset register x type JOFR1_Register is record -- Data offset for injected channel x JOFFSET1 : JOFR1_JOFFSET1_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JOFR1_Register use record JOFFSET1 at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype JOFR2_JOFFSET2_Field is HAL.UInt12; -- injected channel data offset register x type JOFR2_Register is record -- Data offset for injected channel x JOFFSET2 : JOFR2_JOFFSET2_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JOFR2_Register use record JOFFSET2 at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype JOFR3_JOFFSET3_Field is HAL.UInt12; -- injected channel data offset register x type JOFR3_Register is record -- Data offset for injected channel x JOFFSET3 : JOFR3_JOFFSET3_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JOFR3_Register use record JOFFSET3 at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype JOFR4_JOFFSET4_Field is HAL.UInt12; -- injected channel data offset register x type JOFR4_Register is record -- Data offset for injected channel x JOFFSET4 : JOFR4_JOFFSET4_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JOFR4_Register use record JOFFSET4 at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype HTR_HT_Field is HAL.UInt12; -- watchdog higher threshold register type HTR_Register is record -- Analog watchdog higher threshold HT : HTR_HT_Field := 16#FFF#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HTR_Register use record HT at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype LTR_LT_Field is HAL.UInt12; -- watchdog lower threshold register type LTR_Register is record -- Analog watchdog lower threshold LT : LTR_LT_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for LTR_Register use record LT at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; -- SQR1_SQ array element subtype SQR1_SQ_Element is HAL.UInt5; -- SQR1_SQ array type SQR1_SQ_Field_Array is array (13 .. 16) of SQR1_SQ_Element with Component_Size => 5, Size => 20; -- Type definition for SQR1_SQ type SQR1_SQ_Field (As_Array : Boolean := False) is record case As_Array is when False => -- SQ as a value Val : HAL.UInt20; when True => -- SQ as an array Arr : SQR1_SQ_Field_Array; end case; end record with Unchecked_Union, Size => 20; for SQR1_SQ_Field use record Val at 0 range 0 .. 19; Arr at 0 range 0 .. 19; end record; subtype SQR1_L_Field is HAL.UInt4; -- regular sequence register 1 type SQR1_Register is record -- 13th conversion in regular sequence SQ : SQR1_SQ_Field := (As_Array => False, Val => 16#0#); -- Regular channel sequence length L : SQR1_L_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SQR1_Register use record SQ at 0 range 0 .. 19; L at 0 range 20 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- SQR2_SQ array element subtype SQR2_SQ_Element is HAL.UInt5; -- SQR2_SQ array type SQR2_SQ_Field_Array is array (7 .. 12) of SQR2_SQ_Element with Component_Size => 5, Size => 30; -- Type definition for SQR2_SQ type SQR2_SQ_Field (As_Array : Boolean := False) is record case As_Array is when False => -- SQ as a value Val : HAL.UInt30; when True => -- SQ as an array Arr : SQR2_SQ_Field_Array; end case; end record with Unchecked_Union, Size => 30; for SQR2_SQ_Field use record Val at 0 range 0 .. 29; Arr at 0 range 0 .. 29; end record; -- regular sequence register 2 type SQR2_Register is record -- 7th conversion in regular sequence SQ : SQR2_SQ_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SQR2_Register use record SQ at 0 range 0 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; -- SQR3_SQ array element subtype SQR3_SQ_Element is HAL.UInt5; -- SQR3_SQ array type SQR3_SQ_Field_Array is array (1 .. 6) of SQR3_SQ_Element with Component_Size => 5, Size => 30; -- Type definition for SQR3_SQ type SQR3_SQ_Field (As_Array : Boolean := False) is record case As_Array is when False => -- SQ as a value Val : HAL.UInt30; when True => -- SQ as an array Arr : SQR3_SQ_Field_Array; end case; end record with Unchecked_Union, Size => 30; for SQR3_SQ_Field use record Val at 0 range 0 .. 29; Arr at 0 range 0 .. 29; end record; -- regular sequence register 3 type SQR3_Register is record -- 1st conversion in regular sequence SQ : SQR3_SQ_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SQR3_Register use record SQ at 0 range 0 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; -- JSQR_JSQ array element subtype JSQR_JSQ_Element is HAL.UInt5; -- JSQR_JSQ array type JSQR_JSQ_Field_Array is array (1 .. 4) of JSQR_JSQ_Element with Component_Size => 5, Size => 20; -- Type definition for JSQR_JSQ type JSQR_JSQ_Field (As_Array : Boolean := False) is record case As_Array is when False => -- JSQ as a value Val : HAL.UInt20; when True => -- JSQ as an array Arr : JSQR_JSQ_Field_Array; end case; end record with Unchecked_Union, Size => 20; for JSQR_JSQ_Field use record Val at 0 range 0 .. 19; Arr at 0 range 0 .. 19; end record; subtype JSQR_JL_Field is HAL.UInt2; -- injected sequence register type JSQR_Register is record -- 1st conversion in injected sequence JSQ : JSQR_JSQ_Field := (As_Array => False, Val => 16#0#); -- Injected sequence length JL : JSQR_JL_Field := 16#0#; -- unspecified Reserved_22_31 : HAL.UInt10 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JSQR_Register use record JSQ at 0 range 0 .. 19; JL at 0 range 20 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; subtype JDR_JDATA_Field is HAL.UInt16; -- injected data register x type JDR_Register is record -- Read-only. Injected data JDATA : JDR_JDATA_Field; -- unspecified Reserved_16_31 : HAL.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for JDR_Register use record JDATA at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype DR_DATA_Field is HAL.UInt16; subtype DR_ADC2DATA_Field is HAL.UInt16; -- regular data register type DR_Register is record -- Read-only. Regular data DATA : DR_DATA_Field; -- Read-only. ADC2 data ADC2DATA : DR_ADC2DATA_Field; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DR_Register use record DATA at 0 range 0 .. 15; ADC2DATA at 0 range 16 .. 31; end record; -- control register 1 type CR1_Register_1 is record -- Analog watchdog channel select bits AWDCH : CR1_AWDCH_Field := 16#0#; -- Interrupt enable for EOC EOCIE : Boolean := False; -- Analog watchdog interrupt enable AWDIE : Boolean := False; -- Interrupt enable for injected channels JEOCIE : Boolean := False; -- Scan mode SCAN : Boolean := False; -- Enable the watchdog on a single channel in scan mode AWDSGL : Boolean := False; -- Automatic injected group conversion JAUTO : Boolean := False; -- Discontinuous mode on regular channels DISCEN : Boolean := False; -- Discontinuous mode on injected channels JDISCEN : Boolean := False; -- Discontinuous mode channel count DISCNUM : CR1_DISCNUM_Field := 16#0#; -- unspecified Reserved_16_21 : HAL.UInt6 := 16#0#; -- Analog watchdog enable on injected channels JAWDEN : Boolean := False; -- Analog watchdog enable on regular channels AWDEN : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register_1 use record AWDCH at 0 range 0 .. 4; EOCIE at 0 range 5 .. 5; AWDIE at 0 range 6 .. 6; JEOCIE at 0 range 7 .. 7; SCAN at 0 range 8 .. 8; AWDSGL at 0 range 9 .. 9; JAUTO at 0 range 10 .. 10; DISCEN at 0 range 11 .. 11; JDISCEN at 0 range 12 .. 12; DISCNUM at 0 range 13 .. 15; Reserved_16_21 at 0 range 16 .. 21; JAWDEN at 0 range 22 .. 22; AWDEN at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- regular data register type DR_Register_1 is record -- Read-only. Regular data DATA : DR_DATA_Field; -- unspecified Reserved_16_31 : HAL.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DR_Register_1 use record DATA at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Analog to digital converter type ADC1_Peripheral is record -- status register SR : aliased SR_Register; -- control register 1 CR1 : aliased CR1_Register; -- control register 2 CR2 : aliased CR2_Register; -- sample time register 1 SMPR1 : aliased SMPR1_Register; -- sample time register 2 SMPR2 : aliased SMPR2_Register; -- injected channel data offset register x JOFR1 : aliased JOFR1_Register; -- injected channel data offset register x JOFR2 : aliased JOFR2_Register; -- injected channel data offset register x JOFR3 : aliased JOFR3_Register; -- injected channel data offset register x JOFR4 : aliased JOFR4_Register; -- watchdog higher threshold register HTR : aliased HTR_Register; -- watchdog lower threshold register LTR : aliased LTR_Register; -- regular sequence register 1 SQR1 : aliased SQR1_Register; -- regular sequence register 2 SQR2 : aliased SQR2_Register; -- regular sequence register 3 SQR3 : aliased SQR3_Register; -- injected sequence register JSQR : aliased JSQR_Register; -- injected data register x JDR1 : aliased JDR_Register; -- injected data register x JDR2 : aliased JDR_Register; -- injected data register x JDR3 : aliased JDR_Register; -- injected data register x JDR4 : aliased JDR_Register; -- regular data register DR : aliased DR_Register; end record with Volatile; for ADC1_Peripheral use record SR at 16#0# range 0 .. 31; CR1 at 16#4# range 0 .. 31; CR2 at 16#8# range 0 .. 31; SMPR1 at 16#C# range 0 .. 31; SMPR2 at 16#10# range 0 .. 31; JOFR1 at 16#14# range 0 .. 31; JOFR2 at 16#18# range 0 .. 31; JOFR3 at 16#1C# range 0 .. 31; JOFR4 at 16#20# range 0 .. 31; HTR at 16#24# range 0 .. 31; LTR at 16#28# range 0 .. 31; SQR1 at 16#2C# range 0 .. 31; SQR2 at 16#30# range 0 .. 31; SQR3 at 16#34# range 0 .. 31; JSQR at 16#38# range 0 .. 31; JDR1 at 16#3C# range 0 .. 31; JDR2 at 16#40# range 0 .. 31; JDR3 at 16#44# range 0 .. 31; JDR4 at 16#48# range 0 .. 31; DR at 16#4C# range 0 .. 31; end record; -- Analog to digital converter ADC1_Periph : aliased ADC1_Peripheral with Import, Address => System'To_Address (16#40012400#); -- Analog to digital converter type ADC_Peripheral is record -- status register SR : aliased SR_Register; -- control register 1 CR1 : aliased CR1_Register_1; -- control register 2 CR2 : aliased CR2_Register; -- sample time register 1 SMPR1 : aliased SMPR1_Register; -- sample time register 2 SMPR2 : aliased SMPR2_Register; -- injected channel data offset register x JOFR1 : aliased JOFR1_Register; -- injected channel data offset register x JOFR2 : aliased JOFR2_Register; -- injected channel data offset register x JOFR3 : aliased JOFR3_Register; -- injected channel data offset register x JOFR4 : aliased JOFR4_Register; -- watchdog higher threshold register HTR : aliased HTR_Register; -- watchdog lower threshold register LTR : aliased LTR_Register; -- regular sequence register 1 SQR1 : aliased SQR1_Register; -- regular sequence register 2 SQR2 : aliased SQR2_Register; -- regular sequence register 3 SQR3 : aliased SQR3_Register; -- injected sequence register JSQR : aliased JSQR_Register; -- injected data register x JDR1 : aliased JDR_Register; -- injected data register x JDR2 : aliased JDR_Register; -- injected data register x JDR3 : aliased JDR_Register; -- injected data register x JDR4 : aliased JDR_Register; -- regular data register DR : aliased DR_Register_1; end record with Volatile; for ADC_Peripheral use record SR at 16#0# range 0 .. 31; CR1 at 16#4# range 0 .. 31; CR2 at 16#8# range 0 .. 31; SMPR1 at 16#C# range 0 .. 31; SMPR2 at 16#10# range 0 .. 31; JOFR1 at 16#14# range 0 .. 31; JOFR2 at 16#18# range 0 .. 31; JOFR3 at 16#1C# range 0 .. 31; JOFR4 at 16#20# range 0 .. 31; HTR at 16#24# range 0 .. 31; LTR at 16#28# range 0 .. 31; SQR1 at 16#2C# range 0 .. 31; SQR2 at 16#30# range 0 .. 31; SQR3 at 16#34# range 0 .. 31; JSQR at 16#38# range 0 .. 31; JDR1 at 16#3C# range 0 .. 31; JDR2 at 16#40# range 0 .. 31; JDR3 at 16#44# range 0 .. 31; JDR4 at 16#48# range 0 .. 31; DR at 16#4C# range 0 .. 31; end record; -- Analog to digital converter ADC2_Periph : aliased ADC_Peripheral with Import, Address => System'To_Address (16#40012800#); -- Analog to digital converter ADC3_Periph : aliased ADC_Peripheral with Import, Address => System'To_Address (16#40013C00#); end STM32_SVD.ADC;
31.896552
76
0.584264
dff05d8859c58937a5dae484e53be4378589b20a
54,901
adb
Ada
HLS/lab3/dct.prj/solution7/.autopilot/db/dct.bind.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
1
2021-03-03T16:53:52.000Z
2021-03-03T16:53:52.000Z
HLS/lab3/dct.prj/solution7/.autopilot/db/dct.bind.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
null
null
null
HLS/lab3/dct.prj/solution7/.autopilot/db/dct.bind.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>dct</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>input_r</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>input</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>64</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>output_r</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>output</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>64</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>12</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>7</id> <name>row_outbuf_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>22</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>8</id> <name>col_outbuf_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>23</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>9</id> <name>col_inbuf</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>27</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second class_id="12" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="13" tracking_level="0" version="0"> <first class_id="14" tracking_level="0" version="0"> <first>dct.c</first> <second>dct</second> </first> <second>87</second> </item> <item> <first> <first>dct.c</first> <second>dct_2d</second> </first> <second>27</second> </item> </second> </item> </inlineStackInfo> <originalName>col_inbuf</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>24</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</id> <name>buf_2d_in</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>81</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct</second> </first> <second>81</second> </item> </second> </item> </inlineStackInfo> <originalName>buf_2d_in</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>25</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</id> <name>buf_2d_out</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>82</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct</second> </first> <second>82</second> </item> </second> </item> </inlineStackInfo> <originalName>buf_2d_out</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>26</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>13</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>28</item> <item>29</item> <item>30</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>14</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>6</count> <item_version>0</item_version> <item>32</item> <item>33</item> <item>34</item> <item>51</item> <item>72</item> <item>73</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>15</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>36</item> <item>37</item> <item>38</item> <item>71</item> <item>74</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>16</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>6</count> <item_version>0</item_version> <item>40</item> <item>41</item> <item>42</item> <item>52</item> <item>70</item> <item>75</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>17</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>44</item> <item>45</item> <item>46</item> <item>69</item> <item>76</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>18</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>90</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct</second> </first> <second>90</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>48</item> <item>49</item> <item>50</item> <item>68</item> <item>77</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>19</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>91</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct</second> </first> <second>91</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_15"> <Value> <Obj> <type>2</type> <id>21</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_16"> <Value> <Obj> <type>2</type> <id>27</id> <name>read_data</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:read_data&gt;</content> </item> <item class_id_reference="16" object_id="_17"> <Value> <Obj> <type>2</type> <id>31</id> <name>Loop_Row_DCT_Loop_pr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_Row_DCT_Loop_pr&gt;</content> </item> <item class_id_reference="16" object_id="_18"> <Value> <Obj> <type>2</type> <id>35</id> <name>Loop_Xpose_Row_Outer</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_Xpose_Row_Outer&gt;</content> </item> <item class_id_reference="16" object_id="_19"> <Value> <Obj> <type>2</type> <id>39</id> <name>Loop_Col_DCT_Loop_pr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_Col_DCT_Loop_pr&gt;</content> </item> <item class_id_reference="16" object_id="_20"> <Value> <Obj> <type>2</type> <id>43</id> <name>Loop_Xpose_Col_Outer</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_Xpose_Col_Outer&gt;</content> </item> <item class_id_reference="16" object_id="_21"> <Value> <Obj> <type>2</type> <id>47</id> <name>write_data</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:write_data&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="_22"> <Obj> <type>3</type> <id>20</id> <name>dct</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>12</count> <item_version>0</item_version> <item>7</item> <item>8</item> <item>9</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>35</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_23"> <id>22</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_24"> <id>23</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_25"> <id>24</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_26"> <id>25</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_27"> <id>26</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_28"> <id>28</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_29"> <id>29</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_30"> <id>30</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_31"> <id>32</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_32"> <id>33</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_33"> <id>34</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_34"> <id>36</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_35"> <id>37</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_36"> <id>38</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_37"> <id>40</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_38"> <id>41</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_39"> <id>42</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_40"> <id>44</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_41"> <id>45</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_42"> <id>46</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_43"> <id>48</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_44"> <id>49</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_45"> <id>50</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_46"> <id>51</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_47"> <id>52</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_48"> <id>68</id> <edge_type>4</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_49"> <id>69</id> <edge_type>4</edge_type> <source_obj>16</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_50"> <id>70</id> <edge_type>4</edge_type> <source_obj>15</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_51"> <id>71</id> <edge_type>4</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_52"> <id>72</id> <edge_type>4</edge_type> <source_obj>13</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_53"> <id>73</id> <edge_type>4</edge_type> <source_obj>13</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_54"> <id>74</id> <edge_type>4</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_55"> <id>75</id> <edge_type>4</edge_type> <source_obj>15</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_56"> <id>76</id> <edge_type>4</edge_type> <source_obj>16</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_57"> <id>77</id> <edge_type>4</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_58"> <mId>1</mId> <mTag>dct</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>20</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>647</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_59"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_60"> <type>0</type> <name>read_data_U0</name> <ssdmobj_id>13</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_61"> <port class_id="29" tracking_level="1" version="0" object_id="_62"> <name>input</name> <dir>2</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_63"> <type>0</type> <name>read_data_U0</name> <ssdmobj_id>13</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_64"> <port class_id_reference="29" object_id="_65"> <name>buf</name> <dir>2</dir> <type>2</type> </port> <inst class_id_reference="30" object_id_reference="_63"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_66"> <type>0</type> <name>Loop_Row_DCT_Loop_pr_U0</name> <ssdmobj_id>14</ssdmobj_id> <pins> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_67"> <port class_id_reference="29" object_id="_68"> <name>buf_2d_in</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_69"> <type>0</type> <name>Loop_Row_DCT_Loop_pr_U0</name> <ssdmobj_id>14</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_70"> <port class_id_reference="29" object_id="_71"> <name>row_outbuf_i</name> <dir>2</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_69"></inst> </item> <item class_id_reference="28" object_id="_72"> <port class_id_reference="29" object_id="_73"> <name>dct_coeff_table</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_69"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_74"> <type>0</type> <name>Loop_Xpose_Row_Outer_U0</name> <ssdmobj_id>15</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_75"> <port class_id_reference="29" object_id="_76"> <name>row_outbuf_i</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_77"> <type>0</type> <name>Loop_Xpose_Row_Outer_U0</name> <ssdmobj_id>15</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_78"> <port class_id_reference="29" object_id="_79"> <name>col_inbuf</name> <dir>2</dir> <type>2</type> </port> <inst class_id_reference="30" object_id_reference="_77"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_80"> <type>0</type> <name>Loop_Col_DCT_Loop_pr_U0</name> <ssdmobj_id>16</ssdmobj_id> <pins> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_81"> <port class_id_reference="29" object_id="_82"> <name>col_inbuf</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_83"> <type>0</type> <name>Loop_Col_DCT_Loop_pr_U0</name> <ssdmobj_id>16</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_84"> <port class_id_reference="29" object_id="_85"> <name>col_outbuf_i</name> <dir>2</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_83"></inst> </item> <item class_id_reference="28" object_id="_86"> <port class_id_reference="29" object_id="_87"> <name>dct_coeff_table</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_83"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_88"> <type>0</type> <name>Loop_Xpose_Col_Outer_U0</name> <ssdmobj_id>17</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_89"> <port class_id_reference="29" object_id="_90"> <name>col_outbuf_i</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_91"> <type>0</type> <name>Loop_Xpose_Col_Outer_U0</name> <ssdmobj_id>17</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_92"> <port class_id_reference="29" object_id="_93"> <name>buf_2d_out</name> <dir>2</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_91"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_94"> <type>0</type> <name>write_data_U0</name> <ssdmobj_id>18</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_95"> <port class_id_reference="29" object_id="_96"> <name>buf</name> <dir>2</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_97"> <type>0</type> <name>write_data_U0</name> <ssdmobj_id>18</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_98"> <port class_id_reference="29" object_id="_99"> <name>output</name> <dir>2</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_97"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="32" tracking_level="1" version="0" object_id="_100"> <type>1</type> <name>buf_2d_in</name> <ssdmobj_id>11</ssdmobj_id> <ctype>1</ctype> <depth>0</depth> <bitwidth>0</bitwidth> <source class_id_reference="28" object_id="_101"> <port class_id_reference="29" object_id="_102"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_63"></inst> </source> <sink class_id_reference="28" object_id="_103"> <port class_id_reference="29" object_id="_104"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_69"></inst> </sink> </item> <item class_id_reference="32" object_id="_105"> <type>1</type> <name>row_outbuf_i</name> <ssdmobj_id>7</ssdmobj_id> <ctype>1</ctype> <depth>0</depth> <bitwidth>0</bitwidth> <source class_id_reference="28" object_id="_106"> <port class_id_reference="29" object_id="_107"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_69"></inst> </source> <sink class_id_reference="28" object_id="_108"> <port class_id_reference="29" object_id="_109"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_77"></inst> </sink> </item> <item class_id_reference="32" object_id="_110"> <type>1</type> <name>col_inbuf</name> <ssdmobj_id>9</ssdmobj_id> <ctype>1</ctype> <depth>0</depth> <bitwidth>0</bitwidth> <source class_id_reference="28" object_id="_111"> <port class_id_reference="29" object_id="_112"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_77"></inst> </source> <sink class_id_reference="28" object_id="_113"> <port class_id_reference="29" object_id="_114"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_83"></inst> </sink> </item> <item class_id_reference="32" object_id="_115"> <type>1</type> <name>col_outbuf_i</name> <ssdmobj_id>8</ssdmobj_id> <ctype>1</ctype> <depth>0</depth> <bitwidth>0</bitwidth> <source class_id_reference="28" object_id="_116"> <port class_id_reference="29" object_id="_117"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_83"></inst> </source> <sink class_id_reference="28" object_id="_118"> <port class_id_reference="29" object_id="_119"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_91"></inst> </sink> </item> <item class_id_reference="32" object_id="_120"> <type>1</type> <name>buf_2d_out</name> <ssdmobj_id>12</ssdmobj_id> <ctype>1</ctype> <depth>0</depth> <bitwidth>0</bitwidth> <source class_id_reference="28" object_id="_121"> <port class_id_reference="29" object_id="_122"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_91"></inst> </source> <sink class_id_reference="28" object_id="_123"> <port class_id_reference="29" object_id="_124"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_97"></inst> </sink> </item> </channel_list> <net_list class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="34" tracking_level="1" version="0" object_id="_125"> <states class_id="35" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="36" tracking_level="1" version="0" object_id="_126"> <id>1</id> <operations class_id="37" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="38" tracking_level="1" version="0" object_id="_127"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_128"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_129"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_130"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_131"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_132"> <id>13</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_133"> <id>2</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_134"> <id>13</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_135"> <id>3</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_136"> <id>14</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_137"> <id>4</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_138"> <id>14</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_139"> <id>5</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_140"> <id>15</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_141"> <id>6</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_142"> <id>15</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_143"> <id>7</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_144"> <id>16</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_145"> <id>8</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_146"> <id>16</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_147"> <id>9</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_148"> <id>17</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_149"> <id>10</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_150"> <id>17</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_151"> <id>11</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_152"> <id>18</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_153"> <id>12</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_154"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_155"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_156"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_157"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_158"> <id>18</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_159"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="39" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="40" tracking_level="1" version="0" object_id="_160"> <inState>1</inState> <outState>2</outState> <condition class_id="41" tracking_level="0" version="0"> <id>0</id> <sop class_id="42" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_161"> <inState>2</inState> <outState>3</outState> <condition> <id>1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_162"> <inState>3</inState> <outState>4</outState> <condition> <id>2</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_163"> <inState>4</inState> <outState>5</outState> <condition> <id>3</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_164"> <inState>5</inState> <outState>6</outState> <condition> <id>4</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_165"> <inState>6</inState> <outState>7</outState> <condition> <id>5</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_166"> <inState>7</inState> <outState>8</outState> <condition> <id>6</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_167"> <inState>8</inState> <outState>9</outState> <condition> <id>7</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_168"> <inState>9</inState> <outState>10</outState> <condition> <id>8</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_169"> <inState>10</inState> <outState>11</outState> <condition> <id>9</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_170"> <inState>11</inState> <outState>12</outState> <condition> <id>10</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="-1"></res> <node_label_latency class_id="45" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>7</first> <second class_id="47" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>14</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>15</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>16</first> <second> <first>6</first> <second>1</second> </second> </item> <item> <first>17</first> <second> <first>8</first> <second>1</second> </second> </item> <item> <first>18</first> <second> <first>10</first> <second>1</second> </second> </item> <item> <first>19</first> <second> <first>11</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="48" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="49" tracking_level="0" version="0"> <first>20</first> <second class_id="50" tracking_level="0" version="0"> <first>0</first> <second>11</second> </second> </item> </bblk_ent_exit> <regions class_id="51" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="52" tracking_level="1" version="0" object_id="_171"> <region_name>dct</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>20</item> </basic_blocks> <nodes> <count>16</count> <item_version>0</item_version> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="53" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>32</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>36</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>40</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>44</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>52</first> <second> <count>2</count> <item_version>0</item_version> <item>13</item> <item>13</item> </second> </item> <item> <first>60</first> <second> <count>2</count> <item_version>0</item_version> <item>15</item> <item>15</item> </second> </item> <item> <first>66</first> <second> <count>2</count> <item_version>0</item_version> <item>14</item> <item>14</item> </second> </item> <item> <first>74</first> <second> <count>2</count> <item_version>0</item_version> <item>16</item> <item>16</item> </second> </item> <item> <first>82</first> <second> <count>2</count> <item_version>0</item_version> <item>18</item> <item>18</item> </second> </item> <item> <first>89</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>17</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="56" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="57" tracking_level="0" version="0"> <first>buf_2d_in_alloca_fu_44</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>buf_2d_out_alloca_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>col_inbuf_alloca_fu_40</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>col_outbuf_i_alloca_fu_36</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>row_outbuf_i_alloca_fu_32</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>6</count> <item_version>0</item_version> <item> <first>grp_Loop_Col_DCT_Loop_pr_fu_74</first> <second> <count>2</count> <item_version>0</item_version> <item>16</item> <item>16</item> </second> </item> <item> <first>grp_Loop_Row_DCT_Loop_pr_fu_66</first> <second> <count>2</count> <item_version>0</item_version> <item>14</item> <item>14</item> </second> </item> <item> <first>grp_Loop_Xpose_Col_Outer_fu_89</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>17</item> </second> </item> <item> <first>grp_Loop_Xpose_Row_Outer_fu_60</first> <second> <count>2</count> <item_version>0</item_version> <item>15</item> <item>15</item> </second> </item> <item> <first>grp_read_data_fu_52</first> <second> <count>2</count> <item_version>0</item_version> <item>13</item> <item>13</item> </second> </item> <item> <first>grp_write_data_fu_82</first> <second> <count>2</count> <item_version>0</item_version> <item>18</item> <item>18</item> </second> </item> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="58" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="59" tracking_level="0" version="0"> <first class_id="60" tracking_level="0" version="0"> <first>dct_coeff_table</first> <second>100</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>14</item> <item>16</item> </second> </item> </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="61" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="62" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="63" tracking_level="0" version="0"> <first>1</first> <second>RAM</second> </item> <item> <first>2</first> <second>RAM</second> </item> </port2core> <node2core> <count>5</count> <item_version>0</item_version> <item> <first>7</first> <second>RAM</second> </item> <item> <first>8</first> <second>RAM</second> </item> <item> <first>9</first> <second>RAM</second> </item> <item> <first>11</first> <second>RAM</second> </item> <item> <first>12</first> <second>RAM</second> </item> </node2core> </syndb> </boost_serialization>
26.535041
90
0.587621
102db6c4b71728bb4ccf4a8bb8964781dae4a8dd
4,416
adb
Ada
source/web/tools/a2js/properties-expressions-membership_test.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/web/tools/a2js/properties-expressions-membership_test.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/tools/a2js/properties-expressions-membership_test.adb
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$ ------------------------------------------------------------------------------ with Asis.Elements; with Asis.Expressions; package body Properties.Expressions.Membership_Test is ---------- -- Code -- ---------- function Code (Engine : access Engines.Contexts.Context; Element : Asis.Expression; Name : Engines.Text_Property) return League.Strings.Universal_String is Text : League.Strings.Universal_String; Down : League.Strings.Universal_String; List : constant Asis.Element_List := Asis.Expressions.Membership_Test_Choices (Element); begin pragma Assert (List'Length = 1); if Asis.Elements.Expression_Kind (Element) in Asis.A_Not_In_Membership_Test then Text.Append ("!"); end if; Text.Append ("_ec._in("); Down := Engine.Text.Get_Property (Asis.Expressions.Membership_Test_Expression (Element), Name); Text.Append (Down); Text.Append (", "); Text.Append (Engine.Text.Get_Property (List (1), Name)); Text.Append (")"); return Text; end Code; end Properties.Expressions.Membership_Test;
53.204819
78
0.446332
108035f68ac46044cbfde41e45b1eb404bdd0c08
6,927
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-rewdat.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-rewdat.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-rewdat.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . R E W R I T E _ D A T A -- -- -- -- S p e c -- -- -- -- Copyright (C) 2014-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 can be used to rewrite data on the fly. All occurrences of a -- string (named pattern) will be replaced by another string. -- It is not necessary to load all data in memory and so this package can be -- used for large data chunks like disk files for example. The pattern is -- a standard string and not a regular expression. -- There is no dynamic allocation in the implementation. -- For example, to replace all occurrences of "Gnat" with "GNAT": -- Rewriter : Buffer := Create (Pattern => "Gnat", Value => "GNAT"); -- The output procedure that will receive the rewritten data: -- procedure Do (Data : Stream_Element_Array) is -- begin -- <implementation to handle Data> -- end Do; -- Then: -- Write (Rewriter, "Let's talk about Gnat compiler", Do'Access); -- Write (Rewriter, "Gnat is an Ada compiler", Do'Access); -- Flush (Rewriter, Do'Access); -- Another possible usage is to specify a method to get the input data: -- procedure Get -- (Buffer : out Stream_Element_Array; -- Last : out Stream_Element_Offset) -- is -- begin -- <get some data from a file, a socket, etc...> -- Last := ... -- Buffer := ... -- end Get; -- Then we can rewrite the whole file with: -- Rewrite (Rewriter, Input => Get'Access, Output => Do'Access); with Ada.Streams; use Ada.Streams; package GNAT.Rewrite_Data is type Buffer (<>) is limited private; type Buffer_Ref is access all Buffer; function Create (Pattern, Value : String; Size : Stream_Element_Offset := 1_024) return Buffer; -- Create a rewrite buffer. Pattern is the string to be rewritten as Value. -- Size represents the size of the internal buffer used to store the data -- ready to be output. A larger buffer may improve the performance, as the -- Output routine (see Write, Rewrite below) will be called only when this -- buffer is full. Note that Size cannot be lower than Pattern'Length, and -- if this is the case, then Size value is set to Pattern'Length. function Size (B : Buffer) return Natural; -- Returns the current size of the buffer (count of Stream_Array_Element) procedure Flush (B : in out Buffer; Output : not null access procedure (Data : Stream_Element_Array)); -- Call Output for all remaining data in the buffer. The buffer is -- reset and ready for another use after this call. procedure Reset (B : in out Buffer); pragma Inline (Reset); -- Clear all data in buffer, B is ready for another use. Note that this is -- not needed after a Flush. Note: all data remaining in Buffer is lost. procedure Write (B : in out Buffer; Data : Stream_Element_Array; Output : not null access procedure (Data : Stream_Element_Array)); -- Write Data into the buffer, call Output for any prepared data. Flush -- must be called when the last piece of Data as been sent in the Buffer. procedure Rewrite (B : in out Buffer; Input : not null access procedure (Buffer : out Stream_Element_Array; Last : out Stream_Element_Offset); Output : not null access procedure (Data : Stream_Element_Array)); -- Read data from Input, rewrite it, and then call Output. When there is -- no more data to be read from Input, Last must be set to 0. Before -- leaving this routine, call Flush above to send all remaining data to -- Output. procedure Link (From : in out Buffer; To : Buffer_Ref); -- Link two rewrite buffers. That is, all data sent to From buffer will be -- rewritten and then passed to the To rewrite buffer. private type Buffer (Size, Size_Pattern, Size_Value : Stream_Element_Offset) is limited record Pos_C : Stream_Element_Offset; -- last valid element in Current Pos_B : Stream_Element_Offset; -- last valid element in Buffer Next : Buffer_Ref; -- A link to another rewriter if any Buffer : Stream_Element_Array (1 .. Size); -- Fully prepared/rewritten data waiting to be output Current : Stream_Element_Array (1 .. Size_Pattern); -- Current data checked, this buffer contains every piece of data -- starting with the pattern. It means that at any point: -- Current (1 .. Pos_C) = Pattern (1 .. Pos_C). Pattern : Stream_Element_Array (1 .. Size_Pattern); -- The pattern to look for Value : Stream_Element_Array (1 .. Size_Value); -- The value the pattern is replaced by end record; end GNAT.Rewrite_Data;
45.27451
79
0.57182
189b5e17f6f633d9f875ea4c675c5f9e3ea33f2d
9,096
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-shasto.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-shasto.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-shasto.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . S H A R E D _ S T O R A G E -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-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 manages the shared/persistent storage required for -- full implementation of variables in Shared_Passive packages, more -- precisely variables whose enclosing dynamic scope is a shared -- passive package. This implementation is specific to GNAT and GLADE -- provides a more general implementation not dedicated to file -- storage. -- -------------------------- -- -- Shared Storage Model -- -- -------------------------- -- The basic model used is that each partition that references the -- Shared_Passive package has a local copy of the package data that -- is initialized in accordance with the declarations of the package -- in the normal manner. The routines in System.Shared_Storage are -- then used to ensure that the values in these separate copies are -- properly synchronized with the state of the overall system. -- In the GNAT implementation, this synchronization is ensured by -- maintaining a set of files, in a designated directory. The -- directory is designated by setting the environment variable -- SHARED_MEMORY_DIRECTORY. This variable must be set for all -- partitions. If the environment variable is not defined, then the -- current directory is used. -- There is one storage for each variable. The name is the fully -- qualified name of the variable with all letters forced to lower -- case. For example, the variable Var in the shared passive package -- Pkg results in the storage name pkg.var. -- If the storage does not exist, it indicates that no partition has -- assigned a new value, so that the initial value is the correct -- one. This is the critical component of the model. It means that -- there is no system-wide synchronization required for initializing -- the package, since the shared storages need not (and do not) -- reflect the initial state. There is therefore no issue of -- synchronizing initialization and read/write access. -- ----------------------- -- -- Read/Write Access -- -- ----------------------- -- The approach is as follows: -- For each shared variable, var, an instantiation of the below generic -- package is created which provides Read and Write supporting procedures. -- The routine Read in package System.Shared_Storage.Shared_Var_Procs -- ensures to assign variable V to the last written value among processes -- referencing it. A call to this procedure is generated by the expander -- before each read access to the shared variable. -- The routine Write in package System.Shared_Storage.Shared_Var_Proc -- set a new value to the shared variable and, according to the used -- implementation, propagate this value among processes referencing it. -- A call to this procedure is generated by the expander after each -- assignment of the shared variable. -- Note: a special circuit allows the use of stream attributes Read and -- Write for limited types (using the corresponding attribute for the -- full type), but there are limitations on the data that can be placed -- in shared passive partitions. See sem_smem.ads/adb for details. -- ---------------------------------------------------------------- -- -- Handling of Protected Objects in Shared Passive Partitions -- -- ---------------------------------------------------------------- -- In the context of GNAT, during the execution of a protected -- subprogram call, access is locked out using a locking mechanism -- per protected object, as provided by the GNAT.Lock_Files -- capability in the specific case of GNAT. This package contains the -- lock and unlock calls, and the expander generates a call to the -- lock routine before the protected call and a call to the unlock -- routine after the protected call. -- Within the code of the protected subprogram, the access to the -- protected object itself uses the local copy, without any special -- synchronization. Since global access is locked out, no other task -- or partition can attempt to read or write this data as long as the -- lock is held. -- The data in the local copy does however need synchronizing with -- the global values in the shared storage. This is achieved as -- follows: -- The protected object generates a read and assignment routine as -- described for other shared passive variables. The code for the -- 'Read and 'Write attributes (not normally allowed, but allowed -- in this special case) simply reads or writes the values of the -- components in the protected record. -- The lock call is followed by a call to the shared read routine to -- synchronize the local copy to contain the proper global value. -- The unlock call in the procedure case only is preceded by a call -- to the shared assign routine to synchronize the global shared -- storages with the (possibly modified) local copy. -- These calls to the read and assign routines, as well as the lock -- and unlock routines, are inserted by the expander (see exp_smem.adb). package System.Shared_Storage is procedure Shared_Var_Lock (Var : String); -- This procedure claims the shared storage lock. It is used for -- protected types in shared passive packages. A call to this -- locking routine is generated as the first operation in the code -- for the body of a protected subprogram, and it busy waits if -- the lock is busy. procedure Shared_Var_Unlock (Var : String); -- This procedure releases the shared storage lock obtained by a -- prior call to the Shared_Var_Lock procedure, and is to be -- generated as the last operation in the body of a protected -- subprogram. -- This generic package is instantiated for each shared passive -- variable. It provides supporting procedures called upon each -- read or write access by the expanded code. generic type Typ is limited private; -- Shared passive variable type V : in out Typ; -- Shared passive variable Full_Name : String; -- Shared passive variable storage name package Shared_Var_Procs is procedure Read; -- Shared passive variable access routine. Each reference to the -- shared variable, V, is preceded by a call to the corresponding -- Read procedure, which either leaves the initial value unchanged -- if the storage does not exist, or reads the current value from -- the shared storage. procedure Write; -- Shared passive variable assignment routine. Each assignment to -- the shared variable, V, is followed by a call to the corresponding -- Write procedure, which writes the new value to the shared storage. end Shared_Var_Procs; end System.Shared_Storage;
50.533333
78
0.622142
390f42b63d765604a70e2eb8d027a1df0e928b7d
18,772
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngcefu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngcefu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngcefu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ADA.NUMERICS.GENERIC_COMPLEX_ELEMENTARY_FUNCTIONS -- -- -- -- 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.Numerics.Generic_Elementary_Functions; package body Ada.Numerics.Generic_Complex_Elementary_Functions is package Elementary_Functions is new Ada.Numerics.Generic_Elementary_Functions (Real'Base); use Elementary_Functions; PI : constant := 3.14159_26535_89793_23846_26433_83279_50288_41971; PI_2 : constant := PI / 2.0; Sqrt_Two : constant := 1.41421_35623_73095_04880_16887_24209_69807_85696; Log_Two : constant := 0.69314_71805_59945_30941_72321_21458_17656_80755; subtype T is Real'Base; Epsilon : constant T := 2.0 ** (1 - T'Model_Mantissa); Square_Root_Epsilon : constant T := Sqrt_Two ** (1 - T'Model_Mantissa); Inv_Square_Root_Epsilon : constant T := Sqrt_Two ** (T'Model_Mantissa - 1); Root_Root_Epsilon : constant T := Sqrt_Two ** ((1 - T'Model_Mantissa) / 2); Log_Inverse_Epsilon_2 : constant T := T (T'Model_Mantissa - 1) / 2.0; Complex_Zero : constant Complex := (0.0, 0.0); Complex_One : constant Complex := (1.0, 0.0); Complex_I : constant Complex := (0.0, 1.0); Half_Pi : constant Complex := (PI_2, 0.0); -------- -- ** -- -------- function "**" (Left : Complex; Right : Complex) return Complex is begin if Re (Right) = 0.0 and then Im (Right) = 0.0 and then Re (Left) = 0.0 and then Im (Left) = 0.0 then raise Argument_Error; elsif Re (Left) = 0.0 and then Im (Left) = 0.0 and then Re (Right) < 0.0 then raise Constraint_Error; elsif Re (Left) = 0.0 and then Im (Left) = 0.0 then return Left; elsif Right = (0.0, 0.0) then return Complex_One; elsif Re (Right) = 0.0 and then Im (Right) = 0.0 then return 1.0 + Right; elsif Re (Right) = 1.0 and then Im (Right) = 0.0 then return Left; else return Exp (Right * Log (Left)); end if; end "**"; function "**" (Left : Real'Base; Right : Complex) return Complex is begin if Re (Right) = 0.0 and then Im (Right) = 0.0 and then Left = 0.0 then raise Argument_Error; elsif Left = 0.0 and then Re (Right) < 0.0 then raise Constraint_Error; elsif Left = 0.0 then return Compose_From_Cartesian (Left, 0.0); elsif Re (Right) = 0.0 and then Im (Right) = 0.0 then return Complex_One; elsif Re (Right) = 1.0 and then Im (Right) = 0.0 then return Compose_From_Cartesian (Left, 0.0); else return Exp (Log (Left) * Right); end if; end "**"; function "**" (Left : Complex; Right : Real'Base) return Complex is begin if Right = 0.0 and then Re (Left) = 0.0 and then Im (Left) = 0.0 then raise Argument_Error; elsif Re (Left) = 0.0 and then Im (Left) = 0.0 and then Right < 0.0 then raise Constraint_Error; elsif Re (Left) = 0.0 and then Im (Left) = 0.0 then return Left; elsif Right = 0.0 then return Complex_One; elsif Right = 1.0 then return Left; else return Exp (Right * Log (Left)); end if; end "**"; ------------ -- Arccos -- ------------ function Arccos (X : Complex) return Complex is Result : Complex; begin if X = Complex_One then return Complex_Zero; elsif abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return Half_Pi - X; elsif abs Re (X) > Inv_Square_Root_Epsilon or else abs Im (X) > Inv_Square_Root_Epsilon then return -2.0 * Complex_I * Log (Sqrt ((1.0 + X) / 2.0) + Complex_I * Sqrt ((1.0 - X) / 2.0)); end if; Result := -Complex_I * Log (X + Complex_I * Sqrt (1.0 - X * X)); if Im (X) = 0.0 and then abs Re (X) <= 1.00 then Set_Im (Result, Im (X)); end if; return Result; end Arccos; ------------- -- Arccosh -- ------------- function Arccosh (X : Complex) return Complex is Result : Complex; begin if X = Complex_One then return Complex_Zero; elsif abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then Result := Compose_From_Cartesian (-Im (X), -PI_2 + Re (X)); elsif abs Re (X) > Inv_Square_Root_Epsilon or else abs Im (X) > Inv_Square_Root_Epsilon then Result := Log_Two + Log (X); else Result := 2.0 * Log (Sqrt ((1.0 + X) / 2.0) + Sqrt ((X - 1.0) / 2.0)); end if; if Re (Result) <= 0.0 then Result := -Result; end if; return Result; end Arccosh; ------------ -- Arccot -- ------------ function Arccot (X : Complex) return Complex is Xt : Complex; begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return Half_Pi - X; elsif abs Re (X) > 1.0 / Epsilon or else abs Im (X) > 1.0 / Epsilon then Xt := Complex_One / X; if Re (X) < 0.0 then Set_Re (Xt, PI - Re (Xt)); return Xt; else return Xt; end if; end if; Xt := Complex_I * Log ((X - Complex_I) / (X + Complex_I)) / 2.0; if Re (Xt) < 0.0 then Xt := PI + Xt; end if; return Xt; end Arccot; -------------- -- Arccoth -- -------------- function Arccoth (X : Complex) return Complex is R : Complex; begin if X = (0.0, 0.0) then return Compose_From_Cartesian (0.0, PI_2); elsif abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return PI_2 * Complex_I + X; elsif abs Re (X) > 1.0 / Epsilon or else abs Im (X) > 1.0 / Epsilon then if Im (X) > 0.0 then return (0.0, 0.0); else return PI * Complex_I; end if; elsif Im (X) = 0.0 and then Re (X) = 1.0 then raise Constraint_Error; elsif Im (X) = 0.0 and then Re (X) = -1.0 then raise Constraint_Error; end if; begin R := Log ((1.0 + X) / (X - 1.0)) / 2.0; exception when Constraint_Error => R := (Log (1.0 + X) - Log (X - 1.0)) / 2.0; end; if Im (R) < 0.0 then Set_Im (R, PI + Im (R)); end if; if Re (X) = 0.0 then Set_Re (R, Re (X)); end if; return R; end Arccoth; ------------ -- Arcsin -- ------------ function Arcsin (X : Complex) return Complex is Result : Complex; begin -- For very small argument, sin (x) = x if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; elsif abs Re (X) > Inv_Square_Root_Epsilon or else abs Im (X) > Inv_Square_Root_Epsilon then Result := -Complex_I * (Log (Complex_I * X) + Log (2.0 * Complex_I)); if Im (Result) > PI_2 then Set_Im (Result, PI - Im (X)); elsif Im (Result) < -PI_2 then Set_Im (Result, -(PI + Im (X))); end if; return Result; end if; Result := -Complex_I * Log (Complex_I * X + Sqrt (1.0 - X * X)); if Re (X) = 0.0 then Set_Re (Result, Re (X)); elsif Im (X) = 0.0 and then abs Re (X) <= 1.00 then Set_Im (Result, Im (X)); end if; return Result; end Arcsin; ------------- -- Arcsinh -- ------------- function Arcsinh (X : Complex) return Complex is Result : Complex; begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; elsif abs Re (X) > Inv_Square_Root_Epsilon or else abs Im (X) > Inv_Square_Root_Epsilon then Result := Log_Two + Log (X); -- may have wrong sign if (Re (X) < 0.0 and then Re (Result) > 0.0) or else (Re (X) > 0.0 and then Re (Result) < 0.0) then Set_Re (Result, -Re (Result)); end if; return Result; end if; Result := Log (X + Sqrt (1.0 + X * X)); if Re (X) = 0.0 then Set_Re (Result, Re (X)); elsif Im (X) = 0.0 then Set_Im (Result, Im (X)); end if; return Result; end Arcsinh; ------------ -- Arctan -- ------------ function Arctan (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; else return -Complex_I * (Log (1.0 + Complex_I * X) - Log (1.0 - Complex_I * X)) / 2.0; end if; end Arctan; ------------- -- Arctanh -- ------------- function Arctanh (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; else return (Log (1.0 + X) - Log (1.0 - X)) / 2.0; end if; end Arctanh; --------- -- Cos -- --------- function Cos (X : Complex) return Complex is begin return Compose_From_Cartesian (Cos (Re (X)) * Cosh (Im (X)), -(Sin (Re (X)) * Sinh (Im (X)))); end Cos; ---------- -- Cosh -- ---------- function Cosh (X : Complex) return Complex is begin return Compose_From_Cartesian (Cosh (Re (X)) * Cos (Im (X)), Sinh (Re (X)) * Sin (Im (X))); end Cosh; --------- -- Cot -- --------- function Cot (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return Complex_One / X; elsif Im (X) > Log_Inverse_Epsilon_2 then return -Complex_I; elsif Im (X) < -Log_Inverse_Epsilon_2 then return Complex_I; end if; return Cos (X) / Sin (X); end Cot; ---------- -- Coth -- ---------- function Coth (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return Complex_One / X; elsif Re (X) > Log_Inverse_Epsilon_2 then return Complex_One; elsif Re (X) < -Log_Inverse_Epsilon_2 then return -Complex_One; else return Cosh (X) / Sinh (X); end if; end Coth; --------- -- Exp -- --------- function Exp (X : Complex) return Complex is EXP_RE_X : constant Real'Base := Exp (Re (X)); begin return Compose_From_Cartesian (EXP_RE_X * Cos (Im (X)), EXP_RE_X * Sin (Im (X))); end Exp; function Exp (X : Imaginary) return Complex is ImX : constant Real'Base := Im (X); begin return Compose_From_Cartesian (Cos (ImX), Sin (ImX)); end Exp; --------- -- Log -- --------- function Log (X : Complex) return Complex is ReX : Real'Base; ImX : Real'Base; Z : Complex; begin if Re (X) = 0.0 and then Im (X) = 0.0 then raise Constraint_Error; elsif abs (1.0 - Re (X)) < Root_Root_Epsilon and then abs Im (X) < Root_Root_Epsilon then Z := X; Set_Re (Z, Re (Z) - 1.0); return (1.0 - (1.0 / 2.0 - (1.0 / 3.0 - (1.0 / 4.0) * Z) * Z) * Z) * Z; end if; begin ReX := Log (Modulus (X)); exception when Constraint_Error => ReX := Log (Modulus (X / 2.0)) - Log_Two; end; ImX := Arctan (Im (X), Re (X)); if ImX > PI then ImX := ImX - 2.0 * PI; end if; return Compose_From_Cartesian (ReX, ImX); end Log; --------- -- Sin -- --------- function Sin (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; end if; return Compose_From_Cartesian (Sin (Re (X)) * Cosh (Im (X)), Cos (Re (X)) * Sinh (Im (X))); end Sin; ---------- -- Sinh -- ---------- function Sinh (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; else return Compose_From_Cartesian (Sinh (Re (X)) * Cos (Im (X)), Cosh (Re (X)) * Sin (Im (X))); end if; end Sinh; ---------- -- Sqrt -- ---------- function Sqrt (X : Complex) return Complex is ReX : constant Real'Base := Re (X); ImX : constant Real'Base := Im (X); XR : constant Real'Base := abs Re (X); YR : constant Real'Base := abs Im (X); R : Real'Base; R_X : Real'Base; R_Y : Real'Base; begin -- Deal with pure real case, see (RM G.1.2(39)) if ImX = 0.0 then if ReX > 0.0 then return Compose_From_Cartesian (Sqrt (ReX), 0.0); elsif ReX = 0.0 then return X; else return Compose_From_Cartesian (0.0, Real'Copy_Sign (Sqrt (-ReX), ImX)); end if; elsif ReX = 0.0 then R_X := Sqrt (YR / 2.0); if ImX > 0.0 then return Compose_From_Cartesian (R_X, R_X); else return Compose_From_Cartesian (R_X, -R_X); end if; else R := Sqrt (XR ** 2 + YR ** 2); -- If the square of the modulus overflows, try rescaling the -- real and imaginary parts. We cannot depend on an exception -- being raised on all targets. if R > Real'Base'Last then raise Constraint_Error; end if; -- We are solving the system -- XR = R_X ** 2 - Y_R ** 2 (1) -- YR = 2.0 * R_X * R_Y (2) -- -- The symmetric solution involves square roots for both R_X and -- R_Y, but it is more accurate to use the square root with the -- larger argument for either R_X or R_Y, and equation (2) for the -- other. if ReX < 0.0 then R_Y := Sqrt (0.5 * (R - ReX)); R_X := YR / (2.0 * R_Y); else R_X := Sqrt (0.5 * (R + ReX)); R_Y := YR / (2.0 * R_X); end if; end if; if Im (X) < 0.0 then -- halve angle, Sqrt of magnitude R_Y := -R_Y; end if; return Compose_From_Cartesian (R_X, R_Y); exception when Constraint_Error => -- Rescale and try again R := Modulus (Compose_From_Cartesian (Re (X / 4.0), Im (X / 4.0))); R_X := 2.0 * Sqrt (0.5 * R + 0.5 * Re (X / 4.0)); R_Y := 2.0 * Sqrt (0.5 * R - 0.5 * Re (X / 4.0)); if Im (X) < 0.0 then -- halve angle, Sqrt of magnitude R_Y := -R_Y; end if; return Compose_From_Cartesian (R_X, R_Y); end Sqrt; --------- -- Tan -- --------- function Tan (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; elsif Im (X) > Log_Inverse_Epsilon_2 then return Complex_I; elsif Im (X) < -Log_Inverse_Epsilon_2 then return -Complex_I; else return Sin (X) / Cos (X); end if; end Tan; ---------- -- Tanh -- ---------- function Tanh (X : Complex) return Complex is begin if abs Re (X) < Square_Root_Epsilon and then abs Im (X) < Square_Root_Epsilon then return X; elsif Re (X) > Log_Inverse_Epsilon_2 then return Complex_One; elsif Re (X) < -Log_Inverse_Epsilon_2 then return -Complex_One; else return Sinh (X) / Cosh (X); end if; end Tanh; end Ada.Numerics.Generic_Complex_Elementary_Functions;
26.40225
78
0.484125
dfefe96d49f7e61fd9e5f7cd1aeec7225f2874d2
103,976
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_3_proc.sched.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-06-18T16:51:39.000Z
2020-06-18T16:51:39.000Z
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_3_proc.sched.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_3_proc.sched.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-03-18T00:43:22.000Z
2020-03-18T00:43:22.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>Loop_3_proc</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>p_hw_input_stencil_stream_to_mul_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>p_mul_stencil_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>47</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>7</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>195</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>195</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>62</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>9</id> <name>indvar_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>175</item> <item>176</item> <item>177</item> <item>178</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>10</id> <name>exitcond_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>179</item> <item>181</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</id> <name>indvar_flatten_next</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>182</item> <item>184</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>185</item> <item>186</item> <item>187</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>17</id> <name>tmp_value_V</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>72</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>64</item> <item>65</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>18</id> <name>p_363</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName>_363</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>66</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>19</id> <name>p_368_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>215</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>215</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>67</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>20</id> <name>p_379</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName>_379</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>69</item> <item>70</item> <item>72</item> <item>74</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>21</id> <name>p_384_cast_cast</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>75</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>22</id> <name>p_411</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName>_411</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>76</item> <item>77</item> <item>79</item> <item>81</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>23</id> <name>p_416_cast_cast</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>82</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>24</id> <name>p_427</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName>_427</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>83</item> <item>84</item> <item>86</item> <item>88</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>25</id> <name>p_432_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>287</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>287</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>89</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>26</id> <name>tmp_7</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>91</item> <item>92</item> <item>94</item> <item>96</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>27</id> <name>p_375</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>223</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>223</second> </item> </second> </item> </inlineStackInfo> <originalName>_375</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>98</item> <item>99</item> <item>101</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>28</id> <name>p_376_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>224</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>224</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>102</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>29</id> <name>p_377</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>225</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>225</second> </item> </second> </item> </inlineStackInfo> <originalName>_377</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>103</item> <item>104</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>30</id> <name>p_377_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>225</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>225</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>105</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>31</id> <name>tmp_8</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>106</item> <item>107</item> <item>109</item> <item>111</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>32</id> <name>p_391</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>241</second> </item> </second> </item> </inlineStackInfo> <originalName>_391</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>112</item> <item>113</item> <item>114</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>33</id> <name>p_392_cast_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>243</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>243</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>115</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>34</id> <name>tmp</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>243</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>243</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>116</item> <item>117</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>35</id> <name>tmp_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>243</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>243</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>118</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>36</id> <name>p_393</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>243</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>243</second> </item> </second> </item> </inlineStackInfo> <originalName>_393</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>119</item> <item>120</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>37</id> <name>p_393_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>243</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>243</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>121</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>38</id> <name>tmp_9</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>123</item> <item>124</item> <item>126</item> <item>128</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>39</id> <name>p_399</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>250</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>250</second> </item> </second> </item> </inlineStackInfo> <originalName>_399</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>130</item> <item>131</item> <item>133</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>40</id> <name>p_400_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>251</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>251</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>134</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>41</id> <name>tmp_s</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>135</item> <item>136</item> <item>138</item> <item>140</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>42</id> <name>p_407</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>259</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>259</second> </item> </second> </item> </inlineStackInfo> <originalName>_407</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>141</item> <item>142</item> <item>143</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>43</id> <name>p_408_cast_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>259</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>259</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>144</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_3</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>203</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>203</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>145</item> <item>146</item> <item>148</item> <item>150</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>45</id> <name>p_423</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>277</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>277</second> </item> </second> </item> </inlineStackInfo> <originalName>_423</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>151</item> <item>152</item> <item>153</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>46</id> <name>p_424_cast_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>154</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>47</id> <name>tmp1</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>155</item> <item>156</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>48</id> <name>tmp3</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>157</item> <item>158</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>49</id> <name>tmp3_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>159</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp2</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>160</item> <item>161</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp2_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>162</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>52</id> <name>p_425</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName>_425</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>163</item> <item>164</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>53</id> <name>p_425_cast</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>279</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>279</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>165</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>54</id> <name>p_433</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>288</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>288</second> </item> </second> </item> </inlineStackInfo> <originalName>_433</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>166</item> <item>167</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>55</id> <name>tmp_value_V_7</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>288</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>288</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>168</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>56</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>290</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>290</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>170</item> <item>171</item> <item>172</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>58</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>197</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>197</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>173</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>60</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>21</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_50"> <Value> <Obj> <type>2</type> <id>71</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>16</content> </item> <item class_id_reference="16" object_id="_51"> <Value> <Obj> <type>2</type> <id>73</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>23</content> </item> <item class_id_reference="16" object_id="_52"> <Value> <Obj> <type>2</type> <id>78</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>48</content> </item> <item class_id_reference="16" object_id="_53"> <Value> <Obj> <type>2</type> <id>80</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>55</content> </item> <item class_id_reference="16" object_id="_54"> <Value> <Obj> <type>2</type> <id>85</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>64</content> </item> <item class_id_reference="16" object_id="_55"> <Value> <Obj> <type>2</type> <id>87</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>71</content> </item> <item class_id_reference="16" object_id="_56"> <Value> <Obj> <type>2</type> <id>93</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>8</content> </item> <item class_id_reference="16" object_id="_57"> <Value> <Obj> <type>2</type> <id>95</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>14</content> </item> <item class_id_reference="16" object_id="_58"> <Value> <Obj> <type>2</type> <id>100</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_59"> <Value> <Obj> <type>2</type> <id>108</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>24</content> </item> <item class_id_reference="16" object_id="_60"> <Value> <Obj> <type>2</type> <id>110</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>30</content> </item> <item class_id_reference="16" object_id="_61"> <Value> <Obj> <type>2</type> <id>125</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>32</content> </item> <item class_id_reference="16" object_id="_62"> <Value> <Obj> <type>2</type> <id>127</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>37</content> </item> <item class_id_reference="16" object_id="_63"> <Value> <Obj> <type>2</type> <id>132</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>2</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_64"> <Value> <Obj> <type>2</type> <id>137</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>40</content> </item> <item class_id_reference="16" object_id="_65"> <Value> <Obj> <type>2</type> <id>139</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>46</content> </item> <item class_id_reference="16" object_id="_66"> <Value> <Obj> <type>2</type> <id>147</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>56</content> </item> <item class_id_reference="16" object_id="_67"> <Value> <Obj> <type>2</type> <id>149</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>62</content> </item> <item class_id_reference="16" object_id="_68"> <Value> <Obj> <type>2</type> <id>174</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_69"> <Value> <Obj> <type>2</type> <id>180</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>4</content> </item> <item class_id_reference="16" object_id="_70"> <Value> <Obj> <type>2</type> <id>183</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>3</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_71"> <Obj> <type>3</type> <id>8</id> <name>newFuncRoot</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>7</item> </node_objs> </item> <item class_id_reference="18" object_id="_72"> <Obj> <type>3</type> <id>13</id> <name>.preheader57</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>9</item> <item>10</item> <item>11</item> <item>12</item> </node_objs> </item> <item class_id_reference="18" object_id="_73"> <Obj> <type>3</type> <id>59</id> <name>.preheader57.preheader</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>41</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>58</item> </node_objs> </item> <item class_id_reference="18" object_id="_74"> <Obj> <type>3</type> <id>61</id> <name>.preheader56.exitStub</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>60</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>87</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_75"> <id>62</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_76"> <id>65</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_77"> <id>66</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_78"> <id>67</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_79"> <id>70</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_80"> <id>72</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_81"> <id>74</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_82"> <id>75</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_83"> <id>77</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_84"> <id>79</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_85"> <id>81</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_86"> <id>82</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_87"> <id>84</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_88"> <id>86</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_89"> <id>88</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_90"> <id>89</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_91"> <id>92</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_92"> <id>94</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_93"> <id>96</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_94"> <id>99</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_95"> <id>101</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_96"> <id>102</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_97"> <id>103</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_98"> <id>104</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_99"> <id>105</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_100"> <id>107</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_101"> <id>109</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_102"> <id>111</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_103"> <id>113</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_104"> <id>114</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_105"> <id>115</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_106"> <id>116</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>117</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>118</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>119</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>120</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>121</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>124</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>126</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>128</id> <edge_type>1</edge_type> <source_obj>127</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>131</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>133</id> <edge_type>1</edge_type> <source_obj>132</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>134</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>136</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>138</id> <edge_type>1</edge_type> <source_obj>137</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>140</id> <edge_type>1</edge_type> <source_obj>139</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>142</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>143</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>144</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>146</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>148</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>150</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>152</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>153</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>154</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>155</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>156</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>157</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>158</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>159</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>160</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>161</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>162</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>163</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>164</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>165</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>166</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>167</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>168</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>171</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>172</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>173</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>175</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>176</id> <edge_type>2</edge_type> <source_obj>8</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>177</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>178</id> <edge_type>2</edge_type> <source_obj>59</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>179</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>181</id> <edge_type>1</edge_type> <source_obj>180</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <id>182</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_154"> <id>184</id> <edge_type>1</edge_type> <source_obj>183</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>185</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>186</id> <edge_type>2</edge_type> <source_obj>59</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>187</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>274</id> <edge_type>2</edge_type> <source_obj>8</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>275</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>276</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>277</id> <edge_type>2</edge_type> <source_obj>59</source_obj> <sink_obj>13</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_162"> <mId>1</mId> <mTag>Loop_3_proc</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>9</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_163"> <mId>2</mId> <mTag>Entry</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>8</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_164"> <mId>3</mId> <mTag>Loop 1</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>13</item> <item>59</item> </basic_blocks> <mII>1</mII> <mDepth>5</mDepth> <mMinTripCount>4</mMinTripCount> <mMaxTripCount>4</mMaxTripCount> <mMinLatency>7</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_165"> <mId>4</mId> <mTag>Return</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>61</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>47</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>7</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>2</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>8</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>59</first> <second> <first>2</first> <second>5</second> </second> </item> <item> <first>61</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="1" version="0" object_id="_166"> <region_name>Loop 1</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>13</item> <item>59</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>5</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.63849
138
0.60085
10728553ab457bd3d98a9c9735d7b32eefa7d6b1
11,671
adb
Ada
3-mid/opengl/source/lean/model/opengl-model-hexagon_column-lit_textured_faceted.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2022-01-20T07:13:42.000Z
2022-01-20T07:13:42.000Z
3-mid/opengl/source/lean/model/opengl-model-hexagon_column-lit_textured_faceted.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
3-mid/opengl/source/lean/model/opengl-model-hexagon_column-lit_textured_faceted.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
with openGL.Primitive.indexed, openGL.Geometry.lit_textured, openGL.Model.hexagon; package body openGL.Model.Hexagon_Column.lit_textured_faceted is --------- --- Forge -- function new_hexagon_Column (Radius : in Real; Height : in Real; Upper, Lower : in hex_Face; Shaft : in shaft_Face) return View is Self : constant View := new Item; begin Self.Radius := Radius; Self.Height := Height; Self.upper_Face := Upper; Self.lower_Face := Lower; Self.Shaft := Shaft; return Self; end new_hexagon_Column; -------------- --- Attributes -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views is pragma unreferenced (Fonts); use Geometry.lit_textured, Model.hexagon, Texture; shaft_Height : constant Real := Self.Height; height_Offset : constant Vector_3 := (0.0, shaft_Height / 2.0, 0.0); mid_Sites : constant hexagon.Sites := vertex_Sites (Self.Radius); upper_Sites : hexagon.Sites := mid_Sites; lower_Sites : hexagon.Sites := mid_Sites; function new_hexagon_Face (Vertices : access Geometry.lit_textured.Vertex_array; Flip : in Boolean := False) return Geometry.lit_textured.view is use Primitive; function the_Indices return Indices is begin if Flip then return (1, 7, 6, 5, 4, 3, 2, 7); else return (1, 2, 3, 4, 5, 6, 7, 2); end if; end the_Indices; the_Geometry : constant Geometry.lit_textured.view := Geometry.lit_textured.new_Geometry; the_Primitive : constant Primitive.indexed.view := Primitive.indexed.new_Primitive (triangle_Fan, the_Indices); begin the_Geometry.Vertices_are (Vertices.all); the_Geometry.add (Primitive.view (the_Primitive)); return the_Geometry; end new_hexagon_Face; function new_shaft_Face (Vertices : access Geometry.lit_textured.Vertex_array) return Geometry.lit_textured.view is use Primitive; the_Indices : constant Indices := (1, 2, 3, 4); the_Geometry : constant Geometry.lit_textured.view := Geometry.lit_textured.new_Geometry; the_Primitive : constant Primitive.view := Primitive.indexed.new_Primitive (triangle_Strip, the_Indices).all'Access; begin the_Geometry.Vertices_are (Vertices.all); the_Geometry.add (the_Primitive); return the_Geometry; end new_shaft_Face; upper_Face : Geometry.lit_textured.view; lower_Face : Geometry.lit_textured.view; shaft_Faces : array (1 .. 6) of Geometry.lit_textured.view; begin for Each in mid_Sites'Range loop upper_Sites (Each) := upper_Sites (Each) + height_Offset; lower_Sites (Each) := lower_Sites (Each) - height_Offset; end loop; -- Upper -- declare the_Vertices : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => height_Offset, Normal => Normal, Coords => (0.0, 0.0), Shine => default_Shine), 2 => (Site => upper_Sites (1), Normal => Normal, Coords => (0.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (2), Normal => Normal, Coords => (1.0, 0.0), Shine => default_Shine), 4 => (Site => upper_Sites (3), Normal => Normal, Coords => (1.0, 1.0), Shine => default_Shine), 5 => (Site => upper_Sites (4), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine), 6 => (Site => upper_Sites (5), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine), 7 => (Site => upper_Sites (6), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine)); begin upper_Face := new_hexagon_Face (Vertices => the_Vertices'Access); if Self.upper_Face.Texture /= null_Asset then upper_Face.Texture_is (Textures.fetch (Self.upper_Face.Texture)); end if; end; -- Lower -- declare the_Vertices : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => -height_Offset, Normal => -Normal, Coords => (0.0, 0.0), Shine => default_Shine), 2 => (Site => lower_Sites (1), Normal => -Normal, Coords => (0.0, 0.0), Shine => default_Shine), 3 => (Site => lower_Sites (2), Normal => -Normal, Coords => (1.0, 0.0), Shine => default_Shine), 4 => (Site => lower_Sites (3), Normal => -Normal, Coords => (1.0, 1.0), Shine => default_Shine), 5 => (Site => lower_Sites (4), Normal => -Normal, Coords => (0.0, 1.0), Shine => default_Shine), 6 => (Site => lower_Sites (5), Normal => -Normal, Coords => (0.0, 1.0), Shine => default_Shine), 7 => (Site => lower_Sites (6), Normal => -Normal, Coords => (0.0, 1.0), Shine => default_Shine)); begin lower_Face := new_hexagon_Face (vertices => the_Vertices'Access, flip => True); if Self.upper_Face.Texture /= null_Asset then lower_Face.Texture_is (Textures.fetch (Self.lower_Face.Texture)); end if; end; -- Shaft -- declare type shaft_Normals is array (1 .. 6) of Vector_3; function get_Normals return shaft_Normals is use linear_Algebra_3D; Rotation : constant Matrix_3x3 := y_Rotation_from (to_Radians (60.0)); the_Normal : Vector_3 := (0.0, 0.0, -1.0); Result : shaft_Normals; begin Result (2) := the_Normal; the_Normal := Rotation * the_Normal; Result (3) := the_Normal; the_Normal := Rotation * the_Normal; Result (4) := the_Normal; the_Normal := (0.0, 0.0, 1.0); Result (5) := the_Normal; the_Normal := Rotation * the_Normal; Result (6) := the_Normal; the_Normal := Rotation * the_Normal; Result (1) := the_Normal; return Result; end get_Normals; Normals : constant shaft_Normals := get_Normals; s_Delta : constant := 1.0 / 6.0; the_Vertices_1 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (1), Normal => Normals (1), Coords => (0.0, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (1), Normal => Normals (1), Coords => (0.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (2), Normal => Normals (1), Coords => (s_Delta, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (2), Normal => Normals (1), Coords => (s_Delta, 0.0), Shine => default_Shine)); the_Vertices_2 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (2), Normal => Normals (2), Coords => (s_Delta, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (2), Normal => Normals (2), Coords => (s_Delta, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (3), Normal => Normals (2), Coords => (s_Delta * 2.0, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (3), Normal => Normals (2), Coords => (s_Delta * 2.0, 0.0), Shine => default_Shine)); the_Vertices_3 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (3), Normal => Normals (3), Coords => (s_Delta * 2.0, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (3), Normal => Normals (3), Coords => (s_Delta * 2.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (4), Normal => Normals (3), Coords => (s_Delta * 3.0, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (4), Normal => Normals (3), Coords => (s_Delta * 3.0, 0.0), Shine => default_Shine)); the_Vertices_4 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (4), Normal => Normals (4), Coords => (s_Delta * 3.0, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (4), Normal => Normals (4), Coords => (s_Delta * 3.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (5), Normal => Normals (4), Coords => (s_Delta * 4.0, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (5), Normal => Normals (4), Coords => (s_Delta * 4.0, 0.0), Shine => default_Shine)); the_Vertices_5 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (5), Normal => Normals (5), Coords => (s_Delta * 4.0, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (5), Normal => Normals (5), Coords => (s_Delta * 4.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (6), Normal => Normals (5), Coords => (s_Delta * 5.0, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (6), Normal => Normals (5), Coords => (s_Delta * 5.0, 0.0), Shine => default_Shine)); the_Vertices_6 : aliased Geometry.lit_textured.Vertex_array := (1 => (Site => upper_Sites (6), Normal => Normals (6), Coords => (s_Delta * 5.0, 1.0), Shine => default_Shine), 2 => (Site => lower_Sites (6), Normal => Normals (6), Coords => (s_Delta * 5.0, 0.0), Shine => default_Shine), 3 => (Site => upper_Sites (1), Normal => Normals (6), Coords => (1.0, 1.0), Shine => default_Shine), 4 => (Site => lower_Sites (1), Normal => Normals (6), Coords => (1.0, 0.0), Shine => default_Shine)); the_Vertices : constant array (1 .. 6) of access Geometry.lit_textured.Vertex_array := (the_Vertices_1'Access, the_Vertices_2'Access, the_Vertices_3'Access, the_Vertices_4'Access, the_Vertices_5'Access, the_Vertices_6'Access); begin for i in shaft_Faces'Range loop shaft_Faces (i) := new_shaft_Face (vertices => the_Vertices (i)); if Self.shaft.Texture /= null_Asset then shaft_Faces (i).Texture_is (Textures.fetch (Self.shaft.Texture)); end if; end loop; end; return (1 => upper_Face .all'Access, 2 => lower_Face .all'Access, 3 => shaft_Faces (1).all'Access, 4 => shaft_Faces (2).all'Access, 5 => shaft_Faces (3).all'Access, 6 => shaft_Faces (4).all'Access, 7 => shaft_Faces (5).all'Access, 8 => shaft_Faces (6).all'Access); end to_GL_Geometries; end openGL.Model.Hexagon_Column.lit_textured_faceted;
44.716475
133
0.531917
dfa6bc16c6f833ea5b8131ad5f998ee0d214eef6
12,587
ads
Ada
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-dac.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-dac.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-dac.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.DAC is pragma Preelaborate; --------------- -- Registers -- --------------- -- CR_TSEL array type CR_TSEL_Field_Array is array (10 .. 13) of Boolean with Component_Size => 1, Size => 4; -- Type definition for CR_TSEL type CR_TSEL_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TSEL as a value Val : HAL.UInt4; when True => -- TSEL as an array Arr : CR_TSEL_Field_Array; end case; end record with Unchecked_Union, Size => 4; for CR_TSEL_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype CR_WAVE1_Field is HAL.UInt2; subtype CR_MAMP1_Field is HAL.UInt4; -- control register type CR_Register is record -- DAC channel1 enable EN1 : Boolean := False; -- DAC channel1 trigger enable TEN1 : Boolean := False; -- TSEL10 TSEL : CR_TSEL_Field := (As_Array => False, Val => 16#0#); -- DAC channel1 noise/triangle wave generation enable WAVE1 : CR_WAVE1_Field := 16#0#; -- DAC channel1 mask/amplitude selector MAMP1 : CR_MAMP1_Field := 16#0#; -- DAC channel1 DMA enable DMAEN1 : Boolean := False; -- DAC channel1 DMA Underrun Interrupt enable DMAUDRIE1 : Boolean := False; -- DAC Channel 1 calibration enable CEN1 : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record EN1 at 0 range 0 .. 0; TEN1 at 0 range 1 .. 1; TSEL at 0 range 2 .. 5; WAVE1 at 0 range 6 .. 7; MAMP1 at 0 range 8 .. 11; DMAEN1 at 0 range 12 .. 12; DMAUDRIE1 at 0 range 13 .. 13; CEN1 at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- software trigger register type SWTRGR_Register is record -- Write-only. DAC channel1 software trigger SWTRIG1 : Boolean := False; -- unspecified Reserved_1_31 : HAL.UInt31 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SWTRGR_Register use record SWTRIG1 at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; subtype DHR12R1_DACC1DHR_Field is HAL.UInt12; -- channel1 12-bit right-aligned data holding register type DHR12R1_Register is record -- DAC channel1 12-bit right-aligned data DACC1DHR : DHR12R1_DACC1DHR_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR12R1_Register use record DACC1DHR at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype DHR12L1_DACC1DHR_Field is HAL.UInt12; -- channel1 12-bit left aligned data holding register type DHR12L1_Register is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- DAC channel1 12-bit left-aligned data DACC1DHR : DHR12L1_DACC1DHR_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR12L1_Register use record Reserved_0_3 at 0 range 0 .. 3; DACC1DHR at 0 range 4 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype DHR8R1_DACC1DHR_Field is HAL.UInt8; -- channel1 8-bit right aligned data holding register type DHR8R1_Register is record -- DAC channel1 8-bit right-aligned data DACC1DHR : DHR8R1_DACC1DHR_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR8R1_Register use record DACC1DHR at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DHR12RD_DACC1DHR_Field is HAL.UInt12; -- Dual DAC 12-bit right-aligned data holding register type DHR12RD_Register is record -- DAC channel1 12-bit right-aligned data DACC1DHR : DHR12RD_DACC1DHR_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR12RD_Register use record DACC1DHR at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype DHR12LD_DACC1DHR_Field is HAL.UInt12; -- Dual DAC 12-bit left aligned data holding register type DHR12LD_Register is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- DAC channel1 12-bit left-aligned data DACC1DHR : DHR12LD_DACC1DHR_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR12LD_Register use record Reserved_0_3 at 0 range 0 .. 3; DACC1DHR at 0 range 4 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype DHR8RD_DACC1DHR_Field is HAL.UInt8; -- Dual DAC 8-bit right aligned data holding register type DHR8RD_Register is record -- DAC channel1 8-bit right-aligned data DACC1DHR : DHR8RD_DACC1DHR_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DHR8RD_Register use record DACC1DHR at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DOR1_DACC1DOR_Field is HAL.UInt12; -- DAC channel1 data output register type DOR1_Register is record -- Read-only. DACC1DOR DACC1DOR : DOR1_DACC1DOR_Field; -- unspecified Reserved_12_31 : HAL.UInt20; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DOR1_Register use record DACC1DOR at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; -- status register type SR_Register is record -- unspecified Reserved_0_12 : HAL.UInt13 := 16#0#; -- DAC channel1 DMA underrun flag DMAUDR1 : Boolean := False; -- Read-only. DAC Channel 1 calibration offset status CAL_FLAG1 : Boolean := False; -- Read-only. DAC Channel 1 busy writing sample time flag BWST1 : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record Reserved_0_12 at 0 range 0 .. 12; DMAUDR1 at 0 range 13 .. 13; CAL_FLAG1 at 0 range 14 .. 14; BWST1 at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CCR_OTRIM1_Field is HAL.UInt5; -- calibration control register type CCR_Register is record -- DAC Channel 1 offset trimming value OTRIM1 : CCR_OTRIM1_Field := 16#0#; -- unspecified Reserved_5_31 : HAL.UInt27 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CCR_Register use record OTRIM1 at 0 range 0 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; subtype MCR_MODE1_Field is HAL.UInt3; -- mode control register type MCR_Register is record -- DAC Channel 1 mode MODE1 : MCR_MODE1_Field := 16#0#; -- unspecified Reserved_3_31 : HAL.UInt29 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCR_Register use record MODE1 at 0 range 0 .. 2; Reserved_3_31 at 0 range 3 .. 31; end record; subtype SHSR1_TSAMPLE1_Field is HAL.UInt10; -- Sample and Hold sample time register 1 type SHSR1_Register is record -- DAC Channel 1 sample Time (only valid in Sample and Hold mode) TSAMPLE1 : SHSR1_TSAMPLE1_Field := 16#0#; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHSR1_Register use record TSAMPLE1 at 0 range 0 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; subtype SHHR_THOLD1_Field is HAL.UInt10; -- Sample and Hold hold time register type SHHR_Register is record -- DAC Channel 1 hold Time (only valid in Sample and Hold mode) THOLD1 : SHHR_THOLD1_Field := 16#1#; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#40#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHHR_Register use record THOLD1 at 0 range 0 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; subtype SHRR_TREFRESH1_Field is HAL.UInt8; -- Sample and Hold refresh time register type SHRR_Register is record -- DAC Channel 1 refresh Time (only valid in Sample and Hold mode) TREFRESH1 : SHRR_TREFRESH1_Field := 16#1#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#100#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SHRR_Register use record TREFRESH1 at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Digital-to-analog converter type DAC_Peripheral is record -- control register CR : aliased CR_Register; -- software trigger register SWTRGR : aliased SWTRGR_Register; -- channel1 12-bit right-aligned data holding register DHR12R1 : aliased DHR12R1_Register; -- channel1 12-bit left aligned data holding register DHR12L1 : aliased DHR12L1_Register; -- channel1 8-bit right aligned data holding register DHR8R1 : aliased DHR8R1_Register; -- Dual DAC 12-bit right-aligned data holding register DHR12RD : aliased DHR12RD_Register; -- Dual DAC 12-bit left aligned data holding register DHR12LD : aliased DHR12LD_Register; -- Dual DAC 8-bit right aligned data holding register DHR8RD : aliased DHR8RD_Register; -- DAC channel1 data output register DOR1 : aliased DOR1_Register; -- status register SR : aliased SR_Register; -- calibration control register CCR : aliased CCR_Register; -- mode control register MCR : aliased MCR_Register; -- Sample and Hold sample time register 1 SHSR1 : aliased SHSR1_Register; -- Sample and Hold hold time register SHHR : aliased SHHR_Register; -- Sample and Hold refresh time register SHRR : aliased SHRR_Register; end record with Volatile; for DAC_Peripheral use record CR at 16#0# range 0 .. 31; SWTRGR at 16#4# range 0 .. 31; DHR12R1 at 16#8# range 0 .. 31; DHR12L1 at 16#C# range 0 .. 31; DHR8R1 at 16#10# range 0 .. 31; DHR12RD at 16#20# range 0 .. 31; DHR12LD at 16#24# range 0 .. 31; DHR8RD at 16#28# range 0 .. 31; DOR1 at 16#2C# range 0 .. 31; SR at 16#34# range 0 .. 31; CCR at 16#38# range 0 .. 31; MCR at 16#3C# range 0 .. 31; SHSR1 at 16#40# range 0 .. 31; SHHR at 16#48# range 0 .. 31; SHRR at 16#4C# range 0 .. 31; end record; -- Digital-to-analog converter DAC_Periph : aliased DAC_Peripheral with Import, Address => DAC_Base; end STM32_SVD.DAC;
32.191816
74
0.618813
0e780a436f673459de934eb9fb28d3a429376457
33
ads
Ada
src/pixtend.ads
persan/a-piextend
2b8ffe9ce1735789088e51f6321685759f269cf4
[ "MIT" ]
null
null
null
src/pixtend.ads
persan/a-piextend
2b8ffe9ce1735789088e51f6321685759f269cf4
[ "MIT" ]
null
null
null
src/pixtend.ads
persan/a-piextend
2b8ffe9ce1735789088e51f6321685759f269cf4
[ "MIT" ]
null
null
null
package Pixtend is end Pixtend;
8.25
18
0.787879
df11bf738eae01d1a40044b2635e227371a10ab7
834
adb
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/py_range/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/py_range/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/py_range/pck.adb
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/>. package body Pck is procedure Do_Nothing (A : System.Address) is begin null; end Do_Nothing; end Pck;
34.75
73
0.727818
dc5317a7a96734c19916cb8085b5db50ef72978a
6,148
adb
Ada
regtests/util-log-tests.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
regtests/util-log-tests.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
regtests/util-log-tests.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- log.tests -- Unit tests for loggers -- Copyright (C) 2009, 2010, 2011, 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 Ada.Strings.Fixed; with Ada.Directories; with Util.Test_Caller; with Util.Log; with Util.Log.Loggers; with Util.Properties; with Util.Measures; package body Util.Log.Tests is use Util; Log : constant Loggers.Logger := Loggers.Create ("util.log.test"); procedure Test_Log (T : in out Test) is pragma Unreferenced (T); L : Loggers.Logger := Loggers.Create ("util.log.test.debug"); begin L.Set_Level (DEBUG_LEVEL); Log.Info ("My log message"); Log.Error ("My error message"); Log.Debug ("A debug message Not printed"); L.Info ("An info message"); L.Debug ("A debug message on logger 'L'"); end Test_Log; -- Test configuration and creation of file procedure Test_File_Appender (T : in out Test) is pragma Unreferenced (T); Props : Util.Properties.Manager; begin Props.Set ("log4j.appender.test", "File"); Props.Set ("log4j.appender.test.File", "test.log"); Props.Set ("log4j.logger.util.log.test.file", "DEBUG,test"); Util.Log.Loggers.Initialize (Props); declare L : constant Loggers.Logger := Loggers.Create ("util.log.test.file"); begin L.Debug ("Writing a debug message"); L.Debug ("{0}: {1}", "Parameter", "Value"); end; end Test_File_Appender; procedure Test_Log_Perf (T : in out Test) is pragma Unreferenced (T); Props : Util.Properties.Manager; begin Props.Set ("log4j.appender.test", "File"); Props.Set ("log4j.appender.test.File", "test.log"); Props.Set ("log4j.logger.util.log.test.perf", "DEBUG,test"); Util.Log.Loggers.Initialize (Props); for I in 1 .. 1000 loop declare S : Util.Measures.Stamp; begin Util.Measures.Report (S, "Util.Measures.Report", 1000); end; end loop; declare L : Loggers.Logger := Loggers.Create ("util.log.test.perf"); S : Util.Measures.Stamp; begin L.Set_Level (DEBUG_LEVEL); for I in 1 .. 1000 loop L.Info ("My log message: {0}: {1}", "A message", "A second parameter"); end loop; Util.Measures.Report (S, "Log.Info message (output)", 1000); L.Set_Level (INFO_LEVEL); for I in 1 .. 10_000 loop L.Debug ("My log message: {0}: {1}", "A message", "A second parameter"); end loop; Util.Measures.Report (S, "Log.Debug message (no output)", 10_000); end; end Test_Log_Perf; -- Test appending the log on several log files procedure Test_List_Appender (T : in out Test) is use Ada.Strings; use Ada.Directories; Props : Util.Properties.Manager; begin for I in 1 .. 10 loop declare Id : constant String := Fixed.Trim (Integer'Image (I), Both); Name : constant String := "log4j.appender.test" & Id; begin Props.Set (Name, "File"); Props.Set (Name & ".File", "test" & Id & ".log"); Props.Set (Name & ".layout", "date-level-message"); if I > 5 then Props.Set (Name & ".level", "INFO"); end if; end; end loop; Props.Set ("log4j.rootCategory", "DEBUG, test.log"); Props.Set ("log4j.logger.util.log.test.file", "DEBUG,test4,test1 , test2,test3, test4, test5 , test6 , test7,test8,"); Util.Log.Loggers.Initialize (Props); declare L : constant Loggers.Logger := Loggers.Create ("util.log.test.file"); begin L.Debug ("Writing a debug message"); L.Debug ("{0}: {1}", "Parameter", "Value"); L.Debug ("Done"); end; -- Check that we have non empty log files (up to test8.log). for I in 1 .. 8 loop declare Id : constant String := Fixed.Trim (Integer'Image (I), Both); Path : constant String := "test" & Id & ".log"; begin T.Assert (Ada.Directories.Exists (Path), "Log file " & Path & " not found"); if I > 5 then T.Assert (Ada.Directories.Size (Path) < 100, "Log file " & Path & " should be empty"); else T.Assert (Ada.Directories.Size (Path) > 100, "Log file " & Path & " is empty"); end if; end; end loop; end Test_List_Appender; package Caller is new Util.Test_Caller (Test, "Log"); procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Test Util.Log.Loggers.Info", Test_Log'Access); Caller.Add_Test (Suite, "Test Util.Log.Loggers.Debug", Test_Log'Access); Caller.Add_Test (Suite, "Test Util.Log.Loggers.Set_Level", Test_Log'Access); Caller.Add_Test (Suite, "Test Util.Log.Appenders.File_Appender", Test_File_Appender'Access); Caller.Add_Test (Suite, "Test Util.Log.Appenders.List_Appender", Test_List_Appender'Access); Caller.Add_Test (Suite, "Test Util.Log.Loggers.Log (Perf)", Test_Log_Perf'Access); end Add_Tests; end Util.Log.Tests;
35.333333
94
0.573032
df55f05db287ae135c71aadf6e00b61d89c05f6f
3,105
ads
Ada
bb-runtimes/arm/sam/samv71/s-bbbopa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/samv71/s-bbbopa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/samv71/s-bbbopa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . B O A R D _ P A R A M E T E R S -- -- -- -- S p e c -- -- -- -- Copyright (C) 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. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package defines board parameters for the ATMEL SAMV71 Xplained Ultra -- board package System.BB.Board_Parameters is pragma No_Elaboration_Code_All; pragma Pure; -------------------- -- Hardware clock -- -------------------- Clock_Frequency : constant := 300_000_000; -- These settings assume that MAINCK comes from -- a 12 MHz crystal and the MCKR prescaler is /1 PLL_DIVA : constant := 1; PLL_MULA : constant := 25; end System.BB.Board_Parameters;
57.5
78
0.417713
cb5757b64afb1c66afc355e98691eb4b1ac96323
89
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr9.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/aggr9.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr9.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
with Aggr9_Pkg; use Aggr9_Pkg; package Aggr9 is procedure Proc (X : R1); end Aggr9;
11.125
30
0.707865
203c3aa25d8b052472a2c0ec17fafcc9516beb7e
6,293
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-zchuni.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-zchuni.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-zchuni.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . W I D E _ W I D E _ C H A R A C T E R T S . U N I C O D E -- -- -- -- B o d y -- -- -- -- Copyright (C) 2005-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. -- -- -- ------------------------------------------------------------------------------ package body Ada.Wide_Wide_Characters.Unicode is package G renames System.UTF_32; ------------------ -- Get_Category -- ------------------ function Get_Category (U : Wide_Wide_Character) return Category is begin return Category (G.Get_Category (Wide_Wide_Character'Pos (U))); end Get_Category; -------------- -- Is_Digit -- -------------- function Is_Digit (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Digit (Wide_Wide_Character'Pos (U)); end Is_Digit; function Is_Digit (C : Category) return Boolean is begin return G.Is_UTF_32_Digit (G.Category (C)); end Is_Digit; --------------- -- Is_Letter -- --------------- function Is_Letter (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Letter (Wide_Wide_Character'Pos (U)); end Is_Letter; function Is_Letter (C : Category) return Boolean is begin return G.Is_UTF_32_Letter (G.Category (C)); end Is_Letter; ------------------------ -- Is_Line_Terminator -- ------------------------ function Is_Line_Terminator (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Line_Terminator (Wide_Wide_Character'Pos (U)); end Is_Line_Terminator; ------------- -- Is_Mark -- ------------- function Is_Mark (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Mark (Wide_Wide_Character'Pos (U)); end Is_Mark; function Is_Mark (C : Category) return Boolean is begin return G.Is_UTF_32_Mark (G.Category (C)); end Is_Mark; -------------------- -- Is_Non_Graphic -- -------------------- function Is_Non_Graphic (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Non_Graphic (Wide_Wide_Character'Pos (U)); end Is_Non_Graphic; function Is_Non_Graphic (C : Category) return Boolean is begin return G.Is_UTF_32_Non_Graphic (G.Category (C)); end Is_Non_Graphic; ------------- -- Is_NFKC -- ------------- function Is_NFKC (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_NFKC (Wide_Wide_Character'Pos (U)); end Is_NFKC; -------------- -- Is_Other -- -------------- function Is_Other (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Other (Wide_Wide_Character'Pos (U)); end Is_Other; function Is_Other (C : Category) return Boolean is begin return G.Is_UTF_32_Other (G.Category (C)); end Is_Other; -------------------- -- Is_Punctuation -- -------------------- function Is_Punctuation (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Punctuation (Wide_Wide_Character'Pos (U)); end Is_Punctuation; function Is_Punctuation (C : Category) return Boolean is begin return G.Is_UTF_32_Punctuation (G.Category (C)); end Is_Punctuation; -------------- -- Is_Space -- -------------- function Is_Space (U : Wide_Wide_Character) return Boolean is begin return G.Is_UTF_32_Space (Wide_Wide_Character'Pos (U)); end Is_Space; function Is_Space (C : Category) return Boolean is begin return G.Is_UTF_32_Space (G.Category (C)); end Is_Space; ------------------- -- To_Lower_Case -- ------------------- function To_Lower_Case (U : Wide_Wide_Character) return Wide_Wide_Character is begin return Wide_Wide_Character'Val (G.UTF_32_To_Lower_Case (Wide_Wide_Character'Pos (U))); end To_Lower_Case; ------------------- -- To_Upper_Case -- ------------------- function To_Upper_Case (U : Wide_Wide_Character) return Wide_Wide_Character is begin return Wide_Wide_Character'Val (G.UTF_32_To_Upper_Case (Wide_Wide_Character'Pos (U))); end To_Upper_Case; end Ada.Wide_Wide_Characters.Unicode;
33.473404
78
0.522326
23daaa1391fc3789c0e12f56e6a5d46a6a65ddd0
10,347
adb
Ada
src/natools-string_slices.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
src/natools-string_slices.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
src/natools-string_slices.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2013-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ package body Natools.String_Slices is use type String_Refs.Immutable_Reference; ----------------------------- -- String_Range primitives -- ----------------------------- function Is_In (Point : Natural; Reference : String_Range) return Boolean is begin return Point >= Reference.First and Point < Reference.First + Reference.Length; end Is_In; function Is_Subrange (Sample, Reference : String_Range) return Boolean is begin return Sample.Length = 0 or else (Sample.First >= Reference.First and then Sample.First + Sample.Length <= Reference.First + Reference.Length); end Is_Subrange; function Last (Self : String_Range) return Natural is begin return Self.First + Self.Length - 1; end Last; function To_Range (First : Positive; Last : Natural) return String_Range is begin if Last >= First then return (First => First, Length => Last - First + 1); else return (First => First, Length => 0); end if; end To_Range; function Get_Range (S : String) return String_Range is begin return (S'First, S'Length); end Get_Range; procedure Set_First (Self : in out String_Range; New_First : in Positive) is begin if New_First >= Self.First + Self.Length then Self.Length := 0; else Self.Length := Self.Length - (New_First - Self.First); end if; Self.First := New_First; end Set_First; procedure Set_Last (Self : in out String_Range; New_Last : in Natural) is begin if New_Last < Self.First then Self.Length := 0; else Self.Length := New_Last - Self.First + 1; end if; end Set_Last; procedure Set_Length (Self : in out String_Range; New_Length : in Natural) is begin Self.Length := New_Length; end Set_Length; function Image (Interval : String_Range) return String is First_Img : String := Integer'Image (Interval.First); begin pragma Assert (First_Img (First_Img'First) = ' '); if Interval.Length = 0 then return "empty at" & First_Img; end if; First_Img (First_Img'First) := '['; if Interval.Length = 1 then return First_Img & ']'; else return First_Img & ',' & Integer'Image (Last (Interval)) & ']'; end if; end Image; -------------------------- -- Conversion functions -- -------------------------- function New_Slice (First : Positive; Last : Natural; Initialize : not null access procedure (S : out String)) return Slice is Data : constant String_Refs.Data_Access := new String (First .. Last); Ref : constant String_Refs.Immutable_Reference := String_Refs.Create (Data); begin Initialize (Data.all); return Slice'(Bounds => (First, Last + 1 - First), Ref => Ref); end New_Slice; function To_Slice (S : String) return Slice is function Create return String; function Create return String is begin return S; end Create; begin return Slice'(Bounds => (S'First, S'Length), Ref => String_Refs.Create (Create'Access)); end To_Slice; function To_String (S : Slice) return String is begin if S.Ref.Is_Empty then return ""; else return S.Ref.Query.Data.all (S.Bounds.First .. Last (S.Bounds)); end if; end To_String; --------------- -- Accessors -- --------------- procedure Export (S : in Slice; Output : out String) is begin if not S.Ref.Is_Empty then Output := S.Ref.Query.Data.all (S.Bounds.First .. Last (S.Bounds)); end if; end Export; procedure Query (S : in Slice; Process : not null access procedure (Text : in String)) is begin if S.Bounds.Length = 0 or else S.Ref.Is_Empty then Process.all (""); else Process.all (S.Ref.Query.Data.all (S.Bounds.First .. Last (S.Bounds))); end if; end Query; function Get_Range (S : Slice) return String_Range is begin return S.Bounds; end Get_Range; function First (S : Slice) return Positive is begin return S.Bounds.First; end First; function Last (S : Slice) return Natural is begin return Last (S.Bounds); end Last; function Length (S : Slice) return Natural is begin return S.Bounds.Length; end Length; --------------- -- Extenders -- --------------- function Parent (S : Slice) return Slice is begin if S.Ref.Is_Empty then return Slice'(others => <>); else return Slice'(Bounds => Get_Range (S.Ref.Query.Data.all), Ref => S.Ref); end if; end Parent; function Extend (S : Slice; New_Range : in String_Range) return Slice is begin if not Is_Subrange (New_Range, Get_Range (S.Ref.Query.Data.all)) then raise Constraint_Error with "Extend slice beyond complete range"; end if; return Slice'(Bounds => New_Range, Ref => S.Ref); end Extend; function Extend (S : Slice; First : Positive; Last : Natural) return Slice is begin return Extend (S, To_Range (First, Last)); end Extend; procedure Extend (S : in out Slice; New_Range : in String_Range) is begin if not Is_Subrange (New_Range, Get_Range (S.Ref.Query.Data.all)) then raise Constraint_Error with "Extend slice beyond complete range"; end if; S.Bounds := New_Range; end Extend; procedure Extend (S : in out Slice; First : in Positive; Last : in Natural) is begin Extend (S, To_Range (First, Last)); end Extend; ----------------- -- Restrictors -- ----------------- function Subslice (S : Slice; New_Range : String_Range) return Slice is begin if S.Ref.Is_Empty then if New_Range.Length = 0 then return Slice'(Bounds => New_Range, Ref => <>); else raise Constraint_Error with "Subslice of null slice"; end if; end if; if not Is_Subrange (New_Range, S.Bounds) then raise Constraint_Error with "Subslice out of parent range"; end if; return Slice'(Bounds => New_Range, Ref => S.Ref); end Subslice; function Subslice (S : Slice; First : Positive; Last : Natural) return Slice is begin return Subslice (S, To_Range (First, Last)); end Subslice; procedure Restrict (S : in out Slice; New_Range : in String_Range) is begin if S.Ref.Is_Empty and New_Range.Length /= 0 then raise Constraint_Error with "Restrict of null slice"; end if; if not Is_Subrange (New_Range, S.Bounds) then raise Constraint_Error with "Restriction with not a subrange"; end if; S.Bounds := New_Range; end Restrict; procedure Restrict (S : in out Slice; First : in Positive; Last : in Natural) is begin Restrict (S, To_Range (First, Last)); end Restrict; procedure Set_First (S : in out Slice; New_First : in Positive) is begin if New_First < S.Bounds.First then raise Constraint_Error with "New_First out of slice range"; end if; Set_First (S.Bounds, New_First); end Set_First; procedure Set_Last (S : in out Slice; New_Last : in Natural) is begin if New_Last > Last (S.Bounds) then raise Constraint_Error with "New_Last out of slice range"; end if; Set_Last (S.Bounds, New_Last); end Set_Last; procedure Set_Length (S : in out Slice; New_Length : in Natural) is begin if New_Length > S.Bounds.Length then raise Constraint_Error with "New_Length out of slice range"; end if; S.Bounds.Length := New_Length; end Set_Length; ---------------------- -- Slice comparison -- ---------------------- function Is_Empty (S : Slice) return Boolean is begin return S.Bounds.Length = 0 or else S.Ref.Is_Empty; end Is_Empty; function Is_Null (S : Slice) return Boolean is begin return S.Ref.Is_Empty; end Is_Null; function Is_Related (Left, Right : Slice) return Boolean is begin return Left.Ref = Right.Ref; end Is_Related; function Is_Subslice (S, Reference : Slice) return Boolean is begin return S.Ref = Reference.Ref and then Is_Subrange (S.Bounds, Reference.Bounds); end Is_Subslice; ------------------ -- Constructors -- ------------------ function Duplicate (S : Slice) return Slice is function Factory return String; function Factory return String is begin return S.Ref.Query.Data.all; end Factory; begin if S.Bounds.Length = 0 or else S.Ref.Is_Empty then return Null_Slice; else return Slice'(Bounds => S.Bounds, Ref => String_Refs.Create (Factory'Access)); end if; end Duplicate; end Natools.String_Slices;
26.328244
79
0.582101
391892920f809d913e192510076abe2517c260a7
3,229
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-crbltr.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/a-crbltr.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-crbltr.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . R E D _ B L A C K _ T R E E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2005, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ package Ada.Containers.Red_Black_Trees is pragma Pure; type Color_Type is (Red, Black); generic type Node_Type (<>) is limited private; type Node_Access is access Node_Type; package Generic_Tree_Types is type Tree_Type is tagged record First : Node_Access; Last : Node_Access; Root : Node_Access; Length : Count_Type := 0; Busy : Natural := 0; Lock : Natural := 0; end record; end Generic_Tree_Types; end Ada.Containers.Red_Black_Trees;
57.660714
78
0.463611
103aa7c234df778c4dc6b1be2833766a2e13e001
6,497
adb
Ada
ADL/drivers/stm32h743/stm32-power_control.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-power_control.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-power_control.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.SCB; use STM32_SVD.SCB; with System.Machine_Code; use System.Machine_Code; package body STM32.Power_Control is -------------------------------------- -- Disable_Backup_Domain_Protection -- -------------------------------------- procedure Disable_Backup_Domain_Protection is begin PWR_Periph.CR1.DBP := True; end Disable_Backup_Domain_Protection; ------------------------------------- -- Enable_Backup_Domain_Protection -- ------------------------------------- procedure Enable_Backup_Domain_Protection is begin PWR_Periph.CR1.DBP := False; end Enable_Backup_Domain_Protection; ----------------------- -- Enable_Wakeup_Pin -- ----------------------- procedure Enable_Wakeup_Pin (Pin : Wakeup_Pin; Enabled : Boolean := True) is begin PWR_Periph.WKUPEPR.WKUPEN.Arr (Pin'Enum_Rep) := Enabled; end Enable_Wakeup_Pin; ----------------------------- -- Set_Wakeup_Pin_Polarity -- ----------------------------- procedure Set_Wakeup_Pin_Polarity (Pin : Wakeup_Pin; Pol : Wakeup_Pin_Polarity; Pull : Wakeup_Pin_PullMode) is begin -- Polarity detection PWR_Periph.WKUPEPR.WKUPP.Arr (Pin'Enum_Rep) := Pol = Falling_Edge; -- Pull mode PWR_Periph.WKUPEPR.WKUPPUPD.Arr (Pin'Enum_Rep) := Pull'Enum_Rep; end Set_Wakeup_Pin_Polarity; ----------------- -- Wakeup_Flag -- ----------------- function Wakeup_Flag (Pin : Wakeup_Pin) return Boolean is (PWR_Periph.WKUPFR.WKUPF.Arr (Pin'Enum_Rep)); ----------------------- -- Clear_Wakeup_Flag -- ----------------------- procedure Clear_Wakeup_Flag (Pin : Wakeup_Pin) is begin PWR_Periph.WKUPCR.WKUPC.Arr (Pin'Enum_Rep) := True; end Clear_Wakeup_Flag; ----------------------- -- Clear_Wakeup_Flag -- ----------------------- procedure Clear_Wakeup_Flag (Pins : Wakeup_Pin_List) is begin for Pin of Pins loop PWR_Periph.WKUPCR.WKUPC.Arr (Pin'Enum_Rep) := True; end loop; end Clear_Wakeup_Flag; ------------------ -- Standby_Flag -- ------------------ function Standby_Flag return Boolean is (PWR_Periph.CPUCR.SBF); ------------------------ -- Clear_Standby_Flag -- ------------------------ procedure Clear_Standby_Flag is begin PWR_Periph.CPUCR.CSSF := True; end Clear_Standby_Flag; -------------------------- -- Set_System_Stop_Mode -- -------------------------- procedure Set_System_Stop_Mode (Mode : System_Stop_Mode) is begin PWR_Periph.CR1.SVOS := Mode'Enum_Rep; end Set_System_Stop_Mode; ------------------------------ -- Set_Power_Down_Deepsleep -- ------------------------------ procedure Set_Power_Down_Deepsleep (Enabled : Boolean := True) is begin if Enabled then -- Set system stop mode voltage scaling to SVOS5 PWR_Periph.CR1.SVOS := System_Stop_Mode'Enum_Rep (SVOS_Scale_5); else -- Set system stop mode voltage scaling to SVOS3 PWR_Periph.CR1.SVOS := System_Stop_Mode'Enum_Rep (SVOS_Scale_3); end if; end Set_Power_Down_Deepsleep; ----------------------------- -- Set_Low_Power_Deepsleep -- ----------------------------- procedure Set_Low_Power_Deepsleep (Enabled : Boolean := True) is begin -- Set system stop mode voltage scaling to SVOS3 PWR_Periph.CR1.SVOS := System_Stop_Mode'Enum_Rep (SVOS_Scale_3); PWR_Periph.CR1.LPDS := Enabled; end Set_Low_Power_Deepsleep; ------------------------ -- Enter_Standby_Mode -- ------------------------ procedure Enter_Standby_Mode is begin for Pin in Wakeup_Pin'Range loop Clear_Wakeup_Flag (Pin); end loop; Clear_Standby_Flag; Set_Power_Down_Deepsleep; SCB_Periph.SCR.SLEEPDEEP := True; loop Asm ("wfi", Volatile => True); end loop; end Enter_Standby_Mode; end STM32.Power_Control;
35.697802
78
0.531168
233f700afbeb3f5264c5673243b2fc27a8cf8808
372,818
adb
Ada
boards/ip/hls/x-order_filter/solution1/.autopilot/db/x_order_fir.adb
xupsh/pynq_x_filter
af6dc348b34ede1c071d96a53e44f51fbb2a961c
[ "BSD-3-Clause" ]
1
2022-03-29T23:17:59.000Z
2022-03-29T23:17:59.000Z
boards/ip/hls/x-order_filter/solution1/.autopilot/db/x_order_fir.adb
xupsh/pynq_x_filter
af6dc348b34ede1c071d96a53e44f51fbb2a961c
[ "BSD-3-Clause" ]
null
null
null
boards/ip/hls/x-order_filter/solution1/.autopilot/db/x_order_fir.adb
xupsh/pynq_x_filter
af6dc348b34ede1c071d96a53e44f51fbb2a961c
[ "BSD-3-Clause" ]
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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>x_order_fir</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>9</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>gmem</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>4</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>y_data</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>y.data</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>y_user_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>y.user.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>y_last_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>y.last.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>x_data</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>x.data</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>x_user_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>x.user.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>x_last_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>x.last.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_8"> <Value> <Obj> <type>1</type> <id>8</id> <name>coe</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>coe</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>ctrl</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ctrl</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>66</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_10"> <Value> <Obj> <type>0</type> <id>12</id> <name>ctrl_read</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ctrl</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>119</item> <item>120</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>13</id> <name>coe_read</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>coe</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>121</item> <item>122</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>14</id> <name>ctrl3</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>ctrl3_reg_478</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>124</item> <item>125</item> <item>127</item> <item>129</item> </oprand_edges> <opcode>partselect</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="_13"> <Value> <Obj> <type>0</type> <id>15</id> <name>tmp_5</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>tmp_5_fu_326_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>130</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>16</id> <name>gmem_addr</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>131</item> <item>132</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>17</id> <name>coe1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>coe1_reg_483</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>133</item> <item>134</item> <item>135</item> <item>136</item> </oprand_edges> <opcode>partselect</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="_16"> <Value> <Obj> <type>0</type> <id>18</id> <name>tmp_9</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>tmp_9_fu_336_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>137</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>19</id> <name>gmem_addr_1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>138</item> <item>139</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>34</id> <name>gmem_addr_rd_req</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second class_id="12" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="13" tracking_level="0" version="0"> <first class_id="14" tracking_level="0" version="0"> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>141</item> <item>142</item> <item>143</item> </oprand_edges> <opcode>readreq</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>8.75</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>35</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>144</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>37</id> <name>i</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>fir_ctrl[1]</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>146</item> <item>147</item> <item>148</item> <item>149</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>38</id> <name>reload</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>reload</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>150</item> <item>151</item> <item>152</item> <item>153</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>39</id> <name>indvar</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>155</item> <item>156</item> <item>157</item> <item>158</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>40</id> <name>exitcond</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond_fu_345_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>159</item> <item>161</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.95</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>42</id> <name>indvar_next</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>indvar_next_fu_351_p2</rtlName> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>162</item> <item>164</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.56</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>43</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>165</item> <item>166</item> <item>167</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>48</id> <name>fir_ctrl_0</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName>fir_ctrl[0]</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>169</item> <item>170</item> <item>506</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>8.75</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>49</id> <name>tmp_10</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_fu_357_p1</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>171</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>50</id> <name>fir_ctrl_1_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName>fir_ctrl[1]</originalName> <rtlName>fir_ctrl_1_1_fu_361_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>172</item> <item>173</item> <item>174</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.69</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>51</id> <name>reload_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName>reload</originalName> <rtlName>reload_1_fu_367_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>175</item> <item>176</item> <item>177</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.69</m_delay> <m_topoIndex>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>53</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>43</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>43</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>178</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>55</id> <name>tmp</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>47</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_fu_373_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>179</item> <item>181</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.47</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>56</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>47</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>182</item> <item>183</item> <item>184</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_12</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_12_fu_379_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>185</item> <item>186</item> </oprand_edges> <opcode>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>24</m_topoIndex> <m_clusterGroupNumber>1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>59</id> <name>tmp_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_1_fu_385_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>188</item> <item>189</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.55</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>60</id> <name>p_add7_i32_shr</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_add7_i32_shr_reg_535</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>190</item> <item>191</item> <item>192</item> <item>193</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>61</id> <name>tmp_s</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_s_fu_401_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>194</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>62</id> <name>gmem_addr_1_rd_req</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>195</item> <item>196</item> <item>197</item> <item>507</item> </oprand_edges> <opcode>readreq</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>8.75</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>63</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>198</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>65</id> <name>indvar1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>200</item> <item>201</item> <item>202</item> <item>203</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>66</id> <name>exitcond1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond1_fu_405_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>204</item> <item>205</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.46</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>67</id> <name>indvar_next1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>indvar_next1_fu_410_p2</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>206</item> <item>208</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.49</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>68</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>209</item> <item>210</item> <item>211</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>73</id> <name>indvar2</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>indvar2_fu_416_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>212</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>74</id> <name>gmem_addr_1_read</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>213</item> <item>214</item> <item>508</item> <item>509</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>8.75</m_delay> <m_topoIndex>34</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>75</id> <name>coef_addr</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>215</item> <item>217</item> <item>218</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>76</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>219</item> <item>220</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>37</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>78</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>48</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>48</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>221</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>38</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>80</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>222</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>39</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>82</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>52</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>52</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>223</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>40</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>84</id> <name>i1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>i</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>224</item> <item>225</item> <item>226</item> <item>227</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>41</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>85</id> <name>acc</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>acc</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>228</item> <item>229</item> <item>230</item> <item>231</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>42</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>86</id> <name>tmp_2</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>52</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>52</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_2_fu_421_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>232</item> <item>233</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.47</m_delay> <m_topoIndex>43</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>87</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>52</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>52</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>234</item> <item>235</item> <item>236</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>44</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>93</id> <name>i_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName>i</originalName> <rtlName>i_1_fu_427_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>237</item> <item>239</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.55</m_delay> <m_topoIndex>45</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>94</id> <name>tmp_6</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_6_fu_433_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>240</item> </oprand_edges> <opcode>sext</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>46</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>95</id> <name>shift_reg_addr</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>241</item> <item>242</item> <item>243</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>47</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>96</id> <name>shift_reg_load</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>244</item> </oprand_edges> <opcode>load</opcode> <m_Display>1</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>1</m_isLCDNode> <m_isStartOfPath>1</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>48</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>97</id> <name>tmp_7</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_7_fu_438_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>245</item> </oprand_edges> <opcode>sext</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>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>98</id> <name>coef_addr_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>246</item> <item>247</item> <item>248</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>50</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>99</id> <name>coef_load_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>249</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>51</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>100</id> <name>tmp_8</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_fu_443_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>250</item> <item>251</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>8.51</m_delay> <m_topoIndex>54</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>101</id> <name>acc_2</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName>acc</originalName> <rtlName>acc_2_fu_448_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>252</item> <item>253</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.55</m_delay> <m_topoIndex>55</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>102</id> <name>shift_reg_addr_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>56</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>10</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>254</item> <item>255</item> <item>256</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>52</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>103</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>56</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>257</item> <item>258</item> <item>2147483647</item> </oprand_edges> <opcode>store</opcode> <m_Display>1</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>1</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>53</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>105</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>52</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>52</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>259</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>56</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>107</id> <name>empty_4</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>34</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>261</item> <item>262</item> <item>263</item> <item>264</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>58</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>108</id> <name>x_data_tmp</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>265</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>59</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>109</id> <name>x_user_V_tmp</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>266</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>60</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>110</id> <name>x_last_V_tmp</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>267</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>61</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>111</id> <name>coef_load</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>270</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>57</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>112</id> <name>tmp_3</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_3_fu_466_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>271</item> <item>272</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>8.51</m_delay> <m_topoIndex>62</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>113</id> <name>acc_1</name> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>acc</originalName> <rtlName>acc_1_fu_472_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>273</item> <item>274</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.55</m_delay> <m_topoIndex>64</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>114</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>275</item> <item>278</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>63</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>115</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>7</count> <item_version>0</item_version> <item>280</item> <item>281</item> <item>282</item> <item>283</item> <item>284</item> <item>285</item> <item>286</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>65</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>116</id> <name/> <fileName>fir_src/x_order_fir.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>66</lineNumber> <contextFuncName>x_order_fir</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\weli\Documents\Works\Materials\Training_Materials_WeiLiu\pynq_x-order_fir\ip\hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>fir_src/x_order_fir.cpp</first> <second>x_order_fir</second> </first> <second>66</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>66</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>14</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_76"> <Value> <Obj> <type>2</type> <id>126</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>2</content> </item> <item class_id_reference="16" object_id="_77"> <Value> <Obj> <type>2</type> <id>128</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>31</content> </item> <item class_id_reference="16" object_id="_78"> <Value> <Obj> <type>2</type> <id>145</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>4</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_79"> <Value> <Obj> <type>2</type> <id>154</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_80"> <Value> <Obj> <type>2</type> <id>160</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>2</content> </item> <item class_id_reference="16" object_id="_81"> <Value> <Obj> <type>2</type> <id>163</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_82"> <Value> <Obj> <type>2</type> <id>180</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_83"> <Value> <Obj> <type>2</type> <id>187</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>4</content> </item> <item class_id_reference="16" object_id="_84"> <Value> <Obj> <type>2</type> <id>199</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_85"> <Value> <Obj> <type>2</type> <id>207</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_86"> <Value> <Obj> <type>2</type> <id>216</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_87"> <Value> <Obj> <type>2</type> <id>238</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>4294967295</content> </item> <item class_id_reference="16" object_id="_88"> <Value> <Obj> <type>2</type> <id>268</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>3</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_89"> <Value> <Obj> <type>2</type> <id>276</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>3</const_type> <content>0</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_90"> <Obj> <type>3</type> <id>36</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>10</count> <item_version>0</item_version> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>34</item> <item>35</item> </node_objs> </item> <item class_id_reference="18" object_id="_91"> <Obj> <type>3</type> <id>44</id> <name>burst.rd.header</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>6</count> <item_version>0</item_version> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>42</item> <item>43</item> </node_objs> </item> <item class_id_reference="18" object_id="_92"> <Obj> <type>3</type> <id>54</id> <name>burst.rd.body</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>53</item> </node_objs> </item> <item class_id_reference="18" object_id="_93"> <Obj> <type>3</type> <id>57</id> <name>burst.rd.end</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>55</item> <item>56</item> </node_objs> </item> <item class_id_reference="18" object_id="_94"> <Obj> <type>3</type> <id>64</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>6</count> <item_version>0</item_version> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> <item>63</item> </node_objs> </item> <item class_id_reference="18" object_id="_95"> <Obj> <type>3</type> <id>69</id> <name>burst.rd.header9</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>65</item> <item>66</item> <item>67</item> <item>68</item> </node_objs> </item> <item class_id_reference="18" object_id="_96"> <Obj> <type>3</type> <id>79</id> <name>burst.rd.body10</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>78</item> </node_objs> </item> <item class_id_reference="18" object_id="_97"> <Obj> <type>3</type> <id>81</id> <name>._crit_edge.loopexit</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>80</item> </node_objs> </item> <item class_id_reference="18" object_id="_98"> <Obj> <type>3</type> <id>83</id> <name>._crit_edge</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>82</item> </node_objs> </item> <item class_id_reference="18" object_id="_99"> <Obj> <type>3</type> <id>88</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>84</item> <item>85</item> <item>86</item> <item>87</item> </node_objs> </item> <item class_id_reference="18" object_id="_100"> <Obj> <type>3</type> <id>106</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>12</count> <item_version>0</item_version> <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>105</item> </node_objs> </item> <item class_id_reference="18" object_id="_101"> <Obj> <type>3</type> <id>117</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>10</count> <item_version>0</item_version> <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> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>158</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_102"> <id>120</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_103"> <id>122</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_104"> <id>125</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_105"> <id>127</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_106"> <id>129</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_107"> <id>130</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_108"> <id>131</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_109"> <id>132</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_110"> <id>134</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_111"> <id>135</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_112"> <id>136</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_113"> <id>137</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_114"> <id>138</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_115"> <id>139</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_116"> <id>142</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_117"> <id>143</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_118"> <id>144</id> <edge_type>2</edge_type> <source_obj>44</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_119"> <id>146</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_120"> <id>147</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_121"> <id>148</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>37</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_122"> <id>149</id> <edge_type>2</edge_type> <source_obj>54</source_obj> <sink_obj>37</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_123"> <id>150</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_124"> <id>151</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_125"> <id>152</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>38</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>153</id> <edge_type>2</edge_type> <source_obj>54</source_obj> <sink_obj>38</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>155</id> <edge_type>1</edge_type> <source_obj>154</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>156</id> <edge_type>2</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="_129"> <id>157</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>39</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>158</id> <edge_type>2</edge_type> <source_obj>54</source_obj> <sink_obj>39</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>159</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_132"> <id>161</id> <edge_type>1</edge_type> <source_obj>160</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_133"> <id>162</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_134"> <id>164</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_135"> <id>165</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_136"> <id>166</id> <edge_type>2</edge_type> <source_obj>54</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_137"> <id>167</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_138"> <id>170</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_139"> <id>171</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_140"> <id>172</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="_141"> <id>173</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_142"> <id>174</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_143"> <id>175</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="_144"> <id>176</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_145"> <id>177</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_146"> <id>178</id> <edge_type>2</edge_type> <source_obj>44</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_147"> <id>179</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_148"> <id>181</id> <edge_type>1</edge_type> <source_obj>180</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_149"> <id>182</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_150"> <id>183</id> <edge_type>2</edge_type> <source_obj>64</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_151"> <id>184</id> <edge_type>2</edge_type> <source_obj>83</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_152"> <id>185</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_153"> <id>186</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_154"> <id>188</id> <edge_type>1</edge_type> <source_obj>187</source_obj> <sink_obj>59</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_155"> <id>189</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="_156"> <id>191</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_157"> <id>192</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_158"> <id>193</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_159"> <id>194</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="_160"> <id>196</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_161"> <id>197</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_162"> <id>198</id> <edge_type>2</edge_type> <source_obj>69</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_163"> <id>200</id> <edge_type>1</edge_type> <source_obj>199</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_164"> <id>201</id> <edge_type>2</edge_type> <source_obj>64</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_165"> <id>202</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>65</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_166"> <id>203</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>65</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_167"> <id>204</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_168"> <id>205</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_169"> <id>206</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_170"> <id>208</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_171"> <id>209</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_172"> <id>210</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_173"> <id>211</id> <edge_type>2</edge_type> <source_obj>81</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_174"> <id>212</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_175"> <id>214</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_176"> <id>215</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_177"> <id>217</id> <edge_type>1</edge_type> <source_obj>216</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_178"> <id>218</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_179"> <id>219</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_180"> <id>220</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_181"> <id>221</id> <edge_type>2</edge_type> <source_obj>69</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_182"> <id>222</id> <edge_type>2</edge_type> <source_obj>83</source_obj> <sink_obj>80</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_183"> <id>223</id> <edge_type>2</edge_type> <source_obj>88</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_184"> <id>224</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_185"> <id>225</id> <edge_type>2</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="_186"> <id>226</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>84</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_187"> <id>227</id> <edge_type>2</edge_type> <source_obj>106</source_obj> <sink_obj>84</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_188"> <id>228</id> <edge_type>1</edge_type> <source_obj>180</source_obj> <sink_obj>85</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_189"> <id>229</id> <edge_type>2</edge_type> <source_obj>83</source_obj> <sink_obj>85</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_190"> <id>230</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>85</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_191"> <id>231</id> <edge_type>2</edge_type> <source_obj>106</source_obj> <sink_obj>85</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_192"> <id>232</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_193"> <id>233</id> <edge_type>1</edge_type> <source_obj>180</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_194"> <id>234</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_195"> <id>235</id> <edge_type>2</edge_type> <source_obj>106</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_196"> <id>236</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_197"> <id>237</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>93</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_198"> <id>239</id> <edge_type>1</edge_type> <source_obj>238</source_obj> <sink_obj>93</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_199"> <id>240</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>94</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_200"> <id>241</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_201"> <id>242</id> <edge_type>1</edge_type> <source_obj>216</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_202"> <id>243</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_203"> <id>244</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="_204"> <id>245</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_205"> <id>246</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_206"> <id>247</id> <edge_type>1</edge_type> <source_obj>216</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_207"> <id>248</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_208"> <id>249</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="_209"> <id>250</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_210"> <id>251</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_211"> <id>252</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="_212"> <id>253</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_213"> <id>254</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_214"> <id>255</id> <edge_type>1</edge_type> <source_obj>216</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_215"> <id>256</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_216"> <id>257</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_217"> <id>258</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="_218"> <id>259</id> <edge_type>2</edge_type> <source_obj>88</source_obj> <sink_obj>105</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_219"> <id>262</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_220"> <id>263</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_221"> <id>264</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_222"> <id>265</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="_223"> <id>266</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="_224"> <id>267</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_225"> <id>269</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>268</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_226"> <id>270</id> <edge_type>1</edge_type> <source_obj>268</source_obj> <sink_obj>111</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_227"> <id>271</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_228"> <id>272</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_229"> <id>273</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="_230"> <id>274</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_231"> <id>275</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_232"> <id>277</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>276</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_233"> <id>278</id> <edge_type>1</edge_type> <source_obj>276</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_234"> <id>281</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_235"> <id>282</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_236"> <id>283</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_237"> <id>284</id> <edge_type>1</edge_type> <source_obj>113</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_238"> <id>285</id> <edge_type>1</edge_type> <source_obj>109</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_239"> <id>286</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_240"> <id>491</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_241"> <id>492</id> <edge_type>2</edge_type> <source_obj>44</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_242"> <id>493</id> <edge_type>2</edge_type> <source_obj>44</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_243"> <id>494</id> <edge_type>2</edge_type> <source_obj>54</source_obj> <sink_obj>44</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_244"> <id>495</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_245"> <id>496</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_246"> <id>497</id> <edge_type>2</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="_247"> <id>498</id> <edge_type>2</edge_type> <source_obj>69</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_248"> <id>499</id> <edge_type>2</edge_type> <source_obj>69</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_249"> <id>500</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>69</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_250"> <id>501</id> <edge_type>2</edge_type> <source_obj>81</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_251"> <id>502</id> <edge_type>2</edge_type> <source_obj>83</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_252"> <id>503</id> <edge_type>2</edge_type> <source_obj>88</source_obj> <sink_obj>117</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_253"> <id>504</id> <edge_type>2</edge_type> <source_obj>88</source_obj> <sink_obj>106</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_254"> <id>505</id> <edge_type>2</edge_type> <source_obj>106</source_obj> <sink_obj>88</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_255"> <id>506</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_256"> <id>507</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_257"> <id>508</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_258"> <id>509</id> <edge_type>4</edge_type> <source_obj>62</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_259"> <id>2147483647</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>96</sink_obj> <is_back_edge>1</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_260"> <mId>1</mId> <mTag>x_order_fir</mTag> <mType>0</mType> <sub_regions> <count>8</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>-1</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_261"> <mId>2</mId> <mTag>Entry</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>36</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>7</mMinLatency> <mMaxLatency>7</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_262"> <mId>3</mId> <mTag>memcpy.fir_ctrl.ctrl</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>44</item> <item>54</item> </basic_blocks> <mII>1</mII> <mDepth>3</mDepth> <mMinTripCount>2</mMinTripCount> <mMaxTripCount>2</mMaxTripCount> <mMinLatency>3</mMinLatency> <mMaxLatency>3</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_263"> <mId>4</mId> <mTag>Region 1</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>57</item> <item>64</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>7</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_264"> <mId>5</mId> <mTag>memcpy.x_order_fir(data_t*, data_t*, int*, int*)::coef.coe</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>69</item> <item>79</item> </basic_blocks> <mII>1</mII> <mDepth>3</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>-1</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_265"> <mId>6</mId> <mTag>Region 2</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>81</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"/> </item> <item class_id_reference="22" object_id="_266"> <mId>7</mId> <mTag>Region 3</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>83</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"/> </item> <item class_id_reference="22" object_id="_267"> <mId>8</mId> <mTag>calc_loop</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>88</item> <item>106</item> </basic_blocks> <mII>2</mII> <mDepth>4</mDepth> <mMinTripCount>10</mMinTripCount> <mMaxTripCount>1023</mMaxTripCount> <mMinLatency>21</mMinLatency> <mMaxLatency>2047</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_268"> <mId>9</mId> <mTag>Return</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>117</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>4</mMinLatency> <mMaxLatency>4</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_269"> <states class_id="25" tracking_level="0" version="0"> <count>32</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_270"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_271"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_272"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_273"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_274"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_275"> <id>2</id> <operations> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_276"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_277"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_278"> <id>34</id> <stage>7</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_279"> <id>3</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_280"> <id>34</id> <stage>6</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_281"> <id>4</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_282"> <id>34</id> <stage>5</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_283"> <id>5</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_284"> <id>34</id> <stage>4</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_285"> <id>6</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_286"> <id>34</id> <stage>3</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_287"> <id>7</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_288"> <id>34</id> <stage>2</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_289"> <id>8</id> <operations> <count>18</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_290"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_291"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_292"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_293"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_294"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_295"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_296"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_297"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_298"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_299"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_300"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_301"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_302"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_303"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_304"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_305"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_306"> <id>34</id> <stage>1</stage> <latency>7</latency> </item> <item class_id_reference="28" object_id="_307"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_308"> <id>9</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_309"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_310"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_311"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_312"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_313"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_314"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_315"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_316"> <id>49</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_317"> <id>10</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_318"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_319"> <id>11</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_320"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_321"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_322"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_323"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_324"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_325"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_326"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_327"> <id>12</id> <operations> <count>5</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_328"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_329"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_330"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_331"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_332"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_333"> <id>13</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_334"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_335"> <id>62</id> <stage>7</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_336"> <id>14</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_337"> <id>62</id> <stage>6</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_338"> <id>15</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_339"> <id>62</id> <stage>5</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_340"> <id>16</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_341"> <id>62</id> <stage>4</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_342"> <id>17</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_343"> <id>62</id> <stage>3</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_344"> <id>18</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_345"> <id>62</id> <stage>2</stage> <latency>7</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_346"> <id>19</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_347"> <id>62</id> <stage>1</stage> <latency>7</latency> </item> <item class_id_reference="28" object_id="_348"> <id>63</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_349"> <id>20</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_350"> <id>65</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_351"> <id>66</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_352"> <id>67</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_353"> <id>68</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_354"> <id>21</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_355"> <id>74</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_356"> <id>22</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_357"> <id>70</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_358"> <id>71</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_359"> <id>72</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_360"> <id>73</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_361"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_362"> <id>76</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_363"> <id>77</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_364"> <id>78</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_365"> <id>23</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_366"> <id>80</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_367"> <id>82</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_368"> <id>24</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_369"> <id>84</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_370"> <id>85</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_371"> <id>86</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_372"> <id>87</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_373"> <id>93</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_374"> <id>94</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_375"> <id>95</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_376"> <id>96</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_377"> <id>97</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_378"> <id>98</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_379"> <id>99</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_380"> <id>25</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_381"> <id>96</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_382"> <id>99</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_383"> <id>102</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_384"> <id>103</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_385"> <id>26</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_386"> <id>100</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_387"> <id>27</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_388"> <id>89</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_389"> <id>90</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_390"> <id>91</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_391"> <id>92</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_392"> <id>101</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_393"> <id>104</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_394"> <id>105</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_395"> <id>28</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_396"> <id>111</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_397"> <id>29</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_398"> <id>111</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_399"> <id>30</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_400"> <id>107</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_401"> <id>108</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_402"> <id>109</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_403"> <id>110</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_404"> <id>112</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_405"> <id>114</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_406"> <id>31</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_407"> <id>113</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_408"> <id>115</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_409"> <id>32</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_410"> <id>115</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_411"> <id>116</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>35</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_412"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>-1</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_413"> <inState>2</inState> <outState>3</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_414"> <inState>3</inState> <outState>4</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_415"> <inState>4</inState> <outState>5</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_416"> <inState>5</inState> <outState>6</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_417"> <inState>6</inState> <outState>7</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_418"> <inState>7</inState> <outState>8</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_419"> <inState>8</inState> <outState>9</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_420"> <inState>12</inState> <outState>13</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first class_id="35" tracking_level="0" version="0"> <first>55</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_421"> <inState>12</inState> <outState>23</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>55</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_422"> <inState>13</inState> <outState>14</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_423"> <inState>14</inState> <outState>15</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_424"> <inState>15</inState> <outState>16</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_425"> <inState>16</inState> <outState>17</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_426"> <inState>17</inState> <outState>18</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_427"> <inState>18</inState> <outState>19</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_428"> <inState>19</inState> <outState>20</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_429"> <inState>23</inState> <outState>24</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_430"> <inState>28</inState> <outState>29</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_431"> <inState>29</inState> <outState>30</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_432"> <inState>30</inState> <outState>31</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_433"> <inState>31</inState> <outState>32</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_434"> <inState>10</inState> <outState>11</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_435"> <inState>11</inState> <outState>9</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_436"> <inState>9</inState> <outState>12</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>40</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_437"> <inState>9</inState> <outState>10</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>40</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_438"> <inState>21</inState> <outState>22</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_439"> <inState>22</inState> <outState>20</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_440"> <inState>20</inState> <outState>23</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_441"> <inState>20</inState> <outState>21</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_442"> <inState>25</inState> <outState>26</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_443"> <inState>26</inState> <outState>27</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_444"> <inState>27</inState> <outState>24</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_445"> <inState>24</inState> <outState>28</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>86</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_446"> <inState>24</inState> <outState>25</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>86</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="36" tracking_level="1" version="0" object_id="_447"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>x_order_fir_AXILiteS_s_axi_U (x_order_fir_AXILiteS_s_axi)</first> <second class_id="39" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>BRAM</first> <second>0</second> </item> <item> <first>FF</first> <second>112</second> </item> <item> <first>LUT</first> <second>168</second> </item> </second> </item> <item> <first>x_order_fir_gmem_m_axi_U (x_order_fir_gmem_m_axi)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>BRAM</first> <second>2</second> </item> <item> <first>FF</first> <second>512</second> </item> <item> <first>LUT</first> <second>580</second> </item> </second> </item> </dp_component_resource> <dp_expression_resource> <count>42</count> <item_version>0</item_version> <item> <first>acc_1_fu_472_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>39</second> </item> </second> </item> <item> <first>acc_2_fu_448_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>39</second> </item> </second> </item> <item> <first>ap_block_pp0_stage0_11001 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_pp1_stage0_11001 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state10_pp0_stage0_iter1 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state21_pp1_stage0_iter1 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state32 ( or ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_pp0 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_pp1 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_pp2 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter1 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond1_fu_405_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>30</second> </item> <item> <first>(1P1)</first> <second>30</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>18</second> </item> </second> </item> <item> <first>exitcond_fu_345_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>fir_ctrl_1_1_fu_361_p3 ( select ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>(2P2)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</second> </item> </second> </item> <item> <first>i_1_fu_427_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>39</second> </item> </second> </item> <item> <first>indvar_next1_fu_410_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>30</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>37</second> </item> </second> </item> <item> <first>indvar_next_fu_351_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>10</second> </item> </second> </item> <item> <first>reload_1_fu_367_p3 ( select ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>(2P2)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</second> </item> </second> </item> <item> <first>tmp_1_fu_385_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>3</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>39</second> </item> </second> </item> <item> <first>tmp_2_fu_421_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>18</second> </item> </second> </item> <item> <first>tmp_3_fu_466_p2 ( * ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>DSP48E</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>20</second> </item> </second> </item> <item> <first>tmp_8_fu_443_p2 ( * ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>DSP48E</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>20</second> </item> </second> </item> <item> <first>tmp_fu_373_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>18</second> </item> </second> </item> <item> <first>x_data_0_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_data_0_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_data_0_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>x_last_V_0_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_last_V_0_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_last_V_0_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>x_user_V_0_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_user_V_0_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>x_user_V_0_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>y_data_1_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_data_1_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_data_1_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>y_last_V_1_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_last_V_1_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_last_V_1_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>y_user_V_1_load_A ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_user_V_1_load_B ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>y_user_V_1_state_cmp_full ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>2</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> </dp_expression_resource> <dp_fifo_resource> <count>0</count> <item_version>0</item_version> </dp_fifo_resource> <dp_memory_resource> <count>2</count> <item_version>0</item_version> <item> <first>coef_U</first> <second> <count>7</count> <item_version>0</item_version> <item> <first>(0Words)</first> <second>1024</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Banks)</first> <second>1</second> </item> <item> <first>(3W*Bits*Banks)</first> <second>32768</second> </item> <item> <first>BRAM</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>0</second> </item> </second> </item> <item> <first>shift_reg_U</first> <second> <count>7</count> <item_version>0</item_version> <item> <first>(0Words)</first> <second>1024</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Banks)</first> <second>1</second> </item> <item> <first>(3W*Bits*Banks)</first> <second>32768</second> </item> <item> <first>BRAM</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>0</second> </item> </second> </item> </dp_memory_resource> <dp_multiplexer_resource> <count>34</count> <item_version>0</item_version> <item> <first>acc_reg_290</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_NS_fsm</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>27</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>27</second> </item> <item> <first>LUT</first> <second>125</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter2</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter2</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_enable_reg_pp2_iter1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_phi_mux_i1_phi_fu_283_p4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_phi_mux_indvar1_phi_fu_272_p4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>30</second> </item> <item> <first>(2Count)</first> <second>60</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_sig_ioackin_gmem_ARREADY</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>coef_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>4</second> </item> <item> <first>(1Bits)</first> <second>10</second> </item> <item> <first>(2Count)</first> <second>40</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>gmem_ARADDR</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>96</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>gmem_ARLEN</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>96</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>gmem_blk_n_AR</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>gmem_blk_n_R</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>i1_reg_280</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>indvar1_reg_268</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>30</second> </item> <item> <first>(2Count)</first> <second>60</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>indvar_reg_257</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>4</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>shift_reg_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>4</second> </item> <item> <first>(1Bits)</first> <second>10</second> </item> <item> <first>(2Count)</first> <second>40</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>shift_reg_d0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>96</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>x_TDATA_blk_n</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>x_data_0_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>x_data_0_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>x_last_V_0_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>x_last_V_0_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>x_user_V_0_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>x_user_V_0_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>y_TDATA_blk_n</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>y_data_1_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>y_data_1_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>y_last_V_1_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>y_last_V_1_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>y_user_V_1_data_out</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>y_user_V_1_state</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>2</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> </dp_multiplexer_resource> <dp_register_resource> <count>70</count> <item_version>0</item_version> <item> <first>acc_reg_290</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>ap_CS_fsm</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>26</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>26</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter0</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter2</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter0</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter1</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp1_iter2</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp2_iter0</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp2_iter1</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_reg_ioackin_gmem_ARREADY</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>coe1_reg_483</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>ctrl3_reg_478</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>exitcond1_reg_546</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>exitcond1_reg_546_pp1_iter1_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>exitcond_reg_500</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>exitcond_reg_500_pp0_iter1_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>fir_ctrl_0_reg_515</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>gmem_addr_1_read_reg_555</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>gmem_addr_1_reg_494</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>2</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>i1_reg_280</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>i_1_reg_564</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>i_reg_233</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>indvar1_reg_268</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>indvar1_reg_268_pp1_iter1_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>indvar_next1_reg_550</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>indvar_reg_257</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>p_add7_i32_shr_reg_535</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>reg_302</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>reload_reg_245</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>shift_reg_load_reg_584</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_10_reg_509</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>tmp_10_reg_509_pp0_iter1_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>tmp_2_reg_560</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>tmp_2_reg_560_pp2_iter1_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>tmp_3_reg_609</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_7_reg_574</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>tmp_8_reg_589</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>x_data_0_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>x_data_0_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>x_data_0_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_data_0_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_data_0_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>x_last_V_0_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_last_V_0_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_last_V_0_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_last_V_0_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_last_V_0_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>x_last_V_tmp_reg_604</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_user_V_0_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_user_V_0_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_user_V_0_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_user_V_0_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>x_user_V_0_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>x_user_V_tmp_reg_599</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_data_1_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>y_data_1_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>y_data_1_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_data_1_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_data_1_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>y_last_V_1_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_last_V_1_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_last_V_1_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_last_V_1_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_last_V_1_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> <item> <first>y_user_V_1_payload_A</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_user_V_1_payload_B</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_user_V_1_sel_rd</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_user_V_1_sel_wr</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>y_user_V_1_state</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>2</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>2</second> </item> </second> </item> </dp_register_resource> <dp_dsp_resource> <count>2</count> <item_version>0</item_version> <item> <first>x_order_fir_AXILiteS_s_axi_U</first> <second> <count>0</count> <item_version>0</item_version> </second> </item> <item> <first>x_order_fir_gmem_m_axi_U</first> <second> <count>0</count> <item_version>0</item_version> </second> </item> </dp_dsp_resource> <dp_component_map class_id="41" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>14</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <first>acc_1_fu_472_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> <item> <first>acc_2_fu_448_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>exitcond1_fu_405_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>exitcond_fu_345_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>fir_ctrl_1_1_fu_361_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>i_1_fu_427_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>indvar_next1_fu_410_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>indvar_next_fu_351_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>reload_1_fu_367_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>tmp_1_fu_385_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_2_fu_421_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>tmp_3_fu_466_p2 ( * ) </first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>tmp_8_fu_443_p2 ( * ) </first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>tmp_fu_373_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>2</count> <item_version>0</item_version> <item> <first>coef_U</first> <second> <count>1</count> <item_version>0</item_version> <item>455</item> </second> </item> <item> <first>shift_reg_U</first> <second> <count>1</count> <item_version>0</item_version> <item>464</item> </second> </item> </dp_memory_map> </res> <node_label_latency class_id="43" tracking_level="0" version="0"> <count>66</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>12</first> <second class_id="45" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>1</first> <second>6</second> </second> </item> <item> <first>35</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>12</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>12</first> <second>6</second> </second> </item> <item> <first>63</first> <second> <first>18</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>19</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>19</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>19</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>19</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>21</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>20</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>21</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>21</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>21</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>22</first> <second>0</second> </second> </item> <item> <first>82</first> <second> <first>22</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>85</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>93</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>94</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>95</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>23</first> <second>1</second> </second> </item> <item> <first>97</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>23</first> <second>1</second> </second> </item> <item> <first>100</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>105</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>107</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>108</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>109</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>110</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>111</first> <second> <first>27</first> <second>1</second> </second> </item> <item> <first>112</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>113</first> <second> <first>30</first> <second>0</second> </second> </item> <item> <first>114</first> <second> <first>29</first> <second>0</second> </second> </item> <item> <first>115</first> <second> <first>30</first> <second>1</second> </second> </item> <item> <first>116</first> <second> <first>31</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="46" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>36</first> <second class_id="48" tracking_level="0" version="0"> <first>0</first> <second>7</second> </second> </item> <item> <first>44</first> <second> <first>8</first> <second>8</second> </second> </item> <item> <first>54</first> <second> <first>8</first> <second>10</second> </second> </item> <item> <first>57</first> <second> <first>9</first> <second>9</second> </second> </item> <item> <first>64</first> <second> <first>9</first> <second>16</second> </second> </item> <item> <first>69</first> <second> <first>17</first> <second>17</second> </second> </item> <item> <first>79</first> <second> <first>18</first> <second>19</second> </second> </item> <item> <first>81</first> <second> <first>18</first> <second>18</second> </second> </item> <item> <first>83</first> <second> <first>18</first> <second>18</second> </second> </item> <item> <first>88</first> <second> <first>19</first> <second>19</second> </second> </item> <item> <first>106</first> <second> <first>19</first> <second>22</second> </second> </item> <item> <first>117</first> <second> <first>20</first> <second>24</second> </second> </item> </bblk_ent_exit> <regions class_id="49" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="50" tracking_level="1" version="0" object_id="_448"> <region_name>memcpy.fir_ctrl.ctrl</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>44</item> <item>54</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>3</pipe_depth> </item> <item class_id_reference="50" object_id="_449"> <region_name>memcpy.x_order_fir(data_t*, data_t*, int*, int*)::coef.coe</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>69</item> <item>79</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>3</pipe_depth> </item> <item class_id_reference="50" object_id="_450"> <region_name>calc_loop</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>88</item> <item>106</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>2</interval> <pipe_depth>4</pipe_depth> </item> </regions> <dp_fu_nodes class_id="51" tracking_level="0" version="0"> <count>50</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>130</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>136</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>142</first> <second> <count>7</count> <item_version>0</item_version> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> </second> </item> <item> <first>149</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>154</first> <second> <count>7</count> <item_version>0</item_version> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> </second> </item> <item> <first>160</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>165</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> <item> <first>175</first> <second> <count>2</count> <item_version>0</item_version> <item>115</item> <item>115</item> </second> </item> <item> <first>188</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>195</first> <second> <count>5</count> <item_version>0</item_version> <item>76</item> <item>99</item> <item>99</item> <item>111</item> <item>111</item> </second> </item> <item> <first>201</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>208</first> <second> <count>4</count> <item_version>0</item_version> <item>96</item> <item>96</item> <item>103</item> <item>114</item> </second> </item> <item> <first>214</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>222</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>237</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>249</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>261</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>272</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>283</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>294</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>306</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>316</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>326</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>329</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>336</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>339</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>345</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>351</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>357</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>361</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>367</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>373</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>379</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>385</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>391</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>401</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>405</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>410</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>416</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>421</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>427</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>433</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>438</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>443</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>448</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>453</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>458</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> <item> <first>462</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>466</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>472</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="54" tracking_level="0" version="0"> <count>40</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>acc_1_fu_472</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> <item> <first>acc_2_fu_448</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>acc_phi_fu_294</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>coe1_fu_316</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>coef_addr_1_gep_fu_214</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>coef_addr_gep_fu_188</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>ctrl3_fu_306</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>exitcond1_fu_405</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>exitcond_fu_345</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>fir_ctrl_1_1_fu_361</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>gmem_addr_1_fu_339</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>gmem_addr_fu_329</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>i1_phi_fu_283</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>i_1_fu_427</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>i_phi_fu_237</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>indvar1_phi_fu_272</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>indvar2_fu_416</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>indvar_next1_fu_410</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>indvar_next_fu_351</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>indvar_phi_fu_261</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>p_add7_i32_shr_fu_391</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>reload_1_fu_367</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>reload_phi_fu_249</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>shift_reg_addr_1_gep_fu_222</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>shift_reg_addr_gep_fu_201</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>tmp_10_fu_357</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_12_fu_379</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_1_fu_385</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_2_fu_421</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>tmp_3_fu_466</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>tmp_5_fu_326</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>tmp_6_fu_433</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>tmp_7_fu_438</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>tmp_8_fu_443</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>tmp_9_fu_336</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>tmp_fu_373</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_s_fu_401</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>x_data_tmp_fu_453</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>x_last_V_tmp_fu_462</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>x_user_V_tmp_fu_458</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>8</count> <item_version>0</item_version> <item> <first>coe_read_read_fu_136</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>ctrl_read_read_fu_130</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>empty_4_read_fu_165</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> <item> <first>fir_ctrl_0_read_fu_149</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>gmem_addr_1_read_read_fu_160</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>grp_readreq_fu_142</first> <second> <count>7</count> <item_version>0</item_version> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> <item>34</item> </second> </item> <item> <first>grp_readreq_fu_154</first> <second> <count>7</count> <item_version>0</item_version> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> <item>62</item> </second> </item> <item> <first>grp_write_fu_175</first> <second> <count>2</count> <item_version>0</item_version> <item>115</item> <item>115</item> </second> </item> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="56" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="57" tracking_level="0" version="0"> <first class_id="58" tracking_level="0" version="0"> <first>coef</first> <second>0</second> </first> <second> <count>5</count> <item_version>0</item_version> <item>76</item> <item>99</item> <item>99</item> <item>111</item> <item>111</item> </second> </item> <item> <first> <first>shift_reg</first> <second>0</second> </first> <second> <count>4</count> <item_version>0</item_version> <item>96</item> <item>96</item> <item>103</item> <item>114</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>35</count> <item_version>0</item_version> <item> <first>233</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>257</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>268</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>280</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>290</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>302</first> <second> <count>2</count> <item_version>0</item_version> <item>99</item> <item>111</item> </second> </item> <item> <first>478</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>483</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>488</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>494</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>500</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>504</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>509</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>515</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>521</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>526</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>531</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>535</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>541</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>546</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>550</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>555</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>560</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>564</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>569</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>574</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>579</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>584</first> <second> <count>1</count> <item_version>0</item_version> <item>96</item> </second> </item> <item> <first>589</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>594</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>599</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> <item> <first>604</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>609</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>614</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>35</count> <item_version>0</item_version> <item> <first>acc_1_reg_614</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> <item> <first>acc_2_reg_594</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>acc_reg_290</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>coe1_reg_483</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>coef_addr_1_reg_579</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>ctrl3_reg_478</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>exitcond1_reg_546</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>exitcond_reg_500</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>fir_ctrl_0_reg_515</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>fir_ctrl_1_1_reg_521</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>gmem_addr_1_read_reg_555</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>gmem_addr_1_reg_494</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>gmem_addr_reg_488</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>i1_reg_280</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>i_1_reg_564</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>i_reg_233</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>indvar1_reg_268</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>indvar_next1_reg_550</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>indvar_next_reg_504</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>indvar_reg_257</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>p_add7_i32_shr_reg_535</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>reg_302</first> <second> <count>2</count> <item_version>0</item_version> <item>99</item> <item>111</item> </second> </item> <item> <first>reload_1_reg_526</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>reload_reg_245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>shift_reg_addr_reg_569</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>shift_reg_load_reg_584</first> <second> <count>1</count> <item_version>0</item_version> <item>96</item> </second> </item> <item> <first>tmp_10_reg_509</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_2_reg_560</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>tmp_3_reg_609</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>tmp_7_reg_574</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>tmp_8_reg_589</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>tmp_reg_531</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_s_reg_541</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>x_last_V_tmp_reg_604</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>x_user_V_tmp_reg_599</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>6</count> <item_version>0</item_version> <item> <first>233</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>257</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>268</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>280</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>290</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>6</count> <item_version>0</item_version> <item> <first>acc_reg_290</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>i1_reg_280</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>i_reg_233</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>indvar1_reg_268</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>indvar_reg_257</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>reload_reg_245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="59" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="60" tracking_level="0" version="0"> <first>coe</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> </second> </item> <item> <first>ctrl</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </second> </item> <item> <first>gmem</first> <second> <count>0</count> <item_version>0</item_version> </second> </item> <item> <first>x_data</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> </second> </item> <item> <first>x_last_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> </second> </item> <item> <first>x_user_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> </second> </item> <item> <first>y_data</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> </second> </item> <item> <first>y_last_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> </second> </item> <item> <first>y_user_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="61" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
30.263658
122
0.444187
2389e659351ba71f1e406ffc09eb059d7faa0cf6
208
adb
Ada
4-high/gel/applet/demo/distributed/fused/launch_gel_fused.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
4-high/gel/applet/demo/distributed/fused/launch_gel_fused.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
4-high/gel/applet/demo/distributed/fused/launch_gel_fused.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with gel_demo_Server, gel_demo_Client; procedure launch_GEL_fused -- -- Launches the fused version. -- is begin gel_demo_Server.item.start; gel_demo_Client.item.start; end launch_GEL_fused;
13.866667
30
0.75
dfd50a46bdb37292bd6a5232ba17f1ba562615d9
1,153
ads
Ada
source/machine-w64-mingw32/s-sysall.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/machine-w64-mingw32/s-sysall.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/machine-w64-mingw32/s-sysall.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- runtime unit specialized for Windows with System.Storage_Elements; package System.System_Allocators is pragma Preelaborate; -- heap function Allocate ( Size : Storage_Elements.Storage_Count) return Address; -- Null_Address if it failed function Allocate ( Size : Storage_Elements.Storage_Count; Alignment : Storage_Elements.Storage_Count) return Address; procedure Free (Storage_Address : Address); function Reallocate ( Storage_Address : Address; Size : Storage_Elements.Storage_Count) return Address; -- Null_Address if it failed -- memory mapping function Page_Size return Storage_Elements.Storage_Count; function Map ( Storage_Address : Address; -- not fixed but hint Size : Storage_Elements.Storage_Count) return Address; -- Null_Address if it failed procedure Unmap ( Storage_Address : Address; Size : Storage_Elements.Storage_Count); -- Note: This package name comes from GNAT's implementation-defined -- attribute Standard'System_Allocator_Alignment. end System.System_Allocators;
28.825
71
0.725932
238c43919eac908502fd2dfedba4389233e85d44
7,009
adb
Ada
Ada95/samples/ncurses2-getopt.adb
mvaisakh/android_external_libncurses
d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f
[ "DOC", "Unlicense" ]
35
2015-03-07T13:26:22.000Z
2021-11-06T16:18:59.000Z
Ada95/samples/ncurses2-getopt.adb
mvaisakh/android_external_libncurses
d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f
[ "DOC", "Unlicense" ]
3
2017-04-07T21:02:48.000Z
2017-04-08T17:59:35.000Z
Ada95/samples/ncurses2-getopt.adb
mvaisakh/android_external_libncurses
d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f
[ "DOC", "Unlicense" ]
19
2015-06-16T06:13:44.000Z
2021-07-24T02:37:45.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ncurses -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 2000-2004,2008 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno <[email protected]> 2000 -- Version Control -- $Revision: 1.7 $ -- $Date: 2008/07/26 18:46:44 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- A simplified version of the GNU getopt function -- copyright Free Software Foundtion with Ada.Strings.Fixed; with Ada.Strings.Bounded; with Ada.Text_IO; use Ada.Text_IO; package body ncurses2.getopt is nextchar : Natural := 0; -- Ncurses doesn't use the non option elements so we are spared -- the job of computing those. -- also the user is not allowed to modify argv or argc -- Doing so is Erroneous execution. -- longoptions are not handled. procedure Qgetopt (retval : out Integer; argc : Integer; argv : stringfunc; -- argv will be the Argument function. optstring : String; optind : in out Integer; -- ignored for ncurses, must be initialized to 1 by -- the caller Optarg : out stringa -- a garbage colector would be useful here. ) is package BS is new Ada.Strings.Bounded.Generic_Bounded_Length (200); use BS; optargx : Bounded_String; begin if argc < optind then retval := -1; return; end if; optargx := To_Bounded_String (""); if nextchar = 0 then if argv (optind) = "--" then -- the rest are non-options, we ignore them retval := -1; return; end if; if argv (optind)(1) /= '-' or argv (optind)'Length = 1 then optind := optind + 1; Optarg := new String'(argv (optind)); retval := 1; return; end if; nextchar := 2; -- skip the one hyphen. end if; -- Look at and handle the next short option-character. declare c : Character := argv (optind) (nextchar); temp : constant Natural := Ada.Strings.Fixed.Index (optstring, String'(1 => c)); begin if temp = 0 or c = ':' then Put_Line (Standard_Error, argv (optind) & ": invalid option -- " & c); c := '?'; return; end if; if optstring (temp + 1) = ':' then if optstring (temp + 2) = ':' then -- This is an option that accepts an argument optionally. if nextchar /= argv (optind)'Length then optargx := To_Bounded_String (argv (optind) (nextchar .. argv (optind)'Length)); else Optarg := null; end if; else -- This is an option that requires an argument. if nextchar /= argv (optind)'Length then optargx := To_Bounded_String (argv (optind) (nextchar .. argv (optind)'Length)); optind := optind + 1; elsif optind = argc then Put_Line (Standard_Error, argv (optind) & ": option requires an argument -- " & c); if optstring (optstring'First) = ':' then c := ':'; else c := '?'; end if; else -- increment it again when taking next ARGV-elt as argument. optind := optind + 1; optargx := To_Bounded_String (argv (optind)); optind := optind + 1; end if; end if; nextchar := 0; else -- no argument for the option if nextchar = argv (optind)'Length then optind := optind + 1; nextchar := 0; else nextchar := nextchar + 1; end if; end if; retval := Character'Pos (c); Optarg := new String'(To_String (optargx)); return; end; end Qgetopt; end ncurses2.getopt;
42.737805
79
0.443715
105abeb318183b5436a93db3be45e774f5a4066d
646
ada
Ada
Task/Infinity/Ada/infinity-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Infinity/Ada/infinity-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Infinity/Ada/infinity-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
with Ada.Text_IO; use Ada.Text_IO; procedure Infinities is function Sup return Float is -- Only for predefined types Result : Float := Float'Last; begin if not Float'Machine_Overflows then Result := Float'Succ (Result); end if; return Result; end Sup; function Inf return Float is -- Only for predefined types Result : Float := Float'First; begin if not Float'Machine_Overflows then Result := Float'Pred (Result); end if; return Result; end Inf; begin Put_Line ("Supremum" & Float'Image (Sup)); Put_Line ("Infimum " & Float'Image (Inf)); end Infinities;
25.84
60
0.643963
0e1411bd27c3d0039e734fe83847da31640eca3d
1,806
ads
Ada
Source/inventory_list.ads
XMoose25X/Advanced-Dungeon-Assault
8303d5ca3f5729675e66069ad5e63a9eed480f7c
[ "MIT" ]
1
2021-06-01T03:57:57.000Z
2021-06-01T03:57:57.000Z
Source/inventory_list.ads
XMoose25X/Advanced-Dungeon-Assault
8303d5ca3f5729675e66069ad5e63a9eed480f7c
[ "MIT" ]
null
null
null
Source/inventory_list.ads
XMoose25X/Advanced-Dungeon-Assault
8303d5ca3f5729675e66069ad5e63a9eed480f7c
[ "MIT" ]
null
null
null
with Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; with Ada.Text_IO; Use Ada.Text_IO; package inventory_list is -- inventory system that stores items from items.dat in a linked-list -- alphabetically. KEY_ERROR : exception; OVERFLOW : exception; type List_Type is private; type Node_Ptr is private; type valueArray is array(1..3) of Integer; subtype nameType is String (1..25); type inventoryItem is record itemID : Integer; name : nameType; itemType : Integer; quantity : Integer; effects : valueArray; next : Node_Ptr; end record; procedure Clear (List : in out List_Type); --Empties Inventory list procedure Insert (key : in Integer; List : in out List_Type); --Adds inventory item from item ID procedure useItem (key : in Integer; List : in out List_Type; item : out inventoryItem); --uses inventory item by returning the item and deleting item after usage procedure Drop (key : in Integer; List : in out List_Type); --deletes item from inventory procedure DisplayList (List : in List_Type); --Traverses thru inventory displaying each item on screen alphabetically procedure readItem(itemID : in Integer; name : out nameType; itemType : out Integer; effects : out valueArray); procedure saveInventory(List : in List_Type; File : File_Type); function isEmpty (List : in List_Type) return Boolean; --checks whether inventory is empty function getName (itemID : in Integer) return NameType; function getSlotName (List : in List_Type; slot : in integer) return String; function getSlotId (List : in List_Type; slot : in integer) return Integer; private type Node_Ptr is access inventoryItem; type List_Type is record Head : Node_Ptr; -- Designates first node in the linked list end record; end inventory_list;
28.21875
112
0.736988
3939c3b3d06a32d0c3f9c1ba3bce346135be58f4
9,852
adb
Ada
linear_algebra/crout_lu_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
linear_algebra/crout_lu_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
linear_algebra/crout_lu_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
-- Test LU decomposition on a real valued square matrix. with Ada.Numerics.Generic_elementary_functions; with Crout_LU; with Text_IO; use Text_IO; with Test_Matrices; procedure crout_lu_tst_2 is type Real is digits 15; subtype Index is Integer range 0..50; Starting_Index : constant Index := Index'First + 0; Final_Index : Index := Index'Last - 0; type Matrix is array(Index, Index) of Real; package math is new Ada.Numerics.Generic_elementary_functions(Real); use math; --for sqrt package lu is new crout_lu (Real, Index, Matrix); use lu; package rio is new Float_IO(Real); use rio; package iio is new Integer_IO(Integer); use iio; package Make_Square_Matrix is new Test_Matrices (Real, Index, Matrix); use Make_Square_Matrix; Zero : constant Real := +0.0; One : constant Real := +1.0; Two : constant Real := +2.0; Min_Allowed_Real : constant Real := Two**(Real'Machine_Emin / 4); Zero_Vector : constant Row_Vector := (others => Zero); A, B, Err : Matrix := (others => (others => Zero)); Identity, B_inv : Matrix := (others => (others => Zero)); Relative_Err, Max_Error : Real; IO_Final_Index : Integer := 4; Scale_the_Matrix : constant Boolean := True; Scale : Scale_Vectors; ----------- -- Pause -- ----------- procedure Pause (s1,s2,s3,s4,s5,s6,s7,s8 : string := "") is Continue : Character := ' '; begin New_Line; if S1 /= "" then put_line (S1); end if; if S2 /= "" then put_line (S2); end if; if S3 /= "" then put_line (S3); end if; if S4 /= "" then put_line (S4); end if; if S5 /= "" then put_line (S5); end if; if S6 /= "" then put_line (S6); end if; if S7 /= "" then put_line (S7); end if; if S8 /= "" then put_line (S8); end if; new_line; begin put ("Enter a character to continue: "); get_immediate (Continue); new_line; exception when others => null; end; end pause; ----------------------------------- -- Transpose_of_Left_Times_Right -- ----------------------------------- function Transpose_of_Left_Times_Right (A, B : in Matrix; Final_Row : in Index := Final_Index; Final_Col : in Index := Final_Index; Starting_Row : in Index := Starting_Index; Starting_Col : in Index := Starting_Index) return Matrix is Sum : Real := Zero; Result : Matrix := (others => (others => Zero)); begin for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop Sum := Zero; for k in Starting_Col .. Final_Col loop Sum := Sum + A(k, Row) * B(k, Col); end loop; Result(Row, Col) := Sum; end loop; end loop; return Result; end Transpose_of_Left_Times_Right; ------------- -- Product -- ------------- function Product (A, B : in Matrix; Final_Row : in Index := Final_Index; Final_Col : in Index := Final_Index; Starting_Row : in Index := Starting_Index; Starting_Col : in Index := Starting_Index) return Matrix is Sum : Real := Zero; Result : Matrix := (others => (others => Zero)); begin for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop Sum := Zero; for k in Starting_Col .. Final_Col loop Sum := Sum + A(Row, k) * B(k, Col); end loop; Result(Row, Col) := Sum; end loop; end loop; return Result; end Product; -------------------- -- Frobenius_Norm -- -------------------- function Frobenius_Norm (A : in Matrix; Final_Row : in Index := Final_Index; Final_Col : in Index := Final_Index; Starting_Row : in Index := Starting_Index; Starting_Col : in Index := Starting_Index) return Real is Max_A_Val : Real := Zero; Sum, Scaling, tmp : Real := Zero; begin Max_A_Val := Zero; for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop if Max_A_Val < Abs A(Row, Col) then Max_A_Val := Abs A(Row, Col); end if; end loop; end loop; Scaling := One / (Max_A_Val + Min_Allowed_Real); Sum := Zero; for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop tmp := Scaling * A(Row, Col); Sum := Sum + tmp * tmp; end loop; end loop; return Sqrt (Sum) * Max_A_Val; end Frobenius_Norm; ------------ -- Invert -- ------------ -- Get Inverse of the Matrix: procedure Invert (M : in Matrix; M_Inv : out Matrix; Max_Error : out Real) --Final_Index : in Index; --Starting_Index : in Index) is Solution_Vector : Row_Vector; Unit_Vector : Row_Vector := (others => 0.0); Error : Col_Vector := (others => 0.0); Scale : Scale_Vectors; Permute : Rearrangement; M_LU : Matrix := M; begin Max_Error := 0.0; LU_decompose (A => M_LU, Scalings => Scale, Row_Permutation => Permute, Final_Index => Final_Index, Starting_Index => Starting_Index, Scaling_Desired => Scale_the_Matrix); for I in Starting_Index..Final_Index loop if I > Starting_Index then Unit_Vector(I-1) := 0.0; end if; Unit_Vector(I) := 1.0; -- Solve A*X = B: LU_Solve (X => Solution_Vector, B => Unit_Vector, A_LU => M_LU, Scalings => Scale, Row_Permutation => Permute, Final_Index => Final_Index, Starting_Index => Starting_Index); -- Solve M*Solution_Vector = Unit_Vector (for Solution_Vector). Error := Unit_Vector - Product (M, Solution_Vector,Final_Index,Starting_Index); for I in Starting_Index..Final_Index loop if Abs(Error(I)) > Max_Error then Max_Error := Abs(Error(I)); end if; end loop; -- Solution vector is the I-th column of M_Inverse: for J in Starting_Index..Final_Index loop M_Inv (J, I) := Solution_Vector(J); end loop; end loop; end Invert; begin for Col in Index loop Identity(Col, Col) := One; end loop; put("Maximum matrix size is "& Integer'Image (Zero_Vector'length-(Integer(Starting_Index)-Integer(Index'First)))); new_Line; put("Input Size Of Matrix To Invert (enter an Integer)"); new_Line; get(IO_Final_Index); Final_Index := Starting_Index + Index (IO_Final_Index-1); Pause( "Test 1: LU Decomposition of matrix A = P*L*U is usually successful, but if A is", "singular of ill-conditioned then the P*L*U is likely to be useless.", "If A is singular or ill-conditioned then it's better to solve the normal equations,", "in other words solve A'*A * X = A'*b instead of A * X = b, (where A' = Transpose(A)).", "A'*A may still be ill-conditioned, but adding 'epsilon*I' to A'*A reliably removes the", "singularity. Sometimes iterative refinement is used to get better solutions to A*X = b,", "but in this test no iterative refinement is performed." ); Pause( "Final remark: if you work with the normal equations, A'*A * X = A'*b, then", "Choleski decomposition is more appropriate, but the idea here is to test the", "LU decomposition, LU_solve.", "The matrices used in the following test are mostly ill-conditioned, so in most cases", "the error does not approach machine precision (1.0e-16).", " ", "Equation solving is done with matrix B = A'*A + epsilon*I." ); new_line; for Chosen_Matrix in Matrix_id loop put("For matrix originally of type "); put(Matrix_id'Image(Chosen_Matrix)); Put(":"); new_line; -- Get a non-singular B = A'*A + epsilon*I: Init_Matrix (A, Chosen_Matrix, Starting_Index, Final_Index); Scale_Cols_Then_Rows (A => A, Scalings => Scale, Final_Index => Final_Index, Starting_Index => Starting_Index); B := Transpose_of_Left_Times_Right (A, A); -- get B = A'*A -- Now B's eig vals are all >= 0. Add Eps*Identity to B: this -- shifts all eigs plus Eps = Two**(-28), so all eigs >= Two**(-28): for Col in Index loop B(Col, Col) := Two**(-20) + B(Col, Col); end loop; -- Get A_inverse Invert (B, B_inv, Max_Error); for Row in Starting_Index .. Final_Index loop for Col in Starting_Index .. Final_Index loop Err (Row, Col) := Identity(Row, Col) - Product (B, B_inv)(Row, Col); end loop; end loop; --Err := Transpose_of_Left_Times_Right (A, Err); Relative_Err := Frobenius_Norm (Err) / (Frobenius_Norm (Identity)); put(" Err in I - B*B_inverse is ~ ||I - B*B_inverse|| / ||I|| ="); put(Relative_Err); new_line; for Row in Starting_Index .. Final_Index loop for Col in Starting_Index .. Final_Index loop Err (Row, Col) := Identity(Row, Col) - Product (B_inv, B)(Row, Col); end loop; end loop; Relative_Err := Frobenius_Norm (Err) / (Frobenius_Norm (Identity)); put(" Err in I - B_inverse*B is ~ ||I - B_inverse*B|| / ||I|| ="); put(Relative_Err); new_line; end loop; -- Matrix_id end;
30.313846
95
0.561409
109d14547d8c3505af710c9e325003000cc50be4
1,908
ads
Ada
boards/stm32_h405/src/sfp/adl_config.ads
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
null
null
null
boards/stm32_h405/src/sfp/adl_config.ads
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
null
null
null
boards/stm32_h405/src/sfp/adl_config.ads
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
null
null
null
-- This package was generated by the Ada_Drivers_Library project wizard script package ADL_Config is Board : constant String := "STM32_H405"; -- From user input Architecture : constant String := "ARM"; -- From board definition Vendor : constant String := "STMicro"; -- From board definition Device_Family : constant String := "STM32F4"; -- From board definition Device_Name : constant String := "STM32F405RGTx"; -- From board definition CPU_Core : constant String := "ARM Cortex-M4F"; -- From mcu definition High_Speed_External_Clock : constant := 8_000_000; -- From board definition Number_Of_Interrupts : constant := 0; -- From user input Has_ZFP_Runtime : constant String := "False"; -- From board definition Has_Ravenscar_SFP_Runtime : constant String := "True"; -- From board definition Has_Ravenscar_Full_Runtime : constant String := "True"; -- From board definition Runtime_Profile : constant String := "ravenscar-sfp"; -- From user input Runtime_Name_Suffix : constant String := "stm32f4"; -- From board definition Runtime_Name : constant String := "ravenscar-sfp-stm32f4"; -- From user input Use_Startup_Gen : constant Boolean := False; -- From user input Max_Path_Length : constant := 1024; -- From user input Max_Mount_Points : constant := 2; -- From user input Max_Mount_Name_Length : constant := 128; -- From user input end ADL_Config;
86.727273
101
0.533543
390d42e3f9a5b30fe7049a3e7e5d7b0f4e12d9b6
1,380
ads
Ada
tools/scitools/conf/understand/ada/ada95/a-siwtio.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada95/a-siwtio.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada95/a-siwtio.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- A D A . S H O R T _ I N T E G E R _ W I D E _ T E X T _ I O -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- This specification is adapted from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ with Ada.Wide_Text_IO; package Ada.Short_Integer_Wide_Text_IO is new Ada.Wide_Text_IO.Integer_IO (Short_Integer);
62.727273
78
0.28913
23e66b6e0e8a180b5bf9731ab474a2c9bff2769a
17,944
adb
Ada
source/amf/uml/amf-internals-uml_fork_nodes.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-internals-uml_fork_nodes.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-internals-uml_fork_nodes.adb
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.Elements; with AMF.Internals.Element_Collections; with AMF.Internals.Helpers; with AMF.Internals.Tables.UML_Attributes; with AMF.Visitors.UML_Iterators; with AMF.Visitors.UML_Visitors; with League.Strings.Internals; with Matreshka.Internals.Strings; package body AMF.Internals.UML_Fork_Nodes is ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access constant UML_Fork_Node_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Enter_Fork_Node (AMF.UML.Fork_Nodes.UML_Fork_Node_Access (Self), Control); end if; end Enter_Element; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access constant UML_Fork_Node_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Leave_Fork_Node (AMF.UML.Fork_Nodes.UML_Fork_Node_Access (Self), Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access constant UML_Fork_Node_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then AMF.Visitors.UML_Iterators.UML_Iterator'Class (Iterator).Visit_Fork_Node (Visitor, AMF.UML.Fork_Nodes.UML_Fork_Node_Access (Self), Control); end if; end Visit_Element; ------------------ -- Get_Activity -- ------------------ overriding function Get_Activity (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activities.UML_Activity_Access is begin return AMF.UML.Activities.UML_Activity_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity (Self.Element))); end Get_Activity; ------------------ -- Set_Activity -- ------------------ overriding procedure Set_Activity (Self : not null access UML_Fork_Node_Proxy; To : AMF.UML.Activities.UML_Activity_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Activity; ------------------ -- Get_In_Group -- ------------------ overriding function Get_In_Group (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is begin return AMF.UML.Activity_Groups.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group (Self.Element))); end Get_In_Group; --------------------------------- -- Get_In_Interruptible_Region -- --------------------------------- overriding function Get_In_Interruptible_Region (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is begin return AMF.UML.Interruptible_Activity_Regions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region (Self.Element))); end Get_In_Interruptible_Region; ---------------------- -- Get_In_Partition -- ---------------------- overriding function Get_In_Partition (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is begin return AMF.UML.Activity_Partitions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition (Self.Element))); end Get_In_Partition; ---------------------------- -- Get_In_Structured_Node -- ---------------------------- overriding function Get_In_Structured_Node (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is begin return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node (Self.Element))); end Get_In_Structured_Node; ---------------------------- -- Set_In_Structured_Node -- ---------------------------- overriding procedure Set_In_Structured_Node (Self : not null access UML_Fork_Node_Proxy; To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_In_Structured_Node; ------------------ -- Get_Incoming -- ------------------ overriding function Get_Incoming (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming (Self.Element))); end Get_Incoming; ------------------ -- Get_Outgoing -- ------------------ overriding function Get_Outgoing (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing (Self.Element))); end Get_Outgoing; ------------------------ -- Get_Redefined_Node -- ------------------------ overriding function Get_Redefined_Node (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is begin return AMF.UML.Activity_Nodes.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node (Self.Element))); end Get_Redefined_Node; ----------------- -- Get_Is_Leaf -- ----------------- overriding function Get_Is_Leaf (Self : not null access constant UML_Fork_Node_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf (Self.Element); end Get_Is_Leaf; ----------------- -- Set_Is_Leaf -- ----------------- overriding procedure Set_Is_Leaf (Self : not null access UML_Fork_Node_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf (Self.Element, To); end Set_Is_Leaf; --------------------------- -- Get_Redefined_Element -- --------------------------- overriding function Get_Redefined_Element (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is begin return AMF.UML.Redefinable_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element (Self.Element))); end Get_Redefined_Element; ------------------------------ -- Get_Redefinition_Context -- ------------------------------ overriding function Get_Redefinition_Context (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is begin return AMF.UML.Classifiers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context (Self.Element))); end Get_Redefinition_Context; --------------------------- -- Get_Client_Dependency -- --------------------------- overriding function Get_Client_Dependency (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is begin return AMF.UML.Dependencies.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency (Self.Element))); end Get_Client_Dependency; ------------------------- -- Get_Name_Expression -- ------------------------- overriding function Get_Name_Expression (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access is begin return AMF.UML.String_Expressions.UML_String_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression (Self.Element))); end Get_Name_Expression; ------------------------- -- Set_Name_Expression -- ------------------------- overriding procedure Set_Name_Expression (Self : not null access UML_Fork_Node_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Name_Expression; ------------------- -- Get_Namespace -- ------------------- overriding function Get_Namespace (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin return AMF.UML.Namespaces.UML_Namespace_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace (Self.Element))); end Get_Namespace; ------------------------ -- Get_Qualified_Name -- ------------------------ overriding function Get_Qualified_Name (Self : not null access constant UML_Fork_Node_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Qualified_Name; ------------------------ -- Is_Consistent_With -- ------------------------ overriding function Is_Consistent_With (Self : not null access constant UML_Fork_Node_Proxy; Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented"); raise Program_Error with "Unimplemented procedure UML_Fork_Node_Proxy.Is_Consistent_With"; return Is_Consistent_With (Self, Redefinee); end Is_Consistent_With; ----------------------------------- -- Is_Redefinition_Context_Valid -- ----------------------------------- overriding function Is_Redefinition_Context_Valid (Self : not null access constant UML_Fork_Node_Proxy; Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented"); raise Program_Error with "Unimplemented procedure UML_Fork_Node_Proxy.Is_Redefinition_Context_Valid"; return Is_Redefinition_Context_Valid (Self, Redefined); end Is_Redefinition_Context_Valid; ------------------------- -- All_Owning_Packages -- ------------------------- overriding function All_Owning_Packages (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); raise Program_Error with "Unimplemented procedure UML_Fork_Node_Proxy.All_Owning_Packages"; return All_Owning_Packages (Self); end All_Owning_Packages; ----------------------------- -- Is_Distinguishable_From -- ----------------------------- overriding function Is_Distinguishable_From (Self : not null access constant UML_Fork_Node_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); raise Program_Error with "Unimplemented procedure UML_Fork_Node_Proxy.Is_Distinguishable_From"; return Is_Distinguishable_From (Self, N, Ns); end Is_Distinguishable_From; --------------- -- Namespace -- --------------- overriding function Namespace (Self : not null access constant UML_Fork_Node_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); raise Program_Error with "Unimplemented procedure UML_Fork_Node_Proxy.Namespace"; return Namespace (Self); end Namespace; end AMF.Internals.UML_Fork_Nodes;
38.260128
108
0.605662
df51b7a04216b13a858ea29cbab94f146d819002
11,817
adb
Ada
.emacs.d/elpa/ada-mode-6.1.1/run_wisi_common_parse.adb
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/ada-mode-6.1.1/run_wisi_common_parse.adb
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/ada-mode-6.1.1/run_wisi_common_parse.adb
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, 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 -- distributed with this program; see file COPYING. If not, write to -- the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, -- MA 02110-1335, USA. pragma License (GPL); with Ada.Command_Line; with Ada.Exceptions; with Ada.IO_Exceptions; with Ada.Real_Time; with Ada.Text_IO; with GNAT.Traceback.Symbolic; with SAL; with System.Multiprocessors; package body Run_Wisi_Common_Parse is procedure Usage (Parser : in out WisiToken.Parse.LR.Parser.Parser) is use all type WisiToken.Parse.LR.Parse_Table_Ptr; use Ada.Text_IO; begin Put_Line ("usage: <file_name> <parse_action> [partial parse params]" & "[options]"); Put_Line ("parse_action: {Navigate | Face | Indent}"); Put_Line ("partial parse params: begin_byte_pos end_byte_pos goal_byte_pos begin_char_pos begin_line" & " end_line begin_indent"); Put_Line ("options:"); Put_Line ("--verbosity n m l:"); Put_Line (" n: parser; m: mckenzie; l: action"); Put_Line (" 0 - only report parse errors"); Put_Line (" 1 - shows spawn/terminate parallel parsers, error recovery enter/exit"); Put_Line (" 2 - add each parser cycle, error recovery enqueue/check"); Put_Line (" 3 - parse stack in each cycle, error recovery parse actions"); Put_Line (" 4 - add lexer debug"); Put_Line ("--check_limit n : set error recover token check limit" & (if Parser.Table = null then "" else "; default" & WisiToken.Token_Index'Image (Parser.Table.McKenzie_Param.Check_Limit))); Put_Line ("--enqueue_limit n : set error recover token enqueue limit" & (if Parser.Table = null then "" else "; default" & Integer'Image (Parser.Table.McKenzie_Param.Enqueue_Limit))); Put_Line ("--max_parallel n : set maximum count of parallel parsers (default" & Integer'Image (WisiToken.Parse.LR.Parser.Default_Max_Parallel) & ")"); Put_Line ("--task_count n : worker tasks in error recovery"); Put_Line ("--disable_recover : disable error recovery; default enabled"); Put_Line ("--debug_mode : tracebacks from unhandled exceptions; default disabled"); Put_Line ("--lang_params <language-specific params>"); Put_Line ("--repeat_count n : repeat parse count times, for profiling; default 1"); New_Line; end Usage; function Get_CL_Params (Parser : in out WisiToken.Parse.LR.Parser.Parser) return Command_Line_Params is use Ada.Command_Line; use WisiToken; Arg : Integer := 1; begin return Result : Command_Line_Params do if Argument_Count < 1 then Usage (Parser); Set_Exit_Status (Failure); raise Finish; elsif Argument (Arg) = "--help" then Usage (Parser); raise Finish; elsif Argument_Count < 2 then Usage (Parser); Set_Exit_Status (Failure); raise Finish; end if; Result.Source_File_Name := +Ada.Command_Line.Argument (1); Result.Post_Parse_Action := Wisi.Post_Parse_Action_Type'Value (Ada.Command_Line.Argument (2)); if Argument_Count >= 3 and then Argument (3)(1) /= '-' then Result.Begin_Byte_Pos := WisiToken.Buffer_Pos'Value (Argument (3)); Result.End_Byte_Pos := WisiToken.Buffer_Pos'Value (Argument (4)) - 1; -- match emacs region Result.Goal_Byte_Pos := WisiToken.Buffer_Pos'Value (Argument (5)); Result.Begin_Char_Pos := WisiToken.Buffer_Pos'Value (Argument (6)); Result.Begin_Line := WisiToken.Line_Number_Type'Value (Argument (7)); Result.End_Line := WisiToken.Line_Number_Type'Value (Argument (8)); Result.Begin_Indent := Integer'Value (Argument (9)); Arg := 10; else Result.Begin_Byte_Pos := WisiToken.Invalid_Buffer_Pos; Result.End_Byte_Pos := WisiToken.Invalid_Buffer_Pos; Result.Begin_Char_Pos := WisiToken.Buffer_Pos'First; Result.Begin_Line := WisiToken.Line_Number_Type'First; Arg := 3; end if; loop exit when Arg > Argument_Count; if Argument (Arg) = "--verbosity" then WisiToken.Trace_Parse := Integer'Value (Argument (Arg + 1)); WisiToken.Trace_McKenzie := Integer'Value (Argument (Arg + 2)); WisiToken.Trace_Action := Integer'Value (Argument (Arg + 3)); Arg := Arg + 4; elsif Argument (Arg) = "--check_limit" then Parser.Table.McKenzie_Param.Check_Limit := Token_Index'Value (Argument (Arg + 1)); Arg := Arg + 2; elsif Argument (Arg) = "--debug_mode" then WisiToken.Debug_Mode := True; Arg := Arg + 1; elsif Argument (Arg) = "--disable_recover" then Parser.Enable_McKenzie_Recover := False; Arg := Arg + 1; elsif Argument (Arg) = "--enqueue_limit" then Parser.Table.McKenzie_Param.Enqueue_Limit := Integer'Value (Argument (Arg + 1)); Arg := Arg + 2; elsif Argument (Arg) = "--lang_params" then Result.Lang_Params := +Argument (Arg + 1); Arg := Arg + 2; elsif Argument (Arg) = "--max_parallel" then Parser.Max_Parallel := SAL.Base_Peek_Type'Value (Argument (Arg + 1)); Arg := Arg + 2; elsif Argument (Arg) = "--repeat_count" then Result.Repeat_Count := Integer'Value (Argument (Arg + 1)); Arg := Arg + 2; elsif Argument (Arg) = "--task_count" then Parser.Table.McKenzie_Param.Task_Count := System.Multiprocessors.CPU_Range'Value (Argument (Arg + 1)); Arg := Arg + 2; else Ada.Text_IO.Put_Line ("unrecognized option: '" & Argument (Arg) & "'"); Usage (Parser); Set_Exit_Status (Failure); raise SAL.Parameter_Error; end if; end loop; end return; exception when Finish => raise; when E : others => Ada.Text_IO.Put_Line (Ada.Exceptions.Exception_Name (E) & ": " & Ada.Exceptions.Exception_Message (E)); Usage (Parser); Set_Exit_Status (Failure); raise SAL.Parameter_Error; end Get_CL_Params; procedure Parse_File (Parser : in out WisiToken.Parse.LR.Parser.Parser; Parse_Data : in out Wisi.Parse_Data_Type'Class; Descriptor : in WisiToken.Descriptor) is use Ada.Text_IO; use WisiToken; Cl_Params : Command_Line_Params; -- not initialized for exception handler Start : Ada.Real_Time.Time; begin Cl_Params := Get_CL_Params (Parser); -- Do this after setting Trace_Parse so lexer verbosity is set begin Parser.Lexer.Reset_With_File (-Cl_Params.Source_File_Name, Cl_Params.Begin_Byte_Pos, Cl_Params.End_Byte_Pos, Cl_Params.Begin_Char_Pos, Cl_Params.Begin_Line); exception when Ada.IO_Exceptions.Name_Error => Put_Line (Standard_Error, "'" & (-Cl_Params.Source_File_Name) & "' cannot be opened"); return; end; if Cl_Params.End_Line = Invalid_Line_Number then -- User did not provide; run lexer to get end line. declare Token : Base_Token; Lexer_Error : Boolean; pragma Unreferenced (Lexer_Error); begin loop Lexer_Error := Parser.Lexer.Find_Next (Token); exit when Token.ID = Descriptor.EOI_ID; end loop; Cl_Params.End_Line := Token.Line; end; end if; Parse_Data.Initialize (Post_Parse_Action => Cl_Params.Post_Parse_Action, Descriptor => Descriptor'Unrestricted_Access, Source_File_Name => -Cl_Params.Source_File_Name, Begin_Line => Cl_Params.Begin_Line, End_Line => Cl_Params.End_Line, Begin_Indent => Cl_Params.Begin_Indent, Params => -Cl_Params.Lang_Params); if Cl_Params.Repeat_Count > 1 then Start := Ada.Real_Time.Clock; end if; for I in 1 .. Cl_Params.Repeat_Count loop declare procedure Clean_Up is use all type SAL.Base_Peek_Type; begin Parser.Lexer.Discard_Rest_Of_Input; if Cl_Params.Repeat_Count = 1 and Parser.Parsers.Count > 0 then Parse_Data.Put (Parser.Lexer.Errors, Parser.Parsers.First.State_Ref.Errors, Parser.Parsers.First.State_Ref.Tree); end if; end Clean_Up; begin Parse_Data.Reset; Parser.Lexer.Reset; begin Parser.Parse; exception when WisiToken.Partial_Parse => null; end; Parser.Execute_Actions; if Cl_Params.Repeat_Count = 1 then Parse_Data.Put (Parser); Parse_Data.Put (Parser.Lexer.Errors, Parser.Parsers.First.State_Ref.Errors, Parser.Parsers.First.State_Ref.Tree); end if; exception when WisiToken.Syntax_Error => Clean_Up; Put_Line ("(parse_error)"); when E : WisiToken.Parse_Error => Clean_Up; Put_Line ("(parse_error """ & Ada.Exceptions.Exception_Message (E) & """)"); when E : WisiToken.Fatal_Error => Clean_Up; Put_Line ("(error """ & Ada.Exceptions.Exception_Message (E) & """)"); end; end loop; if Cl_Params.Repeat_Count > 1 then declare use Ada.Real_Time; Finish : constant Time := Clock; begin Put_Line ("Total time:" & Duration'Image (To_Duration (Finish - Start))); Put_Line ("per iteration:" & Duration'Image (To_Duration ((Finish - Start) / Cl_Params.Repeat_Count))); end; end if; exception when SAL.Parameter_Error | Finish => -- From Get_CL_Params; already handled. null; when E : others => Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure); New_Line (2); Put_Line ("(error ""unhandled exception: " & Ada.Exceptions.Exception_Name (E) & ": " & Ada.Exceptions.Exception_Message (E) & """)"); Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback (E)); end Parse_File; end Run_Wisi_Common_Parse;
40.193878
118
0.578065
df848a932606bb555674d11501120382f8f3fce3
5,640
ads
Ada
.emacs.d/elpa/wisi-3.0.1/wisitoken_grammar_runtime.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-3.0.1/wisitoken_grammar_runtime.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-3.0.1/wisitoken_grammar_runtime.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
-- Abstract : -- -- Runtime utils for wisi_grammar.wy actions. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, 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 MERCHAN- -- TABILITY 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. pragma License (Modified_GPL); with Ada.Containers; with SAL.Gen_Unbounded_Definite_Vectors; with WisiToken.BNF; with WisiToken.Lexer; with WisiToken.Syntax_Trees; package WisiToken_Grammar_Runtime is type Meta_Syntax is (Unknown, BNF_Syntax, EBNF_Syntax); -- Syntax used in grammar file. type Action_Phase is (Meta, Other); package Base_Token_Array_Arrays is new SAL.Gen_Unbounded_Definite_Vectors (WisiToken.Base_Token_Index, WisiToken.Base_Token_Arrays.Vector, Default_Element => WisiToken.Base_Token_Arrays.Empty_Vector); type User_Data_Type is new WisiToken.Syntax_Trees.User_Data_Type with record Grammar_Lexer : WisiToken.Lexer.Handle; -- used to read the .wy file now. User_Lexer : WisiToken.BNF.Lexer_Type := WisiToken.BNF.None; -- Used to read the user language file, after user parser is generated; -- used now in '%if lexer' statements. User_Parser : WisiToken.BNF.Generate_Algorithm := WisiToken.BNF.None; -- Used to generate the user parser; used now in '%if parser' -- statements. Generate_Set : WisiToken.BNF.Generate_Set_Access; -- As specified by %generate directives or command line. Phase : Action_Phase := Meta; -- Determines which actions Execute_Actions executes: -- Meta - meta declarations, like %meta_syntax, %generate -- Other - everything else Meta_Syntax : WisiToken_Grammar_Runtime.Meta_Syntax := Unknown; Terminals : WisiToken.Base_Token_Array_Access; Raw_Code : WisiToken.BNF.Raw_Code; Language_Params : WisiToken.BNF.Language_Param_Type; Tokens : aliased WisiToken.BNF.Tokens; Conflicts : WisiToken.BNF.Conflict_Lists.List; McKenzie_Recover : WisiToken.BNF.McKenzie_Recover_Param_Type; Non_Grammar : Base_Token_Array_Arrays.Vector; -- Non_Grammar (0) contains leading blank lines and comments; -- Non_Grammar (I) contains blank lines and comments following -- Terminals (I). Only used in Print_Source. Rule_Count : Integer := 0; Action_Count : Integer := 0; Check_Count : Integer := 0; Label_Count : Ada.Containers.Count_Type := 0; EBNF_Nodes : WisiToken.Syntax_Trees.Node_Sets.Vector; If_Lexer_Present : Boolean := False; If_Parser_Present : Boolean := False; -- Set True by %if statements in Execute_Actions. Ignore_Lines : Boolean := False; -- An '%if' specified a different lexer, during Execute_Actions end record; overriding procedure Set_Lexer_Terminals (User_Data : in out User_Data_Type; Lexer : in WisiToken.Lexer.Handle; Terminals : in WisiToken.Base_Token_Array_Access); overriding procedure Reset (Data : in out User_Data_Type); overriding procedure Initialize_Actions (Data : in out User_Data_Type; Tree : in WisiToken.Syntax_Trees.Tree'Class); overriding procedure Lexer_To_Augmented (Data : in out User_Data_Type; Token : in WisiToken.Base_Token; Lexer : not null access WisiToken.Lexer.Instance'Class); procedure Start_If (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in WisiToken.Syntax_Trees.Tree; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure End_If (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class); procedure Add_Declaration (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in WisiToken.Syntax_Trees.Tree; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure Add_Nonterminal (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in WisiToken.Syntax_Trees.Tree; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure Check_EBNF (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in WisiToken.Syntax_Trees.Tree; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array; Token : in WisiToken.Positive_Index_Type); procedure Translate_EBNF_To_BNF (Tree : in out WisiToken.Syntax_Trees.Tree; Data : in out User_Data_Type); -- Process EBNF nonterms, adding new nonterms as needed, resulting in -- a BNF tree. Descriptor is used for error messages. -- -- Generator.LR.*_Generate requires a BNF grammar. procedure Print_Source (File_Name : in String; Tree : in WisiToken.Syntax_Trees.Tree; Data : in User_Data_Type); -- Print the wisitoken grammar source represented by Tree, Terminals -- to a new file File_Name. end WisiToken_Grammar_Runtime;
39.71831
85
0.697695
10b43d88814dbdadf65caa0e1429c12e351122aa
5,360
ads
Ada
source/amf/ocl/amf-ocl-collection_literal_exps-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/ocl/amf-ocl-collection_literal_exps-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/ocl/amf-ocl-collection_literal_exps-collections.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 © 2012-2013, 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.Generic_Collections; package AMF.OCL.Collection_Literal_Exps.Collections is pragma Preelaborate; package OCL_Collection_Literal_Exp_Collections is new AMF.Generic_Collections (OCL_Collection_Literal_Exp, OCL_Collection_Literal_Exp_Access); type Set_Of_OCL_Collection_Literal_Exp is new OCL_Collection_Literal_Exp_Collections.Set with null record; Empty_Set_Of_OCL_Collection_Literal_Exp : constant Set_Of_OCL_Collection_Literal_Exp; type Ordered_Set_Of_OCL_Collection_Literal_Exp is new OCL_Collection_Literal_Exp_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_OCL_Collection_Literal_Exp : constant Ordered_Set_Of_OCL_Collection_Literal_Exp; type Bag_Of_OCL_Collection_Literal_Exp is new OCL_Collection_Literal_Exp_Collections.Bag with null record; Empty_Bag_Of_OCL_Collection_Literal_Exp : constant Bag_Of_OCL_Collection_Literal_Exp; type Sequence_Of_OCL_Collection_Literal_Exp is new OCL_Collection_Literal_Exp_Collections.Sequence with null record; Empty_Sequence_Of_OCL_Collection_Literal_Exp : constant Sequence_Of_OCL_Collection_Literal_Exp; private Empty_Set_Of_OCL_Collection_Literal_Exp : constant Set_Of_OCL_Collection_Literal_Exp := (OCL_Collection_Literal_Exp_Collections.Set with null record); Empty_Ordered_Set_Of_OCL_Collection_Literal_Exp : constant Ordered_Set_Of_OCL_Collection_Literal_Exp := (OCL_Collection_Literal_Exp_Collections.Ordered_Set with null record); Empty_Bag_Of_OCL_Collection_Literal_Exp : constant Bag_Of_OCL_Collection_Literal_Exp := (OCL_Collection_Literal_Exp_Collections.Bag with null record); Empty_Sequence_Of_OCL_Collection_Literal_Exp : constant Sequence_Of_OCL_Collection_Literal_Exp := (OCL_Collection_Literal_Exp_Collections.Sequence with null record); end AMF.OCL.Collection_Literal_Exps.Collections;
58.26087
104
0.548694
395f7a1dd429952757bdb98ff94b0a864f0349a2
2,882
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/s-widboo.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/s-widboo.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/s-widboo.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W I D _ B O O L -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body System.Wid_Bool is ------------------- -- Width_Boolean -- ------------------- function Width_Boolean (Lo, Hi : Boolean) return Natural is begin if Lo > Hi then return 0; elsif Lo = False then return 5; else return 4; end if; end Width_Boolean; end System.Wid_Bool;
53.37037
78
0.420888
20490eb641cb4322c8d41c434cbca02176229172
3,357
adb
Ada
tests/tk-image-bitmap-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
2
2020-12-09T07:27:07.000Z
2021-10-19T13:31:54.000Z
tests/tk-image-bitmap-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
tests/tk-image-bitmap-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the test environment should be -- placed into Tk.Image.Bitmap.Test_Data. with AUnit.Assertions; use AUnit.Assertions; with System.Assertions; -- begin read only -- id:2.2/00/ -- -- This section can be used to add with clauses if necessary. -- -- end read only with Ada.Environment_Variables; use Ada.Environment_Variables; -- begin read only -- end read only package body Tk.Image.Bitmap.Test_Data.Tests is -- begin read only -- id:2.2/01/ -- -- This section can be used to add global variables and other elements. -- -- end read only -- begin read only -- end read only -- begin read only function Wrap_Test_Get_Option_e3d52c_aaa578 (Bitmap_Image: Tk_Image; Name: String; Interpreter: Tcl_Interpreter := Get_Interpreter) return String is begin begin pragma Assert (Bitmap_Image'Length > 0 and Name'Length > 0 and Interpreter /= Null_Interpreter); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "req_sloc(tk-image-bitmap.ads:0):Tests_Get_Option_Bitmap test requirement violated"); end; declare Test_Get_Option_e3d52c_aaa578_Result: constant String := GNATtest_Generated.GNATtest_Standard.Tk.Image.Bitmap.Get_Option (Bitmap_Image, Name, Interpreter); begin begin pragma Assert(True); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "ens_sloc(tk-image-bitmap.ads:0:):Tests_Get_Option_Bitmap test commitment violated"); end; return Test_Get_Option_e3d52c_aaa578_Result; end; end Wrap_Test_Get_Option_e3d52c_aaa578; -- end read only -- begin read only procedure Test_Get_Option_tests_get_option_bitmap(Gnattest_T: in out Test); procedure Test_Get_Option_e3d52c_aaa578(Gnattest_T: in out Test) renames Test_Get_Option_tests_get_option_bitmap; -- id:2.2/e3d52c2e49e4f170/Get_Option/1/0/tests_get_option_bitmap/ procedure Test_Get_Option_tests_get_option_bitmap (Gnattest_T: in out Test) is function Get_Option (Bitmap_Image: Tk_Image; Name: String; Interpreter: Tcl_Interpreter := Get_Interpreter) return String renames Wrap_Test_Get_Option_e3d52c_aaa578; -- end read only pragma Unreferenced(Gnattest_T); begin if Value("DISPLAY", "")'Length = 0 then Assert(True, "No display, can't test"); return; end if; Assert (Get_Option("mybitmap", "background") = "black", "Failed to get option of the selected image"); -- begin read only end Test_Get_Option_tests_get_option_bitmap; -- end read only -- begin read only -- id:2.2/02/ -- -- This section can be used to add elaboration code for the global state. -- begin -- end read only null; -- begin read only -- end read only end Tk.Image.Bitmap.Test_Data.Tests;
31.083333
103
0.680667
c51a50353f11db48e4ce7d0c8f6c45dc5eb59077
976
ads
Ada
Util/llvm/bindings/ada/analysis/llvm_analysis-binding.ads
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
5
2020-06-30T05:06:40.000Z
2021-05-24T08:38:33.000Z
Util/llvm/bindings/ada/analysis/llvm_analysis-binding.ads
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
null
null
null
Util/llvm/bindings/ada/analysis/llvm_analysis-binding.ads
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
2
2015-10-01T18:28:20.000Z
2020-09-09T16:25:27.000Z
-- This file is generated by SWIG. Do *not* modify by hand. -- with llvm; with Interfaces.C.Strings; package LLVM_Analysis.Binding is function LLVMVerifyModule (M : in llvm.LLVMModuleRef; Action : in LLVM_Analysis.LLVMVerifierFailureAction; OutMessage : access Interfaces.C.Strings.chars_ptr) return Interfaces.C.int; function LLVMVerifyFunction (Fn : in llvm.LLVMValueRef; Action : in LLVM_Analysis.LLVMVerifierFailureAction) return Interfaces.C.int; procedure LLVMViewFunctionCFG (Fn : in llvm.LLVMValueRef); procedure LLVMViewFunctionCFGOnly (Fn : in llvm.LLVMValueRef); private pragma Import (C, LLVMVerifyModule, "Ada_LLVMVerifyModule"); pragma Import (C, LLVMVerifyFunction, "Ada_LLVMVerifyFunction"); pragma Import (C, LLVMViewFunctionCFG, "Ada_LLVMViewFunctionCFG"); pragma Import (C, LLVMViewFunctionCFGOnly, "Ada_LLVMViewFunctionCFGOnly"); end LLVM_Analysis.Binding;
29.575758
77
0.733607
c5e747b1386df2ca3789bd095d215befa54e5e20
2,767
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/a-secain.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/a-secain.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/a-secain.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . S T R I N G S . E Q U A L _ C A S E _ I N S E N S I T I V E -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ function Ada.Strings.Equal_Case_Insensitive (Left, Right : String) return Boolean; pragma Pure (Ada.Strings.Equal_Case_Insensitive); -- Performs a case-insensitive equality test of Left and Right. This is -- useful as the generic actual equivalence operation (Equivalent_Keys) -- when instantiating a hashed container package with type String as the -- key. It is also useful as the generic actual equality operator when -- instantiating a container package with type String as the element, -- allowing case-insensitive container equality tests.
70.948718
78
0.452837
df97a70ee139a064e8738c3178ad095696528fc5
214
ads
Ada
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/opaque.ads
passlab/rexompiler
5494df3766ab606e230c5f1785b438a019c9e353
[ "BSD-3-Clause" ]
null
null
null
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/opaque.ads
passlab/rexompiler
5494df3766ab606e230c5f1785b438a019c9e353
[ "BSD-3-Clause" ]
65
2020-10-16T17:58:15.000Z
2022-03-23T17:59:44.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/opaque.ads
passlab/rexompiler
5494df3766ab606e230c5f1785b438a019c9e353
[ "BSD-3-Clause" ]
null
null
null
package Opaque is -- declare opaque elements type Handle is private; NIX : constant Handle; private -- define opaque elements type Handle is new Integer; NIX : constant Handle := 0; end Opaque;
15.285714
30
0.691589
dfac6b73eadf689566de6611c42629bd9f6dabf0
4,648
ads
Ada
source/amf/mof/amf-internals-listener_registry.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/amf-internals-listener_registry.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/amf-internals-listener_registry.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.Properties; with AMF.Elements; with AMF.Extents; with AMF.Listeners; with League.Holders; package AMF.Internals.Listener_Registry is pragma Preelaborate; procedure Register_Listener (Listener : not null AMF.Listeners.Listener_Access); -- Register listener to be notified about all events of the system. procedure Register_Instance_Listener (Listener : not null AMF.Listeners.Listener_Access; Instance : not null AMF.Elements.Element_Access); -- Register listener to be notified about events of the given instance. procedure Notify_Extent_Create (Extent : not null AMF.Extents.Extent_Access); procedure Notify_Attribute_Set (Element : not null AMF.Elements.Element_Access; Property : not null AMF.CMOF.Properties.CMOF_Property_Access; Position : Optional_Integer; Old_Value : League.Holders.Holder; New_Value : League.Holders.Holder); procedure Notify_Instance_Create (Element : not null AMF.Elements.Element_Access); procedure Notify_Link_Add (Association : not null AMF.CMOF.Associations.CMOF_Association_Access; First_Element : not null AMF.Elements.Element_Access; Second_Element : not null AMF.Elements.Element_Access); end AMF.Internals.Listener_Registry;
56
78
0.494406
23f704fcbbeb7eac4713acc1a54a5c34f669abed
3,685
adb
Ada
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/requeue_statements.adb
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/requeue_statements.adb
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/dot_asis_tests/test_units/requeue_statements.adb
passlab/rexompiler
5494df3766ab606e230c5f1785b438a019c9e353
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
-------------------------------------------------------------- -------- Load_Control -------------------------------------- -- This package provides a protected object that controls -- the servicing of calling tasks, such that they are kept -- waiting until the system Load is less than some threshold -- value (different for each task type). -- Lifted from: http://www.cs.uni.edu//~mccormic/AdaEssentials/requeue_statement.htm -------------------------------------------------------------- -------------------------------------------------------------- -------- Test_Requeue -------------------------------------- -- This procedure creates a task that reduces the Load to 3 -- and then to 1, and two arrays of tasks of type Urgent_Task -- and Casual_Task having threshold values of 4 and 2, -- respectively -------------------------------------------------------------- with Ada.Text_IO; use Ada.Text_IO; procedure Requeue_statements is package Load_Control is subtype Load_Type is Integer range 0..5; protected Load_Manager is entry Wait_Until_Load_Less_Than(Threshold : in Load_Type); procedure Set_Load(Load : in Load_Type); private Current_Load : Load_Type := 5; Retrying : Boolean := False; entry Wait_To_Retry(Load : in Load_Type); end Load_Manager; end Load_Control; -------------------------------------------------------------- package body Load_Control is protected body Load_Manager is ---------------------------------- entry Wait_Until_Load_Less_Than(Threshold : in Load_Type) when not Retrying is begin if Current_Load > Threshold then requeue Wait_To_Retry; -- requeue statement end if; end Wait_Until_Load_Less_Than; ---------------------------------- procedure Set_Load(Load : in Load_Type) is begin Current_Load := Load; Retrying := True; end Set_Load; ---------------------------------- entry Wait_To_Retry(Load : in Load_Type) when Retrying is begin if Wait_To_Retry'Count = 0 then -- Count attribute Retrying := False; end if; requeue Wait_Until_Load_Less_Than; -- requeue statement end Wait_To_Retry; ---------------------------------- end Load_Manager; end Load_Control; -------------------------------------------- task Load_Monitor; task body Load_Monitor is begin delay 4.0; Load_Control.Load_Manager.Set_Load(3); delay 2.0; Load_Control.Load_Manager.Set_Load(1); end Load_Monitor; -------------------------------------------- task type Urgent_Task; task body Urgent_Task is -- Threshold = 4 begin delay 2.0; Put_Line("Urgent_Task will get on queue"); Load_Control.Load_Manager.Wait_Until_Load_Less_Than(4); Put_Line("Urgent task completed"); end Urgent_Task; -------------------------------------------- task type Casual_Task; task body Casual_Task is -- Threshold = 2 begin Put_Line("Casual task will get on queue"); Load_Control.Load_Manager.Wait_Until_Load_Less_Than(2); Put_Line("Casual task completed"); end Casual_Task; -------------------------------------------- UT : array(1..2) of Urgent_Task; -- declare 2 tasks CT : array(1..2) of Casual_Task; -- declare 2 tasks -------------------------------------------- begin null; end Requeue_statements; --------------------------------------------------------------
38.385417
84
0.497693
2085a629948382c2e0deaa319ef6d3fb13f65dec
926
adb
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rec_return/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rec_return/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rec_return/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2010-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 function Bar return Rec is begin return (X => 42, S => "ABCDEFGH"); end Bar; procedure Do_Nothing (A : System.Address) is begin null; end Do_Nothing; end Pck;
33.071429
73
0.710583
20b9309185a63996da0154a0153a1d01529b76d0
2,979
ads
Ada
independent_camera/example.ads
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
independent_camera/example.ads
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
independent_camera/example.ads
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. --------------------------------------------------------------------------------- with SDL.Types; use SDL.Types; with SDL.Keysym; use SDL.Keysym; with SDL.Video; use SDL.Video; with SDL.Timer; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with GL; with Camera; with Vector3; with Matrix3x3; with Matrix4x4; use type GL.GLfloat; use type GL.GLbitfield; use type Matrix3x3.Object; use type Matrix4x4.Object; use type Vector3.Object; package Example is procedure PrintGLInfo; procedure PrintUsage; procedure CalculateFPS; function Initialise return Boolean; procedure Uninitialise; procedure Update(Ticks : in Integer); procedure Draw; function GetTitle return String; function GetWidth return Integer; function GetHeight return Integer; function GetBitsPerPixel return Integer; procedure SetLastTickCount(Ticks : in Integer); procedure SetSurface(Surface : in SDL.Video.Surface_Ptr); function GetSurface return SDL.Video.Surface_Ptr; procedure SetKey(Key : in SDL.Keysym.Key; Down : in Boolean); procedure SetActive(Active : in Boolean); function IsActive return Boolean; procedure SetQuit(Quit : in Boolean); function Quit return Boolean; private type KeysArray is array (SDL.Keysym.K_FIRST .. SDL.Keysym.K_LAST) of Boolean; type Cubes is (LEFT, RIGHT); type CubeSpeed is array (Cubes'First .. Cubes'Last) of GL.GLFloat; Title : String := "Independent Camera in Ada/SDL"; Width : Integer := 640; Height : Integer := 480; BitsPerPixel : Integer := 16; IsFullScreen : Boolean := False; Keys : KeysArray := (others => False); IsVisible : Boolean := False; LastTickCount : Integer := 0; ScreenSurface : SDL.Video.Surface_Ptr := null; AppActive : Boolean := True; AppQuit : Boolean := False; PressedL : Boolean := False; PressedC : Boolean := False; PressedS : Boolean := False; LightingOn : Boolean := True; CameraMoving : Boolean := False; SmoothShadingOn : Boolean := True; XSpeed : CubeSpeed := (0.0, 0.0); YSpeed : CubeSpeed := (0.0, 0.0); Cube : Cubes := LEFT; LastElapsedTime : Float := 0.0; FrameCount : Integer := 0; FPS : Float := 0.0; ViewCamera : Camera.Object := Camera.Create(0.0, 0.0, 6.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); end Example;
38.192308
104
0.563612
cb85e88569a854fe669b11ef0648a1d163654a9c
1,584
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_value_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_value_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_value_error_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_value_error_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; error_code : aliased Interfaces.Unsigned_8; sequence : aliased Interfaces.Unsigned_16; bad_value : aliased Interfaces.Unsigned_32; minor_opcode : aliased Interfaces.Unsigned_16; major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8; end record; -- Item_Array -- type Item_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_value_error_t.Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_value_error_t.Item, Element_Array => xcb.xcb_value_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_value_error_t.Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_value_error_t.Pointer, Element_Array => xcb.xcb_value_error_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_value_error_t;
28.8
79
0.669192
18523e1cc146b782652bbc689d3ff57acf2d7f0c
5,714
ads
Ada
ordinary/predictor_1.ads
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
ordinary/predictor_1.ads
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
ordinary/predictor_1.ads
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
----------------------------------------------------------------------- -- package Predictor_1, 17th order Predictor-Corrector integrator -- Copyright (C) 2008-2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ------------------------------------------------------------------------ -- PACKAGE Predictor_1 -- -- Procedure Integrate is a 17th order Predictor-Corrector integration -- routine for solving dY/dt = F (t, Y). The independent variable is -- t (e.g. time), vector Y is the dependent variable, and F is -- some function. -- -- The Predictor-Corrector method uses least-squares to fit a 17th -- order polynomial to the 33 previous values of F in dY/dt = F(t,Y). -- Least-squares-fit polynomials are then used to predict and -- correct the next values of F and Y. -- -- NOTES ON USE -- -- The following version assumes that the Dynamical Variable is -- a 1 dimensional array of Real numbers. -- -- To use this routine higher order differential equations have to -- be reduced to 1st order equations. -- For example a 3rd order equation in X becomes a first order -- equation in the vector Y = (Y1,Y2,Y3) = (X, dX/dt, d/dt(dX/dt)). -- If the equation in X is (d/dt)**3 X = G(t,X), then the -- equation in vector Y is -- -- d/dt (Y1, Y2, Y3) = (Y2, Y3, G(t,Y1)). -- -- If the equation in X is d/dt(d/dt(dX/dt))) = G(t,X,dX/dt), -- then the equation in Y is -- -- d/dt (Y1, Y2, Y3) = (Y2, Y3, G(t,Y1,Y2)). -- -- So the routine solves the equation dY/dt = F(t,Y), or, more -- explicitly, d/dt (Y1, Y2, Y3) = (Y2, Y3, G(t,Y1,Y2)) = F(t,Y). -- The user plugs in the function F(t,Y) as a generic formal function. -- Even if F is t or Y independent, it must be in the form F(t,Y). -- The user has to do all of the work to convert higher order -- equations to first order equations. On some compilers, -- performance is very sensitive to how this is done. That's -- why this part is best left to the user. I've seen factors of -- 3 improvement in speed when this part of the data structure -- is optimized. A pragma Inline is also worth trying. -- The generic formal parameters "+" and "*" below should be -- compiled Inline. generic type Real is digits <>; -- The independent variable. It's called Time -- throughout the package as though the differential -- equation dY/dt = F (t, Y) were time dependent. Of cource -- it can have any meaning. type Dyn_Index is range <>; type Dynamical_Variable is array(Dyn_Index) of Real; -- The dependent variable. -- We require its exact form here so that some inner loop -- optimizations can be performed below. -- -- To use this routine one must reduce higher order differential -- Equations to 1st order. -- For example a 3rd order equation in X becomes a first order -- equation in the vector Y = (X, dX/dt, d/dt(dX/dt)). with function F (Time : Real; Y : Dynamical_Variable) return Dynamical_Variable is <>; -- Defines the equation to be integrated as -- dY/dt = F (t, Y). Even if the equation is t or Y -- independent, it must be entered in this form. with function "*" (Left : Real; Right : Dynamical_Variable) return Dynamical_Variable is <>; -- Defines multiplication of the independent by the -- dependent variable. An operation of this sort must exist by -- definition of the derivative, dY/dt = (Y(t+dt) - Y(t)) / dt, -- which requires multiplication of the (inverse) independent -- variable t, by the Dynamical variable Y (the dependent variable). with function "+" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is <>; -- Defines summation of the dependent variable. Again, this -- operation must exist by the definition of the derivative, -- dY/dt = (Y(t+dt) - Y(t)) / dt = (Y(t+dt) + (-1)*Y(t)) / dt. with function "-" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is <>; with function Norm (Y1: in Dynamical_Variable) return Real is <>; -- not used yet. package Predictor_1 is type Step_Integer is range 1 .. 2**31-1; procedure Integrate (Final_State : out Dynamical_Variable; Final_Time : in Real; Initial_State : in Dynamical_Variable; Initial_Time : in Real; No_Of_Steps : in Step_Integer); -- You must init. all elements of array Initial_State. -- -- The 1st 32 steps use an 8th order Runge-Kutta to initialize -- an array, so if No_Of_Steps < 33 then you are using the -- Runge-Kutta to do the integration. No_Of_Corrector_Evaluate_Iterations : constant Positive := 1; -- Notice there has to be at least 1 Correction step. That means -- this is always a predictor-corrector method. 1 usually best here. Final_Corrector_Desired : constant Boolean := True; Extrapolation_Desired : constant Boolean := True; end Predictor_1;
39.958042
75
0.663808
10aff2a327e5ee0fef3efbe40b67593236c3b347
2,631
adb
Ada
src/util/spat-string_tables.adb
HeisenbugLtd/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
20
2020-05-17T18:55:16.000Z
2021-05-26T14:53:53.000Z
src/util/spat-string_tables.adb
selroc/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
33
2020-04-03T13:08:50.000Z
2020-10-17T04:26:34.000Z
src/util/spat-string_tables.adb
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); package body SPAT.String_Tables is type Lengths is array (1 .. Columns) of Ada.Text_IO.Count; type Column_Positions is array (1 .. Columns) of Ada.Text_IO.Positive_Count; --------------------------------------------------------------------------- -- Put --------------------------------------------------------------------------- procedure Put (File : in Ada.Text_IO.File_Type := Ada.Text_IO.Standard_Output; Item : in Row_Vectors.Vector) is Col_Length : Lengths := (others => 0); Start_Col : Column_Positions := (others => 1); use type Ada.Text_IO.Count; begin -- Retrieve maximum length of each column. for Row of Item loop for Col in Col_Length'Range loop Col_Length (Col) := Ada.Text_IO.Count'Max (Col_Length (Col), (if Col = Col_Length'First and then Col /= Col_Length'Last and then Ada.Strings.Unbounded.Length (Row (Col + 1)) = 0 then 0 -- Ignore length of first field if no other field follows. else Ada.Text_IO.Count (Ada.Strings.Unbounded.Length (Row (Col))))); end loop; end loop; -- Now each Length entry contains the maximum length of each item. -- Let's turn these length into absolute positions. for Col in Col_Length'Range loop Start_Col (Col) := (if Col = Col_Length'First then 1 else Start_Col (Col - 1) + Col_Length (Col - 1)); end loop; -- Finally print each entry. for Row of Item loop for Col in Row'Range loop if Ada.Strings.Unbounded.Length (Row (Col)) > 0 then Ada.Text_IO.Set_Col (File => File, To => Start_Col (Col)); Ada.Text_IO.Put (File => File, Item => Ada.Strings.Unbounded.To_String (Row (Col))); end if; end loop; Ada.Text_IO.New_Line (File => File); end loop; end Put; end SPAT.String_Tables;
38.691176
86
0.49981
dfdbcf1954492a6564f04c458f60ce8db0c0f74b
4,700
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-vxwext-kernel.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/s-vxwext-kernel.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-vxwext-kernel.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . V X W O R K S . E X T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2008-2015, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- ------------------------------------------------------------------------------ -- This package provides vxworks specific support functions needed -- by System.OS_Interface. -- This is the VxWorks 6 kernel version of this package with Interfaces.C; package System.VxWorks.Ext is pragma Preelaborate; subtype SEM_ID is Long_Integer; -- typedef struct semaphore *SEM_ID; type sigset_t is mod 2 ** Long_Long_Integer'Size; type t_id is new Long_Integer; subtype int is Interfaces.C.int; subtype unsigned is Interfaces.C.unsigned; type Interrupt_Handler is access procedure (parameter : System.Address); pragma Convention (C, Interrupt_Handler); type Interrupt_Vector is new System.Address; function Int_Lock return int; pragma Convention (C, Int_Lock); function Int_Unlock (Old : int) return int; pragma Convention (C, Int_Unlock); function Interrupt_Connect (Vector : Interrupt_Vector; Handler : Interrupt_Handler; Parameter : System.Address := System.Null_Address) return int; pragma Import (C, Interrupt_Connect, "intConnect"); function Interrupt_Context return int; pragma Import (C, Interrupt_Context, "intContext"); function Interrupt_Number_To_Vector (intNum : int) return Interrupt_Vector; pragma Import (C, Interrupt_Number_To_Vector, "__gnat_inum_to_ivec"); function semDelete (Sem : SEM_ID) return int; pragma Convention (C, semDelete); function Task_Cont (tid : t_id) return int; pragma Convention (C, Task_Cont); function Task_Stop (tid : t_id) return int; pragma Convention (C, Task_Stop); function kill (pid : t_id; sig : int) return int; pragma Import (C, kill, "kill"); function getpid return t_id; pragma Import (C, getpid, "taskIdSelf"); function Set_Time_Slice (ticks : int) return int; pragma Import (C, Set_Time_Slice, "kernelTimeSlice"); type UINT64 is mod 2 ** Long_Long_Integer'Size; function tickGet return UINT64; -- Needed for ravenscar-cert pragma Import (C, tickGet, "tick64Get"); -------------------------------- -- Processor Affinity for SMP -- -------------------------------- function taskCpuAffinitySet (tid : t_id; CPU : int) return int; pragma Convention (C, taskCpuAffinitySet); -- For SMP run-times set the CPU affinity. -- For uniprocessor systems return ERROR status. function taskMaskAffinitySet (tid : t_id; CPU_Set : unsigned) return int; pragma Convention (C, taskMaskAffinitySet); -- For SMP run-times set the CPU mask affinity. -- For uniprocessor systems return ERROR status. end System.VxWorks.Ext;
42.342342
78
0.54617
4afad1e3b9cd90f4b8aed7b9dd3641f304178034
873
ads
Ada
.emacs.d/elpa/wisi-3.1.3/sal-ada_containers.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-3.1.3/sal-ada_containers.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-3.1.3/sal-ada_containers.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
-- Abstract : -- -- Root of extensions to Ada.Containers. -- -- Copyright (C) 2019 Free Software Foundation All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, 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 MERCHAN- -- TABILITY 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. pragma License (Modified_GPL); package SAL.Ada_Containers is end SAL.Ada_Containers;
39.681818
76
0.749141
200019341bed654f6bd30a7394593e9b938cb0f7
3,323
ads
Ada
tools/scitools/conf/understand/ada/ada12/g-zspche.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada12/g-zspche.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/g-zspche.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . W I D E _ W I D E _ S P E L L I N G _ C H E C K E R -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-2010, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Spelling checker -- This package provides a utility routine for checking for bad spellings -- for the case of Wide_Wide_String arguments. package GNAT.Wide_Wide_Spelling_Checker is pragma Pure; function Is_Bad_Spelling_Of (Found : Wide_Wide_String; Expect : Wide_Wide_String) return Boolean; -- Determines if the string Found is a plausible misspelling of the string -- Expect. Returns True for an exact match or a probably misspelling, False -- if no near match is detected. This routine is case sensitive, so the -- caller should fold both strings to get a case insensitive match. -- -- Note: the spec of this routine is deliberately rather vague. It is used -- by GNAT itself to detect misspelled keywords and identifiers, and is -- heuristically adjusted to be appropriate to this usage. It will work -- well in any similar case of named entities. end GNAT.Wide_Wide_Spelling_Checker;
61.537037
79
0.422811
396c23042e691d1fc0480dfd86414ca871965ee1
1,249
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_length_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_length_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_length_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_length_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_length_error_t.Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_length_error_t.Item, Element_Array => xcb.xcb_length_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_length_error_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_length_error_t.Pointer, Element_Array => xcb.xcb_length_error_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_length_error_t;
26.574468
77
0.667734
4ae4f9e1194b9b25f871ec690f385451d1b01064
1,858
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_recolor_cursor_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_recolor_cursor_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_recolor_cursor_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 Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_recolor_cursor_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; cursor : aliased xcb.xcb_cursor_t; fore_red : aliased Interfaces.Unsigned_16; fore_green : aliased Interfaces.Unsigned_16; fore_blue : aliased Interfaces.Unsigned_16; back_red : aliased Interfaces.Unsigned_16; back_green : aliased Interfaces.Unsigned_16; back_blue : aliased Interfaces.Unsigned_16; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_recolor_cursor_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_recolor_cursor_request_t.Item, Element_Array => xcb.xcb_recolor_cursor_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_recolor_cursor_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_recolor_cursor_request_t.Pointer, Element_Array => xcb.xcb_recolor_cursor_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_recolor_cursor_request_t;
29.967742
75
0.668461
10771c99f85181f5087ad2ec87931310ab32c86c
604
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_enum_io.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/testsuite/gnat.dg/test_enum_io.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_enum_io.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do run } with Ada.Text_IO; use Ada.Text_IO; procedure Test_Enum_IO is type Enum is (Literal); package Enum_IO is new Enumeration_IO (Enum); use Enum_IO; File : File_Type; Value: Enum; Rest : String (1 ..30); Last : Natural; begin Create (File, Mode => Out_File); Put_Line (File, "Literax0000000l note the 'l' at the end"); Reset (File, Mode => In_File); Get (File, Value); Get_Line (File, Rest, Last); Close (File); Put_Line (Enum'Image (Value) & Rest (1 .. Last)); raise Program_Error; exception when Data_Error => null; end Test_Enum_IO;
17.764706
61
0.64404
202ccf5ebcd4c9d676fce9d48075e09b0df34ea9
984
adb
Ada
src/buffer_package.adb
MorganPeterson/avi-editor
c8c967edb4615048b41f3527eb807e6229cf5205
[ "0BSD" ]
null
null
null
src/buffer_package.adb
MorganPeterson/avi-editor
c8c967edb4615048b41f3527eb807e6229cf5205
[ "0BSD" ]
null
null
null
src/buffer_package.adb
MorganPeterson/avi-editor
c8c967edb4615048b41f3527eb807e6229cf5205
[ "0BSD" ]
null
null
null
package body Buffer_Package is procedure Enable_Undo (B : in out Buffer) is begin B.Can_Undo := True; end Enable_Undo; procedure Clear_Tag (B : in out Buffer; T : Tag_Type) is begin if T < TAG_MAX then declare Val : constant Integer := Tag_Type'Pos (T); begin B.Tags (Val).P1 := (NONE, NONE); B.Tags (Val).P2 := (NONE, NONE); end; end if; end Clear_Tag; procedure Set_Tag (B : out Buffer; T : Tag_Type; P1 : Pos; P2 : Pos; V : Integer) is begin if T < TAG_MAX and P1.L /= NONE and P1.C /= NONE and P2.L /= NONE and P2.C /= NONE then declare Val : constant Integer := Tag_Type'Pos (T); begin B.Tags (Val).P1 := P1; B.Tags (Val).P2 := P2; B.Tags (Val).V := V; end; end if; end Set_Tag; end Buffer_Package;
22.883721
59
0.48374
dc5c08820f92823c71efcff7ff598155196a935d
18,025
adb
Ada
source/web/tools/a2js/properties-definitions-record_type.adb
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-record_type.adb
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-record_type.adb
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-2018, 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 Asis.Elements; with Asis.Declarations; with Asis.Definitions; with Properties.Tools; package body Properties.Definitions.Record_Type is --------------- -- Alignment -- --------------- function Alignment (Engine : access Engines.Contexts.Context; Element : Asis.Definition; Name : Engines.Integer_Property) return Integer is List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Element); Result : Integer := 1; Down : Integer; begin for J in List'Range loop Down := Engine.Integer.Get_Property (List (J), Name); Result := Integer'Max (Result, Down); end loop; return Result; end Alignment; ---------- -- Code -- ---------- function Code (Engine : access Engines.Contexts.Context; Element : Asis.Definition; Name : Engines.Text_Property) return League.Strings.Universal_String is Decl : constant Asis.Declaration := Asis.Elements.Enclosing_Element (Element); Is_Array_Buffer : constant Boolean := Properties.Tools.Is_Array_Buffer (Decl); Result : League.Strings.Universal_String; Size : League.Strings.Universal_String; begin Result.Append ("(function (){"); -- Wrapper Result.Append ("var _result = function ("); -- Type constructor -- Declare type's discriminant declare List : constant Asis.Discriminant_Association_List := Properties.Tools.Corresponding_Type_Discriminants (Element); begin for J in List'Range loop declare Id : League.Strings.Universal_String; Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); begin for N in Names'Range loop Id := Engine.Text.Get_Property (Names (N), Name); Result.Append (Id); if J /= List'Last or N /= Names'Last then Result.Append (","); end if; end loop; end; end loop; Result.Append ("){"); if Is_Array_Buffer then Size := Engine.Text.Get_Property (Element, Engines.Size); Result.Append ("this.A = new ArrayBuffer("); Result.Append (Size); Result.Append ("/8);"); Result.Append ("this._u8 = new Uint8Array(this.A);"); Result.Append ("this._f32 = new Float32Array(this.A);"); end if; -- Copy type's discriminant for J in List'Range loop declare Id : League.Strings.Universal_String; Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); Init : constant Asis.Expression := Asis.Declarations.Initialization_Expression (List (J)); begin for N in Names'Range loop Id := Engine.Text.Get_Property (Names (N), Name); if not Asis.Elements.Is_Nil (Init) then Result.Append ("if (typeof "); Result.Append (Id); Result.Append ("=== 'undefined')"); Result.Append (Id); Result.Append ("="); Result.Append (Engine.Text.Get_Property (Init, Name)); Result.Append (";"); end if; Result.Append ("this."); Result.Append (Id); Result.Append (" = "); Result.Append (Id); Result.Append (";"); end loop; end; end loop; end; -- Initialize type's components declare List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Element); begin for J in List'Range loop declare Id : League.Strings.Universal_String; Init : constant Asis.Expression := Asis.Declarations.Initialization_Expression (List (J)); Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); Value : League.Strings.Universal_String; begin if not Asis.Elements.Is_Nil (Init) then Value := Engine.Text.Get_Property (Init, Name); end if; for N in Names'Range loop Id := Engine.Text.Get_Property (Names (N), Name); Result.Append ("this."); Result.Append (Id); Result.Append (" = "); if Asis.Elements.Is_Nil (Init) then Result.Append (Engine.Text.Get_Property (List (J), Engines.Initialize)); else Result.Append (Value); end if; Result.Append (";"); end loop; end; end loop; end; Result.Append ("};"); -- End of constructor -- Limited types should also have _cast, so we need _assign -- Update prototype with _assign Result.Append ("_result.prototype._assign = function(src){"); declare Down : League.Strings.Universal_String; Def : constant Asis.Definition := Asis.Definitions.Record_Definition (Element); List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Def); begin Down := Engine.Text.Get_Property (List => List, Name => Engines.Assign, Empty => League.Strings.Empty_Universal_String, Sum => Properties.Tools.Join'Access); Result.Append (Down); Result.Append ("};"); -- End of _assign end; Result.Append ("_result._cast = function _cast (value){"); Result.Append ("var result = new _result("); declare Down : League.Strings.Universal_String; List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Discriminants (Element); begin for J in List'Range loop declare Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); begin for K in Names'Range loop Down := Engine.Text.Get_Property (Names (K), Name); Result.Append ("value."); Result.Append (Down); if K /= Names'Last or J /= List'Last then Result.Append (","); end if; end loop; end; end loop; end; Result.Append (");"); Result.Append ("result._assign (value);"); Result.Append ("return result;"); Result.Append ("};"); Result.Append ("var props = {};"); declare List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Element); Prev : League.Strings.Universal_String; begin Prev.Append ("0"); for J in List'Range loop declare Id : League.Strings.Universal_String; Comp : constant Asis.Definition := Asis.Declarations.Object_Declaration_View (List (J)); Def : constant Asis.Definition := Asis.Definitions.Component_Definition_View (Comp); Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); Down : League.Strings.Universal_String; Comp_Size : League.Strings.Universal_String; Is_Simple_Type : Boolean; begin if Is_Array_Buffer then Comp_Size := Engine.Text.Get_Property (List (J), Engines.Size); Is_Simple_Type := Engine.Boolean.Get_Property (Def, Engines.Is_Simple_Type); if Is_Simple_Type then Down := Engine.Text.Get_Property (Def, Engines.Typed_Array_Item_Type); else Down := Engine.Text.Get_Property (Def, Name); end if; end if; for N in Names'Range loop Id := Engine.Text.Get_Property (Names (N), Name); Result.Append ("props._pos_"); Result.Append (Id); Result.Append ("={value: "); if Is_Array_Buffer then Result.Append (Prev); Result.Append ("};"); Result.Append ("props._size_"); Result.Append (Id); Result.Append ("={value: "); Result.Append (Comp_Size); Result.Append ("}; props."); Result.Append (Id); Result.Append ("= {get: function(){ return "); if Is_Simple_Type then Result.Append ("this."); Result.Append (Down); Result.Append ("["); Result.Append ("this._pos_"); Result.Append (Id); Result.Append ("*8/this._size_"); Result.Append (Id); Result.Append ("]"); else Result.Append (Down); Result.Append (".prototype._from_dataview ("); Result.Append ("new DataView (this.A,"); Result.Append ("this._u8.byteOffset+this._pos_"); Result.Append (Id); Result.Append (",this._size_"); Result.Append (Id); Result.Append ("/8))"); end if; Result.Append (";},"); Result.Append ("set: function(_v){ "); if Is_Simple_Type then Result.Append ("this."); Result.Append (Down); Result.Append ("["); Result.Append ("this._pos_"); Result.Append (Id); Result.Append ("*8/this._size_"); Result.Append (Id); Result.Append ("]=_v"); else Result.Append (Down); Result.Append (".prototype._from_dataview ("); Result.Append ("new DataView (this.A,"); Result.Append ("this._u8.byteOffset+this._pos_"); Result.Append (Id); Result.Append (",this._size_"); Result.Append (Id); Result.Append ("/8))._assign(_v)"); end if; Result.Append (";}};"); Prev.Clear; Prev.Append ("props._pos_"); Prev.Append (Id); Prev.Append (".value+props._size_"); Prev.Append (Id); Prev.Append (".value/8"); else Result.Append ("'"); Result.Append (Id); Result.Append ("'};"); end if; end loop; end; end loop; end; Result.Append ("Object.defineProperties(_result.prototype, props);"); if Is_Array_Buffer then -- Set _from_dataview Result.Append ("_result._from_dataview = function _from_dataview(_u8){"); Result.Append ("var result = Object.create (_result.prototype);"); Result.Append ("result.A = _u8.buffer;"); Result.Append ("result._f32 = new Float32Array(_u8.buffer,_u8.byteOffset,"); Result.Append (Size); Result.Append ("/8/4);"); Result.Append ("result._u8 = _u8;"); Result.Append ("return result;"); Result.Append ("};"); -- End of _from_dataview end if; Result.Append ("return _result;"); Result.Append ("})();"); -- End of Wrapper and call it return Result; end Code; ---------------- -- Initialize -- ---------------- function Initialize (Engine : access Engines.Contexts.Context; Element : Asis.Definition; Name : Engines.Text_Property) return League.Strings.Universal_String is List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Element); Text : League.Strings.Universal_String; Down : League.Strings.Universal_String; begin Text.Append ("{"); for J in List'Range loop declare Id : League.Strings.Universal_String; Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (List (J)); begin Down := Engine.Text.Get_Property (List (J), Name); for N in Names'Range loop Id := Engine.Text.Get_Property (Names (N), Engines.Code); Text.Append (Id); Text.Append (":"); Text.Append (Down); if N /= Names'Last then Text.Append (","); end if; end loop; if J /= List'Last then Text.Append (","); end if; end; end loop; Text.Append ("}"); return Text; end Initialize; ---------- -- Size -- ---------- function Size (Engine : access Engines.Contexts.Context; Element : Asis.Definition; Name : Engines.Text_Property) return League.Strings.Universal_String is List : constant Asis.Declaration_List := Properties.Tools.Corresponding_Type_Components (Element); Result : League.Strings.Universal_String; Down : League.Strings.Universal_String; begin Result.Append ("(0"); for J in List'Range loop Down := Engine.Text.Get_Property (List (J), Name); Result.Append ("+"); Result.Append (Down); end loop; Result.Append (")"); return Result; end Size; end Properties.Definitions.Record_Type;
39.015152
78
0.473454
20f155b54104c1ad8ae078a8ad5e583daf519a49
10,835
ads
Ada
source/league/ucd/matreshka-internals-unicode-ucd-core_0110.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/league/ucd/matreshka-internals-unicode-ucd-core_0110.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/league/ucd/matreshka-internals-unicode-ucd-core_0110.ads
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 -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-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$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_0110 is pragma Preelaborate; Group_0110 : aliased constant Core_Second_Stage := (16#00# => -- 011000 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#01# => -- 011001 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#02# => -- 011002 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#38# .. 16#45# => -- 011038 .. 011045 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#46# => -- 011046 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | Grapheme_Link | ID_Continue | XID_Continue => True, others => False)), 16#47# .. 16#48# => -- 011047 .. 011048 (Other_Punctuation, Neutral, Other, Other, S_Term, Break_After, (STerm | Terminal_Punctuation | Grapheme_Base => True, others => False)), 16#49# .. 16#4D# => -- 011049 .. 01104D (Other_Punctuation, Neutral, Other, Other, Other, Alphabetic, (Terminal_Punctuation | Grapheme_Base => True, others => False)), 16#4E# .. 16#51# => -- 01104E .. 011051 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#52# .. 16#65# => -- 011052 .. 011065 (Other_Number, Neutral, Other, Other, Other, Alphabetic, (Grapheme_Base => True, others => False)), 16#66# .. 16#6F# => -- 011066 .. 01106F (Decimal_Number, Neutral, Other, Numeric, Numeric, Numeric, (Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#70# .. 16#7E# => -- 011070 .. 01107E (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#7F# => -- 01107F (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | Grapheme_Link | ID_Continue | XID_Continue => True, others => False)), 16#80# .. 16#81# => -- 011080 .. 011081 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#82# => -- 011082 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#B0# .. 16#B2# => -- 0110B0 .. 0110B2 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#B3# .. 16#B6# => -- 0110B3 .. 0110B6 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#B7# .. 16#B8# => -- 0110B7 .. 0110B8 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#B9# => -- 0110B9 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | Grapheme_Link | ID_Continue | XID_Continue => True, others => False)), 16#BA# => -- 0110BA (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#BB# .. 16#BC# => -- 0110BB .. 0110BC (Other_Punctuation, Neutral, Other, Other, Other, Alphabetic, (Grapheme_Base => True, others => False)), 16#BD# => -- 0110BD (Format, Neutral, Control, Format, Format, Alphabetic, (Case_Ignorable => True, others => False)), 16#BE# .. 16#C1# => -- 0110BE .. 0110C1 (Other_Punctuation, Neutral, Other, Other, S_Term, Break_After, (STerm | Terminal_Punctuation | Grapheme_Base => True, others => False)), 16#C2# .. 16#CF# => -- 0110C2 .. 0110CF (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#E9# .. 16#EF# => -- 0110E9 .. 0110EF (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#F0# .. 16#F9# => -- 0110F0 .. 0110F9 (Decimal_Number, Neutral, Other, Numeric, Numeric, Numeric, (Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#FA# .. 16#FF# => -- 0110FA .. 0110FF (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), others => (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False))); end Matreshka.Internals.Unicode.Ucd.Core_0110;
42.490196
78
0.4527
3925524ff273e114c25e6015f1247b35f47f4886
216
ads
Ada
s-taprop.ads
ytomino/gnat4drake
945795d8705ba4024b07a41b7efe0a9513b441c1
[ "MIT" ]
null
null
null
s-taprop.ads
ytomino/gnat4drake
945795d8705ba4024b07a41b7efe0a9513b441c1
[ "MIT" ]
null
null
null
s-taprop.ads
ytomino/gnat4drake
945795d8705ba4024b07a41b7efe0a9513b441c1
[ "MIT" ]
null
null
null
pragma License (Unrestricted); with System.Tasking; package System.Task_Primitives.Operations is pragma Preelaborate; procedure Abort_Task (T : System.Tasking.Task_Id); end System.Task_Primitives.Operations;
24
53
0.805556
18795c085448127736bfae98819176bd3c63eeb1
1,303
adb
Ada
src/servlet-rest-operation.adb
jquorning/ada-servlet
97db5fcdd59e01441c717b95a9e081aa7d6a7bbe
[ "Apache-2.0" ]
6
2018-01-04T07:19:46.000Z
2020-12-27T14:49:44.000Z
src/servlet-rest-operation.adb
jquorning/ada-servlet
97db5fcdd59e01441c717b95a9e081aa7d6a7bbe
[ "Apache-2.0" ]
9
2020-12-20T15:29:18.000Z
2022-02-04T20:13:58.000Z
src/servlet-rest-operation.adb
jquorning/ada-servlet
97db5fcdd59e01441c717b95a9e081aa7d6a7bbe
[ "Apache-2.0" ]
2
2021-01-06T08:32:38.000Z
2022-01-24T23:46:36.000Z
----------------------------------------------------------------------- -- servlet-rest-operation -- REST API Operation Definition -- Copyright (C) 2017 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 Servlet.Rest.Operation is URI_Mapping : aliased String := URI; Desc : aliased Static_Descriptor := (Next => null, Method => Method, Handler => Handler, Pattern => URI_Mapping'Access, Permission => Permission); function Definition return Descriptor_Access is begin return Desc'Access; end Definition; end Servlet.Rest.Operation;
38.323529
76
0.614735
18a92d48a22ca3e402222a2a14f06e815c71ecbf
1,387
adb
Ada
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/fun_overload_menu/foo.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/fun_overload_menu/foo.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/fun_overload_menu/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2015-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/>. procedure Foo is type New_Integer is new Integer; type Integer_Access is access Integer; function F (I : Integer; A : Integer_Access) return Boolean is begin return True; end F; function F (I : New_Integer; A : Integer_Access) return Boolean is begin return False; end F; procedure P (I : Integer; A : Integer_Access) is begin null; end P; procedure P (I : New_Integer; A : Integer_Access) is begin null; end P; B1 : constant Boolean := F (Integer'(1), null); -- BREAK B2 : constant Boolean := F (New_Integer'(2), null); begin P (Integer'(3), null); P (New_Integer'(4), null); end Foo;
28.895833
73
0.684211
108af143638030aa925a783eb642bfa2e8ef3baf
39,589
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_1_proc.bind.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-06-18T16:51:39.000Z
2020-06-18T16:51:39.000Z
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_1_proc.bind.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/Loop_1_proc.bind.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-03-18T00:43:22.000Z
2020-03-18T00:43:22.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>Loop_1_proc</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>p_hw_input_stencil_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>p_hw_input_stencil_stream_to_delayed_input_V_value_V</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="8" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second class_id="9" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first class_id="11" tracking_level="0" version="0"> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>_hw_input_stencil_stream_to_delayed_input.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>p_hw_input_stencil_stream_to_mul_V_value_V</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName>_hw_input_stencil_stream_to_mul.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="12" tracking_level="0" version="0"> <count>10</count> <item_version>0</item_version> <item class_id="13" tracking_level="1" version="0" object_id="_4"> <Value> <Obj> <type>0</type> <id>10</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>67</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>67</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>28</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_5"> <Value> <Obj> <type>0</type> <id>12</id> <name>indvar_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>41</item> <item>42</item> <item>43</item> <item>44</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_6"> <Value> <Obj> <type>0</type> <id>13</id> <name>exitcond_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>45</item> <item>47</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_7"> <Value> <Obj> <type>0</type> <id>14</id> <name>indvar_flatten_next</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>48</item> <item>50</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_8"> <Value> <Obj> <type>0</type> <id>15</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>51</item> <item>52</item> <item>53</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_9"> <Value> <Obj> <type>0</type> <id>20</id> <name>tmp_value_V</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>71</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>72</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>30</item> <item>31</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_10"> <Value> <Obj> <type>0</type> <id>21</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>74</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>74</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>33</item> <item>34</item> <item>35</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_11"> <Value> <Obj> <type>0</type> <id>22</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>78</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>78</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>36</item> <item>37</item> <item>38</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_12"> <Value> <Obj> <type>0</type> <id>24</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>68</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>68</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>39</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="13" object_id="_13"> <Value> <Obj> <type>0</type> <id>26</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_14"> <Value> <Obj> <type>2</type> <id>40</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_15"> <Value> <Obj> <type>2</type> <id>46</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>4</content> </item> <item class_id_reference="16" object_id="_16"> <Value> <Obj> <type>2</type> <id>49</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_17"> <Obj> <type>3</type> <id>11</id> <name>newFuncRoot</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>10</item> </node_objs> </item> <item class_id_reference="18" object_id="_18"> <Obj> <type>3</type> <id>16</id> <name>.preheader59</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>12</item> <item>13</item> <item>14</item> <item>15</item> </node_objs> </item> <item class_id_reference="18" object_id="_19"> <Obj> <type>3</type> <id>25</id> <name>.preheader59.preheader</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>20</item> <item>21</item> <item>22</item> <item>24</item> </node_objs> </item> <item class_id_reference="18" object_id="_20"> <Obj> <type>3</type> <id>27</id> <name>.exitStub</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>26</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>22</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_21"> <id>28</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_22"> <id>31</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_23"> <id>34</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_24"> <id>35</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_25"> <id>37</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_26"> <id>38</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_27"> <id>39</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_28"> <id>41</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_29"> <id>42</id> <edge_type>2</edge_type> <source_obj>11</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_30"> <id>43</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_31"> <id>44</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_32"> <id>45</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_33"> <id>47</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_34"> <id>48</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_35"> <id>50</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_36"> <id>51</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_37"> <id>52</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_38"> <id>53</id> <edge_type>2</edge_type> <source_obj>27</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_39"> <id>169</id> <edge_type>2</edge_type> <source_obj>11</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_40"> <id>170</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_41"> <id>171</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_42"> <id>172</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>16</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_43"> <mId>1</mId> <mTag>Loop_1_proc</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>6</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_44"> <mId>2</mId> <mTag>Entry</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>11</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_45"> <mId>3</mId> <mTag>Loop 1</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>16</item> <item>25</item> </basic_blocks> <mII>1</mII> <mDepth>2</mDepth> <mMinTripCount>4</mMinTripCount> <mMaxTripCount>4</mMaxTripCount> <mMinLatency>4</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_46"> <mId>4</mId> <mTag>Return</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>27</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_47"> <states class_id="25" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_48"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_49"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_50"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_51"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_52"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_53"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_54"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_55"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_56"> <id>2</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_57"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_58"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_59"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_60"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_61"> <id>3</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_62"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_63"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_64"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_65"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_66"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_67"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_68"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_69"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_70"> <id>4</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_71"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_72"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>12</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_73"> <inState>3</inState> <outState>2</outState> <condition> <id>19</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_74"> <inState>2</inState> <outState>4</outState> <condition> <id>18</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first class_id="35" tracking_level="0" version="0"> <first>13</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_75"> <inState>2</inState> <outState>3</outState> <condition> <id>20</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>13</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="-1"></res> <node_label_latency class_id="37" tracking_level="0" version="0"> <count>10</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>10</first> <second class_id="39" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>2</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="40" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>11</first> <second class_id="42" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>25</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>27</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="43" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="44" tracking_level="1" version="0" object_id="_76"> <region_name>Loop 1</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>16</item> <item>25</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>2</pipe_depth> </item> </regions> <dp_fu_nodes class_id="45" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>54</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>62</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>74</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>81</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>87</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="48" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="49" tracking_level="0" version="0"> <first>exitcond_flatten_fu_81</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>indvar_flatten_next_fu_87</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>indvar_flatten_phi_fu_74</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>3</count> <item_version>0</item_version> <item> <first>StgValue_20_write_fu_54</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>StgValue_21_write_fu_62</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>tmp_value_V_read_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="50" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>3</count> <item_version>0</item_version> <item> <first>70</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>93</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>97</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>3</count> <item_version>0</item_version> <item> <first>exitcond_flatten_reg_93</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>indvar_flatten_next_reg_97</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>indvar_flatten_reg_70</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>1</count> <item_version>0</item_version> <item> <first>70</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>1</count> <item_version>0</item_version> <item> <first>indvar_flatten_reg_70</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="51" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>p_hw_input_stencil_stream_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> </second> </item> <item> <first>p_hw_input_stencil_stream_to_delayed_input_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> </second> </item> <item> <first>p_hw_input_stencil_stream_to_mul_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="53" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>1</first> <second>FIFO_SRL</second> </item> <item> <first>2</first> <second>FIFO_SRL</second> </item> <item> <first>3</first> <second>FIFO_SRL</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
26.217881
138
0.604713
23eb21c007dc669046bfc915e9091a2d8e829163
271
ads
Ada
common/mspgd.ads
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
common/mspgd.ads
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
common/mspgd.ads
ekoeppen/MSP430_Generic_Ada_Drivers
12b8238ea22dbb0c0c6c63ca46bfa7e2cb80334a
[ "MIT" ]
null
null
null
with Interfaces; use Interfaces; package MSPGD is pragma Preelaborate; type Buffer_Type is array (Integer range <>) of Unsigned_8; procedure Standby with Inline_Always; procedure Stop with Inline_Always; procedure Reset with Inline_Always; end MSPGD;
19.357143
62
0.763838
df594a06042fa95f007d06715c6ea7b6bd398193
916
ads
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/aliased_array/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/aliased_array/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/aliased_array/pck.ads
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/>. with System; package Pck is type Bounded is array (Integer range <>) of Integer; function New_Bounded (Low, High : Integer) return Bounded; procedure Do_Nothing (A : System.Address); end Pck;
41.636364
73
0.735808
104dfda0c8ce4b28a8fb7f615c193eb9bfc7f10b
150
ads
Ada
src/bb_pico_bsp.ads
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
src/bb_pico_bsp.ads
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
src/bb_pico_bsp.ads
Fabien-Chouteau/bb_pico_bsp
76f9999eba98bf8b1088fc18b6e23325fd8adc75
[ "MIT" ]
null
null
null
private with RP.DMA; package BB_Pico_Bsp is pragma Elaborate_Body; private SPI_TX_DMA : constant RP.DMA.DMA_Channel_Id := 1; end BB_Pico_Bsp;
16.666667
52
0.766667
105e2a6ac5abde0dc078638012ce8682266f910f
43
ads
Ada
examples/ada/sl/visual/test.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
36
2016-02-19T12:09:49.000Z
2022-02-03T13:13:21.000Z
examples/ada/sl/visual/test.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
null
null
null
examples/ada/sl/visual/test.ads
rewriting/tom
2918e95c78006f08a2a0919ef440413fa5c2342a
[ "BSD-3-Clause" ]
6
2017-11-30T17:07:10.000Z
2022-03-12T14:46:21.000Z
package Test is procedure run_test; end;
10.75
21
0.767442
108741278a375af8567e4ba69a66def9d49a441f
706
ads
Ada
Sources/Globe_3d/globe_3d-software_anti_aliasing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-21T09:40:34.000Z
2019-09-21T09:40:34.000Z
Sources/Globe_3d/globe_3d-software_anti_aliasing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
null
null
null
Sources/Globe_3d/globe_3d-software_anti_aliasing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-25T12:29:27.000Z
2019-09-25T12:29:27.000Z
-- GLOBE_3D.Software_Anti_Aliasing provides a software method for -- smoothing pictures by displaying several times a scene with -- subpixel translations. generic with procedure Display; package GLOBE_3D.Software_Anti_Aliasing is -- Returns the number of phases needed for anti - aliasing: -- 1 for clearing accum buffer + #jitterings + 1 for display function Anti_Alias_phases return Positive; -- Display only one layer of anti - aliasing: procedure Display_with_Anti_Aliasing (phase : Positive); type Quality is (Q1, Q3, Q4, Q11, Q16, Q29, Q90); -- Q1 means no aliasing at all procedure Set_Quality (q : Quality); end GLOBE_3D.Software_Anti_Aliasing;
28.24
66
0.730878
231e491e1a187b52dd5e94238e5170cb4de37ce1
62
ads
Ada
src/libhello.ads
alire-project/libhello
ce78e7706c9d3f97605df48d8befca5407f8d328
[ "MIT" ]
1
2018-06-19T13:03:20.000Z
2018-06-19T13:03:20.000Z
src/libhello.ads
alire-project/libhello
ce78e7706c9d3f97605df48d8befca5407f8d328
[ "MIT" ]
null
null
null
src/libhello.ads
alire-project/libhello
ce78e7706c9d3f97605df48d8befca5407f8d328
[ "MIT" ]
null
null
null
package libhello is procedure Hello_World; end libhello;
10.333333
25
0.774194
0ef2e8ec811c6e4d21e8420ae3d23ce5191c4745
1,470
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_glx_are_textures_resident_cookie_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_glx_are_textures_resident_cookie_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_glx_are_textures_resident_cookie_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_are_textures_resident_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb .xcb_glx_are_textures_resident_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_are_textures_resident_cookie_t.Item, Element_Array => xcb.xcb_glx_are_textures_resident_cookie_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb .xcb_glx_are_textures_resident_cookie_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_are_textures_resident_cookie_t.Pointer, Element_Array => xcb.xcb_glx_are_textures_resident_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_are_textures_resident_cookie_t;
26.25
77
0.682313
c50243efdd68b5e16402b554373ab0b151f94914
136
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming9.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/testsuite/gnat.dg/renaming9.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming9.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do compile } package body Renaming9 is procedure Proc is begin Obj.I := 0; end; begin Obj.I := 0; end Renaming9;
10.461538
25
0.610294
10156fbc61c0b84232e88440f85acc541ca7c3d3
483
ads
Ada
languages/ada/soci-mysql.ads
qingqibing/db_soci
ca7e0fcd41341772e4d2f81ccfa29446866705f6
[ "BSL-1.0" ]
999
2015-01-03T22:22:34.000Z
2022-03-31T16:50:28.000Z
languages/ada/soci-mysql.ads
qingqibing/db_soci
ca7e0fcd41341772e4d2f81ccfa29446866705f6
[ "BSL-1.0" ]
640
2015-01-04T13:27:32.000Z
2022-03-31T20:09:51.000Z
languages/ada/soci-mysql.ads
qingqibing/db_soci
ca7e0fcd41341772e4d2f81ccfa29446866705f6
[ "BSL-1.0" ]
443
2015-01-04T08:48:29.000Z
2022-03-31T15:15:55.000Z
-- Copyright (C) 2008-2011 Maciej Sobczak -- Distributed under the Boost Software License, Version 1.0. -- (See accompanying file LICENSE_1_0.txt or copy at -- http://www.boost.org/LICENSE_1_0.txt) package SOCI.MySQL is -- -- Registers the MySQL backend so that it is ready for use -- by the dynamic backend loader. -- procedure Register_Factory_MySQL; pragma Import (C, Register_Factory_MySQL, "register_factory_mysql"); end SOCI.MySQL;
28.411765
62
0.697723
c5bbb5d9f6275cc84aa156967db5fa5a2f1bc31f
1,069
adb
Ada
regtests/search_harness.adb
stcarrez/ada-search
286dda8fbdd7fb0cd5e447347f92a77e34615089
[ "Apache-2.0" ]
9
2020-06-28T11:00:30.000Z
2021-11-30T21:38:58.000Z
regtests/search_harness.adb
stcarrez/ada-search
286dda8fbdd7fb0cd5e447347f92a77e34615089
[ "Apache-2.0" ]
null
null
null
regtests/search_harness.adb
stcarrez/ada-search
286dda8fbdd7fb0cd5e447347f92a77e34615089
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- search_harness -- Unit tests for Ada Search library -- Copyright (C) 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 Util.Tests; with Search.Testsuite; procedure Search_Harness is procedure Harness is new Util.Tests.Harness (Search.Testsuite.Suite); begin Harness ("search-tests.xml"); end Search_Harness;
36.862069
76
0.643592
39ba20305b08ddc2217cb71c1d4924443ee5ffa9
527
adb
Ada
ada/io.adb
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
ada/io.adb
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
ada/io.adb
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
-- io.adb -- Plays with console IO. -- Note that Ada is case-INSENSITIVE. -- -- Simon Heath -- 19/7/2004 with Ada.Text_Io; use Ada.Text_Io; procedure Io is C : Character; S : String(1..32); begin Put_Line( "This reads information and then displays it." ); Put_Line( "Please type a character then 'enter'" ); New_Line; Get( C ); Put_Line( "You typed '" & C & "'" ); --Put_Line( "Now type a string, then 'enter'" ); --Get_Line( S, 32 ); --Put_Line( "You typed:" ); --Put_Line( S ); end Io;
18.172414
62
0.59962
20b5af42cb0dd64df3a392a73b53cd94655b3dac
389
ads
Ada
specs/ada/common/tkmrpc-request-ike-ae_reset-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/common/tkmrpc-request-ike-ae_reset-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/common/tkmrpc-request-ike-ae_reset-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
with Ada.Unchecked_Conversion; package Tkmrpc.Request.Ike.Ae_Reset.Convert is function To_Request is new Ada.Unchecked_Conversion ( Source => Ae_Reset.Request_Type, Target => Request.Data_Type); function From_Request is new Ada.Unchecked_Conversion ( Source => Request.Data_Type, Target => Ae_Reset.Request_Type); end Tkmrpc.Request.Ike.Ae_Reset.Convert;
27.785714
58
0.748072
0ef1a1ad42468fff95b7eea79dcd31a33002e991
13,181
adb
Ada
libs/zlib/contrib/ada/test.adb
dpt/PrivateEye
c84406e33d231189b5b2a550026a74ee76715b71
[ "BSD-2-Clause" ]
12
2016-08-24T20:40:07.000Z
2022-02-01T01:46:31.000Z
libs/zlib/contrib/ada/test.adb
dpt/PrivateEye
c84406e33d231189b5b2a550026a74ee76715b71
[ "BSD-2-Clause" ]
7
2021-02-22T00:14:55.000Z
2022-02-04T22:02:06.000Z
libs/zlib/contrib/ada/test.adb
dpt/PrivateEye
c84406e33d231189b5b2a550026a74ee76715b71
[ "BSD-2-Clause" ]
1
2019-11-08T16:46:38.000Z
2019-11-08T16:46:38.000Z
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- -- -- Open source license information is in the zlib.ads file. -- ---------------------------------------------------------------- -- $Id: test.adb,v 1.1.1.1 2005-10-29 18:01:49 dpt Exp $ -- The program has a few aims. -- 1. Test ZLib.Ada95 thick binding functionality. -- 2. Show the example of use main functionality of the ZLib.Ada95 binding. -- 3. Build this program automatically compile all ZLib.Ada95 packages under -- GNAT Ada95 compiler. with ZLib.Streams; with Ada.Streams.Stream_IO; with Ada.Numerics.Discrete_Random; with Ada.Text_IO; with Ada.Calendar; procedure Test is use Ada.Streams; use Stream_IO; ------------------------------------ -- Test configuration parameters -- ------------------------------------ File_Size : Count := 100_000; Continuous : constant Boolean := False; Header : constant ZLib.Header_Type := ZLib.Default; -- ZLib.None; -- ZLib.Auto; -- ZLib.GZip; -- Do not use Header other then Default in ZLib versions 1.1.4 -- and older. Strategy : constant ZLib.Strategy_Type := ZLib.Default_Strategy; Init_Random : constant := 10; -- End -- In_File_Name : constant String := "testzlib.in"; -- Name of the input file Z_File_Name : constant String := "testzlib.zlb"; -- Name of the compressed file. Out_File_Name : constant String := "testzlib.out"; -- Name of the decompressed file. File_In : File_Type; File_Out : File_Type; File_Back : File_Type; File_Z : ZLib.Streams.Stream_Type; Filter : ZLib.Filter_Type; Time_Stamp : Ada.Calendar.Time; procedure Generate_File; -- Generate file of spetsified size with some random data. -- The random data is repeatable, for the good compression. procedure Compare_Streams (Left, Right : in out Root_Stream_Type'Class); -- The procedure compearing data in 2 streams. -- It is for compare data before and after compression/decompression. procedure Compare_Files (Left, Right : String); -- Compare files. Based on the Compare_Streams. procedure Copy_Streams (Source, Target : in out Root_Stream_Type'Class; Buffer_Size : in Stream_Element_Offset := 1024); -- Copying data from one stream to another. It is for test stream -- interface of the library. procedure Data_In (Item : out Stream_Element_Array; Last : out Stream_Element_Offset); -- this procedure is for generic instantiation of -- ZLib.Generic_Translate. -- reading data from the File_In. procedure Data_Out (Item : in Stream_Element_Array); -- this procedure is for generic instantiation of -- ZLib.Generic_Translate. -- writing data to the File_Out. procedure Stamp; -- Store the timestamp to the local variable. procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count); -- Print the time statistic with the message. procedure Translate is new ZLib.Generic_Translate (Data_In => Data_In, Data_Out => Data_Out); -- This procedure is moving data from File_In to File_Out -- with compression or decompression, depend on initialization of -- Filter parameter. ------------------- -- Compare_Files -- ------------------- procedure Compare_Files (Left, Right : String) is Left_File, Right_File : File_Type; begin Open (Left_File, In_File, Left); Open (Right_File, In_File, Right); Compare_Streams (Stream (Left_File).all, Stream (Right_File).all); Close (Left_File); Close (Right_File); end Compare_Files; --------------------- -- Compare_Streams -- --------------------- procedure Compare_Streams (Left, Right : in out Ada.Streams.Root_Stream_Type'Class) is Left_Buffer, Right_Buffer : Stream_Element_Array (0 .. 16#FFF#); Left_Last, Right_Last : Stream_Element_Offset; begin loop Read (Left, Left_Buffer, Left_Last); Read (Right, Right_Buffer, Right_Last); if Left_Last /= Right_Last then Ada.Text_IO.Put_Line ("Compare error :" & Stream_Element_Offset'Image (Left_Last) & " /= " & Stream_Element_Offset'Image (Right_Last)); raise Constraint_Error; elsif Left_Buffer (0 .. Left_Last) /= Right_Buffer (0 .. Right_Last) then Ada.Text_IO.Put_Line ("ERROR: IN and OUT files is not equal."); raise Constraint_Error; end if; exit when Left_Last < Left_Buffer'Last; end loop; end Compare_Streams; ------------------ -- Copy_Streams -- ------------------ procedure Copy_Streams (Source, Target : in out Ada.Streams.Root_Stream_Type'Class; Buffer_Size : in Stream_Element_Offset := 1024) is Buffer : Stream_Element_Array (1 .. Buffer_Size); Last : Stream_Element_Offset; begin loop Read (Source, Buffer, Last); Write (Target, Buffer (1 .. Last)); exit when Last < Buffer'Last; end loop; end Copy_Streams; ------------- -- Data_In -- ------------- procedure Data_In (Item : out Stream_Element_Array; Last : out Stream_Element_Offset) is begin Read (File_In, Item, Last); end Data_In; -------------- -- Data_Out -- -------------- procedure Data_Out (Item : in Stream_Element_Array) is begin Write (File_Out, Item); end Data_Out; ------------------- -- Generate_File -- ------------------- procedure Generate_File is subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#; package Random_Elements is new Ada.Numerics.Discrete_Random (Visible_Symbols); Gen : Random_Elements.Generator; Buffer : Stream_Element_Array := (1 .. 77 => 16#20#) & 10; Buffer_Count : constant Count := File_Size / Buffer'Length; -- Number of same buffers in the packet. Density : constant Count := 30; -- from 0 to Buffer'Length - 2; procedure Fill_Buffer (J, D : in Count); -- Change the part of the buffer. ----------------- -- Fill_Buffer -- ----------------- procedure Fill_Buffer (J, D : in Count) is begin for K in 0 .. D loop Buffer (Stream_Element_Offset ((J + K) mod (Buffer'Length - 1) + 1)) := Random_Elements.Random (Gen); end loop; end Fill_Buffer; begin Random_Elements.Reset (Gen, Init_Random); Create (File_In, Out_File, In_File_Name); Fill_Buffer (1, Buffer'Length - 2); for J in 1 .. Buffer_Count loop Write (File_In, Buffer); Fill_Buffer (J, Density); end loop; -- fill remain size. Write (File_In, Buffer (1 .. Stream_Element_Offset (File_Size - Buffer'Length * Buffer_Count))); Flush (File_In); Close (File_In); end Generate_File; --------------------- -- Print_Statistic -- --------------------- procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count) is use Ada.Calendar; use Ada.Text_IO; package Count_IO is new Integer_IO (ZLib.Count); Curr_Dur : Duration := Clock - Time_Stamp; begin Put (Msg); Set_Col (20); Ada.Text_IO.Put ("size ="); Count_IO.Put (Data_Size, Width => Stream_IO.Count'Image (File_Size)'Length); Put_Line (" duration =" & Duration'Image (Curr_Dur)); end Print_Statistic; ----------- -- Stamp -- ----------- procedure Stamp is begin Time_Stamp := Ada.Calendar.Clock; end Stamp; begin Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version); loop Generate_File; for Level in ZLib.Compression_Level'Range loop Ada.Text_IO.Put_Line ("Level =" & ZLib.Compression_Level'Image (Level)); -- Test generic interface. Open (File_In, In_File, In_File_Name); Create (File_Out, Out_File, Z_File_Name); Stamp; -- Deflate using generic instantiation. ZLib.Deflate_Init (Filter => Filter, Level => Level, Strategy => Strategy, Header => Header); Translate (Filter); Print_Statistic ("Generic compress", ZLib.Total_Out (Filter)); ZLib.Close (Filter); Close (File_In); Close (File_Out); Open (File_In, In_File, Z_File_Name); Create (File_Out, Out_File, Out_File_Name); Stamp; -- Inflate using generic instantiation. ZLib.Inflate_Init (Filter, Header => Header); Translate (Filter); Print_Statistic ("Generic decompress", ZLib.Total_Out (Filter)); ZLib.Close (Filter); Close (File_In); Close (File_Out); Compare_Files (In_File_Name, Out_File_Name); -- Test stream interface. -- Compress to the back stream. Open (File_In, In_File, In_File_Name); Create (File_Back, Out_File, Z_File_Name); Stamp; ZLib.Streams.Create (Stream => File_Z, Mode => ZLib.Streams.Out_Stream, Back => ZLib.Streams.Stream_Access (Stream (File_Back)), Back_Compressed => True, Level => Level, Strategy => Strategy, Header => Header); Copy_Streams (Source => Stream (File_In).all, Target => File_Z); -- Flushing internal buffers to the back stream. ZLib.Streams.Flush (File_Z, ZLib.Finish); Print_Statistic ("Write compress", ZLib.Streams.Write_Total_Out (File_Z)); ZLib.Streams.Close (File_Z); Close (File_In); Close (File_Back); -- Compare reading from original file and from -- decompression stream. Open (File_In, In_File, In_File_Name); Open (File_Back, In_File, Z_File_Name); ZLib.Streams.Create (Stream => File_Z, Mode => ZLib.Streams.In_Stream, Back => ZLib.Streams.Stream_Access (Stream (File_Back)), Back_Compressed => True, Header => Header); Stamp; Compare_Streams (Stream (File_In).all, File_Z); Print_Statistic ("Read decompress", ZLib.Streams.Read_Total_Out (File_Z)); ZLib.Streams.Close (File_Z); Close (File_In); Close (File_Back); -- Compress by reading from compression stream. Open (File_Back, In_File, In_File_Name); Create (File_Out, Out_File, Z_File_Name); ZLib.Streams.Create (Stream => File_Z, Mode => ZLib.Streams.In_Stream, Back => ZLib.Streams.Stream_Access (Stream (File_Back)), Back_Compressed => False, Level => Level, Strategy => Strategy, Header => Header); Stamp; Copy_Streams (Source => File_Z, Target => Stream (File_Out).all); Print_Statistic ("Read compress", ZLib.Streams.Read_Total_Out (File_Z)); ZLib.Streams.Close (File_Z); Close (File_Out); Close (File_Back); -- Decompress to decompression stream. Open (File_In, In_File, Z_File_Name); Create (File_Back, Out_File, Out_File_Name); ZLib.Streams.Create (Stream => File_Z, Mode => ZLib.Streams.Out_Stream, Back => ZLib.Streams.Stream_Access (Stream (File_Back)), Back_Compressed => False, Header => Header); Stamp; Copy_Streams (Source => Stream (File_In).all, Target => File_Z); Print_Statistic ("Write decompress", ZLib.Streams.Write_Total_Out (File_Z)); ZLib.Streams.Close (File_Z); Close (File_In); Close (File_Back); Compare_Files (In_File_Name, Out_File_Name); end loop; Ada.Text_IO.Put_Line (Count'Image (File_Size) & " Ok."); exit when not Continuous; File_Size := File_Size + 1; end loop; end Test;
28.407328
77
0.545558
399a2f4b5c82ba3deb0cb8740151475aaf17b5b9
24,366
adb
Ada
src/ncurses-5.5/Ada95/samples/ncurses2-demo_pad.adb
erwinchang/minicom
3fe2ba7d8e8475c199b493a2b99cd3c690f6ea4f
[ "MIT" ]
null
null
null
src/ncurses-5.5/Ada95/samples/ncurses2-demo_pad.adb
erwinchang/minicom
3fe2ba7d8e8475c199b493a2b99cd3c690f6ea4f
[ "MIT" ]
null
null
null
src/ncurses-5.5/Ada95/samples/ncurses2-demo_pad.adb
erwinchang/minicom
3fe2ba7d8e8475c199b493a2b99cd3c690f6ea4f
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ncurses -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 2000,2004 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno <[email protected]> 2000 -- Version Control -- $Revision: 1.5 $ -- $Date: 2004/08/21 21:37:00 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ with ncurses2.util; use ncurses2.util; with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Interfaces.C; with System.Storage_Elements; with System.Address_To_Access_Conversions; with Ada.Text_IO; -- with Ada.Real_Time; use Ada.Real_Time; -- TODO is there a way to use Real_Time or Ada.Calendar in place of -- gettimeofday? -- Demonstrate pads. procedure ncurses2.demo_pad is type timestruct is record seconds : Integer; microseconds : Integer; end record; type myfunc is access function (w : Window) return Key_Code; function gettime return timestruct; procedure do_h_line (y : Line_Position; x : Column_Position; c : Attributed_Character; to : Column_Position); procedure do_v_line (y : Line_Position; x : Column_Position; c : Attributed_Character; to : Line_Position); function padgetch (win : Window) return Key_Code; function panner_legend (line : Line_Position) return Boolean; procedure panner_legend (line : Line_Position); procedure panner_h_cleanup (from_y : Line_Position; from_x : Column_Position; to_x : Column_Position); procedure panner_v_cleanup (from_y : Line_Position; from_x : Column_Position; to_y : Line_Position); procedure panner (pad : Window; top_xp : Column_Position; top_yp : Line_Position; portyp : Line_Position; portxp : Column_Position; pgetc : myfunc); function gettime return timestruct is retval : timestruct; use Interfaces.C; type timeval is record tv_sec : long; tv_usec : long; end record; pragma Convention (C, timeval); -- TODO function from_timeval is new Ada.Unchecked_Conversion( -- timeval_a, System.Storage_Elements.Integer_Address); -- should Interfaces.C.Pointers be used here? package myP is new System.Address_To_Access_Conversions (timeval); use myP; t : constant Object_Pointer := new timeval; function gettimeofday (TP : System.Storage_Elements.Integer_Address; TZP : System.Storage_Elements.Integer_Address) return int; pragma Import (C, gettimeofday, "gettimeofday"); tmp : int; begin tmp := gettimeofday (System.Storage_Elements.To_Integer (myP.To_Address (t)), System.Storage_Elements.To_Integer (myP.To_Address (null))); if tmp < 0 then retval.seconds := 0; retval.microseconds := 0; else retval.seconds := Integer (t.tv_sec); retval.microseconds := Integer (t.tv_usec); end if; return retval; end gettime; -- in C, The behavior of mvhline, mvvline for negative/zero length is -- unspecified, though we can rely on negative x/y values to stop the -- macro. Except Ada makes Line_Position(-1) = Natural - 1 so forget it. procedure do_h_line (y : Line_Position; x : Column_Position; c : Attributed_Character; to : Column_Position) is begin if to > x then Move_Cursor (Line => y, Column => x); Horizontal_Line (Line_Size => Natural (to - x), Line_Symbol => c); end if; end do_h_line; procedure do_v_line (y : Line_Position; x : Column_Position; c : Attributed_Character; to : Line_Position) is begin if to > y then Move_Cursor (Line => y, Column => x); Vertical_Line (Line_Size => Natural (to - y), Line_Symbol => c); end if; end do_v_line; function padgetch (win : Window) return Key_Code is c : Key_Code; c2 : Character; begin c := Getchar (win); c2 := Code_To_Char (c); case c2 is when '!' => ShellOut (False); return Key_Refresh; when Character'Val (Character'Pos ('r') mod 16#20#) => -- CTRL('r') End_Windows; Refresh; return Key_Refresh; when Character'Val (Character'Pos ('l') mod 16#20#) => -- CTRL('l') return Key_Refresh; when 'U' => return Key_Cursor_Up; when 'D' => return Key_Cursor_Down; when 'R' => return Key_Cursor_Right; when 'L' => return Key_Cursor_Left; when '+' => return Key_Insert_Line; when '-' => return Key_Delete_Line; when '>' => return Key_Insert_Char; when '<' => return Key_Delete_Char; -- when ERR=> /* FALLTHRU */ when 'q' => return (Key_Exit); when others => return (c); end case; end padgetch; show_panner_legend : Boolean := True; function panner_legend (line : Line_Position) return Boolean is legend : constant array (0 .. 3) of String (1 .. 61) := ( "Use arrow keys (or U,D,L,R) to pan, q to quit (?,t,s flags) ", "Use ! to shell-out. Toggle legend:?, timer:t, scroll mark:s.", "Use +,- (or j,k) to grow/shrink the panner vertically. ", "Use <,> (or h,l) to grow/shrink the panner horizontally. "); legendsize : constant := 4; n : constant Integer := legendsize - Integer (Lines - line); begin if line < Lines and n >= 0 then Move_Cursor (Line => line, Column => 0); if show_panner_legend then Add (Str => legend (n)); end if; Clear_To_End_Of_Line; return show_panner_legend; end if; return False; end panner_legend; procedure panner_legend (line : Line_Position) is begin if not panner_legend (line) then Beep; end if; end panner_legend; procedure panner_h_cleanup (from_y : Line_Position; from_x : Column_Position; to_x : Column_Position) is begin if not panner_legend (from_y) then do_h_line (from_y, from_x, Blank2, to_x); end if; end panner_h_cleanup; procedure panner_v_cleanup (from_y : Line_Position; from_x : Column_Position; to_y : Line_Position) is begin if not panner_legend (from_y) then do_v_line (from_y, from_x, Blank2, to_y); end if; end panner_v_cleanup; procedure panner (pad : Window; top_xp : Column_Position; top_yp : Line_Position; portyp : Line_Position; portxp : Column_Position; pgetc : myfunc) is function f (y : Line_Position) return Line_Position; function f (x : Column_Position) return Column_Position; function greater (y1, y2 : Line_Position) return Integer; function greater (x1, x2 : Column_Position) return Integer; top_x : Column_Position := top_xp; top_y : Line_Position := top_yp; porty : Line_Position := portyp; portx : Column_Position := portxp; -- f[x] returns max[x - 1, 0] function f (y : Line_Position) return Line_Position is begin if y > 0 then return y - 1; else return y; -- 0 end if; end f; function f (x : Column_Position) return Column_Position is begin if x > 0 then return x - 1; else return x; -- 0 end if; end f; function greater (y1, y2 : Line_Position) return Integer is begin if y1 > y2 then return 1; else return 0; end if; end greater; function greater (x1, x2 : Column_Position) return Integer is begin if x1 > x2 then return 1; else return 0; end if; end greater; pymax : Line_Position; basey : Line_Position := 0; pxmax : Column_Position; basex : Column_Position := 0; c : Key_Code; scrollers : Boolean := True; before, after : timestruct; timing : Boolean := True; package floatio is new Ada.Text_IO.Float_IO (Long_Float); begin Get_Size (pad, pymax, pxmax); Allow_Scrolling (Mode => False); -- we don't want stdscr to scroll! c := Key_Refresh; loop -- During shell-out, the user may have resized the window. Adjust -- the port size of the pad to accommodate this. Ncurses -- automatically resizes all of the normal windows to fit on the -- new screen. if top_x > Columns then top_x := Columns; end if; if portx > Columns then portx := Columns; end if; if top_y > Lines then top_y := Lines; end if; if porty > Lines then porty := Lines; end if; case c is when Key_Refresh | Character'Pos ('?') => if c = Key_Refresh then Erase; else -- '?' show_panner_legend := not show_panner_legend; end if; panner_legend (Lines - 4); panner_legend (Lines - 3); panner_legend (Lines - 2); panner_legend (Lines - 1); when Character'Pos ('t') => timing := not timing; if not timing then panner_legend (Lines - 1); end if; when Character'Pos ('s') => scrollers := not scrollers; -- Move the top-left corner of the pad, keeping the -- bottom-right corner fixed. when Character'Pos ('h') => -- increase-columns: move left edge to left if top_x <= 0 then Beep; else panner_v_cleanup (top_y, top_x, porty); top_x := top_x - 1; end if; when Character'Pos ('j') => -- decrease-lines: move top-edge down if top_y >= porty then Beep; else if top_y /= 0 then panner_h_cleanup (top_y - 1, f (top_x), portx); end if; top_y := top_y + 1; end if; when Character'Pos ('k') => -- increase-lines: move top-edge up if top_y <= 0 then Beep; else top_y := top_y - 1; panner_h_cleanup (top_y, top_x, portx); end if; when Character'Pos ('l') => -- decrease-columns: move left-edge to right if top_x >= portx then Beep; else if top_x /= 0 then panner_v_cleanup (f (top_y), top_x - 1, porty); end if; top_x := top_x + 1; end if; -- Move the bottom-right corner of the pad, keeping the -- top-left corner fixed. when Key_Insert_Char => -- increase-columns: move right-edge to right if portx >= pxmax or portx >= Columns then Beep; else panner_v_cleanup (f (top_y), portx - 1, porty); portx := portx + 1; -- C had ++portx instead of portx++, weird. end if; when Key_Insert_Line => -- increase-lines: move bottom-edge down if porty >= pymax or porty >= Lines then Beep; else panner_h_cleanup (porty - 1, f (top_x), portx); porty := porty + 1; end if; when Key_Delete_Char => -- decrease-columns: move bottom edge up if portx <= top_x then Beep; else portx := portx - 1; panner_v_cleanup (f (top_y), portx, porty); end if; when Key_Delete_Line => -- decrease-lines if porty <= top_y then Beep; else porty := porty - 1; panner_h_cleanup (porty, f (top_x), portx); end if; when Key_Cursor_Left => -- pan leftwards if basex > 0 then basex := basex - 1; else Beep; end if; when Key_Cursor_Right => -- pan rightwards -- if (basex + portx - (pymax > porty) < pxmax) if basex + portx - Column_Position (greater (pymax, porty)) < pxmax then -- if basex + portx < pxmax or -- (pymax > porty and basex + portx - 1 < pxmax) then basex := basex + 1; else Beep; end if; when Key_Cursor_Up => -- pan upwards if basey > 0 then basey := basey - 1; else Beep; end if; when Key_Cursor_Down => -- pan downwards -- same as if (basey + porty - (pxmax > portx) < pymax) if basey + porty - Line_Position (greater (pxmax, portx)) < pymax then -- if (basey + porty < pymax) or -- (pxmax > portx and basey + porty - 1 < pymax) then basey := basey + 1; else Beep; end if; when Character'Pos ('H') | Key_Home | Key_Find => basey := 0; when Character'Pos ('E') | Key_End | Key_Select => if pymax < porty then basey := 0; else basey := pymax - porty; end if; when others => Beep; end case; -- more writing off the screen. -- Interestingly, the exception is not handled if -- we put a block around this. -- delcare --begin if top_y /= 0 and top_x /= 0 then Add (Line => top_y - 1, Column => top_x - 1, Ch => ACS_Map (ACS_Upper_Left_Corner)); end if; if top_x /= 0 then do_v_line (top_y, top_x - 1, ACS_Map (ACS_Vertical_Line), porty); end if; if top_y /= 0 then do_h_line (top_y - 1, top_x, ACS_Map (ACS_Horizontal_Line), portx); end if; -- exception when Curses_Exception => null; end; -- in C was ... pxmax > portx - 1 if scrollers and pxmax >= portx then declare length : constant Column_Position := portx - top_x - 1; lowend, highend : Column_Position; begin -- Instead of using floats, I'll use integers only. lowend := top_x + (basex * length) / pxmax; highend := top_x + ((basex + length) * length) / pxmax; do_h_line (porty - 1, top_x, ACS_Map (ACS_Horizontal_Line), lowend); if highend < portx then Switch_Character_Attribute (Attr => (Reverse_Video => True, others => False), On => True); do_h_line (porty - 1, lowend, Blank2, highend + 1); Switch_Character_Attribute (Attr => (Reverse_Video => True, others => False), On => False); do_h_line (porty - 1, highend + 1, ACS_Map (ACS_Horizontal_Line), portx); end if; end; else do_h_line (porty - 1, top_x, ACS_Map (ACS_Horizontal_Line), portx); end if; if scrollers and pymax >= porty then declare length : constant Line_Position := porty - top_y - 1; lowend, highend : Line_Position; begin lowend := top_y + (basey * length) / pymax; highend := top_y + ((basey + length) * length) / pymax; do_v_line (top_y, portx - 1, ACS_Map (ACS_Vertical_Line), lowend); if highend < porty then Switch_Character_Attribute (Attr => (Reverse_Video => True, others => False), On => True); do_v_line (lowend, portx - 1, Blank2, highend + 1); Switch_Character_Attribute (Attr => (Reverse_Video => True, others => False), On => False); do_v_line (highend + 1, portx - 1, ACS_Map (ACS_Vertical_Line), porty); end if; end; else do_v_line (top_y, portx - 1, ACS_Map (ACS_Vertical_Line), porty); end if; if top_y /= 0 then Add (Line => top_y - 1, Column => portx - 1, Ch => ACS_Map (ACS_Upper_Right_Corner)); end if; if top_x /= 0 then Add (Line => porty - 1, Column => top_x - 1, Ch => ACS_Map (ACS_Lower_Left_Corner)); end if; declare begin -- Here is another place where it is possible -- to write to the corner of the screen. Add (Line => porty - 1, Column => portx - 1, Ch => ACS_Map (ACS_Lower_Right_Corner)); exception when Curses_Exception => null; end; before := gettime; Refresh_Without_Update; declare -- the C version allows the panel to have a zero height -- wich raise the exception begin Refresh_Without_Update ( pad, basey, basex, top_y, top_x, porty - Line_Position (greater (pxmax, portx)) - 1, portx - Column_Position (greater (pymax, porty)) - 1); exception when Curses_Exception => null; end; Update_Screen; if timing then declare s : String (1 .. 7); elapsed : Long_Float; begin after := gettime; elapsed := (Long_Float (after.seconds - before.seconds) + Long_Float (after.microseconds - before.microseconds) / 1.0e6); Move_Cursor (Line => Lines - 1, Column => Columns - 20); floatio.Put (s, elapsed, Aft => 3, Exp => 0); Add (Str => s); Refresh; end; end if; c := pgetc (pad); exit when c = Key_Exit; end loop; Allow_Scrolling (Mode => True); end panner; Gridsize : constant := 3; Gridcount : Integer := 0; Pad_High : constant Line_Count := 200; Pad_Wide : constant Column_Count := 200; panpad : Window := New_Pad (Pad_High, Pad_Wide); begin if panpad = Null_Window then Cannot ("cannot create requested pad"); return; end if; for i in 0 .. Pad_High - 1 loop for j in 0 .. Pad_Wide - 1 loop if i mod Gridsize = 0 and j mod Gridsize = 0 then if i = 0 or j = 0 then Add (panpad, '+'); else -- depends on ASCII? Add (panpad, Ch => Character'Val (Character'Pos ('A') + Gridcount mod 26)); Gridcount := Gridcount + 1; end if; elsif i mod Gridsize = 0 then Add (panpad, '-'); elsif j mod Gridsize = 0 then Add (panpad, '|'); else declare -- handle the write to the lower right corner error begin Add (panpad, ' '); exception when Curses_Exception => null; end; end if; end loop; end loop; panner_legend (Lines - 4); panner_legend (Lines - 3); panner_legend (Lines - 2); panner_legend (Lines - 1); Set_KeyPad_Mode (panpad, True); -- Make the pad (initially) narrow enough that a trace file won't wrap. -- We'll still be able to widen it during a test, since that's required -- for testing boundaries. panner (panpad, 2, 2, Lines - 5, Columns - 15, padgetch'Access); Delete (panpad); End_Windows; -- Hmm, Erase after End_Windows Erase; end ncurses2.demo_pad;
35.832353
79
0.48067
18b40e2f989195d1634b769f641bb17ec4120973
1,046
adb
Ada
Assets/Animations/Mannequin/ADB/FirstPerson.adb
ivanhawkes/Skylla
d21012bd949f004bb5838613492831c93bebaaa7
[ "BSD-2-Clause" ]
null
null
null
Assets/Animations/Mannequin/ADB/FirstPerson.adb
ivanhawkes/Skylla
d21012bd949f004bb5838613492831c93bebaaa7
[ "BSD-2-Clause" ]
null
null
null
Assets/Animations/Mannequin/ADB/FirstPerson.adb
ivanhawkes/Skylla
d21012bd949f004bb5838613492831c93bebaaa7
[ "BSD-2-Clause" ]
null
null
null
<AnimDB FragDef="Animations/Mannequin/ADB/PlayerFragmentIds.xml" TagDef="Animations/Mannequin/ADB/PlayerTags.xml"> <FragmentList> <Idle> <Fragment BlendOutDuration="0.2" Tags="Rotate"> <AnimLayer> <Blend ExitTime="0" StartTime="0" Duration="0.2"/> <Animation name="1DONE-BSpace_RotateRIFLE" flags="Loop"/> </AnimLayer> </Fragment> <Fragment BlendOutDuration="0.2" Tags="Walk"> <AnimLayer> <Blend ExitTime="0" StartTime="0" Duration="0.2"/> <Animation name="2DONE-BSpace_MoveStrafeRIFLE" flags="Loop"/> </AnimLayer> </Fragment> <Fragment BlendOutDuration="0.2" Tags="Walk+Rotate"> <AnimLayer> <Blend ExitTime="0" StartTime="0" Duration="0.2"/> <Animation name="2DONE-BSpace_MoveStrafeRIFLE" flags="Loop"/> </AnimLayer> </Fragment> <Fragment BlendOutDuration="0.2" Tags=""> <AnimLayer> <Blend ExitTime="0" StartTime="0" Duration="0.2"/> <Animation name="rifleAim_idle_3p" flags="Loop"/> </AnimLayer> </Fragment> </Idle> </FragmentList> </AnimDB>
33.741935
114
0.664436
39c077c73f223271c82b975e6457c0bab603c352
223
adb
Ada
1-base/lace/source/events/lace-event.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2022-01-20T07:13:42.000Z
2022-01-20T07:13:42.000Z
1-base/lace/source/events/lace-event.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
1-base/lace/source/events/lace-event.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
with ada.Strings.Hash; package body lace.Event is function Hash (the_Kind : in Kind) return ada.Containers.Hash_type is begin return ada.Strings.Hash (String (the_Kind)); end Hash; end lace.Event;
15.928571
69
0.690583
0e5a9637699a00a1770e7a5dd59a61825fea21c3
1,225
ads
Ada
src/util-properties-basic.ads
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
src/util-properties-basic.ads
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
src/util-properties-basic.ads
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- basic properties -- Basic types properties -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 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.Properties.Discrete; package Util.Properties.Basic is pragma Elaborate_Body; -- Get/Set boolean properties. package Boolean_Property is new Util.Properties.Discrete (Boolean); -- Get/Set integer properties. package Integer_Property is new Util.Properties.Discrete (Integer); end Util.Properties.Basic;
40.833333
76
0.656327
20a9119df5ba7cbbd96fa42c44b611c336058e60
1,134
adb
Ada
src/fsmaker-commands-hexdump.adb
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
src/fsmaker-commands-hexdump.adb
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
src/fsmaker-commands-hexdump.adb
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
with FSmaker.Source; with FSmaker.Sink.File; with FSmaker.Sink.Hexdump; package body FSmaker.Commands.Hexdump is ------------- -- Execute -- ------------- overriding procedure Execute (This : in out Instance; Args : AAA.Strings.Vector) is Dir : Directory_Tree; begin This.Setup_Image; if Args.Count /= 1 then This.Failure ("takes exactly one argument"); elsif (not Valid_Target_Path (Args (1))) then This.Failure ("Invalid target path: '" & String'(Args (1)) & "'"); else declare File : aliased Sink.Class := Sink.File.Create (GNAT.OS_Lib.Standout); Hex : Sink.Class := Sink.Hexdump.Create (File'Access); begin This.Target.Cat (To_Target_Path (Args (1)), Hex); end; end if; end Execute; -------------------- -- Setup_Switches -- -------------------- overriding procedure Setup_Switches (This : in out Instance; Config : in out CLIC.Subcommand.Switches_Configuration) is begin null; end Setup_Switches; end FSmaker.Commands.Hexdump;
23.625
81
0.57231
39bec54348d2f2fb0e72d4dcee598ad81e384825
18,012
adb
Ada
tools-src/gnu/gcc/gcc/ada/ali-util.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/ali-util.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/ali-util.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- A L I . U T I L -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Binderr; use Binderr; with Namet; use Namet; with Opt; use Opt; with Osint; use Osint; with System.CRC32; package body ALI.Util is ----------------------- -- Local Subprograms -- ----------------------- procedure Accumulate_Checksum (C : Character; Csum : in out Word); pragma Inline (Accumulate_Checksum); -- This routine accumulates the checksum given character C. During the -- scanning of a source file, this routine is called with every character -- in the source, excluding blanks, and all control characters (except -- that ESC is included in the checksum). Upper case letters not in string -- literals are folded by the caller. See Sinput spec for the documentation -- of the checksum algorithm. Note: checksum values are only used if we -- generate code, so it is not necessary to worry about making the right -- sequence of calls in any error situation. procedure Initialize_Checksum (Csum : out Word); -- Sets initial value of Csum before any calls to Accumulate_Checksum ------------------------- -- Accumulate_Checksum -- ------------------------- procedure Accumulate_Checksum (C : Character; Csum : in out Word) is begin System.CRC32.Update (System.CRC32.CRC32 (Csum), C); end Accumulate_Checksum; --------------------- -- Checksums_Match -- --------------------- function Checksums_Match (Checksum1, Checksum2 : Word) return Boolean is begin return Checksum1 = Checksum2 and then Checksum1 /= Checksum_Error; end Checksums_Match; ----------------------- -- Get_File_Checksum -- ----------------------- function Get_File_Checksum (Fname : Name_Id) return Word is Src : Source_Buffer_Ptr; Hi : Source_Ptr; Csum : Word; Ptr : Source_Ptr; Bad : exception; -- Raised if file not found, or file format error use ASCII; -- Make control characters visible procedure Free_Source; -- Free source file buffer procedure Free_Source is procedure free (Arg : Source_Buffer_Ptr); pragma Import (C, free, "free"); begin free (Src); end Free_Source; -- Start of processing for Get_File_Checksum begin Read_Source_File (Fname, 0, Hi, Src); -- If we cannot find the file, then return an impossible checksum, -- impossible becaues checksums have the high order bit zero, so -- that checksums do not match. if Src = null then raise Bad; end if; Initialize_Checksum (Csum); Ptr := 0; loop case Src (Ptr) is -- Spaces and formatting information are ignored in checksum when ' ' | CR | LF | VT | FF | HT => Ptr := Ptr + 1; -- EOF is ignored unless it is the last character when EOF => if Ptr = Hi then Free_Source; return Csum; else Ptr := Ptr + 1; end if; -- Non-blank characters that are included in the checksum when '#' | '&' | '*' | ':' | '(' | ',' | '.' | '=' | '>' | '<' | ')' | '/' | ';' | '|' | '!' | '+' | '_' | '0' .. '9' | 'a' .. 'z' => Accumulate_Checksum (Src (Ptr), Csum); Ptr := Ptr + 1; -- Upper case letters, fold to lower case when 'A' .. 'Z' => Accumulate_Checksum (Character'Val (Character'Pos (Src (Ptr)) + 32), Csum); Ptr := Ptr + 1; -- Left bracket, really should do wide character thing here, -- but for now, don't bother. when '[' => raise Bad; -- Minus, could be comment when '-' => if Src (Ptr + 1) = '-' then Ptr := Ptr + 2; while Src (Ptr) >= ' ' or else Src (Ptr) = HT loop Ptr := Ptr + 1; end loop; else Accumulate_Checksum ('-', Csum); Ptr := Ptr + 1; end if; -- String delimited by double quote when '"' => Accumulate_Checksum ('"', Csum); loop Ptr := Ptr + 1; exit when Src (Ptr) = '"'; if Src (Ptr) < ' ' then raise Bad; end if; Accumulate_Checksum (Src (Ptr), Csum); end loop; Accumulate_Checksum ('"', Csum); Ptr := Ptr + 1; -- String delimited by percent when '%' => Accumulate_Checksum ('%', Csum); loop Ptr := Ptr + 1; exit when Src (Ptr) = '%'; if Src (Ptr) < ' ' then raise Bad; end if; Accumulate_Checksum (Src (Ptr), Csum); end loop; Accumulate_Checksum ('%', Csum); Ptr := Ptr + 1; -- Quote, could be character constant when ''' => Accumulate_Checksum (''', Csum); if Src (Ptr + 2) = ''' then Accumulate_Checksum (Src (Ptr + 1), Csum); Accumulate_Checksum (''', Csum); Ptr := Ptr + 3; -- Otherwise assume attribute char. We should deal with wide -- character cases here, but that's hard, so forget it. else Ptr := Ptr + 1; end if; -- Upper half character, more to be done here, we should worry -- about folding Latin-1, folding other character sets, and -- dealing with the nasty case of upper half wide encoding. when Upper_Half_Character => Accumulate_Checksum (Src (Ptr), Csum); Ptr := Ptr + 1; -- Escape character, we should do the wide character thing here, -- but for now, do not bother. when ESC => raise Bad; -- Invalid control characters when NUL | SOH | STX | ETX | EOT | ENQ | ACK | BEL | BS | SO | SI | DLE | DC1 | DC2 | DC3 | DC4 | NAK | SYN | ETB | CAN | EM | FS | GS | RS | US | DEL => raise Bad; -- Invalid graphic characters when '$' | '?' | '@' | '`' | '\' | '^' | '~' | ']' | '{' | '}' => raise Bad; end case; end loop; exception when Bad => Free_Source; return Checksum_Error; end Get_File_Checksum; --------------------------- -- Initialize_ALI_Source -- --------------------------- procedure Initialize_ALI_Source is begin -- When (re)initializing ALI data structures the ALI user expects to -- get a fresh set of data structures. Thus we first need to erase the -- marks put in the name table by the previous set of ALI routine calls. -- This loop is empty and harmless the first time in. for J in Source.First .. Source.Last loop Set_Name_Table_Info (Source.Table (J).Sfile, 0); Source.Table (J).Source_Found := False; end loop; Source.Init; end Initialize_ALI_Source; ------------------------- -- Initialize_Checksum -- ------------------------- procedure Initialize_Checksum (Csum : out Word) is begin System.CRC32.Initialize (System.CRC32.CRC32 (Csum)); end Initialize_Checksum; -------------- -- Read_ALI -- -------------- procedure Read_ALI (Id : ALI_Id) is Afile : File_Name_Type; Text : Text_Buffer_Ptr; Idread : ALI_Id; begin for I in ALIs.Table (Id).First_Unit .. ALIs.Table (Id).Last_Unit loop for J in Units.Table (I).First_With .. Units.Table (I).Last_With loop Afile := Withs.Table (J).Afile; -- Only process if not a generic (Afile /= No_File) and if -- file has not been processed already. if Afile /= No_File and then Get_Name_Table_Info (Afile) = 0 then Text := Read_Library_Info (Afile); if Text = null then Error_Msg_Name_1 := Afile; Error_Msg_Name_2 := Withs.Table (J).Sfile; Error_Msg ("% not found, % must be compiled"); Set_Name_Table_Info (Afile, Int (No_Unit_Id)); return; end if; Idread := Scan_ALI (F => Afile, T => Text, Ignore_ED => Force_RM_Elaboration_Order, Err => False); Free (Text); if ALIs.Table (Idread).Compile_Errors then Error_Msg_Name_1 := Withs.Table (J).Sfile; Error_Msg ("% had errors, must be fixed, and recompiled"); Set_Name_Table_Info (Afile, Int (No_Unit_Id)); elsif ALIs.Table (Idread).No_Object then Error_Msg_Name_1 := Withs.Table (J).Sfile; Error_Msg ("% must be recompiled"); Set_Name_Table_Info (Afile, Int (No_Unit_Id)); end if; -- Recurse to get new dependents Read_ALI (Idread); end if; end loop; end loop; end Read_ALI; ---------------------- -- Set_Source_Table -- ---------------------- procedure Set_Source_Table (A : ALI_Id) is F : File_Name_Type; S : Source_Id; Stamp : Time_Stamp_Type; begin Sdep_Loop : for D in ALIs.Table (A).First_Sdep .. ALIs.Table (A).Last_Sdep loop F := Sdep.Table (D).Sfile; -- If this is the first time we are seeing this source file, -- then make a new entry in the source table. if Get_Name_Table_Info (F) = 0 then Source.Increment_Last; S := Source.Last; Set_Name_Table_Info (F, Int (S)); Source.Table (S).Sfile := F; Source.Table (S).All_Timestamps_Match := True; -- Initialize checksum fields Source.Table (S).Checksum := Sdep.Table (D).Checksum; Source.Table (S).All_Checksums_Match := True; -- In check source files mode, try to get time stamp from file if Opt.Check_Source_Files then Stamp := Source_File_Stamp (F); -- If we got the stamp, then set the stamp in the source -- table entry and mark it as set from the source so that -- it does not get subsequently changed. if Stamp (Stamp'First) /= ' ' then Source.Table (S).Stamp := Stamp; Source.Table (S).Source_Found := True; -- If we could not find the file, then the stamp is set -- from the dependency table entry (to be possibly reset -- if we find a later stamp in subsequent processing) else Source.Table (S).Stamp := Sdep.Table (D).Stamp; Source.Table (S).Source_Found := False; -- In All_Sources mode, flag error of file not found if Opt.All_Sources then Error_Msg_Name_1 := F; Error_Msg ("cannot locate %"); end if; end if; -- First time for this source file, but Check_Source_Files -- is off, so simply initialize the stamp from the Sdep entry else Source.Table (S).Source_Found := False; Source.Table (S).Stamp := Sdep.Table (D).Stamp; end if; -- Here if this is not the first time for this source file, -- so that the source table entry is already constructed. else S := Source_Id (Get_Name_Table_Info (F)); -- Update checksum flag if not Checksums_Match (Sdep.Table (D).Checksum, Source.Table (S).Checksum) then Source.Table (S).All_Checksums_Match := False; end if; -- Check for time stamp mismatch if Sdep.Table (D).Stamp /= Source.Table (S).Stamp then Source.Table (S).All_Timestamps_Match := False; -- When we have a time stamp mismatch, we go look for the -- source file even if Check_Source_Files is false, since -- if we find it, then we can use it to resolve which of the -- two timestamps in the ALI files is likely to be correct. if not Check_Source_Files then Stamp := Source_File_Stamp (F); if Stamp (Stamp'First) /= ' ' then Source.Table (S).Stamp := Stamp; Source.Table (S).Source_Found := True; end if; end if; -- If the stamp in the source table entry was set from the -- source file, then we do not change it (the stamp in the -- source file is always taken as the "right" one). if Source.Table (S).Source_Found then null; -- Otherwise, we have no source file available, so we guess -- that the later of the two timestamps is the right one. -- Note that this guess only affects which error messages -- are issued later on, not correct functionality. else if Sdep.Table (D).Stamp > Source.Table (S).Stamp then Source.Table (S).Stamp := Sdep.Table (D).Stamp; end if; end if; end if; end if; -- Set the checksum value in the source table S := Source_Id (Get_Name_Table_Info (F)); Source.Table (S).Checksum := Sdep.Table (D).Checksum; end loop Sdep_Loop; end Set_Source_Table; ---------------------- -- Set_Source_Table -- ---------------------- procedure Set_Source_Table is begin for A in ALIs.First .. ALIs.Last loop Set_Source_Table (A); end loop; end Set_Source_Table; ------------------------- -- Time_Stamp_Mismatch -- ------------------------- function Time_Stamp_Mismatch (A : ALI_Id) return File_Name_Type is Src : Source_Id; -- Source file Id for the current Sdep entry begin for D in ALIs.Table (A).First_Sdep .. ALIs.Table (A).Last_Sdep loop Src := Source_Id (Get_Name_Table_Info (Sdep.Table (D).Sfile)); if Opt.Minimal_Recompilation and then Sdep.Table (D).Stamp /= Source.Table (Src).Stamp then -- If minimal recompilation is in action, replace the stamp -- of the source file in the table if checksums match. -- ??? It is probably worth updating the ALI file with a new -- field to avoid recomputing it each time. if Checksums_Match (Get_File_Checksum (Sdep.Table (D).Sfile), Source.Table (Src).Checksum) then Sdep.Table (D).Stamp := Source.Table (Src).Stamp; end if; end if; if not Source.Table (Src).Source_Found or else Sdep.Table (D).Stamp /= Source.Table (Src).Stamp then return Source.Table (Src).Sfile; end if; end loop; return No_File; end Time_Stamp_Mismatch; end ALI.Util;
33.541899
79
0.484566
3912d32b0ec50db143cecd952459e126c95500b3
51,023
ads
Ada
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- -- SPI enable. type CFG_ENABLE_Field is ( -- Disabled. The SPI is disabled and the internal state machine and -- counters are reset. Disabled, -- Enabled. The SPI is enabled for operation. Enabled) with Size => 1; for CFG_ENABLE_Field use (Disabled => 0, Enabled => 1); -- Master mode select. type CFG_MASTER_Field is ( -- Slave mode. The SPI will operate in slave mode. SCK, MOSI, and the -- SSEL signals are inputs, MISO is an output. Slave_Mode, -- Master mode. The SPI will operate in master mode. SCK, MOSI, and the -- SSEL signals are outputs, MISO is an input. Master_Mode) with Size => 1; for CFG_MASTER_Field use (Slave_Mode => 0, Master_Mode => 1); -- LSB First mode enable. type CFG_LSBF_Field is ( -- Standard. Data is transmitted and received in standard MSB first -- order. Standard, -- Reverse. Data is transmitted and received in reverse order (LSB -- first). Reverse_k) with Size => 1; for CFG_LSBF_Field use (Standard => 0, Reverse_k => 1); -- Clock Phase select. type CFG_CPHA_Field is ( -- Change. The SPI captures serial data on the first clock transition of -- the transfer (when the clock changes away from the rest state). Data -- is changed on the following edge. Change, -- Capture. The SPI changes serial data on the first clock transition of -- the transfer (when the clock changes away from the rest state). Data -- is captured on the following edge. Capture) with Size => 1; for CFG_CPHA_Field use (Change => 0, Capture => 1); -- Clock Polarity select. type CFG_CPOL_Field is ( -- Low. The rest state of the clock (between transfers) is low. Low, -- High. The rest state of the clock (between transfers) is high. High) with Size => 1; for CFG_CPOL_Field use (Low => 0, High => 1); -- Loopback mode enable. Loopback mode applies only to Master mode, and -- connects transmit and receive data connected together to allow simple -- software testing. type CFG_LOOP_Field is ( -- Disabled. Disabled, -- Enabled. Enabled) with Size => 1; for CFG_LOOP_Field use (Disabled => 0, Enabled => 1); -- SSEL0 Polarity select. type CFG_SPOL0_Field is ( -- Low. The SSEL0 pin is active low. Low, -- High. The SSEL0 pin is active high. High) with Size => 1; for CFG_SPOL0_Field use (Low => 0, High => 1); -- SSEL1 Polarity select. type CFG_SPOL1_Field is ( -- Low. The SSEL1 pin is active low. Low, -- High. The SSEL1 pin is active high. High) with Size => 1; for CFG_SPOL1_Field use (Low => 0, High => 1); -- SSEL2 Polarity select. type CFG_SPOL2_Field is ( -- Low. The SSEL2 pin is active low. Low, -- High. The SSEL2 pin is active high. High) with Size => 1; for CFG_SPOL2_Field use (Low => 0, High => 1); -- SSEL3 Polarity select. type CFG_SPOL3_Field is ( -- Low. The SSEL3 pin is active low. Low, -- High. The SSEL3 pin is active high. High) with Size => 1; for CFG_SPOL3_Field use (Low => 0, High => 1); -- SPI Configuration register type CFG_Register is record -- SPI enable. ENABLE : CFG_ENABLE_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_1_1 : HAL.Bit := 16#0#; -- Master mode select. MASTER : CFG_MASTER_Field := NXP_SVD.SPI.Slave_Mode; -- LSB First mode enable. LSBF : CFG_LSBF_Field := NXP_SVD.SPI.Standard; -- Clock Phase select. CPHA : CFG_CPHA_Field := NXP_SVD.SPI.Change; -- Clock Polarity select. CPOL : CFG_CPOL_Field := NXP_SVD.SPI.Low; -- unspecified Reserved_6_6 : HAL.Bit := 16#0#; -- Loopback mode enable. Loopback mode applies only to Master mode, and -- connects transmit and receive data connected together to allow simple -- software testing. LOOP_k : CFG_LOOP_Field := NXP_SVD.SPI.Disabled; -- SSEL0 Polarity select. SPOL0 : CFG_SPOL0_Field := NXP_SVD.SPI.Low; -- SSEL1 Polarity select. SPOL1 : CFG_SPOL1_Field := NXP_SVD.SPI.Low; -- SSEL2 Polarity select. SPOL2 : CFG_SPOL2_Field := NXP_SVD.SPI.Low; -- SSEL3 Polarity select. SPOL3 : CFG_SPOL3_Field := NXP_SVD.SPI.Low; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFG_Register use record ENABLE at 0 range 0 .. 0; Reserved_1_1 at 0 range 1 .. 1; MASTER at 0 range 2 .. 2; LSBF at 0 range 3 .. 3; CPHA at 0 range 4 .. 4; CPOL at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; LOOP_k at 0 range 7 .. 7; SPOL0 at 0 range 8 .. 8; SPOL1 at 0 range 9 .. 9; SPOL2 at 0 range 10 .. 10; SPOL3 at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype DLY_PRE_DELAY_Field is HAL.UInt4; subtype DLY_POST_DELAY_Field is HAL.UInt4; subtype DLY_FRAME_DELAY_Field is HAL.UInt4; subtype DLY_TRANSFER_DELAY_Field is HAL.UInt4; -- SPI Delay register type DLY_Register is record -- Controls the amount of time between SSEL assertion and the beginning -- of a data transfer. There is always one SPI clock time between SSEL -- assertion and the first clock edge. This is not considered part of -- the pre-delay. 0x0 = No additional time is inserted. 0x1 = 1 SPI -- clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF = -- 15 SPI clock times are inserted. PRE_DELAY : DLY_PRE_DELAY_Field := 16#0#; -- Controls the amount of time between the end of a data transfer and -- SSEL deassertion. 0x0 = No additional time is inserted. 0x1 = 1 SPI -- clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF = -- 15 SPI clock times are inserted. POST_DELAY : DLY_POST_DELAY_Field := 16#0#; -- If the EOF flag is set, controls the minimum amount of time between -- the current frame and the next frame (or SSEL deassertion if EOT). -- 0x0 = No additional time is inserted. 0x1 = 1 SPI clock time is -- inserted. 0x2 = 2 SPI clock times are inserted. 0xF = 15 SPI clock -- times are inserted. FRAME_DELAY : DLY_FRAME_DELAY_Field := 16#0#; -- Controls the minimum amount of time that the SSEL is deasserted -- between transfers. 0x0 = The minimum time that SSEL is deasserted is -- 1 SPI clock time. (Zero added time.) 0x1 = The minimum time that SSEL -- is deasserted is 2 SPI clock times. 0x2 = The minimum time that SSEL -- is deasserted is 3 SPI clock times. 0xF = The minimum time that SSEL -- is deasserted is 16 SPI clock times. TRANSFER_DELAY : DLY_TRANSFER_DELAY_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DLY_Register use record PRE_DELAY at 0 range 0 .. 3; POST_DELAY at 0 range 4 .. 7; FRAME_DELAY at 0 range 8 .. 11; TRANSFER_DELAY at 0 range 12 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- SPI Status. Some status flags can be cleared by writing a 1 to that bit -- position. type STAT_Register is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- Write-only. Slave Select Assert. This flag is set whenever any slave -- select transitions from deasserted to asserted, in both master and -- slave modes. This allows determining when the SPI transmit/receive -- functions become busy, and allows waking up the device from reduced -- power modes when a slave mode access begins. This flag is cleared by -- software. SSA : Boolean := False; -- Write-only. Slave Select Deassert. This flag is set whenever any -- asserted slave selects transition to deasserted, in both master and -- slave modes. This allows determining when the SPI transmit/receive -- functions become idle. This flag is cleared by software. SSD : Boolean := False; -- Read-only. Stalled status flag. This indicates whether the SPI is -- currently in a stall condition. STALLED : Boolean := False; -- End Transfer control bit. Software can set this bit to force an end -- to the current transfer when the transmitter finishes any activity -- already in progress, as if the EOT flag had been set prior to the -- last transmission. This capability is included to support cases where -- it is not known when transmit data is written that it will be the end -- of a transfer. The bit is cleared when the transmitter becomes idle -- as the transfer comes to an end. Forcing an end of transfer in this -- manner causes any specified FRAME_DELAY and TRANSFER_DELAY to be -- inserted. ENDTRANSFER : Boolean := False; -- Read-only. Master idle status flag. This bit is 1 whenever the SPI -- master function is fully idle. This means that the transmit holding -- register is empty and the transmitter is not in the process of -- sending data. MSTIDLE : Boolean := True; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for STAT_Register use record Reserved_0_3 at 0 range 0 .. 3; SSA at 0 range 4 .. 4; SSD at 0 range 5 .. 5; STALLED at 0 range 6 .. 6; ENDTRANSFER at 0 range 7 .. 7; MSTIDLE at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; -- Slave select assert interrupt enable. Determines whether an interrupt -- occurs when the Slave Select is asserted. type INTENSET_SSAEN_Field is ( -- Disabled. No interrupt will be generated when any Slave Select -- transitions from deasserted to asserted. Disabled, -- Enabled. An interrupt will be generated when any Slave Select -- transitions from deasserted to asserted. Enabled) with Size => 1; for INTENSET_SSAEN_Field use (Disabled => 0, Enabled => 1); -- Slave select deassert interrupt enable. Determines whether an interrupt -- occurs when the Slave Select is deasserted. type INTENSET_SSDEN_Field is ( -- Disabled. No interrupt will be generated when all asserted Slave -- Selects transition to deasserted. Disabled, -- Enabled. An interrupt will be generated when all asserted Slave -- Selects transition to deasserted. Enabled) with Size => 1; for INTENSET_SSDEN_Field use (Disabled => 0, Enabled => 1); -- Master idle interrupt enable. type INTENSET_MSTIDLEEN_Field is ( -- No interrupt will be generated when the SPI master function is idle. Disabled, -- An interrupt will be generated when the SPI master function is fully -- idle. Enabled) with Size => 1; for INTENSET_MSTIDLEEN_Field use (Disabled => 0, Enabled => 1); -- SPI Interrupt Enable read and Set. A complete value may be read from -- this register. Writing a 1 to any implemented bit position causes that -- bit to be set. type INTENSET_Register is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- Slave select assert interrupt enable. Determines whether an interrupt -- occurs when the Slave Select is asserted. SSAEN : INTENSET_SSAEN_Field := NXP_SVD.SPI.Disabled; -- Slave select deassert interrupt enable. Determines whether an -- interrupt occurs when the Slave Select is deasserted. SSDEN : INTENSET_SSDEN_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Master idle interrupt enable. MSTIDLEEN : INTENSET_MSTIDLEEN_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for INTENSET_Register use record Reserved_0_3 at 0 range 0 .. 3; SSAEN at 0 range 4 .. 4; SSDEN at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; MSTIDLEEN at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; -- SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position -- causes the corresponding bit in INTENSET to be cleared. type INTENCLR_Register is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- Write-only. Writing 1 clears the corresponding bit in the INTENSET -- register. SSAEN : Boolean := False; -- Write-only. Writing 1 clears the corresponding bit in the INTENSET -- register. SSDEN : Boolean := False; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Write-only. Writing 1 clears the corresponding bit in the INTENSET -- register. MSTIDLE : 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 INTENCLR_Register use record Reserved_0_3 at 0 range 0 .. 3; SSAEN at 0 range 4 .. 4; SSDEN at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; MSTIDLE at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; subtype DIV_DIVVAL_Field is HAL.UInt16; -- SPI clock Divider type DIV_Register is record -- Rate divider value. Specifies how the Flexcomm clock (FCLK) is -- divided to produce the SPI clock rate in master mode. DIVVAL is -1 -- encoded such that the value 0 results in FCLK/1, the value 1 results -- in FCLK/2, up to the maximum possible divide value of 0xFFFF, which -- results in FCLK/65536. DIVVAL : DIV_DIVVAL_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIV_Register use record DIVVAL at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- SPI Interrupt Status type INTSTAT_Register is record -- unspecified Reserved_0_3 : HAL.UInt4; -- Read-only. Slave Select Assert. SSA : Boolean; -- Read-only. Slave Select Deassert. SSD : Boolean; -- unspecified Reserved_6_7 : HAL.UInt2; -- Read-only. Master Idle status flag. MSTIDLE : Boolean; -- unspecified Reserved_9_31 : HAL.UInt23; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for INTSTAT_Register use record Reserved_0_3 at 0 range 0 .. 3; SSA at 0 range 4 .. 4; SSD at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; MSTIDLE at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; -- Enable the transmit FIFO. type FIFOCFG_ENABLETX_Field is ( -- The transmit FIFO is not enabled. Disabled, -- The transmit FIFO is enabled. Enabled) with Size => 1; for FIFOCFG_ENABLETX_Field use (Disabled => 0, Enabled => 1); -- Enable the receive FIFO. type FIFOCFG_ENABLERX_Field is ( -- The receive FIFO is not enabled. Disabled, -- The receive FIFO is enabled. Enabled) with Size => 1; for FIFOCFG_ENABLERX_Field use (Disabled => 0, Enabled => 1); subtype FIFOCFG_SIZE_Field is HAL.UInt2; -- DMA configuration for transmit. type FIFOCFG_DMATX_Field is ( -- DMA is not used for the transmit function. Disabled, -- Trigger DMA for the transmit function if the FIFO is not full. -- Generally, data interrupts would be disabled if DMA is enabled. Enabled) with Size => 1; for FIFOCFG_DMATX_Field use (Disabled => 0, Enabled => 1); -- DMA configuration for receive. type FIFOCFG_DMARX_Field is ( -- DMA is not used for the receive function. Disabled, -- Trigger DMA for the receive function if the FIFO is not empty. -- Generally, data interrupts would be disabled if DMA is enabled. Enabled) with Size => 1; for FIFOCFG_DMARX_Field use (Disabled => 0, Enabled => 1); -- Wake-up for transmit FIFO level. This allows the device to be woken from -- reduced power modes (up to power-down, as long as the peripheral -- function works in that power mode) without enabling the TXLVL interrupt. -- Only DMA wakes up, processes data, and goes back to sleep. The CPU will -- remain stopped until woken by another cause, such as DMA completion. See -- Hardware Wake-up control register. type FIFOCFG_WAKETX_Field is ( -- Only enabled interrupts will wake up the device form reduced power -- modes. Disabled, -- A device wake-up for DMA will occur if the transmit FIFO level -- reaches the value specified by TXLVL in FIFOTRIG, even when the TXLVL -- interrupt is not enabled. Enabled) with Size => 1; for FIFOCFG_WAKETX_Field use (Disabled => 0, Enabled => 1); -- Wake-up for receive FIFO level. This allows the device to be woken from -- reduced power modes (up to power-down, as long as the peripheral -- function works in that power mode) without enabling the TXLVL interrupt. -- Only DMA wakes up, processes data, and goes back to sleep. The CPU will -- remain stopped until woken by another cause, such as DMA completion. See -- Hardware Wake-up control register. type FIFOCFG_WAKERX_Field is ( -- Only enabled interrupts will wake up the device form reduced power -- modes. Disabled, -- A device wake-up for DMA will occur if the receive FIFO level reaches -- the value specified by RXLVL in FIFOTRIG, even when the RXLVL -- interrupt is not enabled. Enabled) with Size => 1; for FIFOCFG_WAKERX_Field use (Disabled => 0, Enabled => 1); -- FIFO configuration and enable register. type FIFOCFG_Register is record -- Enable the transmit FIFO. ENABLETX : FIFOCFG_ENABLETX_Field := NXP_SVD.SPI.Disabled; -- Enable the receive FIFO. ENABLERX : FIFOCFG_ENABLERX_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_2_3 : HAL.UInt2 := 16#0#; -- Read-only. FIFO size configuration. This is a read-only field. 0x0 = -- FIFO is configured as 16 entries of 8 bits. 0x1, 0x2, 0x3 = not -- applicable to USART. SIZE : FIFOCFG_SIZE_Field := 16#0#; -- unspecified Reserved_6_11 : HAL.UInt6 := 16#0#; -- DMA configuration for transmit. DMATX : FIFOCFG_DMATX_Field := NXP_SVD.SPI.Disabled; -- DMA configuration for receive. DMARX : FIFOCFG_DMARX_Field := NXP_SVD.SPI.Disabled; -- Wake-up for transmit FIFO level. This allows the device to be woken -- from reduced power modes (up to power-down, as long as the peripheral -- function works in that power mode) without enabling the TXLVL -- interrupt. Only DMA wakes up, processes data, and goes back to sleep. -- The CPU will remain stopped until woken by another cause, such as DMA -- completion. See Hardware Wake-up control register. WAKETX : FIFOCFG_WAKETX_Field := NXP_SVD.SPI.Disabled; -- Wake-up for receive FIFO level. This allows the device to be woken -- from reduced power modes (up to power-down, as long as the peripheral -- function works in that power mode) without enabling the TXLVL -- interrupt. Only DMA wakes up, processes data, and goes back to sleep. -- The CPU will remain stopped until woken by another cause, such as DMA -- completion. See Hardware Wake-up control register. WAKERX : FIFOCFG_WAKERX_Field := NXP_SVD.SPI.Disabled; -- Empty command for the transmit FIFO. When a 1 is written to this bit, -- the TX FIFO is emptied. EMPTYTX : Boolean := False; -- Empty command for the receive FIFO. When a 1 is written to this bit, -- the RX FIFO is emptied. EMPTYRX : Boolean := False; -- unspecified Reserved_18_31 : HAL.UInt14 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOCFG_Register use record ENABLETX at 0 range 0 .. 0; ENABLERX at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; SIZE at 0 range 4 .. 5; Reserved_6_11 at 0 range 6 .. 11; DMATX at 0 range 12 .. 12; DMARX at 0 range 13 .. 13; WAKETX at 0 range 14 .. 14; WAKERX at 0 range 15 .. 15; EMPTYTX at 0 range 16 .. 16; EMPTYRX at 0 range 17 .. 17; Reserved_18_31 at 0 range 18 .. 31; end record; subtype FIFOSTAT_TXLVL_Field is HAL.UInt5; subtype FIFOSTAT_RXLVL_Field is HAL.UInt5; -- FIFO status register. type FIFOSTAT_Register is record -- TX FIFO error. Will be set if a transmit FIFO error occurs. This -- could be an overflow caused by pushing data into a full FIFO, or by -- an underflow if the FIFO is empty when data is needed. Cleared by -- writing a 1 to this bit. TXERR : Boolean := False; -- RX FIFO error. Will be set if a receive FIFO overflow occurs, caused -- by software or DMA not emptying the FIFO fast enough. Cleared by -- writing a 1 to this bit. RXERR : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Read-only. Peripheral interrupt. When 1, this indicates that the -- peripheral function has asserted an interrupt. The details can be -- found by reading the peripheral's STAT register. PERINT : Boolean := False; -- Read-only. Transmit FIFO empty. When 1, the transmit FIFO is empty. -- The peripheral may still be processing the last piece of data. TXEMPTY : Boolean := True; -- Read-only. Transmit FIFO not full. When 1, the transmit FIFO is not -- full, so more data can be written. When 0, the transmit FIFO is full -- and another write would cause it to overflow. TXNOTFULL : Boolean := True; -- Read-only. Receive FIFO not empty. When 1, the receive FIFO is not -- empty, so data can be read. When 0, the receive FIFO is empty. RXNOTEMPTY : Boolean := False; -- Read-only. Receive FIFO full. When 1, the receive FIFO is full. Data -- needs to be read out to prevent the peripheral from causing an -- overflow. RXFULL : Boolean := False; -- Read-only. Transmit FIFO current level. A 0 means the TX FIFO is -- currently empty, and the TXEMPTY and TXNOTFULL flags will be 1. Other -- values tell how much data is actually in the TX FIFO at the point -- where the read occurs. If the TX FIFO is full, the TXEMPTY and -- TXNOTFULL flags will be 0. TXLVL : FIFOSTAT_TXLVL_Field := 16#0#; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; -- Read-only. Receive FIFO current level. A 0 means the RX FIFO is -- currently empty, and the RXFULL and RXNOTEMPTY flags will be 0. Other -- values tell how much data is actually in the RX FIFO at the point -- where the read occurs. If the RX FIFO is full, the RXFULL and -- RXNOTEMPTY flags will be 1. RXLVL : FIFOSTAT_RXLVL_Field := 16#0#; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOSTAT_Register use record TXERR at 0 range 0 .. 0; RXERR at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; PERINT at 0 range 3 .. 3; TXEMPTY at 0 range 4 .. 4; TXNOTFULL at 0 range 5 .. 5; RXNOTEMPTY at 0 range 6 .. 6; RXFULL at 0 range 7 .. 7; TXLVL at 0 range 8 .. 12; Reserved_13_15 at 0 range 13 .. 15; RXLVL at 0 range 16 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; -- Transmit FIFO level trigger enable. This trigger will become an -- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in -- FIFOCFG is set. type FIFOTRIG_TXLVLENA_Field is ( -- Transmit FIFO level does not generate a FIFO level trigger. Disabled, -- An trigger will be generated if the transmit FIFO level reaches the -- value specified by the TXLVL field in this register. Enabled) with Size => 1; for FIFOTRIG_TXLVLENA_Field use (Disabled => 0, Enabled => 1); -- Receive FIFO level trigger enable. This trigger will become an interrupt -- if enabled in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set. type FIFOTRIG_RXLVLENA_Field is ( -- Receive FIFO level does not generate a FIFO level trigger. Disabled, -- An trigger will be generated if the receive FIFO level reaches the -- value specified by the RXLVL field in this register. Enabled) with Size => 1; for FIFOTRIG_RXLVLENA_Field use (Disabled => 0, Enabled => 1); subtype FIFOTRIG_TXLVL_Field is HAL.UInt4; subtype FIFOTRIG_RXLVL_Field is HAL.UInt4; -- FIFO trigger settings for interrupt and DMA request. type FIFOTRIG_Register is record -- Transmit FIFO level trigger enable. This trigger will become an -- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in -- FIFOCFG is set. TXLVLENA : FIFOTRIG_TXLVLENA_Field := NXP_SVD.SPI.Disabled; -- Receive FIFO level trigger enable. This trigger will become an -- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMARX in -- FIFOCFG is set. RXLVLENA : FIFOTRIG_RXLVLENA_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- Transmit FIFO level trigger point. This field is used only when -- TXLVLENA = 1. If enabled to do so, the FIFO level can wake up the -- device just enough to perform DMA, then return to the reduced power -- mode. See Hardware Wake-up control register. 0 = trigger when the TX -- FIFO becomes empty. 1 = trigger when the TX FIFO level decreases to -- one entry. 15 = trigger when the TX FIFO level decreases to 15 -- entries (is no longer full). TXLVL : FIFOTRIG_TXLVL_Field := 16#0#; -- unspecified Reserved_12_15 : HAL.UInt4 := 16#0#; -- Receive FIFO level trigger point. The RX FIFO level is checked when a -- new piece of data is received. This field is used only when RXLVLENA -- = 1. If enabled to do so, the FIFO level can wake up the device just -- enough to perform DMA, then return to the reduced power mode. See -- Hardware Wake-up control register. 0 = trigger when the RX FIFO has -- received one entry (is no longer empty). 1 = trigger when the RX FIFO -- has received two entries. 15 = trigger when the RX FIFO has received -- 16 entries (has become full). RXLVL : FIFOTRIG_RXLVL_Field := 16#0#; -- unspecified Reserved_20_31 : HAL.UInt12 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOTRIG_Register use record TXLVLENA at 0 range 0 .. 0; RXLVLENA at 0 range 1 .. 1; Reserved_2_7 at 0 range 2 .. 7; TXLVL at 0 range 8 .. 11; Reserved_12_15 at 0 range 12 .. 15; RXLVL at 0 range 16 .. 19; Reserved_20_31 at 0 range 20 .. 31; end record; -- Determines whether an interrupt occurs when a transmit error occurs, -- based on the TXERR flag in the FIFOSTAT register. type FIFOINTENSET_TXERR_Field is ( -- No interrupt will be generated for a transmit error. Disabled, -- An interrupt will be generated when a transmit error occurs. Enabled) with Size => 1; for FIFOINTENSET_TXERR_Field use (Disabled => 0, Enabled => 1); -- Determines whether an interrupt occurs when a receive error occurs, -- based on the RXERR flag in the FIFOSTAT register. type FIFOINTENSET_RXERR_Field is ( -- No interrupt will be generated for a receive error. Disabled, -- An interrupt will be generated when a receive error occurs. Enabled) with Size => 1; for FIFOINTENSET_RXERR_Field use (Disabled => 0, Enabled => 1); -- Determines whether an interrupt occurs when a the transmit FIFO reaches -- the level specified by the TXLVL field in the FIFOTRIG register. type FIFOINTENSET_TXLVL_Field is ( -- No interrupt will be generated based on the TX FIFO level. Disabled, -- If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be -- generated when the TX FIFO level decreases to the level specified by -- TXLVL in the FIFOTRIG register. Enabled) with Size => 1; for FIFOINTENSET_TXLVL_Field use (Disabled => 0, Enabled => 1); -- Determines whether an interrupt occurs when a the receive FIFO reaches -- the level specified by the TXLVL field in the FIFOTRIG register. type FIFOINTENSET_RXLVL_Field is ( -- No interrupt will be generated based on the RX FIFO level. Disabled, -- If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be -- generated when the when the RX FIFO level increases to the level -- specified by RXLVL in the FIFOTRIG register. Enabled) with Size => 1; for FIFOINTENSET_RXLVL_Field use (Disabled => 0, Enabled => 1); -- FIFO interrupt enable set (enable) and read register. type FIFOINTENSET_Register is record -- Determines whether an interrupt occurs when a transmit error occurs, -- based on the TXERR flag in the FIFOSTAT register. TXERR : FIFOINTENSET_TXERR_Field := NXP_SVD.SPI.Disabled; -- Determines whether an interrupt occurs when a receive error occurs, -- based on the RXERR flag in the FIFOSTAT register. RXERR : FIFOINTENSET_RXERR_Field := NXP_SVD.SPI.Disabled; -- Determines whether an interrupt occurs when a the transmit FIFO -- reaches the level specified by the TXLVL field in the FIFOTRIG -- register. TXLVL : FIFOINTENSET_TXLVL_Field := NXP_SVD.SPI.Disabled; -- Determines whether an interrupt occurs when a the receive FIFO -- reaches the level specified by the TXLVL field in the FIFOTRIG -- register. RXLVL : FIFOINTENSET_RXLVL_Field := NXP_SVD.SPI.Disabled; -- unspecified Reserved_4_31 : HAL.UInt28 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOINTENSET_Register use record TXERR at 0 range 0 .. 0; RXERR at 0 range 1 .. 1; TXLVL at 0 range 2 .. 2; RXLVL at 0 range 3 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; -- FIFO interrupt enable clear (disable) and read register. type FIFOINTENCLR_Register is record -- Writing one clears the corresponding bits in the FIFOINTENSET -- register. TXERR : Boolean := False; -- Writing one clears the corresponding bits in the FIFOINTENSET -- register. RXERR : Boolean := False; -- Writing one clears the corresponding bits in the FIFOINTENSET -- register. TXLVL : Boolean := False; -- Writing one clears the corresponding bits in the FIFOINTENSET -- register. RXLVL : Boolean := False; -- unspecified Reserved_4_31 : HAL.UInt28 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOINTENCLR_Register use record TXERR at 0 range 0 .. 0; RXERR at 0 range 1 .. 1; TXLVL at 0 range 2 .. 2; RXLVL at 0 range 3 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; -- FIFO interrupt status register. type FIFOINTSTAT_Register is record -- Read-only. TX FIFO error. TXERR : Boolean; -- Read-only. RX FIFO error. RXERR : Boolean; -- Read-only. Transmit FIFO level interrupt. TXLVL : Boolean; -- Read-only. Receive FIFO level interrupt. RXLVL : Boolean; -- Read-only. Peripheral interrupt. PERINT : Boolean; -- unspecified Reserved_5_31 : HAL.UInt27; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOINTSTAT_Register use record TXERR at 0 range 0 .. 0; RXERR at 0 range 1 .. 1; TXLVL at 0 range 2 .. 2; RXLVL at 0 range 3 .. 3; PERINT at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; subtype FIFOWR_TXDATA_Field is HAL.UInt16; -- Transmit slave select. This field asserts SSEL0 in master mode. The -- output on the pin is active LOW by default. type FIFOWR_TXSSEL0_N_Field is ( -- SSEL0 asserted. Asserted, -- SSEL0 not asserted. Not_Asserted) with Size => 1; for FIFOWR_TXSSEL0_N_Field use (Asserted => 0, Not_Asserted => 1); -- Transmit slave select. This field asserts SSEL1 in master mode. The -- output on the pin is active LOW by default. type FIFOWR_TXSSEL1_N_Field is ( -- SSEL1 asserted. Asserted, -- SSEL1 not asserted. Not_Asserted) with Size => 1; for FIFOWR_TXSSEL1_N_Field use (Asserted => 0, Not_Asserted => 1); -- Transmit slave select. This field asserts SSEL2 in master mode. The -- output on the pin is active LOW by default. type FIFOWR_TXSSEL2_N_Field is ( -- SSEL2 asserted. Asserted, -- SSEL2 not asserted. Not_Asserted) with Size => 1; for FIFOWR_TXSSEL2_N_Field use (Asserted => 0, Not_Asserted => 1); -- Transmit slave select. This field asserts SSEL3 in master mode. The -- output on the pin is active LOW by default. type FIFOWR_TXSSEL3_N_Field is ( -- SSEL3 asserted. Asserted, -- SSEL3 not asserted. Not_Asserted) with Size => 1; for FIFOWR_TXSSEL3_N_Field use (Asserted => 0, Not_Asserted => 1); -- End of transfer. The asserted SSEL will be deasserted at the end of a -- transfer and remain so far at least the time specified by the -- Transfer_delay value in the DLY register. type FIFOWR_EOT_Field is ( -- SSEL not deasserted. This piece of data is not treated as the end of -- a transfer. SSEL will not be deasserted at the end of this data. Not_Deasserted, -- SSEL deasserted. This piece of data is treated as the end of a -- transfer. SSEL will be deasserted at the end of this piece of data. Deasserted) with Size => 1; for FIFOWR_EOT_Field use (Not_Deasserted => 0, Deasserted => 1); -- End of frame. Between frames, a delay may be inserted, as defined by the -- Frame_delay value in the DLY register. The end of a frame may not be -- particularly meaningful if the Frame_delay value = 0. This control can -- be used as part of the support for frame lengths greater than 16 bits. type FIFOWR_EOF_Field is ( -- Data not EOF. This piece of data transmitted is not treated as the -- end of a frame. Not_Eof, -- Data EOF. This piece of data is treated as the end of a frame, -- causing the Frame_delay time to be inserted before subsequent data is -- transmitted. Eof) with Size => 1; for FIFOWR_EOF_Field use (Not_Eof => 0, Eof => 1); -- Receive Ignore. This allows data to be transmitted using the SPI without -- the need to read unneeded data from the receiver. Setting this bit -- simplifies the transmit process and can be used with the DMA. type FIFOWR_RXIGNORE_Field is ( -- Read received data. Received data must be read in order to allow -- transmission to progress. SPI transmit will halt when the receive -- data FIFO is full. In slave mode, an overrun error will occur if -- received data is not read before new data is received. Read, -- Ignore received data. Received data is ignored, allowing transmission -- without reading unneeded received data. No receiver flags are -- generated. Ignore) with Size => 1; for FIFOWR_RXIGNORE_Field use (Read => 0, Ignore => 1); subtype FIFOWR_LEN_Field is HAL.UInt4; -- FIFO write data. type FIFOWR_Register is record -- Write-only. Transmit data to the FIFO. TXDATA : FIFOWR_TXDATA_Field := 16#0#; -- Write-only. Transmit slave select. This field asserts SSEL0 in master -- mode. The output on the pin is active LOW by default. TXSSEL0_N : FIFOWR_TXSSEL0_N_Field := NXP_SVD.SPI.Asserted; -- Write-only. Transmit slave select. This field asserts SSEL1 in master -- mode. The output on the pin is active LOW by default. TXSSEL1_N : FIFOWR_TXSSEL1_N_Field := NXP_SVD.SPI.Asserted; -- Write-only. Transmit slave select. This field asserts SSEL2 in master -- mode. The output on the pin is active LOW by default. TXSSEL2_N : FIFOWR_TXSSEL2_N_Field := NXP_SVD.SPI.Asserted; -- Write-only. Transmit slave select. This field asserts SSEL3 in master -- mode. The output on the pin is active LOW by default. TXSSEL3_N : FIFOWR_TXSSEL3_N_Field := NXP_SVD.SPI.Asserted; -- Write-only. End of transfer. The asserted SSEL will be deasserted at -- the end of a transfer and remain so far at least the time specified -- by the Transfer_delay value in the DLY register. EOT : FIFOWR_EOT_Field := NXP_SVD.SPI.Not_Deasserted; -- Write-only. End of frame. Between frames, a delay may be inserted, as -- defined by the Frame_delay value in the DLY register. The end of a -- frame may not be particularly meaningful if the Frame_delay value = -- 0. This control can be used as part of the support for frame lengths -- greater than 16 bits. EOF : FIFOWR_EOF_Field := NXP_SVD.SPI.Not_Eof; -- Write-only. Receive Ignore. This allows data to be transmitted using -- the SPI without the need to read unneeded data from the receiver. -- Setting this bit simplifies the transmit process and can be used with -- the DMA. RXIGNORE : FIFOWR_RXIGNORE_Field := NXP_SVD.SPI.Read; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- Write-only. Data Length. Specifies the data length from 4 to 16 bits. -- Note that transfer lengths greater than 16 bits are supported by -- implementing multiple sequential transmits. 0x0-2 = Reserved. 0x3 = -- Data transfer is 4 bits in length. 0x4 = Data transfer is 5 bits in -- length. 0xF = Data transfer is 16 bits in length. LEN : FIFOWR_LEN_Field := 16#0#; -- unspecified Reserved_28_31 : HAL.UInt4 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFOWR_Register use record TXDATA at 0 range 0 .. 15; TXSSEL0_N at 0 range 16 .. 16; TXSSEL1_N at 0 range 17 .. 17; TXSSEL2_N at 0 range 18 .. 18; TXSSEL3_N at 0 range 19 .. 19; EOT at 0 range 20 .. 20; EOF at 0 range 21 .. 21; RXIGNORE at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; LEN at 0 range 24 .. 27; Reserved_28_31 at 0 range 28 .. 31; end record; subtype FIFORD_RXDATA_Field is HAL.UInt16; -- FIFO read data. type FIFORD_Register is record -- Read-only. Received data from the FIFO. RXDATA : FIFORD_RXDATA_Field; -- Read-only. Slave Select for receive. This field allows the state of -- the SSEL0 pin to be saved along with received data. The value will -- reflect the SSEL0 pin for both master and slave operation. A zero -- indicates that a slave select is active. The actual polarity of each -- slave select pin is configured by the related SPOL bit in CFG. RXSSEL0_N : Boolean; -- Read-only. Slave Select for receive. This field allows the state of -- the SSEL1 pin to be saved along with received data. The value will -- reflect the SSEL1 pin for both master and slave operation. A zero -- indicates that a slave select is active. The actual polarity of each -- slave select pin is configured by the related SPOL bit in CFG. RXSSEL1_N : Boolean; -- Read-only. Slave Select for receive. This field allows the state of -- the SSEL2 pin to be saved along with received data. The value will -- reflect the SSEL2 pin for both master and slave operation. A zero -- indicates that a slave select is active. The actual polarity of each -- slave select pin is configured by the related SPOL bit in CFG. RXSSEL2_N : Boolean; -- Read-only. Slave Select for receive. This field allows the state of -- the SSEL3 pin to be saved along with received data. The value will -- reflect the SSEL3 pin for both master and slave operation. A zero -- indicates that a slave select is active. The actual polarity of each -- slave select pin is configured by the related SPOL bit in CFG. RXSSEL3_N : Boolean; -- Read-only. Start of Transfer flag. This flag will be 1 if this is the -- first data after the SSELs went from deasserted to asserted (i.e., -- any previous transfer has ended). This information can be used to -- identify the first piece of data in cases where the transfer length -- is greater than 16 bits. SOT : Boolean; -- unspecified Reserved_21_31 : HAL.UInt11; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFORD_Register use record RXDATA at 0 range 0 .. 15; RXSSEL0_N at 0 range 16 .. 16; RXSSEL1_N at 0 range 17 .. 17; RXSSEL2_N at 0 range 18 .. 18; RXSSEL3_N at 0 range 19 .. 19; SOT at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype FIFORDNOPOP_RXDATA_Field is HAL.UInt16; -- FIFO data read with no FIFO pop. type FIFORDNOPOP_Register is record -- Read-only. Received data from the FIFO. RXDATA : FIFORDNOPOP_RXDATA_Field; -- Read-only. Slave Select for receive. RXSSEL0_N : Boolean; -- Read-only. Slave Select for receive. RXSSEL1_N : Boolean; -- Read-only. Slave Select for receive. RXSSEL2_N : Boolean; -- Read-only. Slave Select for receive. RXSSEL3_N : Boolean; -- Read-only. Start of transfer flag. SOT : Boolean; -- unspecified Reserved_21_31 : HAL.UInt11; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FIFORDNOPOP_Register use record RXDATA at 0 range 0 .. 15; RXSSEL0_N at 0 range 16 .. 16; RXSSEL1_N at 0 range 17 .. 17; RXSSEL2_N at 0 range 18 .. 18; RXSSEL3_N at 0 range 19 .. 19; SOT at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype ID_APERTURE_Field is HAL.UInt8; subtype ID_MINOR_REV_Field is HAL.UInt4; subtype ID_MAJOR_REV_Field is HAL.UInt4; subtype ID_ID_Field is HAL.UInt16; -- Peripheral identification register. type ID_Register is record -- Read-only. Aperture: encoded as (aperture size/4K) -1, so 0x00 means -- a 4K aperture. APERTURE : ID_APERTURE_Field; -- Read-only. Minor revision of module implementation. MINOR_REV : ID_MINOR_REV_Field; -- Read-only. Major revision of module implementation. MAJOR_REV : ID_MAJOR_REV_Field; -- Read-only. Module identifier for the selected function. ID : ID_ID_Field; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ID_Register use record APERTURE at 0 range 0 .. 7; MINOR_REV at 0 range 8 .. 11; MAJOR_REV at 0 range 12 .. 15; ID at 0 range 16 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Serial Peripheral Interfaces (SPI) type SPI_Peripheral is record -- SPI Configuration register CFG : aliased CFG_Register; -- SPI Delay register DLY : aliased DLY_Register; -- SPI Status. Some status flags can be cleared by writing a 1 to that -- bit position. STAT : aliased STAT_Register; -- SPI Interrupt Enable read and Set. A complete value may be read from -- this register. Writing a 1 to any implemented bit position causes -- that bit to be set. INTENSET : aliased INTENSET_Register; -- SPI Interrupt Enable Clear. Writing a 1 to any implemented bit -- position causes the corresponding bit in INTENSET to be cleared. INTENCLR : aliased INTENCLR_Register; -- SPI clock Divider DIV : aliased DIV_Register; -- SPI Interrupt Status INTSTAT : aliased INTSTAT_Register; -- FIFO configuration and enable register. FIFOCFG : aliased FIFOCFG_Register; -- FIFO status register. FIFOSTAT : aliased FIFOSTAT_Register; -- FIFO trigger settings for interrupt and DMA request. FIFOTRIG : aliased FIFOTRIG_Register; -- FIFO interrupt enable set (enable) and read register. FIFOINTENSET : aliased FIFOINTENSET_Register; -- FIFO interrupt enable clear (disable) and read register. FIFOINTENCLR : aliased FIFOINTENCLR_Register; -- FIFO interrupt status register. FIFOINTSTAT : aliased FIFOINTSTAT_Register; -- FIFO write data. FIFOWR : aliased FIFOWR_Register; -- FIFO read data. FIFORD : aliased FIFORD_Register; -- FIFO data read with no FIFO pop. FIFORDNOPOP : aliased FIFORDNOPOP_Register; -- Peripheral identification register. ID : aliased ID_Register; end record with Volatile; for SPI_Peripheral use record CFG at 16#400# range 0 .. 31; DLY at 16#404# range 0 .. 31; STAT at 16#408# range 0 .. 31; INTENSET at 16#40C# range 0 .. 31; INTENCLR at 16#410# range 0 .. 31; DIV at 16#424# range 0 .. 31; INTSTAT at 16#428# range 0 .. 31; FIFOCFG at 16#E00# range 0 .. 31; FIFOSTAT at 16#E04# range 0 .. 31; FIFOTRIG at 16#E08# range 0 .. 31; FIFOINTENSET at 16#E10# range 0 .. 31; FIFOINTENCLR at 16#E14# range 0 .. 31; FIFOINTSTAT at 16#E18# range 0 .. 31; FIFOWR at 16#E20# range 0 .. 31; FIFORD at 16#E30# range 0 .. 31; FIFORDNOPOP at 16#E40# range 0 .. 31; ID at 16#FFC# range 0 .. 31; end record; -- Serial Peripheral Interfaces (SPI) SPI0_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40086000#); -- Serial Peripheral Interfaces (SPI) SPI1_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40087000#); -- Serial Peripheral Interfaces (SPI) SPI2_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40088000#); -- Serial Peripheral Interfaces (SPI) SPI3_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40089000#); -- Serial Peripheral Interfaces (SPI) SPI4_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#4008A000#); -- Serial Peripheral Interfaces (SPI) SPI5_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40096000#); -- Serial Peripheral Interfaces (SPI) SPI6_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40097000#); -- Serial Peripheral Interfaces (SPI) SPI7_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#40098000#); -- Serial Peripheral Interfaces (SPI) SPI8_Periph : aliased SPI_Peripheral with Import, Address => System'To_Address (16#4009F000#); end NXP_SVD.SPI;
40.018039
79
0.627854
391c3a42664c1d4c78bf6de89c42a6b275ffa9c3
513
adb
Ada
PIM/TP1_Algorithmique/demander_confirmation.adb
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
1
2021-06-26T21:51:11.000Z
2021-06-26T21:51:11.000Z
PIM/TP1_Algorithmique/demander_confirmation.adb
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
null
null
null
PIM/TP1_Algorithmique/demander_confirmation.adb
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; -- Demander confirmation par 'o' ou 'n'. procedure Demander_Confirmation is Reponse: Character; -- la réponse de l'utilisateur begin -- Demander la réponse Put("Confirmation (o/n) ? "); Get(Reponse); while Reponse /= 'o' and Reponse /= 'n' loop Put_Line("Merci de répondre par 'o' (oui) ou 'n' (non)."); Put("Confirmation (o/n) ?"); Get(Reponse); end loop; -- Afficher la réponse Put (Reponse); end Demander_Confirmation;
25.65
66
0.62963
103930ae73c5f2d51dd8775ca22f83d956113dba
2,762
ads
Ada
bmp2ada/src/bmp.ads
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
7
2017-10-18T02:40:24.000Z
2020-12-19T22:41:19.000Z
bmp2ada/src/bmp.ads
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
null
null
null
bmp2ada/src/bmp.ads
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
2
2019-05-06T08:30:26.000Z
2020-11-22T11:27:27.000Z
with Interfaces; use Interfaces; with Ada.Streams.Stream_IO; use Ada.Streams; with Ada.Text_IO; package BMP is type Header is record Signature : Integer_16; Size : Integer_32; Reserved1 : Integer_16; Reserved2 : Integer_16; Offset : Integer_32; end record; type Info is record Struct_Size : Integer_32; Width : Integer_32; -- Image width in pixels Height : Integer_32; -- Image hieght in pixels Planes : Integer_16; Pixel_Size : Integer_16; -- Bits per pixel Compression : Integer_32; -- Zero means no compression Image_Size : Integer_32; -- Size of the image data in bytes PPMX : Integer_32; -- Pixels per meter in x led PPMY : Integer_32; -- Pixels per meter in y led Palette_Size : Integer_32; -- Number of colors Important : Integer_32; end record; type Pixel_RGB24 is record B, G, R : Unsigned_8; end record with Pack, Size => 24; type Image_RGB24 is array (Integer range <>) of Pixel_RGB24 with Pack; type Unsigned_1 is mod 2**1 with Size => 1; type Unsigned_2 is mod 2**2 with Size => 2; type Unsigned_4 is mod 2**4 with Size => 4; type P1_Array is array (Integer range <>) of Unsigned_1 with Pack; type P2_Array is array (Integer range <>) of Unsigned_2 with Pack; type P4_Array is array (Integer range <>) of Unsigned_4 with Pack; type P8_Array is array (Integer range <>) of Unsigned_8 with Pack; type Pix_Index_Size is (Pix_1, Pix_2, Pix_4, Pix_8); type Pix_Index_Rec (Size : Pix_Index_Size := Pix_8) is record case Size is when Pix_1 => P1 : P1_Array (0 .. 7); when Pix_2 => P2 : P2_Array (0 .. 3); when Pix_4 => P4 : P4_Array (0 .. 1); when Pix_8 => P8 : P8_Array (0 .. 0); end case; end record with Pack, Size => 8, Unchecked_Union; type Pix_Index_Array is array (Integer range <>) of Pix_Index_Rec; type Color_Definition is record B, G, R, A : Unsigned_8; end record with Pack, Size => 4 * 8; type Palette is array (Unsigned_8 range <>) of Color_Definition with Pack; procedure Standard (File_In : Stream_IO.File_Type; Input : Stream_IO.Stream_Access; File_Out : Ada.Text_IO.File_Type; Package_Name : String; Header : BMP.Header; Info : BMP.Info; Row_Size : Integer); procedure Palettized (File_In : Stream_IO.File_Type; Input : Stream_IO.Stream_Access; File_Out : Ada.Text_IO.File_Type; Package_Name : String; Header : BMP.Header; Info : BMP.Info; Row_Size : Integer); DMA2D_Format : Boolean := False; Verbose : Boolean := False; end BMP;
33.277108
77
0.632875
23820a2769cfd13d7917a4efec16c64a01ee4138
853
adb
Ada
bucket_4C/AdaBrowse/patches/patch-util-pipes.adb
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
17
2017-04-22T21:53:52.000Z
2021-01-21T16:57:55.000Z
bucket_4C/AdaBrowse/patches/patch-util-pipes.adb
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
186
2017-09-12T20:46:52.000Z
2021-11-27T18:15:14.000Z
bucket_4C/AdaBrowse/patches/patch-util-pipes.adb
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
74
2017-09-06T14:48:01.000Z
2021-08-28T02:48:27.000Z
--- util-pipes.adb.orig 2021-09-04 15:38:31 UTC +++ util-pipes.adb @@ -132,16 +132,8 @@ package body Util.Pipes is -- <stdio.h>, the ISO C standard requires that they also be available -- as real functions. Hence we may import them directly. - pragma Linker_Options ("util-nl.o"); - - function Get_NL return Interfaces.C.int; - pragma Import (C, Get_NL, "get_newline"); - - New_Line : constant Interfaces.C.int := Get_NL; - -- '\n' is replaced at compile-time by a C compiler. Hence we cannot - -- use fputs (To_C ("\n")) to generate whatever C expects as a newline. - -- Therefore, we have a little C wrapper which just returns '\n', and - -- we remember that value here. + New_Line : constant Interfaces.C.int := Interfaces.C.char'Pos + (Interfaces.C.nul); end Std_IO;
38.772727
79
0.63306
20cba3599fb2a90df5d29c2ced5db47fe5df2dee
1,363
ads
Ada
awa/plugins/awa-counters/regtests/awa-counters-modules-tests.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
81
2015-01-18T23:02:30.000Z
2022-03-19T17:34:57.000Z
awa/plugins/awa-counters/regtests/awa-counters-modules-tests.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
20
2015-12-09T19:26:19.000Z
2022-03-23T14:32:43.000Z
awa/plugins/awa-counters/regtests/awa-counters-modules-tests.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
16
2015-06-29T02:44:06.000Z
2021-09-23T18:47:50.000Z
----------------------------------------------------------------------- -- awa-counters-modules-tests -- Unit tests for counters service -- Copyright (C) 2015 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; with AWA.Tests; package AWA.Counters.Modules.Tests is procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite); type Test is new AWA.Tests.Test with record Manager : AWA.Counters.Modules.Counter_Module_Access; end record; -- Test incrementing counters and flushing. procedure Test_Increment (T : in out Test); -- Test incrementing a global counter. procedure Test_Global_Counter (T : in out Test); end AWA.Counters.Modules.Tests;
36.837838
76
0.659574
10dea0ef69c043f0d921317b183a69452a6187c4
3,060
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104d.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/c6/c64104d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C64104D.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT CONSTRAINT_ERROR IS RAISED UNDER THE APPROPRIATE -- CIRCUMSTANCES FOR ACCESS PARAMETERS, NAMELY WHEN THE -- ACTUAL INDEX BOUNDS OR DISCRIMINANTS ARE NOT EQUAL -- TO THE FORMAL CONSTRAINTS BEFORE THE CALL (FOR IN AND IN OUT -- MODES), AND WHEN THE FORMAL CONSTRAINTS ARE NOT EQUAL TO THE -- ACTUAL CONSTRAINTS UPON RETURN (FOR IN OUT AND OUT MODES). -- (A) BEFORE CALL, IN MODE, STATIC PRIVATE DISCRIMINANT. -- JRK 3/18/81 -- NL 10/13/81 -- ABW 6/11/82 -- SPS 10/26/82 WITH REPORT; PROCEDURE C64104D IS USE REPORT; BEGIN TEST ("C64104D", "CHECK THAT CONSTRAINT_ERROR IS RAISED " & "APPROPRIATELY FOR ACCESS PARAMETERS"); -------------------------------------------------- DECLARE PACKAGE PKG IS TYPE E IS (E1, E2, E3); TYPE T (D : E := E1) IS PRIVATE; TYPE AR IS ARRAY (E1 .. E3) OF INTEGER; PRIVATE TYPE T (D : E := E1) IS RECORD I : INTEGER; A : AR; END RECORD; END PKG; USE PKG; TYPE A IS ACCESS T; SUBTYPE A1 IS A(E3); V : A (E2) := NEW T (E2); PROCEDURE P (X : A1) IS BEGIN FAILED ("EXCEPTION NOT RAISED ON CALL"); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE"); END P; BEGIN P (V); FAILED ("EXCEPTION NOT RAISED BEFORE CALL"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED"); END; ------------------------------------------------ RESULT; END C64104D;
32.553191
79
0.566013
d05939e129f2dc65c4c82af5ebe16d736695cdf7
7,654
adb
Ada
samples/multipro_refs.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
samples/multipro_refs.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
samples/multipro_refs.adb
Letractively/ada-util
e4c63b93635dc07c46e95f12ba02d18903b307b3
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- multipro_refs -- Points out multiprocessor issues with reference counters -- Copyright (C) 2011 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.Log; with Util.Log.Loggers; with Util.Concurrent.Counters; with Util.Measures; with Ada.Text_IO; with Util.Refs; with Ada.Strings.Hash; with Ada.Containers.Indefinite_Hashed_Maps; procedure Multipro_Refs is use Util.Log; use Util.Concurrent.Counters; Log : constant Loggers.Logger := Loggers.Create ("multipro"); type Data is new Util.Refs.Ref_Entity with record Value : Natural; Rand : Natural; Result : Long_Long_Integer; end record; type Data_Access is access all Data; package Data_Ref is new Util.Refs.References (Data, Data_Access); package Hash_Map is new Ada.Containers.Indefinite_Hashed_Maps (String, String, Ada.Strings.Hash, "="); type Cache is new Util.Refs.Ref_Entity with record Map : Hash_Map.Map; end record; type Cache_Access is access all Cache; package Hash_Ref is new Util.Refs.References (Cache, Cache_Access); procedure Set_Reference (O : in Data_Ref.Ref); function Exists (Key : in String) return Boolean; function Find (Key : in String) return String; procedure Add (Key : in String; Value : in String); function Get_Reference return Data_Ref.Ref; R : Hash_Ref.Atomic_Ref; function Exists (Key : in String) return Boolean is C : constant Hash_Ref.Ref := R.Get; begin return C.Value.Map.Contains (Key); end Exists; function Find (Key : in String) return String is C : constant Hash_Ref.Ref := R.Get; begin if C.Value.Map.Contains (Key) then return C.Value.Map.Element (Key); else return ""; end if; end Find; procedure Add (Key : in String; Value : in String) is C : constant Hash_Ref.Ref := R.Get; N : constant Hash_Ref.Ref := Hash_Ref.Create; begin N.Value.all.Map := C.Value.Map; N.Value.all.Map.Include (Key, Value); R.Set (N); end Add; -- Target counter value we would like. Max_Counter : constant Integer := 1_00_000; -- Max number of tasks for executing the concurrent increment. Max_Tasks : constant Integer := 16; Unsafe_Ref : Data_Ref.Ref := Data_Ref.Create; Safe_Ref : Data_Ref.Atomic_Ref; -- When <b>Run_Safe</b> is false, we use the Ada assignment to update a reference. -- The program will crash at a random time due to corruption or multiple free. -- -- When <b>Run_Safe</b> is true, we use the protected type Atomic_Ref to change -- the shared reference. It will not crash. Run_Safe : constant Boolean := True; function Get_Reference return Data_Ref.Ref is begin if Run_Safe then return Safe_Ref.Get; else return Unsafe_Ref; end if; end Get_Reference; procedure Set_Reference (O : in Data_Ref.Ref) is begin if Run_Safe then Safe_Ref.Set (O); else Unsafe_Ref := O; end if; end Set_Reference; -- Performance measurement. Perf : Util.Measures.Measure_Set; T : Util.Measures.Stamp; begin Safe_Ref.Set (Data_Ref.Create); Get_Reference.Value.all.Value := 0; for Task_Count in 1 .. Max_Tasks loop R.Set (Hash_Ref.Create); declare -- Each task will increment the counter by the following amount. Increment_By_Task : constant Integer := Max_Counter / Task_Count; -- Counter protected by concurrent accesses. Counter : Util.Concurrent.Counters.Counter; begin declare -- A task that increments the shared counter <b>Unsafe</b> and <b>Counter</b> by -- the specified amount. task type Worker is entry Start (Count : in Natural; Ident : in Integer); end Worker; task body Worker is Cnt : Natural; Id : Integer; begin accept Start (Count : in Natural; Ident : in Integer) do Cnt := Count; Id := Ident; end Start; -- Get the data, compute something and change the reference. for I in 1 .. Cnt loop declare Ref : constant Data_Ref.Ref := Get_Reference; Ref2 : constant Data_Ref.Ref := Data_Ref.Create; Key : constant String := "K" & Natural'Image (I / 10); begin Ref2.Value.all.Value := Ref.Value.all.Value + 1; Ref2.Value.all.Rand := Cnt; Ref2.Value.all.Result := Long_Long_Integer (Ref2.Value.all.Rand * Cnt) * Long_Long_Integer (Ref2.Value.all.Value); Set_Reference (Ref2); Util.Concurrent.Counters.Increment (Counter); if not Exists (Key) then Add (Key, Natural'Image (I)); end if; declare S : constant String := Find (Key); pragma Unreferenced (S); begin null; exception when others => Log.Info ("{0}: Find did not found the key: {1}", Integer'Image (Id), Key); end; end; end loop; exception when E : others => Log.Error ("Exception raised: ", E, True); end Worker; type Worker_Array is array (1 .. Task_Count) of Worker; Tasks : Worker_Array; begin Log.Info ("Starting " & Integer'Image (Task_Count) & " tasks"); for I in Tasks'Range loop Tasks (I).Start (Increment_By_Task, I); end loop; -- Leaving the Worker task scope means we are waiting for our tasks to finish. end; Util.Measures.Report (Measures => Perf, S => T, Title => "Increment counter with " & Integer'Image (Task_Count) & " tasks"); Log.Info ("Data.Value := " & Natural'Image (Get_Reference.Value.all.Value)); Log.Info ("Data.Rand := " & Natural'Image (Get_Reference.Value.all.Rand)); Log.Info ("Data.Result := " & Long_Long_Integer'Image (Get_Reference.Value.all.Result)); end; end loop; -- Dump the result Util.Measures.Write (Perf, "Multipro", Ada.Text_IO.Standard_Output); end Multipro_Refs;
36.103774
97
0.559185
397c5b6b4f0d50c53dec9babe735d327b259bf3b
24,063
ads
Ada
ADL/drivers/stm32h743/stm32-dma.ads
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-dma.ads
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-dma.ads
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f4xx_hal_dma.h -- -- @author MCD Application Team -- -- @version V1.1.0 -- -- @date 19-June-2014 -- -- @brief Header file of DMA HAL module. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ -- This file provides definitions for the DMA controllers on the STM32F4 (ARM -- Cortex M4F) microcontrollers from ST Microelectronics. -- See Application Note AN4031: "Using the STM32F2 and STM32F4 DMA controller" -- and Reference Manual RM0090: "STM32F405xx/07xx, STM32F415xx/17xx, -- STM32F42xxx and STM32F43xxx advanced ARM-based 32-bit MCUs" In the -- application note, see especially section four, titled "Tips and -- warnings while programming the DMA controller" -- The basic call sequence, given a Controller and a Stream, is as follows: -- 1) Configure -- Configures the Controller and Stream per application requirements. This -- is the primary setup call, specifying the static characteristics of all -- the transfers to be performed on the stream, such as the direction, the -- channel, and so forth. The Controller is disabled after the call. -- 2) Configure_Data_Flow -- Sets the dynamic parameters of a given transfer, i.e., the source and -- destination addresses and the number of data items to transfer. -- 3) Enable -- Enables transfers on the Controller and Stream. Transfers will begin -- immediately unless programmed otherwise. -- You can enable some or all DMA interrupts prior to the call to Enable, if -- required by your usage. -- Ensure all the status flags are cleared prior to the call to Enable, since -- a transfer will then begin. This can be accomplished by relying on the fact -- that the board has just powered-up, by a call to Reset, or by a call to -- Clear_All_Status. -- Note that there are convenience routines that do steps two and three: -- Start_Transfer -- Start_Transfer_with_Interrupts pragma Restrictions (No_Elaboration_Code); with System; use System; with Ada.Real_Time; use Ada.Real_Time; private with STM32_SVD.DMA; package STM32.DMA with SPARK_Mode => Off is type DMA_Controller is limited private; -- Do not change the order of the enumerals in the types in this package. -- The underlying canonical representation values are required. type DMA_Stream_Selector is (Stream_1, Stream_2, Stream_3, Stream_4, Stream_5, Stream_6, Stream_7, Stream_8); procedure Enable (This : DMA_Controller; Stream : DMA_Stream_Selector) with Inline; -- Before enabling a stream to start a new transfer, the event status flags -- corresponding to the stream must be cleared. Note that the unit may not -- be enabled by the time the call returns. function Enabled (This : DMA_Controller; Stream : DMA_Stream_Selector) return Boolean with Inline; procedure Disable (This : DMA_Controller; Stream : DMA_Stream_Selector) with Post => not Enabled (This, Stream), Inline; procedure Reset (This : in out DMA_Controller; Stream : DMA_Stream_Selector) with Post => not Enabled (This, Stream) and Operating_Mode (This, Stream) = Normal_Mode and Current_Items_Number (This, Stream) = 0 and Selected_Channel (This, Stream) = Channel_1 and Transfer_Direction (This, Stream) = Peripheral_To_Memory and not Circular_Mode (This, Stream) and Memory_Data_Width (This, Stream) = Bytes and Peripheral_Data_Width (This, Stream) = Bytes and Priority (This, Stream) = Priority_Low and (for all Flag in DMA_Status_Flag => not Status (This, Stream, Flag)) and (for all Interrupt in DMA_Interrupt => not Interrupt_Enabled (This, Stream, Interrupt)); -- In addition, -- M_Burst = Memory_Burst_Single and -- P_Burst = Peripheral_Burst_Single and -- P_Inc_Offset_Size = 0 and -- M_Inc_Mode = False and -- P_Inc_Mode = False -- Also clears the FIFO control register bits except sets bits to show FIFO -- is empty, and to set the FIFO filling threshold selection to 1/2 full. procedure Set_Double_Buffer_Mode (This : DMA_Controller; Stream : DMA_Stream_Selector; Enable : Boolean); -- In double-buffer mode the stream has two memory pointers for SxM0AR and -- SxM1AR, and the DMA controller swaps from one memory target to another -- at each and of transaction. -- To avoid any error condition, it is advised to change the base address -- as soon as the TCIF flag is asserted because, at this point, the targeted -- memory must have changed from memory 0 to 1 (or from 1 to 0) depending on -- the value of CT in the DMA_SxCR register. -- For all the other modes (except the double-buffer mode), the memory -- address registers are write-protected as soon as the stream is enabled. -- See RM0433 rev 7 Chapter 15.3.11 "Double-buffer mode" pg 644. procedure Set_Bufferable_Transfer (This : DMA_Controller; Stream : DMA_Stream_Selector; Enable : Boolean); -- This bit must be set to 1 if the DMA stream manages UART/USART/LPUART -- transfers. type DMA_Device is (Memory, Peripheral); type DMA_Burst_Transfer_Mode is (Single_Transfer, Increment_4_Beats, Increment_8_Beats, Increment_16_Beats); procedure Set_Burst_Mode_Transfer (This : DMA_Controller; Stream : DMA_Stream_Selector; Device : DMA_Device; Mode : DMA_Burst_Transfer_Mode) with Pre => not Enabled (This, Stream); -- See RM0433 rev 7 Chapter 15.3.13 "Single and burst mode transfers" pg 647. procedure Configure_Data_Flow (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : Address; Destination : Address; Data_Count : UInt16) with Pre => not Enabled (This, Stream) and Valid_Addresses (Source, Destination) and Compatible_Alignments (This, Stream, Source, Destination); -- Sets the source and destination arguments within the specified stream, -- based on the direction previously specified by a call to procedure -- Configure. -- -- Sets the number of data items to be transferred (from 0 to 65535) on -- the specified stream in the next transfer. This is the volume of data to -- be transferred from source to destination. The number specified depends -- only on the peripheral data format, as specified by the record component -- Peripheral_Data_Format passed to a call to Configure. The value to be -- specified is computed as follows: -- -- If the peripheral data format is in units of bytes, the value is -- equal to the total number of bytes contained in the data to be sent. -- -- If the peripheral data format is in units of half-words, the value is -- 1/2 the total number of bytes contained in the data to be sent. -- -- If the peripheral data format is in units of words, the value is -- 1/4 the total number of bytes contained in the data to be sent. -- -- For example, to send a sequence of characters to a USART, the USART -- peripheral format will be in units of bytes so the Data_Count argument -- will be the number of characters (bytes) in the string to be sent. -- In contrast, on a memory-to-memory transfer the most efficient approach -- is to work in units of words. One would therefore specify word units for -- the source and destination formats and then specify 1/4 the total number -- of bytes involved (assuming a four-UInt8 word). procedure Start_Transfer (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : Address; Destination : Address; Data_Count : UInt16) with Pre => Valid_Addresses (Source, Destination) and Compatible_Alignments (This, Stream, Source, Destination) and (for all Flag in DMA_Status_Flag => (not Status (This, Stream, Flag))); -- Convenience routine: disables the stream, calls Configure_Data_Flow, -- and then enables the stream to start the transfer. DMA interrupts are -- not enabled by this routine, but could be enabled prior to the call. -- The requirement to clear the flags first is due to the fact that -- the transfer begins immediately at the end of this routine. The -- value specified for Data_Count is as described for procedure -- Configure_Data_Flow. type DMA_Interrupt is (Transfer_Error_Interrupt, Half_Transfer_Complete_Interrupt, Transfer_Complete_Interrupt, Direct_Mode_Error_Interrupt); procedure Enable_Interrupt (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : DMA_Interrupt) with Post => Interrupt_Enabled (This, Stream, Source); -- The postcondition should not be relied upon completely because it is -- possible, under just the wrong conditions, for the interrupt to be -- disabled immediately, prior to return from this routine function Interrupt_Enabled (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : DMA_Interrupt) return Boolean with Inline; procedure Disable_Interrupt (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : DMA_Interrupt) with Post => not Interrupt_Enabled (This, Stream, Source); type Interrupt_Selections is array (DMA_Interrupt) of Boolean; procedure Start_Transfer_with_Interrupts (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : Address; Destination : Address; Data_Count : UInt16; Enabled_Interrupts : Interrupt_Selections := (others => True)) with Pre => Valid_Addresses (Source, Destination) and Compatible_Alignments (This, Stream, Source, Destination) and (for all Flag in DMA_Status_Flag => (not Status (This, Stream, Flag))); -- Convenience routine: disables the stream, calls Configure_Data_Flow, -- enables the selected DMA interrupts (by default, all of them), and -- then enables the stream to start the transfer. All the selected DMA -- interrupts are enabled, all the others are left unchanged. Interrupts -- are selected for enablement by having a True value in the array at their -- index location. The requirement to clear the flags first is due to the -- fact that the transfer begins immediately at the end of this routine. -- The value specified for Data_Count is as described for procedure -- Configure_Data_Flow. type DMA_Error_Code is (DMA_No_Error, DMA_Transfer_Error, DMA_Timeout_Error, DMA_Device_Error); procedure Abort_Transfer (This : DMA_Controller; Stream : DMA_Stream_Selector; Result : out DMA_Error_Code) with Post => not Enabled (This, Stream); -- Disables the specified stream and then waits until the request is -- effective. If a stream is disabled while a data transfer is ongoing, the -- current datum will be transferred and the stream will be disabled only -- after the transfer of this single datum completes. type DMA_Transfer_Level is (Full_Transfer, Half_Transfer); procedure Poll_For_Completion (This : in out DMA_Controller; Stream : DMA_Stream_Selector; Expected_Level : DMA_Transfer_Level; Timeout : Time_Span; Result : out DMA_Error_Code); type DMA_Status_Flag is (FIFO_Error_Indicated, Direct_Mode_Error_Indicated, Transfer_Error_Indicated, Half_Transfer_Complete_Indicated, Transfer_Complete_Indicated); function Status (This : DMA_Controller; Stream : DMA_Stream_Selector; Flag : DMA_Status_Flag) return Boolean with Inline; -- Returns whether the specified status flag is indicated procedure Clear_Status (This : in out DMA_Controller; Stream : DMA_Stream_Selector; Flag : DMA_Status_Flag) with Inline, Post => not Status (This, Stream, Flag); procedure Clear_All_Status (This : in out DMA_Controller; Stream : DMA_Stream_Selector) with Post => (for all Indicated in DMA_Status_Flag => not Status (This, Stream, Indicated)); procedure Set_Items_Number (This : DMA_Controller; Stream : DMA_Stream_Selector; Data_Count : UInt16) with Pre => not Enabled (This, Stream), Post => Current_Items_Number (This, Stream) = Data_Count, Inline; -- Sets the number of data items to be transferred on the stream. -- The Data_Count parameter specifies the number of data items to be -- transferred (from 0 to 65535) on the next transfer. The value is -- as described for procedure Configure_Data_Flow. function Items_Transferred (This : DMA_Controller; Stream : DMA_Stream_Selector) return UInt16; -- Returns the number of items transferred. function Current_Items_Number (This : DMA_Controller; Stream : DMA_Stream_Selector) return UInt16 with Inline; -- Returns the value of the NDT register. Should not be used directly, -- as the meaning changes depending on transfer mode. rather use -- Items_Transferred(). function Circular_Mode (This : DMA_Controller; Stream : DMA_Stream_Selector) return Boolean with Inline; type DMA_Channel_Selector is (Channel_0, Channel_1, Channel_2, Channel_3, Channel_4, Channel_5, Channel_6, Channel_7); function Selected_Channel (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Channel_Selector with Inline; type DMA_Data_Transfer_Direction is (Peripheral_To_Memory, Memory_To_Peripheral, Memory_To_Memory); function Transfer_Direction (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Data_Transfer_Direction with Inline; -- Note that DMA_1 and DMA_2 are able to do Memory_To_Memory transfers, -- and that in these directions the circular mode is not allowed and the -- internal FIFO must be enabled. type DMA_Data_Transfer_Widths is (Bytes, -- 8 bits HalfWords, -- 16 bits Words); -- 32 bits function Peripheral_Data_Width (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Data_Transfer_Widths with Inline; function Memory_Data_Width (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Data_Transfer_Widths with Inline; type DMA_Mode is (Normal_Mode, Peripheral_Flow_Control_Mode, Circular_Mode); function Operating_Mode (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Mode with Inline; type DMA_Priority_Level is (Priority_Low, Priority_Medium, Priority_High, Priority_Very_High); function Priority (This : DMA_Controller; Stream : DMA_Stream_Selector) return DMA_Priority_Level with Inline; type DMA_Memory_Burst is (Memory_Burst_Single, Memory_Burst_Inc4, Memory_Burst_Inc8, Memory_Burst_Inc16); type DMA_Peripheral_Burst is (Peripheral_Burst_Single, Peripheral_Burst_Inc4, Peripheral_Burst_Inc8, Peripheral_Burst_Inc16); type DMA_Stream_Configuration is record -- These are the static, non-varying properties of the transactions -- occurring on the streams to which they are applied (by a call to -- Configure). Other, varying, properties are specified procedurally. -- -- You are not required to specify a value for every component because -- some are only referenced depending on the values for others. Note, -- however, that the default values specified do not represent a valid -- configuration as a whole. Channel : DMA_Channel_Selector := DMA_Channel_Selector'First; -- The channel in the multiplexed connections of controllers, streams, -- and peripherals. It is vital to note that not all peripherals can -- be connected to all streams. The possibilities are organized by -- channels, per controller, as specified by the ST Micro Reference -- Manual RM0433 rev 7 Chapter 15.3.5 "DMA Request Mapping" tables. Direction : DMA_Data_Transfer_Direction := DMA_Data_Transfer_Direction'First; Increment_Peripheral_Address : Boolean := False; -- Whether the peripheral address value should be incremented -- automatically after each transfer Increment_Memory_Address : Boolean := False; -- Whether the memory address value should be incremented automatically -- after each transfer Peripheral_Data_Format : DMA_Data_Transfer_Widths := DMA_Data_Transfer_Widths'First; -- The units of data (the format) in which the peripheral side of the -- transaction is expressed. For example, a USART would work in terms -- of bytes. See the description in Configure_Data_Flow. Memory_Data_Format : DMA_Data_Transfer_Widths := DMA_Data_Transfer_Widths'First; -- The units of data (the format) in which the memory side of the -- transaction is expressed. See the description in Configure_Data_Flow. Operation_Mode : DMA_Mode := DMA_Mode'First; -- Note that the circular buffer mode cannot be used if memory-to-memory -- data transfer is configured on the selected Stream Priority : DMA_Priority_Level := DMA_Priority_Level'First; -- The relative priority of the given stream to all other streams Memory_Burst_Size : DMA_Memory_Burst := DMA_Memory_Burst'First; -- Specifies the amount of data to be transferred in a single non- -- interruptible transaction. Note: The burst mode is possible only if -- the address increment mode is enabled. Peripheral_Burst_Size : DMA_Peripheral_Burst := DMA_Peripheral_Burst'First; -- Specifies the the amount of data to be transferred in -- a single non-interruptible transaction. Note: The burst mode is -- possible only if the address increment mode is enabled. end record; procedure Configure (This : DMA_Controller; Stream : DMA_Stream_Selector; Config : DMA_Stream_Configuration) with Post => not Enabled (This, Stream); -- This is the primary stream configuration facility. All the static -- properties of the transfers for the given stream are specified here, -- and in some cases, nowhere else (such as the channel). The required -- relationships between the parameters specified in the record are -- not checked, other than by the hardware itself. -- -- Note that not all required properties are specified here. In particular, -- because they can vary per transfer, the source and destination -- addresses, as well as the number of data items to be transferred, -- are specified procedurally via calls to Configure_Data_Flow. function Valid_Addresses (Source, Destination : Address) return Boolean is (Source /= Null_Address and Destination /= Null_Address and Source /= Destination); -- Basic sanity checking for the values function Aligned (This : Address; Width : DMA_Data_Transfer_Widths) return Boolean with Inline; -- Returns whether the address is aligned on a word, half-word, or UInt8 -- boundary function Compatible_Alignments (This : DMA_Controller; Stream : DMA_Stream_Selector; Source : Address; Destination : Address) return Boolean is (case Transfer_Direction (This, Stream) is when Peripheral_To_Memory | Memory_To_Memory => Aligned (Source, Peripheral_Data_Width (This, Stream)) and Aligned (Destination, Memory_Data_Width (This, Stream)), when Memory_To_Peripheral => Aligned (Source, Memory_Data_Width (This, Stream)) and Aligned (Destination, Peripheral_Data_Width (This, Stream))); -- Based on Ref Manual Table 44 and associated text, checks the alignments -- of the addresses against the Peripheral_Data_Format (P_Data_Size) and -- Memory_Data_Format (M_Data_Size) values for the given stream. We use an -- expression function because the semantics are meant to be part of the -- spec of the package, visible as a precondition. private type DMA_Controller is new STM32_SVD.DMA.DMA_Peripheral; end STM32.DMA;
41.776042
90
0.650667
cbfa0d4aec3c76a93e2dac1b2a76338c47fc12d7
1,311
ads
Ada
orka_simd/src/x86/gnat/orka-simd-avx-singles-logical.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
52
2016-07-30T23:00:28.000Z
2022-02-05T11:54:55.000Z
orka_simd/src/x86/gnat/orka-simd-avx-singles-logical.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
79
2016-08-01T18:36:48.000Z
2022-02-27T12:14:20.000Z
orka_simd/src/x86/gnat/orka-simd-avx-singles-logical.ads
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) 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. package Orka.SIMD.AVX.Singles.Logical is pragma Pure; function And_Not (Left, Right : m256) return m256 with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_andnps256"; function "and" (Left, Right : m256) return m256 with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_andps256"; function "or" (Left, Right : m256) return m256 with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_orps256"; function "xor" (Left, Right : m256) return m256 with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_xorps256"; end Orka.SIMD.AVX.Singles.Logical;
39.727273
87
0.7254
0e41bd68de4f295894fa3b359074a778da744e37
832
adb
Ada
gnu/src/gdb/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/pck.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/pck.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/pck.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
-- Copyright 2012-2015 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Do_Nothing (A : System.Address) is begin null; end Do_Nothing; end Pck;
37.818182
73
0.729567
2399551ad76324a11c92e3b6eb6070ac47298bb1
12,485
adb
Ada
src/sdl-inputs-joysticks-game_controllers.adb
Fabien-Chouteau/sdlada
f08d72e3f5dcec228d68fb5b6681ea831f81ef47
[ "Zlib" ]
1
2021-10-30T14:41:56.000Z
2021-10-30T14:41:56.000Z
src/sdl-inputs-joysticks-game_controllers.adb
Fabien-Chouteau/sdlada
f08d72e3f5dcec228d68fb5b6681ea831f81ef47
[ "Zlib" ]
null
null
null
src/sdl-inputs-joysticks-game_controllers.adb
Fabien-Chouteau/sdlada
f08d72e3f5dcec228d68fb5b6681ea831f81ef47
[ "Zlib" ]
null
null
null
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- -- 3. This notice may not be removed or altered from any source -- distribution. -------------------------------------------------------------------------------------------------------------------- with Interfaces.C.Strings; with SDL.Error; with SDL.RWops; package body SDL.Inputs.Joysticks.Game_Controllers is package C renames Interfaces.C; use type C.int; use type C.Strings.chars_ptr; procedure Add_Mapping (Data : in String; Updated_Existing : out Boolean) is function SDL_Game_Controller_Add_Mapping (Buffer : in C.char_array) return C.int with Convention => C, Import => True, External_Name => "SDL_GameControllerAddMapping"; Result : C.int := SDL_Game_Controller_Add_Mapping (C.To_C (Data)); begin if Result = -1 then raise Mapping_Error with SDL.Error.Get; end if; Updated_Existing := (Result = 0); end Add_Mapping; procedure Add_Mappings_From_File (Database_Filename : in String; Number_Added : out Natural) is function SDL_Game_Controller_Add_Mappings_From_RW (RW : SDL.RWops.RWops; FreeRW : C.int) return C.int with Convention => C, Import => True, External_Name => "SDL_GameControllerAddMappingsFromRW"; RW : SDL.RWops.RWops := SDL.RWops.From_File (Database_Filename, Mode => SDL.RWops.Read); Result : constant Integer := Integer (SDL_Game_Controller_Add_Mappings_From_RW (RW, FreeRW => 1)); begin if Result < 0 then raise Mapping_Error with SDL.Error.Get; end if; Number_Added := Result; end Add_Mappings_From_File; function Axis_Value (Self : in Game_Controller; Axis : in SDL.Events.Joysticks.Game_Controllers.LR_Axes) return SDL.Events.Joysticks.Game_Controllers.LR_Axes_Values is function SDL_Game_Controller_Get_Axis (Controller : in SDL.C_Pointers.Game_Controller_Pointer; Axis : in SDL.Events.Joysticks.Game_Controllers.LR_Axes) return SDL.Events.Joysticks.Game_Controllers.LR_Axes_Values with Import => True, Convention => C, External_Name => "SDL_GameControllerGetAxis"; begin return SDL_Game_Controller_Get_Axis (Self.Internal, Axis); end Axis_Value; function Axis_Value (Self : in Game_Controller; Axis : in SDL.Events.Joysticks.Game_Controllers.Trigger_Axes) return SDL.Events.Joysticks.Game_Controllers.Trigger_Axes_Values is function SDL_Game_Controller_Get_Axis (Controller : in SDL.C_Pointers.Game_Controller_Pointer; Axis : in SDL.Events.Joysticks.Game_Controllers.Trigger_Axes) return SDL.Events.Joysticks.Game_Controllers.Trigger_Axes_Values with Import => True, Convention => C, External_Name => "SDL_GameControllerGetAxis"; begin return SDL_Game_Controller_Get_Axis (Self.Internal, Axis); end Axis_Value; procedure Close (Self : in out Game_Controller) is procedure SDL_Game_Controller_Close (Controller : in SDL.C_Pointers.Game_Controller_Pointer) with Import => True, Convention => C, External_Name => "SDL_GameControllerClose"; begin SDL_Game_Controller_Close (Self.Internal); -- Reinitialise the object so it's actually a Null_Game_Controller. Self.Internal := null; Self.Owns := True; end Close; function Get_Axis (Axis : in String) return SDL.Events.Joysticks.Game_Controllers.Axes is function SDL_Game_Controller_Get_Axis_From_String (Axis : in C.char_array) return SDL.Events.Joysticks.Game_Controllers.Axes with Import => True, Convention => C, External_Name => "SDL_GameControllerGetAxisFromString"; begin return SDL_Game_Controller_Get_Axis_From_String (C.To_C (Axis)); end Get_Axis; function Get_Binding (Self : in Game_Controller; Axis : in SDL.Events.Joysticks.Game_Controllers.Axes) return Bindings is function SDL_Game_Controller_Get_Bind_For_Axis (Controller : in SDL.C_Pointers.Game_Controller_Pointer; Axis : in SDL.Events.Joysticks.Game_Controllers.Axes) return Bindings with Import => True, Convention => C, External_Name => "SDL_GameControllerGetBindForAxis"; begin return SDL_Game_Controller_Get_Bind_For_Axis (Self.Internal, Axis); end Get_Binding; function Get_Binding (Self : in Game_Controller; Button : in SDL.Events.Joysticks.Game_Controllers.Buttons) return Bindings is function SDL_Game_Controller_Get_Bind_For_Button (Controller : in SDL.C_Pointers.Game_Controller_Pointer; Button : in SDL.Events.Joysticks.Game_Controllers.Buttons) return Bindings with Import => True, Convention => C, External_Name => "SDL_GameControllerGetBindForButton"; begin return SDL_Game_Controller_Get_Bind_For_Button (Self.Internal, Button); end Get_Binding; function Get_Button (Button_Name : in String) return SDL.Events.Joysticks.Game_Controllers.Buttons is function SDL_Game_Controller_Get_Button_From_String (Buffer : in C.char_array) return SDL.Events.Joysticks.Game_Controllers.Buttons with Convention => C, Import => True, External_Name => "SDL_GameControllerGetButtonFromString"; begin return SDL.Events.Joysticks.Game_Controllers.Buttons (SDL_Game_Controller_Get_Button_From_String (C.To_C (Button_Name))); end Get_Button; function Get_Joystick (Self : in Game_Controller) return Joystick is function SDL_Game_Controller_Get_Joystick (Controller : in SDL.C_Pointers.Game_Controller_Pointer) return SDL.C_Pointers.Joystick_Pointer with Convention => C, Import => True, External_Name => "SDL_GameControllerGetJoystick"; begin return J : Joystick := (Ada.Finalization.Limited_Controlled with Internal => SDL_Game_Controller_Get_Joystick (Self.Internal), Owns => False) do null; end return; end Get_Joystick; function Get_Mapping (Self : in Game_Controller) return String is function SDL_Game_Controller_Mapping (Controller : in SDL.C_Pointers.Game_Controller_Pointer) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerMapping"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Mapping (Self.Internal); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Get_Mapping; function Get_Mapping (Controller : in GUIDs) return String is function SDL_Game_Controller_Mapping_For_GUID (Controller : in GUIDs) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerMappingForGUID"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Mapping_For_GUID (Controller); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Get_Mapping; function Get_Name (Self : in Game_Controller) return String is function SDL_Game_Controller_Name (Controller : in SDL.C_Pointers.Game_Controller_Pointer) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerName"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Name (Self.Internal); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Get_Name; function Get_Name (Device : in Devices) return String is function SDL_Game_Controller_Name_For_Index (Index : in C.int) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerNameForIndex"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Name_For_Index (C.int (Device) - 1); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Get_Name; function Image (Axis : in SDL.Events.Joysticks.Game_Controllers.Axes) return String is function SDL_Game_Controller_Get_String_For_Axis (Axis : in SDL.Events.Joysticks.Game_Controllers.Axes) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerGetStringForAxis"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Get_String_For_Axis (Axis); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Image; function Image (Button : in SDL.Events.Joysticks.Game_Controllers.Buttons) return String is function SDL_Game_Controller_Get_String_For_Button (Button : in SDL.Events.Joysticks.Game_Controllers.Buttons) return C.Strings.chars_ptr with Convention => C, Import => True, External_Name => "SDL_GameControllerGetStringForButton"; Result : C.Strings.chars_ptr := SDL_Game_Controller_Get_String_For_Button (Button); begin if Result = C.Strings.Null_Ptr then return ""; end if; return C.Strings.Value (Result); end Image; function Is_Attached (Self : in Game_Controller) return Boolean is function SDL_Game_Controller_Is_Attached (Controller : in SDL.C_Pointers.Game_Controller_Pointer) return SDL_Bool with Import => True, Convention => C, External_Name => "SDL_GameControllerGetAttached"; begin return SDL_Game_Controller_Is_Attached (Self.Internal) = SDL_True; end Is_Attached; function Is_Button_Pressed (Self : in Game_Controller; Button : in SDL.Events.Joysticks.Buttons) return SDL.Events.Button_State is function SDL_Game_Controller_Get_Button (Controller : in SDL.C_Pointers.Game_Controller_Pointer; Button : in SDL.Events.Joysticks.Buttons) return SDL.Events.Button_State with Import => True, Convention => C, External_Name => "SDL_GameControllerGetButton"; begin return SDL_Game_Controller_Get_Button (Self.Internal, Button); end Is_Button_Pressed; function Is_Game_Controller (Device : in Devices) return Boolean is function SDL_Is_Game_Controller (Device : in C.int) return SDL_Bool with Import => True, Convention => C, External_Name => "SDL_IsGameController"; begin return SDL_Is_Game_Controller (C.int (Device) - 1) = SDL_True; end Is_Game_Controller; end SDL.Inputs.Joysticks.Game_Controllers;
42.179054
116
0.644533
203b3ec487ff24e7fb9aa65613d4df011a7e7b04
122,317
adb
Ada
tools-src/gnu/gcc/gcc/ada/par-ch3.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/par-ch3.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/par-ch3.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- P A R . C H 3 -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Style_Checks (All_Checks); -- Turn off subprogram body ordering check. Subprograms are in order -- by RM section rather than alphabetical with Sinfo.CN; use Sinfo.CN; separate (Par) package body Ch3 is ----------------------- -- Local Subprograms -- ----------------------- function P_Component_List return Node_Id; function P_Defining_Character_Literal return Node_Id; function P_Delta_Constraint return Node_Id; function P_Derived_Type_Def_Or_Private_Ext_Decl return Node_Id; function P_Digits_Constraint return Node_Id; function P_Discriminant_Association return Node_Id; function P_Enumeration_Literal_Specification return Node_Id; function P_Enumeration_Type_Definition return Node_Id; function P_Fixed_Point_Definition return Node_Id; function P_Floating_Point_Definition return Node_Id; function P_Index_Or_Discriminant_Constraint return Node_Id; function P_Real_Range_Specification_Opt return Node_Id; function P_Subtype_Declaration return Node_Id; function P_Type_Declaration return Node_Id; function P_Modular_Type_Definition return Node_Id; function P_Variant return Node_Id; function P_Variant_Part return Node_Id; procedure P_Declarative_Items (Decls : List_Id; Done : out Boolean; In_Spec : Boolean); -- Scans out a single declarative item, or, in the case of a declaration -- with a list of identifiers, a list of declarations, one for each of -- the identifiers in the list. The declaration or declarations scanned -- are appended to the given list. Done indicates whether or not there -- may be additional declarative items to scan. If Done is True, then -- a decision has been made that there are no more items to scan. If -- Done is False, then there may be additional declarations to scan. -- In_Spec is true if we are scanning a package declaration, and is used -- to generate an appropriate message if a statement is encountered in -- such a context. procedure P_Identifier_Declarations (Decls : List_Id; Done : out Boolean; In_Spec : Boolean); -- Scans out a set of declarations for an identifier or list of -- identifiers, and appends them to the given list. The parameters have -- the same significance as for P_Declarative_Items. procedure Statement_When_Declaration_Expected (Decls : List_Id; Done : out Boolean; In_Spec : Boolean); -- Called when a statement is found at a point where a declaration was -- expected. The parameters are as described for P_Declarative_Items. procedure Set_Declaration_Expected; -- Posts a "declaration expected" error messages at the start of the -- current token, and if this is the first such message issued, saves -- the message id in Missing_Begin_Msg, for possible later replacement. ------------------- -- Init_Expr_Opt -- ------------------- function Init_Expr_Opt (P : Boolean := False) return Node_Id is begin if Token = Tok_Colon_Equal or else Token = Tok_Equal or else Token = Tok_Colon or else Token = Tok_Is then null; -- One other possibility. If we have a literal followed by a semicolon, -- we assume that we have a missing colon-equal. elsif Token in Token_Class_Literal then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past literal or identifier if Token = Tok_Semicolon then Restore_Scan_State (Scan_State); else Restore_Scan_State (Scan_State); return Empty; end if; end; -- Otherwise we definitely have no initialization expression else return Empty; end if; -- Merge here if we have an initialization expression T_Colon_Equal; if P then return P_Expression; else return P_Expression_No_Right_Paren; end if; end Init_Expr_Opt; ---------------------------- -- 3.1 Basic Declaration -- ---------------------------- -- Parsed by P_Basic_Declarative_Items (3.9) ------------------------------ -- 3.1 Defining Identifier -- ------------------------------ -- DEFINING_IDENTIFIER ::= IDENTIFIER -- Error recovery: can raise Error_Resync function P_Defining_Identifier return Node_Id is Ident_Node : Node_Id; begin -- Scan out the identifier. Note that this code is essentially identical -- to P_Identifier, except that in the call to Scan_Reserved_Identifier -- we set Force_Msg to True, since we want at least one message for each -- separate declaration (but not use) of a reserved identifier. if Token = Tok_Identifier then null; -- If we have a reserved identifier, manufacture an identifier with -- a corresponding name after posting an appropriate error message elsif Is_Reserved_Identifier then Scan_Reserved_Identifier (Force_Msg => True); -- Otherwise we have junk that cannot be interpreted as an identifier else T_Identifier; -- to give message raise Error_Resync; end if; Ident_Node := Token_Node; Scan; -- past the reserved identifier if Ident_Node /= Error then Change_Identifier_To_Defining_Identifier (Ident_Node); end if; return Ident_Node; end P_Defining_Identifier; ----------------------------- -- 3.2.1 Type Declaration -- ----------------------------- -- TYPE_DECLARATION ::= -- FULL_TYPE_DECLARATION -- | INCOMPLETE_TYPE_DECLARATION -- | PRIVATE_TYPE_DECLARATION -- | PRIVATE_EXTENSION_DECLARATION -- FULL_TYPE_DECLARATION ::= -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART] is TYPE_DEFINITION; -- | CONCURRENT_TYPE_DECLARATION -- INCOMPLETE_TYPE_DECLARATION ::= -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]; -- PRIVATE_TYPE_DECLARATION ::= -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] -- is [abstract] [tagged] [limited] private; -- PRIVATE_EXTENSION_DECLARATION ::= -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is -- [abstract] new ancestor_SUBTYPE_INDICATION with private; -- TYPE_DEFINITION ::= -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION -- | DERIVED_TYPE_DEFINITION -- INTEGER_TYPE_DEFINITION ::= -- SIGNED_INTEGER_TYPE_DEFINITION -- MODULAR_TYPE_DEFINITION -- Error recovery: can raise Error_Resync -- Note: The processing for full type declaration, incomplete type -- declaration, private type declaration and type definition is -- included in this function. The processing for concurrent type -- declarations is NOT here, but rather in chapter 9 (i.e. this -- function handles only declarations starting with TYPE). function P_Type_Declaration return Node_Id is Type_Loc : Source_Ptr; Type_Start_Col : Column_Number; Ident_Node : Node_Id; Decl_Node : Node_Id; Discr_List : List_Id; Unknown_Dis : Boolean; Discr_Sloc : Source_Ptr; Abstract_Present : Boolean; Abstract_Loc : Source_Ptr; End_Labl : Node_Id; Typedef_Node : Node_Id; -- Normally holds type definition, except in the case of a private -- extension declaration, in which case it holds the declaration itself begin Type_Loc := Token_Ptr; Type_Start_Col := Start_Column; T_Type; Ident_Node := P_Defining_Identifier; Discr_Sloc := Token_Ptr; if P_Unknown_Discriminant_Part_Opt then Unknown_Dis := True; Discr_List := No_List; else Unknown_Dis := False; Discr_List := P_Known_Discriminant_Part_Opt; end if; -- Incomplete type declaration. We complete the processing for this -- case here and return the resulting incomplete type declaration node if Token = Tok_Semicolon then Scan; -- past ; Decl_Node := New_Node (N_Incomplete_Type_Declaration, Type_Loc); Set_Defining_Identifier (Decl_Node, Ident_Node); Set_Unknown_Discriminants_Present (Decl_Node, Unknown_Dis); Set_Discriminant_Specifications (Decl_Node, Discr_List); return Decl_Node; else Decl_Node := Empty; end if; -- Full type declaration or private type declaration, must have IS if Token = Tok_Equal then TF_Is; Scan; -- past = used in place of IS elsif Token = Tok_Renames then Error_Msg_SC ("RENAMES should be IS"); Scan; -- past RENAMES used in place of IS else TF_Is; end if; -- First an error check, if we have two identifiers in a row, a likely -- possibility is that the first of the identifiers is an incorrectly -- spelled keyword. if Token = Tok_Identifier then declare SS : Saved_Scan_State; I2 : Boolean; begin Save_Scan_State (SS); Scan; -- past initial identifier I2 := (Token = Tok_Identifier); Restore_Scan_State (SS); if I2 and then (Bad_Spelling_Of (Tok_Abstract) or else Bad_Spelling_Of (Tok_Access) or else Bad_Spelling_Of (Tok_Aliased) or else Bad_Spelling_Of (Tok_Constant)) then null; end if; end; end if; -- Check for misuse of Ada 95 keyword abstract in Ada 83 mode if Token_Name = Name_Abstract then Check_95_Keyword (Tok_Abstract, Tok_Tagged); Check_95_Keyword (Tok_Abstract, Tok_New); end if; -- Check cases of misuse of ABSTRACT if Token = Tok_Abstract then Abstract_Present := True; Abstract_Loc := Token_Ptr; Scan; -- past ABSTRACT if Token = Tok_Limited or else Token = Tok_Private or else Token = Tok_Record or else Token = Tok_Null then Error_Msg_AP ("TAGGED expected"); end if; else Abstract_Present := False; Abstract_Loc := No_Location; end if; -- Check for misuse of Ada 95 keyword Tagged if Token_Name = Name_Tagged then Check_95_Keyword (Tok_Tagged, Tok_Private); Check_95_Keyword (Tok_Tagged, Tok_Limited); Check_95_Keyword (Tok_Tagged, Tok_Record); end if; -- Special check for misuse of Aliased if Token = Tok_Aliased or else Token_Name = Name_Aliased then Error_Msg_SC ("ALIASED not allowed in type definition"); Scan; -- past ALIASED end if; -- The following procesing deals with either a private type declaration -- or a full type declaration. In the private type case, we build the -- N_Private_Type_Declaration node, setting its Tagged_Present and -- Limited_Present flags, on encountering the Private keyword, and -- leave Typedef_Node set to Empty. For the full type declaration -- case, Typedef_Node gets set to the type definition. Typedef_Node := Empty; -- Switch on token following the IS. The loop normally runs once. It -- only runs more than once if an error is detected, to try again after -- detecting and fixing up the error. loop case Token is when Tok_Access => Typedef_Node := P_Access_Type_Definition; TF_Semicolon; exit; when Tok_Array => Typedef_Node := P_Array_Type_Definition; TF_Semicolon; exit; when Tok_Delta => Typedef_Node := P_Fixed_Point_Definition; TF_Semicolon; exit; when Tok_Digits => Typedef_Node := P_Floating_Point_Definition; TF_Semicolon; exit; when Tok_In => Ignore (Tok_In); when Tok_Integer_Literal => T_Range; Typedef_Node := P_Signed_Integer_Type_Definition; TF_Semicolon; exit; when Tok_Null => Typedef_Node := P_Record_Definition; TF_Semicolon; exit; when Tok_Left_Paren => Typedef_Node := P_Enumeration_Type_Definition; TF_Semicolon; exit; when Tok_Mod => Typedef_Node := P_Modular_Type_Definition; TF_Semicolon; exit; when Tok_New => Typedef_Node := P_Derived_Type_Def_Or_Private_Ext_Decl; TF_Semicolon; exit; when Tok_Range => Typedef_Node := P_Signed_Integer_Type_Definition; TF_Semicolon; exit; when Tok_Record => Typedef_Node := P_Record_Definition; End_Labl := Make_Identifier (Token_Ptr, Chars => Chars (Ident_Node)); Set_Comes_From_Source (End_Labl, False); Set_End_Label (Typedef_Node, End_Labl); TF_Semicolon; exit; when Tok_Tagged => Scan; -- past TAGGED if Token = Tok_Abstract then Error_Msg_SC ("ABSTRACT must come before TAGGED"); Abstract_Present := True; Abstract_Loc := Token_Ptr; Scan; -- past ABSTRACT end if; if Token = Tok_Limited then Scan; -- past LIMITED -- TAGGED LIMITED PRIVATE case if Token = Tok_Private then Decl_Node := New_Node (N_Private_Type_Declaration, Type_Loc); Set_Tagged_Present (Decl_Node, True); Set_Limited_Present (Decl_Node, True); Scan; -- past PRIVATE -- TAGGED LIMITED RECORD else Typedef_Node := P_Record_Definition; Set_Tagged_Present (Typedef_Node, True); Set_Limited_Present (Typedef_Node, True); end if; else -- TAGGED PRIVATE if Token = Tok_Private then Decl_Node := New_Node (N_Private_Type_Declaration, Type_Loc); Set_Tagged_Present (Decl_Node, True); Scan; -- past PRIVATE -- TAGGED RECORD else Typedef_Node := P_Record_Definition; Set_Tagged_Present (Typedef_Node, True); end if; end if; TF_Semicolon; exit; when Tok_Private => Decl_Node := New_Node (N_Private_Type_Declaration, Type_Loc); Scan; -- past PRIVATE TF_Semicolon; exit; when Tok_Limited => Scan; -- past LIMITED loop if Token = Tok_Tagged then Error_Msg_SC ("TAGGED must come before LIMITED"); Scan; -- past TAGGED elsif Token = Tok_Abstract then Error_Msg_SC ("ABSTRACT must come before LIMITED"); Scan; -- past ABSTRACT else exit; end if; end loop; -- LIMITED RECORD or LIMITED NULL RECORD if Token = Tok_Record or else Token = Tok_Null then if Ada_83 then Error_Msg_SP ("(Ada 83) limited record declaration not allowed!"); end if; Typedef_Node := P_Record_Definition; Set_Limited_Present (Typedef_Node, True); -- LIMITED PRIVATE is the only remaining possibility here else Decl_Node := New_Node (N_Private_Type_Declaration, Type_Loc); Set_Limited_Present (Decl_Node, True); T_Private; -- past PRIVATE (or complain if not there!) end if; TF_Semicolon; exit; -- Here we have an identifier after the IS, which is certainly -- wrong and which might be one of several different mistakes. when Tok_Identifier => -- First case, if identifier is on same line, then probably we -- have something like "type X is Integer .." and the best -- diagnosis is a missing NEW. Note: the missing new message -- will be posted by P_Derived_Type_Def_Or_Private_Ext_Decl. if not Token_Is_At_Start_Of_Line then Typedef_Node := P_Derived_Type_Def_Or_Private_Ext_Decl; TF_Semicolon; -- If the identifier is at the start of the line, and is in the -- same column as the type declaration itself then we consider -- that we had a missing type definition on the previous line elsif Start_Column <= Type_Start_Col then Error_Msg_AP ("type definition expected"); Typedef_Node := Error; -- If the identifier is at the start of the line, and is in -- a column to the right of the type declaration line, then we -- may have something like: -- type x is -- r : integer -- and the best diagnosis is a missing record keyword else Typedef_Node := P_Record_Definition; TF_Semicolon; end if; exit; -- Anything else is an error when others => if Bad_Spelling_Of (Tok_Access) or else Bad_Spelling_Of (Tok_Array) or else Bad_Spelling_Of (Tok_Delta) or else Bad_Spelling_Of (Tok_Digits) or else Bad_Spelling_Of (Tok_Limited) or else Bad_Spelling_Of (Tok_Private) or else Bad_Spelling_Of (Tok_Range) or else Bad_Spelling_Of (Tok_Record) or else Bad_Spelling_Of (Tok_Tagged) then null; else Error_Msg_AP ("type definition expected"); raise Error_Resync; end if; end case; end loop; -- For the private type declaration case, the private type declaration -- node has been built, with the Tagged_Present and Limited_Present -- flags set as needed, and Typedef_Node is left set to Empty. if No (Typedef_Node) then Set_Unknown_Discriminants_Present (Decl_Node, Unknown_Dis); Set_Abstract_Present (Decl_Node, Abstract_Present); -- For a private extension declaration, Typedef_Node contains the -- N_Private_Extension_Declaration node, which we now complete. Note -- that the private extension declaration, unlike a full type -- declaration, does permit unknown discriminants. elsif Nkind (Typedef_Node) = N_Private_Extension_Declaration then Decl_Node := Typedef_Node; Set_Sloc (Decl_Node, Type_Loc); Set_Unknown_Discriminants_Present (Decl_Node, Unknown_Dis); Set_Abstract_Present (Typedef_Node, Abstract_Present); -- In the full type declaration case, Typedef_Node has the type -- definition and here is where we build the full type declaration -- node. This is also where we check for improper use of an unknown -- discriminant part (not allowed for full type declaration). else if Nkind (Typedef_Node) = N_Record_Definition or else (Nkind (Typedef_Node) = N_Derived_Type_Definition and then Present (Record_Extension_Part (Typedef_Node))) then Set_Abstract_Present (Typedef_Node, Abstract_Present); elsif Abstract_Present then Error_Msg ("ABSTRACT not allowed here, ignored", Abstract_Loc); end if; Decl_Node := New_Node (N_Full_Type_Declaration, Type_Loc); Set_Type_Definition (Decl_Node, Typedef_Node); if Unknown_Dis then Error_Msg ("Full type declaration cannot have unknown discriminants", Discr_Sloc); end if; end if; -- Remaining processing is common for all three cases Set_Defining_Identifier (Decl_Node, Ident_Node); Set_Discriminant_Specifications (Decl_Node, Discr_List); return Decl_Node; end P_Type_Declaration; ---------------------------------- -- 3.2.1 Full Type Declaration -- ---------------------------------- -- Parsed by P_Type_Declaration (3.2.1) ---------------------------- -- 3.2.1 Type Definition -- ---------------------------- -- Parsed by P_Type_Declaration (3.2.1) -------------------------------- -- 3.2.2 Subtype Declaration -- -------------------------------- -- SUBTYPE_DECLARATION ::= -- subtype DEFINING_IDENTIFIER is SUBTYPE_INDICATION; -- The caller has checked that the initial token is SUBTYPE -- Error recovery: can raise Error_Resync function P_Subtype_Declaration return Node_Id is Decl_Node : Node_Id; begin Decl_Node := New_Node (N_Subtype_Declaration, Token_Ptr); Scan; -- past SUBTYPE Set_Defining_Identifier (Decl_Node, P_Defining_Identifier); TF_Is; if Token = Tok_New then Error_Msg_SC ("NEW ignored (only allowed in type declaration)"); Scan; -- past NEW end if; Set_Subtype_Indication (Decl_Node, P_Subtype_Indication); TF_Semicolon; return Decl_Node; end P_Subtype_Declaration; ------------------------------- -- 3.2.2 Subtype Indication -- ------------------------------- -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT] -- Error recovery: can raise Error_Resync function P_Subtype_Indication return Node_Id is Type_Node : Node_Id; begin if Token = Tok_Identifier or else Token = Tok_Operator_Symbol then Type_Node := P_Subtype_Mark; return P_Subtype_Indication (Type_Node); else -- Check for error of using record definition and treat it nicely, -- otherwise things are really messed up, so resynchronize. if Token = Tok_Record then Error_Msg_SC ("anonymous record definitions are not permitted"); Discard_Junk_Node (P_Record_Definition); return Error; else Error_Msg_AP ("subtype indication expected"); raise Error_Resync; end if; end if; end P_Subtype_Indication; -- The following function is identical except that it is called with -- the subtype mark already scanned out, and it scans out the constraint -- Error recovery: can raise Error_Resync function P_Subtype_Indication (Subtype_Mark : Node_Id) return Node_Id is Indic_Node : Node_Id; Constr_Node : Node_Id; begin Constr_Node := P_Constraint_Opt; if No (Constr_Node) then return Subtype_Mark; else Indic_Node := New_Node (N_Subtype_Indication, Sloc (Subtype_Mark)); Set_Subtype_Mark (Indic_Node, Check_Subtype_Mark (Subtype_Mark)); Set_Constraint (Indic_Node, Constr_Node); return Indic_Node; end if; end P_Subtype_Indication; ------------------------- -- 3.2.2 Subtype Mark -- ------------------------- -- SUBTYPE_MARK ::= subtype_NAME; -- Note: The subtype mark which appears after an IN or NOT IN -- operator is parsed by P_Range_Or_Subtype_Mark (3.5) -- Error recovery: cannot raise Error_Resync function P_Subtype_Mark return Node_Id is begin return P_Subtype_Mark_Resync; exception when Error_Resync => return Error; end P_Subtype_Mark; -- This routine differs from P_Subtype_Mark in that it insists that an -- identifier be present, and if it is not, it raises Error_Resync. -- Error recovery: can raise Error_Resync function P_Subtype_Mark_Resync return Node_Id is Type_Node : Node_Id; begin if Token = Tok_Access then Error_Msg_SC ("anonymous access type definition not allowed here"); Scan; -- past ACCESS end if; if Token = Tok_Array then Error_Msg_SC ("anonymous array definition not allowed here"); Discard_Junk_Node (P_Array_Type_Definition); return Error; else Type_Node := P_Qualified_Simple_Name_Resync; -- Check for a subtype mark attribute. The only valid possibilities -- are 'CLASS and 'BASE. Anything else is a definite error. We may -- as well catch it here. if Token = Tok_Apostrophe then return P_Subtype_Mark_Attribute (Type_Node); else return Type_Node; end if; end if; end P_Subtype_Mark_Resync; -- The following function is called to scan out a subtype mark attribute. -- The caller has already scanned out the subtype mark, which is passed in -- as the argument, and has checked that the current token is apostrophe. -- Only a special subclass of attributes, called type attributes -- (see Snames package) are allowed in this syntactic position. -- Note: if the apostrophe is followed by other than an identifier, then -- the input expression is returned unchanged, and the scan pointer is -- left pointing to the apostrophe. -- Error recovery: can raise Error_Resync function P_Subtype_Mark_Attribute (Type_Node : Node_Id) return Node_Id is Attr_Node : Node_Id := Empty; Scan_State : Saved_Scan_State; Prefix : Node_Id; begin Prefix := Check_Subtype_Mark (Type_Node); if Prefix = Error then raise Error_Resync; end if; -- Loop through attributes appearing (more than one can appear as for -- for example in X'Base'Class). We are at an apostrophe on entry to -- this loop, and it runs once for each attribute parsed, with -- Prefix being the current possible prefix if it is an attribute. loop Save_Scan_State (Scan_State); -- at Apostrophe Scan; -- past apostrophe if Token /= Tok_Identifier then Restore_Scan_State (Scan_State); -- to apostrophe return Prefix; -- no attribute after all elsif not Is_Type_Attribute_Name (Token_Name) then Error_Msg_N ("attribute & may not be used in a subtype mark", Token_Node); raise Error_Resync; else Attr_Node := Make_Attribute_Reference (Prev_Token_Ptr, Prefix => Prefix, Attribute_Name => Token_Name); Delete_Node (Token_Node); Scan; -- past type attribute identifier end if; exit when Token /= Tok_Apostrophe; Prefix := Attr_Node; end loop; -- Fall through here after scanning type attribute return Attr_Node; end P_Subtype_Mark_Attribute; ----------------------- -- 3.2.2 Constraint -- ----------------------- -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT -- SCALAR_CONSTRAINT ::= -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT -- COMPOSITE_CONSTRAINT ::= -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT -- If no constraint is present, this function returns Empty -- Error recovery: can raise Error_Resync function P_Constraint_Opt return Node_Id is begin if Token = Tok_Range or else Bad_Spelling_Of (Tok_Range) then return P_Range_Constraint; elsif Token = Tok_Digits or else Bad_Spelling_Of (Tok_Digits) then return P_Digits_Constraint; elsif Token = Tok_Delta or else Bad_Spelling_Of (Tok_Delta) then return P_Delta_Constraint; elsif Token = Tok_Left_Paren then return P_Index_Or_Discriminant_Constraint; elsif Token = Tok_In then Ignore (Tok_In); return P_Constraint_Opt; else return Empty; end if; end P_Constraint_Opt; ------------------------------ -- 3.2.2 Scalar Constraint -- ------------------------------ -- Parsed by P_Constraint_Opt (3.2.2) --------------------------------- -- 3.2.2 Composite Constraint -- --------------------------------- -- Parsed by P_Constraint_Opt (3.2.2) -------------------------------------------------------- -- 3.3 Identifier Declarations (Also 7.4, 8.5, 11.1) -- -------------------------------------------------------- -- This routine scans out a declaration starting with an identifier: -- OBJECT_DECLARATION ::= -- DEFINING_IDENTIFIER_LIST : [constant] [aliased] -- SUBTYPE_INDICATION [:= EXPRESSION]; -- | DEFINING_IDENTIFIER_LIST : [constant] [aliased] -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]; -- NUMBER_DECLARATION ::= -- DEFINING_IDENTIFIER_LIST : constant ::= static_EXPRESSION; -- OBJECT_RENAMING_DECLARATION ::= -- DEFINING_IDENTIFIER : SUBTYPE_MARK renames object_NAME; -- EXCEPTION_RENAMING_DECLARATION ::= -- DEFINING_IDENTIFIER : exception renames exception_NAME; -- EXCEPTION_DECLARATION ::= -- DEFINING_IDENTIFIER_LIST : exception; -- Note that the ALIASED indication in an object declaration is -- marked by a flag in the parent node. -- The caller has checked that the initial token is an identifier -- The value returned is a list of declarations, one for each identifier -- in the list (as described in Sinfo, we always split up multiple -- declarations into the equivalent sequence of single declarations -- using the More_Ids and Prev_Ids flags to preserve the source). -- If the identifier turns out to be a probable statement rather than -- an identifier, then the scan is left pointing to the identifier and -- No_List is returned. -- Error recovery: can raise Error_Resync procedure P_Identifier_Declarations (Decls : List_Id; Done : out Boolean; In_Spec : Boolean) is Decl_Node : Node_Id; Type_Node : Node_Id; Ident_Sloc : Source_Ptr; Scan_State : Saved_Scan_State; List_OK : Boolean := True; Ident : Nat; Init_Expr : Node_Id; Init_Loc : Source_Ptr; Con_Loc : Source_Ptr; Idents : array (Int range 1 .. 4096) of Entity_Id; -- Used to save identifiers in the identifier list. The upper bound -- of 4096 is expected to be infinite in practice, and we do not even -- bother to check if this upper bound is exceeded. Num_Idents : Nat := 1; -- Number of identifiers stored in Idents procedure No_List; -- This procedure is called in renames cases to make sure that we do -- not have more than one identifier. If we do have more than one -- then an error message is issued (and the declaration is split into -- multiple declarations) function Token_Is_Renames return Boolean; -- Checks if current token is RENAMES, and if so, scans past it and -- returns True, otherwise returns False. Includes checking for some -- common error cases. procedure No_List is begin if Num_Idents > 1 then Error_Msg ("identifier list not allowed for RENAMES", Sloc (Idents (2))); end if; List_OK := False; end No_List; function Token_Is_Renames return Boolean is At_Colon : Saved_Scan_State; begin if Token = Tok_Colon then Save_Scan_State (At_Colon); Scan; -- past colon Check_Misspelling_Of (Tok_Renames); if Token = Tok_Renames then Error_Msg_SP ("extra "":"" ignored"); Scan; -- past RENAMES return True; else Restore_Scan_State (At_Colon); return False; end if; else Check_Misspelling_Of (Tok_Renames); if Token = Tok_Renames then Scan; -- past RENAMES return True; else return False; end if; end if; end Token_Is_Renames; -- Start of processing for P_Identifier_Declarations begin Ident_Sloc := Token_Ptr; Save_Scan_State (Scan_State); -- at first identifier Idents (1) := P_Defining_Identifier; -- If we have a colon after the identifier, then we can assume that -- this is in fact a valid identifier declaration and can steam ahead. if Token = Tok_Colon then Scan; -- past colon -- If we have a comma, then scan out the list of identifiers elsif Token = Tok_Comma then while Comma_Present loop Num_Idents := Num_Idents + 1; Idents (Num_Idents) := P_Defining_Identifier; end loop; Save_Scan_State (Scan_State); -- at colon T_Colon; -- If we have identifier followed by := then we assume that what is -- really meant is an assignment statement. The assignment statement -- is scanned out and added to the list of declarations. An exception -- occurs if the := is followed by the keyword constant, in which case -- we assume it was meant to be a colon. elsif Token = Tok_Colon_Equal then Scan; -- past := if Token = Tok_Constant then Error_Msg_SP ("colon expected"); else Restore_Scan_State (Scan_State); Statement_When_Declaration_Expected (Decls, Done, In_Spec); return; end if; -- If we have an IS keyword, then assume the TYPE keyword was missing elsif Token = Tok_Is then Restore_Scan_State (Scan_State); Append_To (Decls, P_Type_Declaration); Done := False; return; -- Otherwise we have an error situation else Restore_Scan_State (Scan_State); -- First case is possible misuse of PROTECTED in Ada 83 mode. If -- so, fix the keyword and return to scan the protected declaration. if Token_Name = Name_Protected then Check_95_Keyword (Tok_Protected, Tok_Identifier); Check_95_Keyword (Tok_Protected, Tok_Type); Check_95_Keyword (Tok_Protected, Tok_Body); if Token = Tok_Protected then Done := False; return; end if; -- Check misspelling possibilities. If so, correct the misspelling -- and return to scan out the resulting declaration. elsif Bad_Spelling_Of (Tok_Function) or else Bad_Spelling_Of (Tok_Procedure) or else Bad_Spelling_Of (Tok_Package) or else Bad_Spelling_Of (Tok_Pragma) or else Bad_Spelling_Of (Tok_Protected) or else Bad_Spelling_Of (Tok_Generic) or else Bad_Spelling_Of (Tok_Subtype) or else Bad_Spelling_Of (Tok_Type) or else Bad_Spelling_Of (Tok_Task) or else Bad_Spelling_Of (Tok_Use) or else Bad_Spelling_Of (Tok_For) then Done := False; return; -- Otherwise we definitely have an ordinary identifier with a junk -- token after it. Just complain that we expect a declaration, and -- skip to a semicolon else Set_Declaration_Expected; Resync_Past_Semicolon; Done := False; return; end if; end if; -- Come here with an identifier list and colon scanned out. We now -- build the nodes for the declarative items. One node is built for -- each identifier in the list, with the type information being -- repeated by rescanning the appropriate section of source. -- First an error check, if we have two identifiers in a row, a likely -- possibility is that the first of the identifiers is an incorrectly -- spelled keyword. if Token = Tok_Identifier then declare SS : Saved_Scan_State; I2 : Boolean; begin Save_Scan_State (SS); Scan; -- past initial identifier I2 := (Token = Tok_Identifier); Restore_Scan_State (SS); if I2 and then (Bad_Spelling_Of (Tok_Access) or else Bad_Spelling_Of (Tok_Aliased) or else Bad_Spelling_Of (Tok_Constant)) then null; end if; end; end if; -- Loop through identifiers Ident := 1; Ident_Loop : loop -- Check for some cases of misused Ada 95 keywords if Token_Name = Name_Aliased then Check_95_Keyword (Tok_Aliased, Tok_Array); Check_95_Keyword (Tok_Aliased, Tok_Identifier); Check_95_Keyword (Tok_Aliased, Tok_Constant); end if; -- Constant cases if Token = Tok_Constant then Con_Loc := Token_Ptr; Scan; -- past CONSTANT -- Number declaration, initialization required Init_Expr := Init_Expr_Opt; if Present (Init_Expr) then Decl_Node := New_Node (N_Number_Declaration, Ident_Sloc); Set_Expression (Decl_Node, Init_Expr); -- Constant object declaration else Decl_Node := New_Node (N_Object_Declaration, Ident_Sloc); Set_Constant_Present (Decl_Node, True); if Token_Name = Name_Aliased then Check_95_Keyword (Tok_Aliased, Tok_Array); Check_95_Keyword (Tok_Aliased, Tok_Identifier); end if; if Token = Tok_Aliased then Error_Msg_SC ("ALIASED should be before CONSTANT"); Scan; -- past ALIASED Set_Aliased_Present (Decl_Node, True); end if; if Token = Tok_Array then Set_Object_Definition (Decl_Node, P_Array_Type_Definition); else Set_Object_Definition (Decl_Node, P_Subtype_Indication); end if; if Token = Tok_Renames then Error_Msg ("CONSTANT not permitted in renaming declaration", Con_Loc); Scan; -- Past renames Discard_Junk_Node (P_Name); end if; end if; -- Exception cases elsif Token = Tok_Exception then Scan; -- past EXCEPTION if Token_Is_Renames then No_List; Decl_Node := New_Node (N_Exception_Renaming_Declaration, Ident_Sloc); Set_Name (Decl_Node, P_Qualified_Simple_Name_Resync); No_Constraint; else Decl_Node := New_Node (N_Exception_Declaration, Prev_Token_Ptr); end if; -- Aliased case (note that an object definition is required) elsif Token = Tok_Aliased then Scan; -- past ALIASED Decl_Node := New_Node (N_Object_Declaration, Ident_Sloc); Set_Aliased_Present (Decl_Node, True); if Token = Tok_Constant then Scan; -- past CONSTANT Set_Constant_Present (Decl_Node, True); end if; if Token = Tok_Array then Set_Object_Definition (Decl_Node, P_Array_Type_Definition); else Set_Object_Definition (Decl_Node, P_Subtype_Indication); end if; -- Array case elsif Token = Tok_Array then Decl_Node := New_Node (N_Object_Declaration, Ident_Sloc); Set_Object_Definition (Decl_Node, P_Array_Type_Definition); -- Subtype indication case else Type_Node := P_Subtype_Mark; -- Object renaming declaration if Token_Is_Renames then No_List; Decl_Node := New_Node (N_Object_Renaming_Declaration, Ident_Sloc); Set_Subtype_Mark (Decl_Node, Type_Node); Set_Name (Decl_Node, P_Name); -- Object declaration else Decl_Node := New_Node (N_Object_Declaration, Ident_Sloc); Set_Object_Definition (Decl_Node, P_Subtype_Indication (Type_Node)); -- RENAMES at this point means that we had the combination of -- a constraint on the Type_Node and renames, which is illegal if Token_Is_Renames then Error_Msg_N ("constraint not allowed in object renaming declaration", Constraint (Object_Definition (Decl_Node))); raise Error_Resync; end if; end if; end if; -- Scan out initialization, allowed only for object declaration Init_Loc := Token_Ptr; Init_Expr := Init_Expr_Opt; if Present (Init_Expr) then if Nkind (Decl_Node) = N_Object_Declaration then Set_Expression (Decl_Node, Init_Expr); else Error_Msg ("initialization not allowed here", Init_Loc); end if; end if; TF_Semicolon; Set_Defining_Identifier (Decl_Node, Idents (Ident)); if List_OK then if Ident < Num_Idents then Set_More_Ids (Decl_Node, True); end if; if Ident > 1 then Set_Prev_Ids (Decl_Node, True); end if; end if; Append (Decl_Node, Decls); exit Ident_Loop when Ident = Num_Idents; Restore_Scan_State (Scan_State); T_Colon; Ident := Ident + 1; end loop Ident_Loop; Done := False; end P_Identifier_Declarations; ------------------------------- -- 3.3.1 Object Declaration -- ------------------------------- -- OBJECT DECLARATION ::= -- DEFINING_IDENTIFIER_LIST : [aliased] [constant] -- SUBTYPE_INDICATION [:= EXPRESSION]; -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant] -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]; -- | SINGLE_TASK_DECLARATION -- | SINGLE_PROTECTED_DECLARATION -- Cases starting with TASK are parsed by P_Task (9.1) -- Cases starting with PROTECTED are parsed by P_Protected (9.4) -- All other cases are parsed by P_Identifier_Declarations (3.3) ------------------------------------- -- 3.3.1 Defining Identifier List -- ------------------------------------- -- DEFINING_IDENTIFIER_LIST ::= -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER} -- Always parsed by the construct in which it appears. See special -- section on "Handling of Defining Identifier Lists" in this unit. ------------------------------- -- 3.3.2 Number Declaration -- ------------------------------- -- Parsed by P_Identifier_Declarations (3.3) ------------------------------------------------------------------------- -- 3.4 Derived Type Definition or Private Extension Declaration (7.3) -- ------------------------------------------------------------------------- -- DERIVED_TYPE_DEFINITION ::= -- [abstract] new parent_SUBTYPE_INDICATION [RECORD_EXTENSION_PART] -- PRIVATE_EXTENSION_DECLARATION ::= -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is -- [abstract] new ancestor_SUBTYPE_INDICATION with PRIVATE; -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION -- The caller has already scanned out the part up to the NEW, and Token -- either contains Tok_New (or ought to, if it doesn't this procedure -- will post an appropriate "NEW expected" message). -- Note: the caller is responsible for filling in the Sloc field of -- the returned node in the private extension declaration case as -- well as the stuff relating to the discriminant part. -- Error recovery: can raise Error_Resync; function P_Derived_Type_Def_Or_Private_Ext_Decl return Node_Id is Typedef_Node : Node_Id; Typedecl_Node : Node_Id; begin Typedef_Node := New_Node (N_Derived_Type_Definition, Token_Ptr); T_New; if Token = Tok_Abstract then Error_Msg_SC ("ABSTRACT must come before NEW, not after"); Scan; end if; Set_Subtype_Indication (Typedef_Node, P_Subtype_Indication); -- Deal with record extension, note that we assume that a WITH is -- missing in the case of "type X is new Y record ..." or in the -- case of "type X is new Y null record". if Token = Tok_With or else Token = Tok_Record or else Token = Tok_Null then T_With; -- past WITH or give error message if Token = Tok_Limited then Error_Msg_SC ("LIMITED keyword not allowed in private extension"); Scan; -- ignore LIMITED end if; -- Private extension declaration if Token = Tok_Private then Scan; -- past PRIVATE -- Throw away the type definition node and build the type -- declaration node. Note the caller must set the Sloc, -- Discriminant_Specifications, Unknown_Discriminants_Present, -- and Defined_Identifier fields in the returned node. Typedecl_Node := Make_Private_Extension_Declaration (No_Location, Defining_Identifier => Empty, Subtype_Indication => Subtype_Indication (Typedef_Node), Abstract_Present => Abstract_Present (Typedef_Node)); Delete_Node (Typedef_Node); return Typedecl_Node; -- Derived type definition with record extension part else Set_Record_Extension_Part (Typedef_Node, P_Record_Definition); return Typedef_Node; end if; -- Derived type definition with no record extension part else return Typedef_Node; end if; end P_Derived_Type_Def_Or_Private_Ext_Decl; --------------------------- -- 3.5 Range Constraint -- --------------------------- -- RANGE_CONSTRAINT ::= range RANGE -- The caller has checked that the initial token is RANGE -- Error recovery: cannot raise Error_Resync function P_Range_Constraint return Node_Id is Range_Node : Node_Id; begin Range_Node := New_Node (N_Range_Constraint, Token_Ptr); Scan; -- past RANGE Set_Range_Expression (Range_Node, P_Range); return Range_Node; end P_Range_Constraint; ---------------- -- 3.5 Range -- ---------------- -- RANGE ::= -- RANGE_ATTRIBUTE_REFERENCE | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION -- Note: the range that appears in a membership test is parsed by -- P_Range_Or_Subtype_Mark (3.5). -- Error recovery: cannot raise Error_Resync function P_Range return Node_Id is Expr_Node : Node_Id; Range_Node : Node_Id; begin Expr_Node := P_Simple_Expression_Or_Range_Attribute; if Expr_Form = EF_Range_Attr then return Expr_Node; elsif Token = Tok_Dot_Dot then Range_Node := New_Node (N_Range, Token_Ptr); Set_Low_Bound (Range_Node, Expr_Node); Scan; -- past .. Expr_Node := P_Expression; Check_Simple_Expression (Expr_Node); Set_High_Bound (Range_Node, Expr_Node); return Range_Node; -- Anything else is an error else T_Dot_Dot; -- force missing .. message return Error; end if; end P_Range; ---------------------------------- -- 3.5 P_Range_Or_Subtype_Mark -- ---------------------------------- -- RANGE ::= -- RANGE_ATTRIBUTE_REFERENCE -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION -- This routine scans out the range or subtype mark that forms the right -- operand of a membership test. -- Note: as documented in the Sinfo interface, although the syntax only -- allows a subtype mark, we in fact allow any simple expression to be -- returned from this routine. The semantics is responsible for issuing -- an appropriate message complaining if the argument is not a name. -- This simplifies the coding and error recovery processing in the -- parser, and in any case it is preferable not to consider this a -- syntax error and to continue with the semantic analysis. -- Error recovery: cannot raise Error_Resync function P_Range_Or_Subtype_Mark return Node_Id is Expr_Node : Node_Id; Range_Node : Node_Id; begin Expr_Node := P_Simple_Expression_Or_Range_Attribute; if Expr_Form = EF_Range_Attr then return Expr_Node; -- Simple_Expression .. Simple_Expression elsif Token = Tok_Dot_Dot then Check_Simple_Expression (Expr_Node); Range_Node := New_Node (N_Range, Token_Ptr); Set_Low_Bound (Range_Node, Expr_Node); Scan; -- past .. Set_High_Bound (Range_Node, P_Simple_Expression); return Range_Node; -- Case of subtype mark (optionally qualified simple name or an -- attribute whose prefix is an optionally qualifed simple name) elsif Expr_Form = EF_Simple_Name or else Nkind (Expr_Node) = N_Attribute_Reference then -- Check for error of range constraint after a subtype mark if Token = Tok_Range then Error_Msg_SC ("range constraint not allowed in membership test"); Scan; -- past RANGE raise Error_Resync; -- Check for error of DIGITS or DELTA after a subtype mark elsif Token = Tok_Digits or else Token = Tok_Delta then Error_Msg_SC ("accuracy definition not allowed in membership test"); Scan; -- past DIGITS or DELTA raise Error_Resync; elsif Token = Tok_Apostrophe then return P_Subtype_Mark_Attribute (Expr_Node); else return Expr_Node; end if; -- At this stage, we have some junk following the expression. We -- really can't tell what is wrong, might be a missing semicolon, -- or a missing THEN, or whatever. Our caller will figure it out! else return Expr_Node; end if; end P_Range_Or_Subtype_Mark; ---------------------------------------- -- 3.5.1 Enumeration Type Definition -- ---------------------------------------- -- ENUMERATION_TYPE_DEFINITION ::= -- (ENUMERATION_LITERAL_SPECIFICATION -- {, ENUMERATION_LITERAL_SPECIFICATION}) -- The caller has already scanned out the TYPE keyword -- Error recovery: can raise Error_Resync; function P_Enumeration_Type_Definition return Node_Id is Typedef_Node : Node_Id; begin Typedef_Node := New_Node (N_Enumeration_Type_Definition, Token_Ptr); Set_Literals (Typedef_Node, New_List); T_Left_Paren; loop Append (P_Enumeration_Literal_Specification, Literals (Typedef_Node)); exit when not Comma_Present; end loop; T_Right_Paren; return Typedef_Node; end P_Enumeration_Type_Definition; ---------------------------------------------- -- 3.5.1 Enumeration Literal Specification -- ---------------------------------------------- -- ENUMERATION_LITERAL_SPECIFICATION ::= -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL -- Error recovery: can raise Error_Resync function P_Enumeration_Literal_Specification return Node_Id is begin if Token = Tok_Char_Literal then return P_Defining_Character_Literal; else return P_Defining_Identifier; end if; end P_Enumeration_Literal_Specification; --------------------------------------- -- 3.5.1 Defining_Character_Literal -- --------------------------------------- -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL -- Error recovery: cannot raise Error_Resync -- The caller has checked that the current token is a character literal function P_Defining_Character_Literal return Node_Id is Literal_Node : Node_Id; begin Literal_Node := Token_Node; Change_Character_Literal_To_Defining_Character_Literal (Literal_Node); Scan; -- past character literal return Literal_Node; end P_Defining_Character_Literal; ------------------------------------ -- 3.5.4 Integer Type Definition -- ------------------------------------ -- Parsed by P_Type_Declaration (3.2.1) ------------------------------------------- -- 3.5.4 Signed Integer Type Definition -- ------------------------------------------- -- SIGNED_INTEGER_TYPE_DEFINITION ::= -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION -- Normally the initial token on entry is RANGE, but in some -- error conditions, the range token was missing and control is -- passed with Token pointing to first token of the first expression. -- Error recovery: cannot raise Error_Resync function P_Signed_Integer_Type_Definition return Node_Id is Typedef_Node : Node_Id; Expr_Node : Node_Id; begin Typedef_Node := New_Node (N_Signed_Integer_Type_Definition, Token_Ptr); if Token = Tok_Range then Scan; -- past RANGE end if; Expr_Node := P_Expression; Check_Simple_Expression (Expr_Node); Set_Low_Bound (Typedef_Node, Expr_Node); T_Dot_Dot; Expr_Node := P_Expression; Check_Simple_Expression (Expr_Node); Set_High_Bound (Typedef_Node, Expr_Node); return Typedef_Node; end P_Signed_Integer_Type_Definition; ------------------------------------ -- 3.5.4 Modular Type Definition -- ------------------------------------ -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION -- The caller has checked that the initial token is MOD -- Error recovery: cannot raise Error_Resync function P_Modular_Type_Definition return Node_Id is Typedef_Node : Node_Id; begin if Ada_83 then Error_Msg_SC ("(Ada 83): modular types not allowed"); end if; Typedef_Node := New_Node (N_Modular_Type_Definition, Token_Ptr); Scan; -- past MOD Set_Expression (Typedef_Node, P_Expression_No_Right_Paren); -- Handle mod L..R cleanly if Token = Tok_Dot_Dot then Error_Msg_SC ("range not allowed for modular type"); Scan; -- past .. Set_Expression (Typedef_Node, P_Expression_No_Right_Paren); end if; return Typedef_Node; end P_Modular_Type_Definition; --------------------------------- -- 3.5.6 Real Type Definition -- --------------------------------- -- Parsed by P_Type_Declaration (3.2.1) -------------------------------------- -- 3.5.7 Floating Point Definition -- -------------------------------------- -- FLOATING_POINT_DEFINITION ::= -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION] -- Note: In Ada-83, the EXPRESSION must be a SIMPLE_EXPRESSION -- The caller has checked that the initial token is DIGITS -- Error recovery: cannot raise Error_Resync function P_Floating_Point_Definition return Node_Id is Digits_Loc : constant Source_Ptr := Token_Ptr; Def_Node : Node_Id; Expr_Node : Node_Id; begin Scan; -- past DIGITS Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); -- Handle decimal fixed-point defn with DIGITS/DELTA in wrong order if Token = Tok_Delta then Error_Msg_SC ("DELTA must come before DIGITS"); Def_Node := New_Node (N_Decimal_Fixed_Point_Definition, Digits_Loc); Scan; -- past DELTA Set_Delta_Expression (Def_Node, P_Expression_No_Right_Paren); -- OK floating-point definition else Def_Node := New_Node (N_Floating_Point_Definition, Digits_Loc); end if; Set_Digits_Expression (Def_Node, Expr_Node); Set_Real_Range_Specification (Def_Node, P_Real_Range_Specification_Opt); return Def_Node; end P_Floating_Point_Definition; ------------------------------------- -- 3.5.7 Real Range Specification -- ------------------------------------- -- REAL_RANGE_SPECIFICATION ::= -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION -- Error recovery: cannot raise Error_Resync function P_Real_Range_Specification_Opt return Node_Id is Specification_Node : Node_Id; Expr_Node : Node_Id; begin if Token = Tok_Range then Specification_Node := New_Node (N_Real_Range_Specification, Token_Ptr); Scan; -- past RANGE Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression (Expr_Node); Set_Low_Bound (Specification_Node, Expr_Node); T_Dot_Dot; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression (Expr_Node); Set_High_Bound (Specification_Node, Expr_Node); return Specification_Node; else return Empty; end if; end P_Real_Range_Specification_Opt; ----------------------------------- -- 3.5.9 Fixed Point Definition -- ----------------------------------- -- FIXED_POINT_DEFINITION ::= -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION -- ORDINARY_FIXED_POINT_DEFINITION ::= -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION -- DECIMAL_FIXED_POINT_DEFINITION ::= -- delta static_EXPRESSION -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION] -- The caller has checked that the initial token is DELTA -- Error recovery: cannot raise Error_Resync function P_Fixed_Point_Definition return Node_Id is Delta_Node : Node_Id; Delta_Loc : Source_Ptr; Def_Node : Node_Id; Expr_Node : Node_Id; begin Delta_Loc := Token_Ptr; Scan; -- past DELTA Delta_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Delta_Node); if Token = Tok_Digits then if Ada_83 then Error_Msg_SC ("(Ada 83) decimal fixed type not allowed!"); end if; Def_Node := New_Node (N_Decimal_Fixed_Point_Definition, Delta_Loc); Scan; -- past DIGITS Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Digits_Expression (Def_Node, Expr_Node); else Def_Node := New_Node (N_Ordinary_Fixed_Point_Definition, Delta_Loc); -- Range is required in ordinary fixed point case if Token /= Tok_Range then Error_Msg_AP ("range must be given for fixed-point type"); T_Range; end if; end if; Set_Delta_Expression (Def_Node, Delta_Node); Set_Real_Range_Specification (Def_Node, P_Real_Range_Specification_Opt); return Def_Node; end P_Fixed_Point_Definition; -------------------------------------------- -- 3.5.9 Ordinary Fixed Point Definition -- -------------------------------------------- -- Parsed by P_Fixed_Point_Definition (3.5.9) ------------------------------------------- -- 3.5.9 Decimal Fixed Point Definition -- ------------------------------------------- -- Parsed by P_Decimal_Point_Definition (3.5.9) ------------------------------ -- 3.5.9 Digits Constraint -- ------------------------------ -- DIGITS_CONSTRAINT ::= -- digits static_EXPRESSION [RANGE_CONSTRAINT] -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION -- The caller has checked that the initial token is DIGITS function P_Digits_Constraint return Node_Id is Constraint_Node : Node_Id; Expr_Node : Node_Id; begin Constraint_Node := New_Node (N_Digits_Constraint, Token_Ptr); Scan; -- past DIGITS Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Digits_Expression (Constraint_Node, Expr_Node); if Token = Tok_Range then Set_Range_Constraint (Constraint_Node, P_Range_Constraint); end if; return Constraint_Node; end P_Digits_Constraint; ----------------------------- -- 3.5.9 Delta Constraint -- ----------------------------- -- DELTA CONSTRAINT ::= DELTA STATIC_EXPRESSION [RANGE_CONSTRAINT] -- Note: this is an obsolescent feature in Ada 95 (I.3) -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION -- The caller has checked that the initial token is DELTA -- Error recovery: cannot raise Error_Resync function P_Delta_Constraint return Node_Id is Constraint_Node : Node_Id; Expr_Node : Node_Id; begin Constraint_Node := New_Node (N_Delta_Constraint, Token_Ptr); Scan; -- past DELTA Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Delta_Expression (Constraint_Node, Expr_Node); if Token = Tok_Range then Set_Range_Constraint (Constraint_Node, P_Range_Constraint); end if; return Constraint_Node; end P_Delta_Constraint; -------------------------------- -- 3.6 Array Type Definition -- -------------------------------- -- ARRAY_TYPE_DEFINITION ::= -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION -- UNCONSTRAINED_ARRAY_DEFINITION ::= -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of -- COMPONENT_DEFINITION -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <> -- CONSTRAINED_ARRAY_DEFINITION ::= -- array (DISCRETE_SUBTYPE_DEFINITION {, DISCRETE_SUBTYPE_DEFINITION}) of -- COMPONENT_DEFINITION -- DISCRETE_SUBTYPE_DEFINITION ::= -- DISCRETE_SUBTYPE_INDICATION | RANGE -- COMPONENT_DEFINITION ::= [aliased] SUBTYPE_INDICATION -- The caller has checked that the initial token is ARRAY -- Error recovery: can raise Error_Resync function P_Array_Type_Definition return Node_Id is Array_Loc : Source_Ptr; Def_Node : Node_Id; Subs_List : List_Id; Scan_State : Saved_Scan_State; begin Array_Loc := Token_Ptr; Scan; -- past ARRAY Subs_List := New_List; T_Left_Paren; -- It's quite tricky to disentangle these two possibilities, so we do -- a prescan to determine which case we have and then reset the scan. -- The prescan skips past possible subtype mark tokens. Save_Scan_State (Scan_State); -- just after paren while Token in Token_Class_Desig or else Token = Tok_Dot or else Token = Tok_Apostrophe -- because of 'BASE, 'CLASS loop Scan; end loop; -- If we end up on RANGE <> then we have the unconstrained case. We -- will also allow the RANGE to be omitted, just to improve error -- handling for a case like array (integer <>) of integer; Scan; -- past possible RANGE or <> if (Prev_Token = Tok_Range and then Token = Tok_Box) or else Prev_Token = Tok_Box then Def_Node := New_Node (N_Unconstrained_Array_Definition, Array_Loc); Restore_Scan_State (Scan_State); -- to first subtype mark loop Append (P_Subtype_Mark_Resync, Subs_List); T_Range; T_Box; exit when Token = Tok_Right_Paren or else Token = Tok_Of; T_Comma; end loop; Set_Subtype_Marks (Def_Node, Subs_List); else Def_Node := New_Node (N_Constrained_Array_Definition, Array_Loc); Restore_Scan_State (Scan_State); -- to first discrete range loop Append (P_Discrete_Subtype_Definition, Subs_List); exit when not Comma_Present; end loop; Set_Discrete_Subtype_Definitions (Def_Node, Subs_List); end if; T_Right_Paren; T_Of; if Token = Tok_Aliased then Set_Aliased_Present (Def_Node, True); Scan; -- past ALIASED end if; Set_Subtype_Indication (Def_Node, P_Subtype_Indication); return Def_Node; end P_Array_Type_Definition; ----------------------------------------- -- 3.6 Unconstrained Array Definition -- ----------------------------------------- -- Parsed by P_Array_Type_Definition (3.6) --------------------------------------- -- 3.6 Constrained Array Definition -- --------------------------------------- -- Parsed by P_Array_Type_Definition (3.6) -------------------------------------- -- 3.6 Discrete Subtype Definition -- -------------------------------------- -- DISCRETE_SUBTYPE_DEFINITION ::= -- discrete_SUBTYPE_INDICATION | RANGE -- Note: the discrete subtype definition appearing in a constrained -- array definition is parsed by P_Array_Type_Definition (3.6) -- Error recovery: cannot raise Error_Resync function P_Discrete_Subtype_Definition return Node_Id is begin -- The syntax of a discrete subtype definition is identical to that -- of a discrete range, so we simply share the same parsing code. return P_Discrete_Range; end P_Discrete_Subtype_Definition; ------------------------------- -- 3.6 Component Definition -- ------------------------------- -- For the array case, parsed by P_Array_Type_Definition (3.6) -- For the record case, parsed by P_Component_Declaration (3.8) ----------------------------- -- 3.6.1 Index Constraint -- ----------------------------- -- Parsed by P_Index_Or_Discriminant_Constraint (3.7.1) --------------------------- -- 3.6.1 Discrete Range -- --------------------------- -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE -- The possible forms for a discrete range are: -- Subtype_Mark (SUBTYPE_INDICATION, 3.2.2) -- Subtype_Mark range Range (SUBTYPE_INDICATION, 3.2.2) -- Range_Attribute (RANGE, 3.5) -- Simple_Expression .. Simple_Expression (RANGE, 3.5) -- Error recovery: cannot raise Error_Resync function P_Discrete_Range return Node_Id is Expr_Node : Node_Id; Range_Node : Node_Id; begin Expr_Node := P_Simple_Expression_Or_Range_Attribute; if Expr_Form = EF_Range_Attr then return Expr_Node; elsif Token = Tok_Range then if Expr_Form /= EF_Simple_Name then Error_Msg_SC ("range must be preceded by subtype mark"); end if; return P_Subtype_Indication (Expr_Node); -- Check Expression .. Expression case elsif Token = Tok_Dot_Dot then Range_Node := New_Node (N_Range, Token_Ptr); Set_Low_Bound (Range_Node, Expr_Node); Scan; -- past .. Expr_Node := P_Expression; Check_Simple_Expression (Expr_Node); Set_High_Bound (Range_Node, Expr_Node); return Range_Node; -- Otherwise we must have a subtype mark elsif Expr_Form = EF_Simple_Name then return Expr_Node; -- If incorrect, complain that we expect .. else T_Dot_Dot; return Expr_Node; end if; end P_Discrete_Range; ---------------------------- -- 3.7 Discriminant Part -- ---------------------------- -- DISCRIMINANT_PART ::= -- UNKNOWN_DISCRIMINANT_PART -- | KNOWN_DISCRIMINANT_PART -- A discriminant part is parsed by P_Known_Discriminant_Part_Opt (3.7) -- or P_Unknown_Discriminant_Part (3.7), since we know which we want. ------------------------------------ -- 3.7 Unknown Discriminant Part -- ------------------------------------ -- UNKNOWN_DISCRIMINANT_PART ::= (<>) -- If no unknown discriminant part is present, then False is returned, -- otherwise the unknown discriminant is scanned out and True is returned. -- Error recovery: cannot raise Error_Resync function P_Unknown_Discriminant_Part_Opt return Boolean is Scan_State : Saved_Scan_State; begin if Token /= Tok_Left_Paren then return False; else Save_Scan_State (Scan_State); Scan; -- past the left paren if Token = Tok_Box then if Ada_83 then Error_Msg_SC ("(Ada 83) unknown discriminant not allowed!"); end if; Scan; -- past the box T_Right_Paren; -- must be followed by right paren return True; else Restore_Scan_State (Scan_State); return False; end if; end if; end P_Unknown_Discriminant_Part_Opt; ---------------------------------- -- 3.7 Known Discriminant Part -- ---------------------------------- -- KNOWN_DISCRIMINANT_PART ::= -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION}) -- DISCRIMINANT_SPECIFICATION ::= -- DEFINING_IDENTIFIER_LIST : SUBTYPE_MARK -- [:= DEFAULT_EXPRESSION] -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION -- [:= DEFAULT_EXPRESSION] -- If no known discriminant part is present, then No_List is returned -- Error recovery: cannot raise Error_Resync function P_Known_Discriminant_Part_Opt return List_Id is Specification_Node : Node_Id; Specification_List : List_Id; Ident_Sloc : Source_Ptr; Scan_State : Saved_Scan_State; Num_Idents : Nat; Ident : Nat; Idents : array (Int range 1 .. 4096) of Entity_Id; -- This array holds the list of defining identifiers. The upper bound -- of 4096 is intended to be essentially infinite, and we do not even -- bother to check for it being exceeded. begin if Token = Tok_Left_Paren then Specification_List := New_List; Scan; -- past ( P_Pragmas_Misplaced; Specification_Loop : loop Ident_Sloc := Token_Ptr; Idents (1) := P_Defining_Identifier; Num_Idents := 1; while Comma_Present loop Num_Idents := Num_Idents + 1; Idents (Num_Idents) := P_Defining_Identifier; end loop; T_Colon; -- If there are multiple identifiers, we repeatedly scan the -- type and initialization expression information by resetting -- the scan pointer (so that we get completely separate trees -- for each occurrence). if Num_Idents > 1 then Save_Scan_State (Scan_State); end if; -- Loop through defining identifiers in list Ident := 1; Ident_Loop : loop Specification_Node := New_Node (N_Discriminant_Specification, Ident_Sloc); Set_Defining_Identifier (Specification_Node, Idents (Ident)); if Token = Tok_Access then if Ada_83 then Error_Msg_SC ("(Ada 83) access discriminant not allowed!"); end if; Set_Discriminant_Type (Specification_Node, P_Access_Definition); else Set_Discriminant_Type (Specification_Node, P_Subtype_Mark); No_Constraint; end if; Set_Expression (Specification_Node, Init_Expr_Opt (True)); if Ident > 1 then Set_Prev_Ids (Specification_Node, True); end if; if Ident < Num_Idents then Set_More_Ids (Specification_Node, True); end if; Append (Specification_Node, Specification_List); exit Ident_Loop when Ident = Num_Idents; Ident := Ident + 1; Restore_Scan_State (Scan_State); end loop Ident_Loop; exit Specification_Loop when Token /= Tok_Semicolon; Scan; -- past ; P_Pragmas_Misplaced; end loop Specification_Loop; T_Right_Paren; return Specification_List; else return No_List; end if; end P_Known_Discriminant_Part_Opt; ------------------------------------- -- 3.7 DIscriminant Specification -- ------------------------------------- -- Parsed by P_Known_Discriminant_Part_Opt (3.7) ----------------------------- -- 3.7 Default Expression -- ----------------------------- -- Always parsed (simply as an Expression) by the parent construct ------------------------------------ -- 3.7.1 Discriminant Constraint -- ------------------------------------ -- Parsed by P_Index_Or_Discriminant_Constraint (3.7.1) -------------------------------------------------------- -- 3.7.1 Index or Discriminant Constraint (also 3.6) -- -------------------------------------------------------- -- DISCRIMINANT_CONSTRAINT ::= -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION}) -- DISCRIMINANT_ASSOCIATION ::= -- [discriminant_SELECTOR_NAME {| discriminant_SELECTOR_NAME} =>] -- EXPRESSION -- This routine parses either an index or a discriminant constraint. As -- is clear from the above grammar, it is often possible to clearly -- determine which of the two possibilities we have, but there are -- cases (those in which we have a series of expressions of the same -- syntactic form as subtype indications), where we cannot tell. Since -- this means that in any case the semantic phase has to distinguish -- between the two, there is not much point in the parser trying to -- distinguish even those cases where the difference is clear. In any -- case, if we have a situation like: -- (A => 123, 235 .. 500) -- it is not clear which of the two items is the wrong one, better to -- let the semantic phase give a clear message. Consequently, this -- routine in general returns a list of items which can be either -- discrete ranges or discriminant associations. -- The caller has checked that the initial token is a left paren -- Error recovery: can raise Error_Resync function P_Index_Or_Discriminant_Constraint return Node_Id is Scan_State : Saved_Scan_State; Constr_Node : Node_Id; Constr_List : List_Id; Expr_Node : Node_Id; Result_Node : Node_Id; begin Result_Node := New_Node (N_Index_Or_Discriminant_Constraint, Token_Ptr); Scan; -- past ( Constr_List := New_List; Set_Constraints (Result_Node, Constr_List); -- The two syntactic forms are a little mixed up, so what we are doing -- here is looking at the first entry to determine which case we have -- A discriminant constraint is a list of discriminant associations, -- which have one of the following possible forms: -- Expression -- Id => Expression -- Id | Id | .. | Id => Expression -- An index constraint is a list of discrete ranges which have one -- of the following possible forms: -- Subtype_Mark -- Subtype_Mark range Range -- Range_Attribute -- Simple_Expression .. Simple_Expression -- Loop through discriminants in list loop -- Check cases of Id => Expression or Id | Id => Expression if Token = Tok_Identifier then Save_Scan_State (Scan_State); -- at Id Scan; -- past Id if Token = Tok_Arrow or else Token = Tok_Vertical_Bar then Restore_Scan_State (Scan_State); -- to Id Append (P_Discriminant_Association, Constr_List); goto Loop_Continue; else Restore_Scan_State (Scan_State); -- to Id end if; end if; -- Otherwise scan out an expression and see what we have got Expr_Node := P_Expression_Or_Range_Attribute; if Expr_Form = EF_Range_Attr then Append (Expr_Node, Constr_List); elsif Token = Tok_Range then if Expr_Form /= EF_Simple_Name then Error_Msg_SC ("subtype mark required before RANGE"); end if; Append (P_Subtype_Indication (Expr_Node), Constr_List); goto Loop_Continue; -- Check Simple_Expression .. Simple_Expression case elsif Token = Tok_Dot_Dot then Check_Simple_Expression (Expr_Node); Constr_Node := New_Node (N_Range, Token_Ptr); Set_Low_Bound (Constr_Node, Expr_Node); Scan; -- past .. Expr_Node := P_Expression; Check_Simple_Expression (Expr_Node); Set_High_Bound (Constr_Node, Expr_Node); Append (Constr_Node, Constr_List); goto Loop_Continue; -- Case of an expression which could be either form else Append (Expr_Node, Constr_List); goto Loop_Continue; end if; -- Here with a single entry scanned <<Loop_Continue>> exit when not Comma_Present; end loop; T_Right_Paren; return Result_Node; end P_Index_Or_Discriminant_Constraint; ------------------------------------- -- 3.7.1 Discriminant Association -- ------------------------------------- -- DISCRIMINANT_ASSOCIATION ::= -- [discriminant_SELECTOR_NAME {| discriminant_SELECTOR_NAME} =>] -- EXPRESSION -- This routine is used only when the name list is present and the caller -- has already checked this (by scanning ahead and repositioning the -- scan). -- Error_Recovery: cannot raise Error_Resync; function P_Discriminant_Association return Node_Id is Discr_Node : Node_Id; Names_List : List_Id; Ident_Sloc : Source_Ptr; begin Ident_Sloc := Token_Ptr; Names_List := New_List; loop Append (P_Identifier, Names_List); exit when Token /= Tok_Vertical_Bar; Scan; -- past | end loop; Discr_Node := New_Node (N_Discriminant_Association, Ident_Sloc); Set_Selector_Names (Discr_Node, Names_List); TF_Arrow; Set_Expression (Discr_Node, P_Expression); return Discr_Node; end P_Discriminant_Association; --------------------------------- -- 3.8 Record Type Definition -- --------------------------------- -- RECORD_TYPE_DEFINITION ::= -- [[abstract] tagged] [limited] RECORD_DEFINITION -- There is no node in the tree for a record type definition. Instead -- a record definition node appears, with possible Abstract_Present, -- Tagged_Present, and Limited_Present flags set appropriately. ---------------------------- -- 3.8 Record Definition -- ---------------------------- -- RECORD_DEFINITION ::= -- record -- COMPONENT_LIST -- end record -- | null record -- Note: in the case where a record definition node is used to represent -- a record type definition, the caller sets the Tagged_Present and -- Limited_Present flags in the resulting N_Record_Definition node as -- required. -- Note that the RECORD token at the start may be missing in certain -- error situations, so this function is expected to post the error -- Error recovery: can raise Error_Resync function P_Record_Definition return Node_Id is Rec_Node : Node_Id; begin Rec_Node := New_Node (N_Record_Definition, Token_Ptr); -- Null record case if Token = Tok_Null then Scan; -- past NULL T_Record; Set_Null_Present (Rec_Node, True); -- Case starting with RECORD keyword. Build scope stack entry. For the -- column, we use the first non-blank character on the line, to deal -- with situations such as: -- type X is record -- ... -- end record; -- which is not official RM indentation, but is not uncommon usage else Push_Scope_Stack; Scope.Table (Scope.Last).Etyp := E_Record; Scope.Table (Scope.Last).Ecol := Start_Column; Scope.Table (Scope.Last).Sloc := Token_Ptr; Scope.Table (Scope.Last).Labl := Error; Scope.Table (Scope.Last).Junk := (Token /= Tok_Record); T_Record; Set_Component_List (Rec_Node, P_Component_List); loop exit when Check_End; Discard_Junk_Node (P_Component_List); end loop; end if; return Rec_Node; end P_Record_Definition; ------------------------- -- 3.8 Component List -- ------------------------- -- COMPONENT_LIST ::= -- COMPONENT_ITEM {COMPONENT_ITEM} -- | {COMPONENT_ITEM} VARIANT_PART -- | null; -- Error recovery: cannot raise Error_Resync function P_Component_List return Node_Id is Component_List_Node : Node_Id; Decls_List : List_Id; Scan_State : Saved_Scan_State; begin Component_List_Node := New_Node (N_Component_List, Token_Ptr); Decls_List := New_List; if Token = Tok_Null then Scan; -- past NULL TF_Semicolon; P_Pragmas_Opt (Decls_List); Set_Null_Present (Component_List_Node, True); return Component_List_Node; else P_Pragmas_Opt (Decls_List); if Token /= Tok_Case then Component_Scan_Loop : loop P_Component_Items (Decls_List); P_Pragmas_Opt (Decls_List); exit Component_Scan_Loop when Token = Tok_End or else Token = Tok_Case or else Token = Tok_When; -- We are done if we do not have an identifier. However, if -- we have a misspelled reserved identifier that is in a column -- to the right of the record definition, we will treat it as -- an identifier. It turns out to be too dangerous in practice -- to accept such a mis-spelled identifier which does not have -- this additional clue that confirms the incorrect spelling. if Token /= Tok_Identifier then if Start_Column > Scope.Table (Scope.Last).Ecol and then Is_Reserved_Identifier then Save_Scan_State (Scan_State); -- at reserved id Scan; -- possible reserved id if Token = Tok_Comma or else Token = Tok_Colon then Restore_Scan_State (Scan_State); Scan_Reserved_Identifier (Force_Msg => True); -- Note reserved identifier used as field name after -- all because not followed by colon or comma else Restore_Scan_State (Scan_State); exit Component_Scan_Loop; end if; -- Non-identifier that definitely was not reserved id else exit Component_Scan_Loop; end if; end if; end loop Component_Scan_Loop; end if; if Token = Tok_Case then Set_Variant_Part (Component_List_Node, P_Variant_Part); -- Check for junk after variant part if Token = Tok_Identifier then Save_Scan_State (Scan_State); Scan; -- past identifier if Token = Tok_Colon then Restore_Scan_State (Scan_State); Error_Msg_SC ("component may not follow variant part"); Discard_Junk_Node (P_Component_List); elsif Token = Tok_Case then Restore_Scan_State (Scan_State); Error_Msg_SC ("only one variant part allowed in a record"); Discard_Junk_Node (P_Component_List); else Restore_Scan_State (Scan_State); end if; end if; end if; end if; Set_Component_Items (Component_List_Node, Decls_List); return Component_List_Node; end P_Component_List; ------------------------- -- 3.8 Component Item -- ------------------------- -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE -- COMPONENT_DECLARATION ::= -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION -- [:= DEFAULT_EXPRESSION]; -- COMPONENT_DEFINITION ::= [aliased] SUBTYPE_INDICATION -- Error recovery: cannot raise Error_Resync, if an error occurs, -- the scan is positioned past the following semicolon. -- Note: we do not yet allow representation clauses to appear as component -- items, do we need to add this capability sometime in the future ??? procedure P_Component_Items (Decls : List_Id) is Decl_Node : Node_Id; Scan_State : Saved_Scan_State; Num_Idents : Nat; Ident : Nat; Ident_Sloc : Source_Ptr; Idents : array (Int range 1 .. 4096) of Entity_Id; -- This array holds the list of defining identifiers. The upper bound -- of 4096 is intended to be essentially infinite, and we do not even -- bother to check for it being exceeded. begin if Token /= Tok_Identifier then Error_Msg_SC ("component declaration expected"); Resync_Past_Semicolon; return; end if; Ident_Sloc := Token_Ptr; Idents (1) := P_Defining_Identifier; Num_Idents := 1; while Comma_Present loop Num_Idents := Num_Idents + 1; Idents (Num_Idents) := P_Defining_Identifier; end loop; T_Colon; -- If there are multiple identifiers, we repeatedly scan the -- type and initialization expression information by resetting -- the scan pointer (so that we get completely separate trees -- for each occurrence). if Num_Idents > 1 then Save_Scan_State (Scan_State); end if; -- Loop through defining identifiers in list Ident := 1; Ident_Loop : loop -- The following block is present to catch Error_Resync -- which causes the parse to be reset past the semicolon begin Decl_Node := New_Node (N_Component_Declaration, Ident_Sloc); Set_Defining_Identifier (Decl_Node, Idents (Ident)); if Token = Tok_Constant then Error_Msg_SC ("constant components are not permitted"); Scan; end if; if Token_Name = Name_Aliased then Check_95_Keyword (Tok_Aliased, Tok_Identifier); end if; if Token = Tok_Aliased then Scan; -- past ALIASED Set_Aliased_Present (Decl_Node, True); end if; if Token = Tok_Array then Error_Msg_SC ("anonymous arrays not allowed as components"); raise Error_Resync; end if; Set_Subtype_Indication (Decl_Node, P_Subtype_Indication); Set_Expression (Decl_Node, Init_Expr_Opt); if Ident > 1 then Set_Prev_Ids (Decl_Node, True); end if; if Ident < Num_Idents then Set_More_Ids (Decl_Node, True); end if; Append (Decl_Node, Decls); exception when Error_Resync => if Token /= Tok_End then Resync_Past_Semicolon; end if; end; exit Ident_Loop when Ident = Num_Idents; Ident := Ident + 1; Restore_Scan_State (Scan_State); end loop Ident_Loop; TF_Semicolon; end P_Component_Items; -------------------------------- -- 3.8 Component Declaration -- -------------------------------- -- Parsed by P_Component_Items (3.8) ------------------------- -- 3.8.1 Variant Part -- ------------------------- -- VARIANT_PART ::= -- case discriminant_DIRECT_NAME is -- VARIANT -- {VARIANT} -- end case; -- The caller has checked that the initial token is CASE -- Error recovery: cannot raise Error_Resync function P_Variant_Part return Node_Id is Variant_Part_Node : Node_Id; Variants_List : List_Id; Case_Node : Node_Id; Case_Sloc : Source_Ptr; begin Variant_Part_Node := New_Node (N_Variant_Part, Token_Ptr); Push_Scope_Stack; Scope.Table (Scope.Last).Etyp := E_Case; Scope.Table (Scope.Last).Sloc := Token_Ptr; Scope.Table (Scope.Last).Ecol := Start_Column; Scan; -- past CASE Case_Node := P_Expression; Case_Sloc := Token_Ptr; Set_Name (Variant_Part_Node, Case_Node); if Nkind (Case_Node) /= N_Identifier then Set_Name (Variant_Part_Node, Error); Error_Msg ("discriminant name expected", Sloc (Case_Node)); end if; TF_Is; Variants_List := New_List; P_Pragmas_Opt (Variants_List); -- Test missing variant if Token = Tok_End then Error_Msg_BC ("WHEN expected (must have at least one variant)"); else Append (P_Variant, Variants_List); end if; -- Loop through variants, note that we allow if in place of when, -- this error will be detected and handled in P_Variant. loop P_Pragmas_Opt (Variants_List); if Token /= Tok_When and then Token /= Tok_If and then Token /= Tok_Others then exit when Check_End; end if; Append (P_Variant, Variants_List); end loop; Set_Variants (Variant_Part_Node, Variants_List); return Variant_Part_Node; end P_Variant_Part; -------------------- -- 3.8.1 Variant -- -------------------- -- VARIANT ::= -- when DISCRETE_CHOICE_LIST => -- COMPONENT_LIST -- Error recovery: cannot raise Error_Resync -- The initial token on entry is either WHEN, IF or OTHERS function P_Variant return Node_Id is Variant_Node : Node_Id; begin -- Special check to recover nicely from use of IF in place of WHEN if Token = Tok_If then T_When; Scan; -- past IF else T_When; end if; Variant_Node := New_Node (N_Variant, Prev_Token_Ptr); Set_Discrete_Choices (Variant_Node, P_Discrete_Choice_List); TF_Arrow; Set_Component_List (Variant_Node, P_Component_List); return Variant_Node; end P_Variant; --------------------------------- -- 3.8.1 Discrete Choice List -- --------------------------------- -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE} -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others -- Note: in Ada 83, the expression must be a simple expression -- Error recovery: cannot raise Error_Resync function P_Discrete_Choice_List return List_Id is Choices : List_Id; Expr_Node : Node_Id; Choice_Node : Node_Id; begin Choices := New_List; loop if Token = Tok_Others then Append (New_Node (N_Others_Choice, Token_Ptr), Choices); Scan; -- past OTHERS else begin Expr_Node := No_Right_Paren (P_Expression_Or_Range_Attribute); if Token = Tok_Colon and then Nkind (Expr_Node) = N_Identifier then Error_Msg_SP ("label not permitted in this context"); Scan; -- past colon elsif Expr_Form = EF_Range_Attr then Append (Expr_Node, Choices); elsif Token = Tok_Dot_Dot then Check_Simple_Expression (Expr_Node); Choice_Node := New_Node (N_Range, Token_Ptr); Set_Low_Bound (Choice_Node, Expr_Node); Scan; -- past .. Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression (Expr_Node); Set_High_Bound (Choice_Node, Expr_Node); Append (Choice_Node, Choices); elsif Expr_Form = EF_Simple_Name then if Token = Tok_Range then Append (P_Subtype_Indication (Expr_Node), Choices); elsif Token in Token_Class_Consk then Error_Msg_SC ("the only constraint allowed here " & "is a range constraint"); Discard_Junk_Node (P_Constraint_Opt); Append (Expr_Node, Choices); else Append (Expr_Node, Choices); end if; else Check_Simple_Expression_In_Ada_83 (Expr_Node); Append (Expr_Node, Choices); end if; exception when Error_Resync => Resync_Choice; return Error_List; end; end if; if Token = Tok_Comma then Error_Msg_SC (""","" should be ""|"""); else exit when Token /= Tok_Vertical_Bar; end if; Scan; -- past | or comma end loop; return Choices; end P_Discrete_Choice_List; ---------------------------- -- 3.8.1 Discrete Choice -- ---------------------------- -- Parsed by P_Discrete_Choice_List (3.8.1) ---------------------------------- -- 3.9.1 Record Extension Part -- ---------------------------------- -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION -- Parsed by P_Derived_Type_Def_Or_Private_Ext_Decl (3.4) ---------------------------------- -- 3.10 Access Type Definition -- ---------------------------------- -- ACCESS_TYPE_DEFINITION ::= -- ACCESS_TO_OBJECT_DEFINITION -- | ACCESS_TO_SUBPROGRAM_DEFINITION -- ACCESS_TO_OBJECT_DEFINITION ::= -- access [GENERAL_ACCESS_MODIFIER] SUBTYPE_INDICATION -- GENERAL_ACCESS_MODIFIER ::= all | constant -- ACCESS_TO_SUBPROGRAM_DEFINITION -- access [protected] procedure PARAMETER_PROFILE -- | access [protected] function PARAMETER_AND_RESULT_PROFILE -- PARAMETER_PROFILE ::= [FORMAL_PART] -- PARAMETER_AND_RESULT_PROFILE ::= [FORMAL_PART] RETURN SUBTYPE_MARK -- The caller has checked that the initial token is ACCESS -- Error recovery: can raise Error_Resync function P_Access_Type_Definition return Node_Id is Prot_Flag : Boolean; Access_Loc : Source_Ptr; Type_Def_Node : Node_Id; procedure Check_Junk_Subprogram_Name; -- Used in access to subprogram definition cases to check for an -- identifier or operator symbol that does not belong. procedure Check_Junk_Subprogram_Name is Saved_State : Saved_Scan_State; begin if Token = Tok_Identifier or else Token = Tok_Operator_Symbol then Save_Scan_State (Saved_State); Scan; -- past possible junk subprogram name if Token = Tok_Left_Paren or else Token = Tok_Semicolon then Error_Msg_SP ("unexpected subprogram name ignored"); return; else Restore_Scan_State (Saved_State); end if; end if; end Check_Junk_Subprogram_Name; -- Start of processing for P_Access_Type_Definition begin Access_Loc := Token_Ptr; Scan; -- past ACCESS if Token_Name = Name_Protected then Check_95_Keyword (Tok_Protected, Tok_Procedure); Check_95_Keyword (Tok_Protected, Tok_Function); end if; Prot_Flag := (Token = Tok_Protected); if Prot_Flag then Scan; -- past PROTECTED if Token /= Tok_Procedure and then Token /= Tok_Function then Error_Msg_SC ("FUNCTION or PROCEDURE expected"); end if; end if; if Token = Tok_Procedure then if Ada_83 then Error_Msg_SC ("(Ada 83) access to procedure not allowed!"); end if; Type_Def_Node := New_Node (N_Access_Procedure_Definition, Access_Loc); Scan; -- past PROCEDURE Check_Junk_Subprogram_Name; Set_Parameter_Specifications (Type_Def_Node, P_Parameter_Profile); Set_Protected_Present (Type_Def_Node, Prot_Flag); elsif Token = Tok_Function then if Ada_83 then Error_Msg_SC ("(Ada 83) access to function not allowed!"); end if; Type_Def_Node := New_Node (N_Access_Function_Definition, Access_Loc); Scan; -- past FUNCTION Check_Junk_Subprogram_Name; Set_Parameter_Specifications (Type_Def_Node, P_Parameter_Profile); Set_Protected_Present (Type_Def_Node, Prot_Flag); TF_Return; Set_Subtype_Mark (Type_Def_Node, P_Subtype_Mark); No_Constraint; else Type_Def_Node := New_Node (N_Access_To_Object_Definition, Access_Loc); if Token = Tok_All or else Token = Tok_Constant then if Ada_83 then Error_Msg_SC ("(Ada 83) access modifier not allowed!"); end if; if Token = Tok_All then Set_All_Present (Type_Def_Node, True); else Set_Constant_Present (Type_Def_Node, True); end if; Scan; -- past ALL or CONSTANT end if; Set_Subtype_Indication (Type_Def_Node, P_Subtype_Indication); end if; return Type_Def_Node; end P_Access_Type_Definition; --------------------------------------- -- 3.10 Access To Object Definition -- --------------------------------------- -- Parsed by P_Access_Type_Definition (3.10) ----------------------------------- -- 3.10 General Access Modifier -- ----------------------------------- -- Parsed by P_Access_Type_Definition (3.10) ------------------------------------------- -- 3.10 Access To Subprogram Definition -- ------------------------------------------- -- Parsed by P_Access_Type_Definition (3.10) ----------------------------- -- 3.10 Access Definition -- ----------------------------- -- ACCESS_DEFINITION ::= access SUBTYPE_MARK -- The caller has checked that the initial token is ACCESS -- Error recovery: cannot raise Error_Resync function P_Access_Definition return Node_Id is Def_Node : Node_Id; begin Def_Node := New_Node (N_Access_Definition, Token_Ptr); Scan; -- past ACCESS Set_Subtype_Mark (Def_Node, P_Subtype_Mark); No_Constraint; return Def_Node; end P_Access_Definition; ----------------------------------------- -- 3.10.1 Incomplete Type Declaration -- ----------------------------------------- -- Parsed by P_Type_Declaration (3.2.1) ---------------------------- -- 3.11 Declarative Part -- ---------------------------- -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM} -- Error recovery: cannot raise Error_Resync (because P_Declarative_Items -- handles errors, and returns cleanly after an error has occurred) function P_Declarative_Part return List_Id is Decls : List_Id; Done : Boolean; begin -- Indicate no bad declarations detected yet. This will be reset by -- P_Declarative_Items if a bad declaration is discovered. Missing_Begin_Msg := No_Error_Msg; -- Get rid of active SIS entry from outer scope. This means we will -- miss some nested cases, but it doesn't seem worth the effort. See -- discussion in Par for further details SIS_Entry_Active := False; Decls := New_List; -- Loop to scan out the declarations loop P_Declarative_Items (Decls, Done, In_Spec => False); exit when Done; end loop; -- Get rid of active SIS entry which is left set only if we scanned a -- procedure declaration and have not found the body. We could give -- an error message, but that really would be usurping the role of -- semantic analysis (this really is a missing body case). SIS_Entry_Active := False; return Decls; end P_Declarative_Part; ---------------------------- -- 3.11 Declarative Item -- ---------------------------- -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY -- Can return Error if a junk declaration is found, or Empty if no -- declaration is found (i.e. a token ending declarations, such as -- BEGIN or END is encountered). -- Error recovery: cannot raise Error_Resync. If an error resync occurs, -- then the scan is set past the next semicolon and Error is returned. procedure P_Declarative_Items (Decls : List_Id; Done : out Boolean; In_Spec : Boolean) is Scan_State : Saved_Scan_State; begin if Style_Check then Style.Check_Indentation; end if; case Token is when Tok_Function => Check_Bad_Layout; Append (P_Subprogram (Pf_Decl_Gins_Pbod_Rnam_Stub), Decls); Done := False; when Tok_For => Check_Bad_Layout; -- Check for loop (premature statement) Save_Scan_State (Scan_State); Scan; -- past FOR if Token = Tok_Identifier then Scan; -- past identifier if Token = Tok_In then Restore_Scan_State (Scan_State); Statement_When_Declaration_Expected (Decls, Done, In_Spec); return; end if; end if; -- Not a loop, so must be rep clause Restore_Scan_State (Scan_State); Append (P_Representation_Clause, Decls); Done := False; when Tok_Generic => Check_Bad_Layout; Append (P_Generic, Decls); Done := False; when Tok_Identifier => Check_Bad_Layout; P_Identifier_Declarations (Decls, Done, In_Spec); when Tok_Package => Check_Bad_Layout; Append (P_Package (Pf_Decl_Gins_Pbod_Rnam_Stub), Decls); Done := False; when Tok_Pragma => Append (P_Pragma, Decls); Done := False; when Tok_Procedure => Check_Bad_Layout; Append (P_Subprogram (Pf_Decl_Gins_Pbod_Rnam_Stub), Decls); Done := False; when Tok_Protected => Check_Bad_Layout; Scan; -- past PROTECTED Append (P_Protected, Decls); Done := False; when Tok_Subtype => Check_Bad_Layout; Append (P_Subtype_Declaration, Decls); Done := False; when Tok_Task => Check_Bad_Layout; Scan; -- past TASK Append (P_Task, Decls); Done := False; when Tok_Type => Check_Bad_Layout; Append (P_Type_Declaration, Decls); Done := False; when Tok_Use => Check_Bad_Layout; Append (P_Use_Clause, Decls); Done := False; when Tok_With => Check_Bad_Layout; Error_Msg_SC ("WITH can only appear in context clause"); raise Error_Resync; -- BEGIN terminates the scan of a sequence of declarations unless -- there is a missing subprogram body, see section on handling -- semicolon in place of IS. We only treat the begin as satisfying -- the subprogram declaration if it falls in the expected column -- or to its right. when Tok_Begin => if SIS_Entry_Active and then Start_Column >= SIS_Ecol then -- Here we have the case where a BEGIN is encountered during -- declarations in a declarative part, or at the outer level, -- and there is a subprogram declaration outstanding for which -- no body has been supplied. This is the case where we assume -- that the semicolon in the subprogram declaration should -- really have been is. The active SIS entry describes the -- subprogram declaration. On return the declaration has been -- modified to become a body. declare Specification_Node : Node_Id; Decl_Node : Node_Id; Body_Node : Node_Id; begin -- First issue the error message. If we had a missing -- semicolon in the declaration, then change the message -- to <missing "is"> if SIS_Missing_Semicolon_Message /= No_Error_Msg then Change_Error_Text -- Replace: "missing "";"" " (SIS_Missing_Semicolon_Message, "missing ""is"""); -- Otherwise we saved the semicolon position, so complain else Error_Msg (""";"" should be IS", SIS_Semicolon_Sloc); end if; -- The next job is to fix up any declarations that occurred -- between the procedure header and the BEGIN. These got -- chained to the outer declarative region (immediately -- after the procedure declaration) and they should be -- chained to the subprogram itself, which is a body -- rather than a spec. Specification_Node := Specification (SIS_Declaration_Node); Change_Node (SIS_Declaration_Node, N_Subprogram_Body); Body_Node := SIS_Declaration_Node; Set_Specification (Body_Node, Specification_Node); Set_Declarations (Body_Node, New_List); loop Decl_Node := Remove_Next (Body_Node); exit when Decl_Node = Empty; Append (Decl_Node, Declarations (Body_Node)); end loop; -- Now make the scope table entry for the Begin-End and -- scan it out Push_Scope_Stack; Scope.Table (Scope.Last).Sloc := SIS_Sloc; Scope.Table (Scope.Last).Etyp := E_Name; Scope.Table (Scope.Last).Ecol := SIS_Ecol; Scope.Table (Scope.Last).Labl := SIS_Labl; Scope.Table (Scope.Last).Lreq := False; SIS_Entry_Active := False; Scan; -- past BEGIN Set_Handled_Statement_Sequence (Body_Node, P_Handled_Sequence_Of_Statements); End_Statements (Handled_Statement_Sequence (Body_Node)); end; Done := False; else Done := True; end if; -- Normally an END terminates the scan for basic declarative -- items. The one exception is END RECORD, which is probably -- left over from some other junk. when Tok_End => Save_Scan_State (Scan_State); -- at END Scan; -- past END if Token = Tok_Record then Error_Msg_SP ("no RECORD for this `end record`!"); Scan; -- past RECORD TF_Semicolon; else Restore_Scan_State (Scan_State); -- to END Done := True; end if; -- The following tokens which can only be the start of a statement -- are considered to end a declarative part (i.e. we have a missing -- BEGIN situation). We are fairly conservative in making this -- judgment, because it is a real mess to go into statement mode -- prematurely in response to a junk declaration. when Tok_Abort | Tok_Accept | Tok_Declare | Tok_Delay | Tok_Exit | Tok_Goto | Tok_If | Tok_Loop | Tok_Null | Tok_Requeue | Tok_Select | Tok_While => -- But before we decide that it's a statement, let's check for -- a reserved word misused as an identifier. if Is_Reserved_Identifier then Save_Scan_State (Scan_State); Scan; -- past the token -- If reserved identifier not followed by colon or comma, then -- this is most likely an assignment statement to the bad id. if Token /= Tok_Colon and then Token /= Tok_Comma then Restore_Scan_State (Scan_State); Statement_When_Declaration_Expected (Decls, Done, In_Spec); return; -- Otherwise we have a declaration of the bad id else Restore_Scan_State (Scan_State); Scan_Reserved_Identifier (Force_Msg => True); P_Identifier_Declarations (Decls, Done, In_Spec); end if; -- If not reserved identifier, then it's definitely a statement else Statement_When_Declaration_Expected (Decls, Done, In_Spec); return; end if; -- The token RETURN may well also signal a missing BEGIN situation, -- however, we never let it end the declarative part, because it may -- also be part of a half-baked function declaration. when Tok_Return => Error_Msg_SC ("misplaced RETURN statement"); raise Error_Resync; -- PRIVATE definitely terminates the declarations in a spec, -- and is an error in a body. when Tok_Private => if In_Spec then Done := True; else Error_Msg_SC ("PRIVATE not allowed in body"); Scan; -- past PRIVATE end if; -- An end of file definitely terminates the declarations! when Tok_EOF => Done := True; -- The remaining tokens do not end the scan, but cannot start a -- valid declaration, so we signal an error and resynchronize. -- But first check for misuse of a reserved identifier. when others => -- Here we check for a reserved identifier if Is_Reserved_Identifier then Save_Scan_State (Scan_State); Scan; -- past the token if Token /= Tok_Colon and then Token /= Tok_Comma then Restore_Scan_State (Scan_State); Set_Declaration_Expected; raise Error_Resync; else Restore_Scan_State (Scan_State); Scan_Reserved_Identifier (Force_Msg => True); Check_Bad_Layout; P_Identifier_Declarations (Decls, Done, In_Spec); end if; else Set_Declaration_Expected; raise Error_Resync; end if; end case; -- To resynchronize after an error, we scan to the next semicolon and -- return with Done = False, indicating that there may still be more -- valid declarations to come. exception when Error_Resync => Resync_Past_Semicolon; Done := False; end P_Declarative_Items; ---------------------------------- -- 3.11 Basic Declarative Item -- ---------------------------------- -- BASIC_DECLARATIVE_ITEM ::= -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE -- Scan zero or more basic declarative items -- Error recovery: cannot raise Error_Resync. If an error is detected, then -- the scan pointer is repositioned past the next semicolon, and the scan -- for declarative items continues. function P_Basic_Declarative_Items return List_Id is Decl : Node_Id; Decls : List_Id; Kind : Node_Kind; Done : Boolean; begin -- Get rid of active SIS entry from outer scope. This means we will -- miss some nested cases, but it doesn't seem worth the effort. See -- discussion in Par for further details SIS_Entry_Active := False; -- Loop to scan out declarations Decls := New_List; loop P_Declarative_Items (Decls, Done, In_Spec => True); exit when Done; end loop; -- Get rid of active SIS entry. This is set only if we have scanned a -- procedure declaration and have not found the body. We could give -- an error message, but that really would be usurping the role of -- semantic analysis (this really is a case of a missing body). SIS_Entry_Active := False; -- Test for assorted illegal declarations not diagnosed elsewhere. Decl := First (Decls); while Present (Decl) loop Kind := Nkind (Decl); -- Test for body scanned, not acceptable as basic decl item if Kind = N_Subprogram_Body or else Kind = N_Package_Body or else Kind = N_Task_Body or else Kind = N_Protected_Body then Error_Msg ("proper body not allowed in package spec", Sloc (Decl)); -- Test for body stub scanned, not acceptable as basic decl item elsif Kind in N_Body_Stub then Error_Msg ("body stub not allowed in package spec", Sloc (Decl)); elsif Kind = N_Assignment_Statement then Error_Msg ("assignment statement not allowed in package spec", Sloc (Decl)); end if; Next (Decl); end loop; return Decls; end P_Basic_Declarative_Items; ---------------- -- 3.11 Body -- ---------------- -- For proper body, see below -- For body stub, see 10.1.3 ----------------------- -- 3.11 Proper Body -- ----------------------- -- Subprogram body is parsed by P_Subprogram (6.1) -- Package body is parsed by P_Package (7.1) -- Task body is parsed by P_Task (9.1) -- Protected body is parsed by P_Protected (9.4) ------------------------------ -- Set_Declaration_Expected -- ------------------------------ procedure Set_Declaration_Expected is begin Error_Msg_SC ("declaration expected"); if Missing_Begin_Msg = No_Error_Msg then Missing_Begin_Msg := Get_Msg_Id; end if; end Set_Declaration_Expected; ---------------------- -- Skip_Declaration -- ---------------------- procedure Skip_Declaration (S : List_Id) is Dummy_Done : Boolean; begin P_Declarative_Items (S, Dummy_Done, False); end Skip_Declaration; ----------------------------------------- -- Statement_When_Declaration_Expected -- ----------------------------------------- procedure Statement_When_Declaration_Expected (Decls : List_Id; Done : out Boolean; In_Spec : Boolean) is begin -- Case of second occurrence of statement in one declaration sequence if Missing_Begin_Msg /= No_Error_Msg then -- In the procedure spec case, just ignore it, we only give one -- message for the first occurrence, since otherwise we may get -- horrible cascading if BODY was missing in the header line. if In_Spec then null; -- In the declarative part case, take a second statement as a sure -- sign that we really have a missing BEGIN, and end the declarative -- part now. Note that the caller will fix up the first message to -- say "missing BEGIN" so that's how the error will be signalled. else Done := True; return; end if; -- Case of first occurrence of unexpected statement else -- If we are in a package spec, then give message of statement -- not allowed in package spec. This message never gets changed. if In_Spec then Error_Msg_SC ("statement not allowed in package spec"); -- If in declarative part, then we give the message complaining -- about finding a statement when a declaration is expected. This -- gets changed to a complaint about a missing BEGIN if we later -- find that no BEGIN is present. else Error_Msg_SC ("statement not allowed in declarative part"); end if; -- Capture message Id. This is used for two purposes, first to -- stop multiple messages, see test above, and second, to allow -- the replacement of the message in the declarative part case. Missing_Begin_Msg := Get_Msg_Id; end if; -- In all cases except the case in which we decided to terminate the -- declaration sequence on a second error, we scan out the statement -- and append it to the list of declarations (note that the semantics -- can handle statements in a declaration list so if we proceed to -- call the semantic phase, all will be (reasonably) well! Append_List_To (Decls, P_Sequence_Of_Statements (SS_Unco)); -- Done is set to False, since we want to continue the scan of -- declarations, hoping that this statement was a temporary glitch. -- If we indeed are now in the statement part (i.e. this was a missing -- BEGIN, then it's not terrible, we will simply keep calling this -- procedure to process the statements one by one, and then finally -- hit the missing BEGIN, which will clean up the error message. Done := False; end Statement_When_Declaration_Expected; end Ch3;
32.836779
79
0.580165
2324119721d2e11965fb0c8192d0529b37e92728
13,836
adb
Ada
src/shared/generic/lsc-internal-ec_signature.adb
Componolit/libsparkcrypto
8531a07b6e9f5eb33eae0fa32759b4cbd3509d95
[ "OpenSSL", "Unlicense" ]
30
2018-05-18T09:11:50.000Z
2021-05-18T16:29:14.000Z
src/shared/generic/lsc-internal-ec_signature.adb
Componolit/libsparkcrypto
8531a07b6e9f5eb33eae0fa32759b4cbd3509d95
[ "OpenSSL", "Unlicense" ]
15
2018-12-13T07:53:36.000Z
2019-09-24T19:43:35.000Z
src/shared/generic/lsc-internal-ec_signature.adb
Componolit/libsparkcrypto
8531a07b6e9f5eb33eae0fa32759b4cbd3509d95
[ "OpenSSL", "Unlicense" ]
3
2019-04-04T17:41:29.000Z
2021-05-07T22:28:46.000Z
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2012, Stefan Berghofer -- Copyright (C) 2012, secunet Security Networks AG -- 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 author 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. ------------------------------------------------------------------------------- package body LSC.Internal.EC_Signature is pragma Warnings (Off, """V"" may be referenced before it has a value"); procedure Extract (X : in Bignum.Big_Int; X_First : in Natural; X_Last : in Natural; Z : in Bignum.Big_Int; Z_First : in Natural; V : out Bignum.Big_Int; V_First : in Natural; M : in Bignum.Big_Int; M_First : in Natural; M_Inv : in Types.Word32; RM : in Bignum.Big_Int; RM_First : in Natural; N : in Bignum.Big_Int; N_First : in Natural; N_Inv : in Types.Word32; RN : in Bignum.Big_Int; RN_First : in Natural) with Depends => (V =>+ (V_First, X, X_First, X_Last, Z, Z_First, M, M_First, M_Inv, RM, RM_First, N, N_First, N_Inv, RN, RN_First)), Pre => X_First in X'Range and then X_Last in X'Range and then X_First < X_Last and then X_Last - X_First < EC.Max_Coord_Length and then Z_First in Z'Range and then Z_First + (X_Last - X_First) in Z'Range and then V_First in V'Range and then V_First + (X_Last - X_First) in V'Range and then M_First in M'Range and then M_First + (X_Last - X_First) in M'Range and then RM_First in RM'Range and then RM_First + (X_Last - X_First) in RM'Range and then N_First in N'Range and then N_First + (X_Last - X_First) in N'Range and then RN_First in RN'Range and then RN_First + (X_Last - X_First) in RN'Range and then Bignum.Num_Of_Big_Int (X, X_First, X_Last - X_First + 1) < Bignum.Num_Of_Big_Int (M, M_First, X_Last - X_First + 1) and then Bignum.Num_Of_Big_Int (Z, Z_First, X_Last - X_First + 1) < Bignum.Num_Of_Big_Int (M, M_First, X_Last - X_First + 1) and then Math_Int.From_Word32 (1) < Bignum.Num_Of_Big_Int (M, M_First, X_Last - X_First + 1) and then 1 + M_Inv * M (M_First) = 0 and then Math_Int.From_Word32 (1) < Bignum.Num_Of_Big_Int (N, N_First, X_Last - X_First + 1) and then 1 + N_Inv * N (N_First) = 0 and then Bignum.Num_Of_Big_Int (RM, RM_First, X_Last - X_First + 1) = Bignum.Base ** (Math_Int.From_Integer (2) * Math_Int.From_Integer (X_Last - X_First + 1)) mod Bignum.Num_Of_Big_Int (M, M_First, X_Last - X_First + 1) and then Bignum.Num_Of_Big_Int (RN, RN_First, X_Last - X_First + 1) = Bignum.Base ** (Math_Int.From_Integer (2) * Math_Int.From_Integer (X_Last - X_First + 1)) mod Bignum.Num_Of_Big_Int (N, N_First, X_Last - X_First + 1), Post => Bignum.Num_Of_Big_Int (V, V_First, X_Last - X_First + 1) < Bignum.Num_Of_Big_Int (N, N_First, X_Last - X_First + 1); procedure Extract (X : in Bignum.Big_Int; X_First : in Natural; X_Last : in Natural; Z : in Bignum.Big_Int; Z_First : in Natural; V : out Bignum.Big_Int; V_First : in Natural; M : in Bignum.Big_Int; M_First : in Natural; M_Inv : in Types.Word32; RM : in Bignum.Big_Int; RM_First : in Natural; N : in Bignum.Big_Int; N_First : in Natural; N_Inv : in Types.Word32; RN : in Bignum.Big_Int; RN_First : in Natural) is L : Natural; H : EC.Coord; begin L := X_Last - X_First; EC.Invert (Z, Z_First, Z_First + L, H, H'First, RM, RM_First, M, M_First, M_Inv); Bignum.Mont_Mult (V, V_First, V_First + L, X, X_First, H, H'First, M, M_First, M_Inv); Bignum.Mont_Mult (H, H'First, H'First + L, V, V_First, EC.One, EC.One'First, N, N_First, N_Inv); Bignum.Mont_Mult (V, V_First, V_First + L, H, H'First, RN, RN_First, N, N_First, N_Inv); end Extract; pragma Warnings (On, """V"" may be referenced before it has a value"); ---------------------------------------------------------------------------- procedure Sign (Sign1 : out Bignum.Big_Int; Sign1_First : in Natural; Sign1_Last : in Natural; Sign2 : out Bignum.Big_Int; Sign2_First : in Natural; Hash : in Bignum.Big_Int; Hash_First : in Natural; Rand : in Bignum.Big_Int; Rand_First : in Natural; T : in Signature_Type; Priv : in Bignum.Big_Int; Priv_First : in Natural; BX : in Bignum.Big_Int; BX_First : in Natural; BY : in Bignum.Big_Int; BY_First : in Natural; A : in Bignum.Big_Int; A_First : in Natural; M : in Bignum.Big_Int; M_First : in Natural; M_Inv : in Types.Word32; RM : in Bignum.Big_Int; RM_First : in Natural; N : in Bignum.Big_Int; N_First : in Natural; N_Inv : in Types.Word32; RN : in Bignum.Big_Int; RN_First : in Natural; Success : out Boolean) is L : Natural; X, Y, Z, PrivR, H1, H2, H3 : EC.Coord; begin L := Sign1_Last - Sign1_First; Bignum.Mont_Mult (H1, H1'First, H1'First + L, Hash, Hash_First, EC.One, EC.One'First, N, N_First, N_Inv); Bignum.Mont_Mult (H3, H3'First, H3'First + L, H1, H1'First, RN, RN_First, N, N_First, N_Inv); pragma Warnings (Off, "unused assignment to ""Y"""); EC.Point_Mult (X1 => BX, X1_First => BX_First, X1_Last => BX_First + L, Y1 => BY, Y1_First => BY_First, Z1 => EC.One, Z1_First => EC.One'First, E => Rand, E_First => Rand_First, E_Last => Rand_First + L, X2 => X, X2_First => X'First, Y2 => Y, Y2_First => Y'First, Z2 => Z, Z2_First => Z'First, A => A, A_First => A_First, M => M, M_First => M_First, M_Inv => M_Inv); pragma Warnings (On, "unused assignment to ""Y"""); Extract (X, X'First, X'First + L, Z, Z'First, Sign1, Sign1_First, M, M_First, M_Inv, RM, RM_First, N, N_First, N_Inv, RN, RN_First); Bignum.Mont_Mult (PrivR, PrivR'First, PrivR'First + L, Priv, Priv_First, RN, RN_First, N, N_First, N_Inv); case T is when ECDSA => Bignum.Mont_Mult (H1, H1'First, H1'First + L, PrivR, PrivR'First, Sign1, Sign1_First, N, N_First, N_Inv); Bignum.Mod_Add_Inplace (H1, H1'First, H1'First + L, H3, H3'First, N, N_First); EC.Invert (Rand, Rand_First, Rand_First + L, H2, H2'First, RN, RN_First, N, N_First, N_Inv); Bignum.Mont_Mult (Sign2, Sign2_First, Sign2_First + L, H1, H1'First, H2, H2'First, N, N_First, N_Inv); when ECGDSA => Bignum.Mont_Mult (H1, H1'First, H1'First + L, Rand, Rand_First, RN, RN_First, N, N_First, N_Inv); Bignum.Mont_Mult (H2, H2'First, H2'First + L, H1, H1'First, Sign1, Sign1_First, N, N_First, N_Inv); Bignum.Mod_Sub_Inplace (H2, H2'First, H2'First + L, H3, H3'First, N, N_First); Bignum.Mont_Mult (Sign2, Sign2_First, Sign2_First + L, H2, H2'First, PrivR, PrivR'First, N, N_First, N_Inv); end case; Success := not Bignum.Is_Zero (Sign1, Sign1_First, Sign1_Last) and then not Bignum.Is_Zero (Sign2, Sign2_First, Sign2_First + L); end Sign; ---------------------------------------------------------------------------- function Verify (Sign1 : Bignum.Big_Int; Sign1_First : Natural; Sign1_Last : Natural; Sign2 : Bignum.Big_Int; Sign2_First : Natural; Hash : Bignum.Big_Int; Hash_First : Natural; T : Signature_Type; PubX : Bignum.Big_Int; PubX_First : Natural; PubY : Bignum.Big_Int; PubY_First : Natural; BX : Bignum.Big_Int; BX_First : Natural; BY : Bignum.Big_Int; BY_First : Natural; A : Bignum.Big_Int; A_First : Natural; M : Bignum.Big_Int; M_First : Natural; M_Inv : Types.Word32; RM : Bignum.Big_Int; RM_First : Natural; N : Bignum.Big_Int; N_First : Natural; N_Inv : Types.Word32; RN : Bignum.Big_Int; RN_First : Natural) return Boolean is L : Natural; Result : Boolean; H1, H2, H, X, Y, Z, V : EC.Coord; begin L := Sign1_Last - Sign1_First; if not Bignum.Is_Zero (Sign1, Sign1_First, Sign1_Last) and then Bignum.Less (Sign1, Sign1_First, Sign1_Last, N, N_First) and then not Bignum.Is_Zero (Sign2, Sign2_First, Sign2_First + L) and then Bignum.Less (Sign2, Sign2_First, Sign2_First + L, N, N_First) then case T is when ECDSA => EC.Invert (Sign2, Sign2_First, Sign2_First + L, H, H'First, RN, RN_First, N, N_First, N_Inv); Bignum.Mont_Mult (H2, H2'First, H2'First + L, Sign1, Sign1_First, H, H'First, N, N_First, N_Inv); when ECGDSA => EC.Invert (Sign1, Sign1_First, Sign1_Last, H, H'First, RN, RN_First, N, N_First, N_Inv); Bignum.Mont_Mult (H2, H2'First, H2'First + L, Sign2, Sign2_First, H, H'First, N, N_First, N_Inv); end case; Bignum.Mont_Mult (H1, H1'First, H1'First + L, Hash, Hash_First, H, H'First, N, N_First, N_Inv); pragma Warnings (Off, "unused assignment to ""Y"""); EC.Two_Point_Mult (X1 => BX, X1_First => BX_First, X1_Last => BX_First + L, Y1 => BY, Y1_First => BY_First, Z1 => EC.One, Z1_First => EC.One'First, E1 => H1, E1_First => H1'First, E1_Last => H1'First + L, X2 => PubX, X2_First => PubX_First, Y2 => PubY, Y2_First => PubY_First, Z2 => EC.One, Z2_First => EC.One'First, E2 => H2, E2_First => H2'First, X3 => X, X3_First => X'First, Y3 => Y, Y3_First => Y'First, Z3 => Z, Z3_First => Z'First, A => A, A_First => A_First, M => M, M_First => M_First, M_Inv => M_Inv); pragma Warnings (On, "unused assignment to ""Y"""); Extract (X, X'First, X'First + L, Z, Z'First, V, V'First, M, M_First, M_Inv, RM, RM_First, N, N_First, N_Inv, RN, RN_First); Result := Bignum.Equal (Sign1, Sign1_First, Sign1_Last, V, V'First); else Result := False; end if; return Result; end Verify; end LSC.Internal.EC_Signature;
36.410526
85
0.517202
0e824933beace09425296195c4786457600654bd
9,693
ads
Ada
source/containers/a-clorma.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/containers/a-clorma.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/containers/a-clorma.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- extended unit with Ada.Iterator_Interfaces; private with Ada.Containers.Binary_Trees; private with Ada.Containers.Binary_Trees.Arne_Andersson; -- diff (Copy_On_Write) private with Ada.Finalization; private with Ada.Streams; generic type Key_Type (<>) is limited private; type Element_Type (<>) is limited private; with function "<" (Left, Right : Key_Type) return Boolean is <>; -- diff ("=") package Ada.Containers.Limited_Ordered_Maps is pragma Preelaborate; pragma Remote_Types; function Equivalent_Keys (Left, Right : Key_Type) return Boolean; type Map is tagged limited private with Constant_Indexing => Constant_Reference, Variable_Indexing => Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type; pragma Preelaborable_Initialization (Map); type Cursor is private; pragma Preelaborable_Initialization (Cursor); -- modified -- Empty_Map : constant Map; function Empty_Map return Map; No_Element : constant Cursor; function Has_Element (Position : Cursor) return Boolean; package Map_Iterator_Interfaces is new Iterator_Interfaces (Cursor, Has_Element); -- diff ("=") function Length (Container : Map) return Count_Type; function Is_Empty (Container : Map) return Boolean; procedure Clear (Container : in out Map); type Key_Reference_Type ( Element : not null access constant Key_Type) is private with Implicit_Dereference => Element; function Key (Position : Cursor) return Key_Reference_Type; -- diff (Element) -- diff (Replace_Element) -- -- -- procedure Query_Element ( Position : Cursor; Process : not null access procedure ( Key : Key_Type; Element : Element_Type)); -- modified procedure Update_Element ( Container : in out Map'Class; -- not primitive Position : Cursor; Process : not null access procedure ( Key : Key_Type; Element : in out Element_Type)); type Constant_Reference_Type ( Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; function Constant_Reference (Container : aliased Map; Position : Cursor) return Constant_Reference_Type; function Reference (Container : aliased in out Map; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Map; Key : Key_Type) return Constant_Reference_Type; function Reference (Container : aliased in out Map; Key : Key_Type) return Reference_Type; -- diff (Assign) -- diff (Copy) procedure Move (Target : in out Map; Source : in out Map); procedure Insert ( Container : in out Map'Class; New_Key : not null access function return Key_Type; New_Item : not null access function return Element_Type; Position : out Cursor; Inserted : out Boolean); -- diff (Insert) -- -- -- -- procedure Insert ( Container : in out Map'Class; Key : not null access function return Key_Type; New_Item : not null access function return Element_Type); -- diff (Include) -- -- -- -- diff (Replace) -- -- -- procedure Exclude (Container : in out Map; Key : Key_Type); procedure Delete (Container : in out Map; Key : Key_Type); procedure Delete (Container : in out Map; Position : in out Cursor); -- modified procedure Delete_First (Container : in out Map'Class); -- not primitive -- modified procedure Delete_Last (Container : in out Map'Class); -- not primitive function First (Container : Map) return Cursor; -- diff (First_Element) -- -- -- diff (First_Key) -- -- function Last (Container : Map) return Cursor; -- diff (Last_Element) -- -- -- diff (Last_Key) -- -- 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 : Map; Key : Key_Type) return Cursor; -- diff (Element) -- -- -- -- function Floor (Container : Map; Key : Key_Type) return Cursor; function Ceiling (Container : Map; Key : Key_Type) return Cursor; function Contains (Container : Map; Key : Key_Type) return Boolean; function "<" (Left, Right : Cursor) return Boolean; function ">" (Left, Right : Cursor) return Boolean; function "<" (Left : Cursor; Right : Key_Type) return Boolean; function ">" (Left : Cursor; Right : Key_Type) return Boolean; function "<" (Left : Key_Type; Right : Cursor) return Boolean; function ">" (Left : Key_Type; Right : Cursor) return Boolean; -- modified procedure Iterate ( Container : Map'Class; -- not primitive Process : not null access procedure (Position : Cursor)); -- modified procedure Reverse_Iterate ( Container : Map'Class; -- not primitive Process : not null access procedure (Position : Cursor)); -- modified function Iterate (Container : Map'Class) -- not primitive return Map_Iterator_Interfaces.Reversible_Iterator'Class; -- extended function Iterate (Container : Map'Class; First, Last : Cursor) return Map_Iterator_Interfaces.Reversible_Iterator'Class; -- extended generic with function "=" (Left, Right : Element_Type) return Boolean is <>; package Equivalents is function "=" (Left, Right : Map) return Boolean; end Equivalents; private package Base renames Binary_Trees.Arne_Andersson; type Key_Access is access Key_Type; type Element_Access is access Element_Type; type Node is limited record Super : aliased Base.Node; Key : Key_Access; Element : Element_Access; end record; -- place Super at first whether Element_Type is controlled-type for Node use record Super at 0 range 0 .. Base.Node_Size - 1; end record; -- diff (Data) -- -- -- -- -- diff (Data_Access) type Map is limited new Finalization.Limited_Controlled with record Root : Binary_Trees.Node_Access := null; Length : Count_Type := 0; end record; -- diff overriding procedure Finalize (Object : in out Map) renames Clear; type Cursor is access Node; type Key_Reference_Type ( Element : not null access constant Key_Type) is null record; type Constant_Reference_Type ( Element : not null access constant Element_Type) is null record; type Reference_Type (Element : not null access Element_Type) is null record; type Map_Access is access constant Map; for Map_Access'Storage_Size use 0; type Map_Iterator is new Map_Iterator_Interfaces.Reversible_Iterator with record First : Cursor; Last : Cursor; end record; overriding function First (Object : Map_Iterator) return Cursor; overriding function Next (Object : Map_Iterator; Position : Cursor) return Cursor; overriding function Last (Object : Map_Iterator) return Cursor; overriding function Previous (Object : Map_Iterator; Position : Cursor) return Cursor; package Streaming is -- diff (Read) -- -- -- diff (Write) -- -- procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Cursor) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Cursor) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Key_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Key_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Constant_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Constant_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; end Streaming; -- diff ('Read) -- diff ('Write) for Cursor'Read use Streaming.Missing_Read; for Cursor'Write use Streaming.Missing_Write; for Key_Reference_Type'Read use Streaming.Missing_Read; for Key_Reference_Type'Write use Streaming.Missing_Write; for Constant_Reference_Type'Read use Streaming.Missing_Read; for Constant_Reference_Type'Write use Streaming.Missing_Write; for Reference_Type'Read use Streaming.Missing_Read; for Reference_Type'Write use Streaming.Missing_Write; No_Element : constant Cursor := null; end Ada.Containers.Limited_Ordered_Maps;
27.304225
79
0.683483
c5c70cde3c612c72e64d107bd19f361347b537a7
77,679
ads
Ada
software/hal/hpl/STM32/svd/stm32f429x/stm32_svd-tim.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/hal/hpl/STM32/svd/stm32f429x/stm32_svd-tim.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/hal/hpl/STM32/svd/stm32f429x/stm32_svd-tim.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.TIM is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- CR1_Register -- ------------------ subtype CR1_CMS_Field is HAL.UInt2; subtype CR1_CKD_Field is HAL.UInt2; -- control register 1 type CR1_Register is record -- Counter enable CEN : Boolean := False; -- Update disable UDIS : Boolean := False; -- Update request source URS : Boolean := False; -- One-pulse mode OPM : Boolean := False; -- Direction DIR : Boolean := False; -- Center-aligned mode selection CMS : CR1_CMS_Field := 16#0#; -- Auto-reload preload enable ARPE : Boolean := False; -- Clock division CKD : CR1_CKD_Field := 16#0#; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record CEN at 0 range 0 .. 0; UDIS at 0 range 1 .. 1; URS at 0 range 2 .. 2; OPM at 0 range 3 .. 3; DIR at 0 range 4 .. 4; CMS at 0 range 5 .. 6; ARPE at 0 range 7 .. 7; CKD at 0 range 8 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ------------------ -- CR2_Register -- ------------------ subtype CR2_MMS_Field is HAL.UInt3; -- control register 2 type CR2_Register is record -- Capture/compare preloaded control CCPC : Boolean := False; -- unspecified Reserved_1_1 : HAL.Bit := 16#0#; -- Capture/compare control update selection CCUS : Boolean := False; -- Capture/compare DMA selection CCDS : Boolean := False; -- Master mode selection MMS : CR2_MMS_Field := 16#0#; -- TI1 selection TI1S : Boolean := False; -- Output Idle state 1 OIS1 : Boolean := False; -- Output Idle state 1 OIS1N : Boolean := False; -- Output Idle state 2 OIS2 : Boolean := False; -- Output Idle state 2 OIS2N : Boolean := False; -- Output Idle state 3 OIS3 : Boolean := False; -- Output Idle state 3 OIS3N : Boolean := False; -- Output Idle state 4 OIS4 : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record CCPC at 0 range 0 .. 0; Reserved_1_1 at 0 range 1 .. 1; CCUS at 0 range 2 .. 2; CCDS at 0 range 3 .. 3; MMS at 0 range 4 .. 6; TI1S at 0 range 7 .. 7; OIS1 at 0 range 8 .. 8; OIS1N at 0 range 9 .. 9; OIS2 at 0 range 10 .. 10; OIS2N at 0 range 11 .. 11; OIS3 at 0 range 12 .. 12; OIS3N at 0 range 13 .. 13; OIS4 at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; ------------------- -- SMCR_Register -- ------------------- subtype SMCR_SMS_Field is HAL.UInt3; subtype SMCR_TS_Field is HAL.UInt3; subtype SMCR_ETF_Field is HAL.UInt4; subtype SMCR_ETPS_Field is HAL.UInt2; -- slave mode control register type SMCR_Register is record -- Slave mode selection SMS : SMCR_SMS_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Trigger selection TS : SMCR_TS_Field := 16#0#; -- Master/Slave mode MSM : Boolean := False; -- External trigger filter ETF : SMCR_ETF_Field := 16#0#; -- External trigger prescaler ETPS : SMCR_ETPS_Field := 16#0#; -- External clock enable ECE : Boolean := False; -- External trigger polarity ETP : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SMCR_Register use record SMS at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; TS at 0 range 4 .. 6; MSM at 0 range 7 .. 7; ETF at 0 range 8 .. 11; ETPS at 0 range 12 .. 13; ECE at 0 range 14 .. 14; ETP at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- DIER_Register -- ------------------- -- DMA/Interrupt enable register type DIER_Register is record -- Update interrupt enable UIE : Boolean := False; -- Capture/Compare 1 interrupt enable CC1IE : Boolean := False; -- Capture/Compare 2 interrupt enable CC2IE : Boolean := False; -- Capture/Compare 3 interrupt enable CC3IE : Boolean := False; -- Capture/Compare 4 interrupt enable CC4IE : Boolean := False; -- COM interrupt enable COMIE : Boolean := False; -- Trigger interrupt enable TIE : Boolean := False; -- Break interrupt enable BIE : Boolean := False; -- Update DMA request enable UDE : Boolean := False; -- Capture/Compare 1 DMA request enable CC1DE : Boolean := False; -- Capture/Compare 2 DMA request enable CC2DE : Boolean := False; -- Capture/Compare 3 DMA request enable CC3DE : Boolean := False; -- Capture/Compare 4 DMA request enable CC4DE : Boolean := False; -- COM DMA request enable COMDE : Boolean := False; -- Trigger DMA request enable TDE : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIER_Register use record UIE at 0 range 0 .. 0; CC1IE at 0 range 1 .. 1; CC2IE at 0 range 2 .. 2; CC3IE at 0 range 3 .. 3; CC4IE at 0 range 4 .. 4; COMIE at 0 range 5 .. 5; TIE at 0 range 6 .. 6; BIE at 0 range 7 .. 7; UDE at 0 range 8 .. 8; CC1DE at 0 range 9 .. 9; CC2DE at 0 range 10 .. 10; CC3DE at 0 range 11 .. 11; CC4DE at 0 range 12 .. 12; COMDE at 0 range 13 .. 13; TDE at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- status register type SR_Register is record -- Update interrupt flag UIF : Boolean := False; -- Capture/compare 1 interrupt flag CC1IF : Boolean := False; -- Capture/Compare 2 interrupt flag CC2IF : Boolean := False; -- Capture/Compare 3 interrupt flag CC3IF : Boolean := False; -- Capture/Compare 4 interrupt flag CC4IF : Boolean := False; -- COM interrupt flag COMIF : Boolean := False; -- Trigger interrupt flag TIF : Boolean := False; -- Break interrupt flag BIF : Boolean := False; -- unspecified Reserved_8_8 : HAL.Bit := 16#0#; -- Capture/Compare 1 overcapture flag CC1OF : Boolean := False; -- Capture/compare 2 overcapture flag CC2OF : Boolean := False; -- Capture/Compare 3 overcapture flag CC3OF : Boolean := False; -- Capture/Compare 4 overcapture flag CC4OF : Boolean := False; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record UIF at 0 range 0 .. 0; CC1IF at 0 range 1 .. 1; CC2IF at 0 range 2 .. 2; CC3IF at 0 range 3 .. 3; CC4IF at 0 range 4 .. 4; COMIF at 0 range 5 .. 5; TIF at 0 range 6 .. 6; BIF at 0 range 7 .. 7; Reserved_8_8 at 0 range 8 .. 8; CC1OF at 0 range 9 .. 9; CC2OF at 0 range 10 .. 10; CC3OF at 0 range 11 .. 11; CC4OF at 0 range 12 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; ------------------ -- EGR_Register -- ------------------ -- event generation register type EGR_Register is record -- Write-only. Update generation UG : Boolean := False; -- Write-only. Capture/compare 1 generation CC1G : Boolean := False; -- Write-only. Capture/compare 2 generation CC2G : Boolean := False; -- Write-only. Capture/compare 3 generation CC3G : Boolean := False; -- Write-only. Capture/compare 4 generation CC4G : Boolean := False; -- Write-only. Capture/Compare control update generation COMG : Boolean := False; -- Write-only. Trigger generation TG : Boolean := False; -- Write-only. Break generation BG : Boolean := False; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EGR_Register use record UG at 0 range 0 .. 0; CC1G at 0 range 1 .. 1; CC2G at 0 range 2 .. 2; CC3G at 0 range 3 .. 3; CC4G at 0 range 4 .. 4; COMG at 0 range 5 .. 5; TG at 0 range 6 .. 6; BG at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; --------------------------- -- CCMR1_Output_Register -- --------------------------- subtype CCMR1_Output_CC1S_Field is HAL.UInt2; subtype CCMR1_Output_OC1M_Field is HAL.UInt3; subtype CCMR1_Output_CC2S_Field is HAL.UInt2; subtype CCMR1_Output_OC2M_Field is HAL.UInt3; -- capture/compare mode register 1 (output mode) type CCMR1_Output_Register is record -- Capture/Compare 1 selection CC1S : CCMR1_Output_CC1S_Field := 16#0#; -- Output Compare 1 fast enable OC1FE : Boolean := False; -- Output Compare 1 preload enable OC1PE : Boolean := False; -- Output Compare 1 mode OC1M : CCMR1_Output_OC1M_Field := 16#0#; -- Output Compare 1 clear enable OC1CE : Boolean := False; -- Capture/Compare 2 selection CC2S : CCMR1_Output_CC2S_Field := 16#0#; -- Output Compare 2 fast enable OC2FE : Boolean := False; -- Output Compare 2 preload enable OC2PE : Boolean := False; -- Output Compare 2 mode OC2M : CCMR1_Output_OC2M_Field := 16#0#; -- Output Compare 2 clear enable OC2CE : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Output_Register use record CC1S at 0 range 0 .. 1; OC1FE at 0 range 2 .. 2; OC1PE at 0 range 3 .. 3; OC1M at 0 range 4 .. 6; OC1CE at 0 range 7 .. 7; CC2S at 0 range 8 .. 9; OC2FE at 0 range 10 .. 10; OC2PE at 0 range 11 .. 11; OC2M at 0 range 12 .. 14; OC2CE at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -------------------------- -- CCMR1_Input_Register -- -------------------------- subtype CCMR1_Input_CC1S_Field is HAL.UInt2; subtype CCMR1_Input_ICPCS_Field is HAL.UInt2; subtype CCMR1_Input_IC1F_Field is HAL.UInt4; subtype CCMR1_Input_CC2S_Field is HAL.UInt2; subtype CCMR1_Input_IC2PCS_Field is HAL.UInt2; subtype CCMR1_Input_IC2F_Field is HAL.UInt4; -- capture/compare mode register 1 (input mode) type CCMR1_Input_Register is record -- Capture/Compare 1 selection CC1S : CCMR1_Input_CC1S_Field := 16#0#; -- Input capture 1 prescaler ICPCS : CCMR1_Input_ICPCS_Field := 16#0#; -- Input capture 1 filter IC1F : CCMR1_Input_IC1F_Field := 16#0#; -- Capture/Compare 2 selection CC2S : CCMR1_Input_CC2S_Field := 16#0#; -- Input capture 2 prescaler IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#; -- Input capture 2 filter IC2F : CCMR1_Input_IC2F_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Input_Register use record CC1S at 0 range 0 .. 1; ICPCS at 0 range 2 .. 3; IC1F at 0 range 4 .. 7; CC2S at 0 range 8 .. 9; IC2PCS at 0 range 10 .. 11; IC2F at 0 range 12 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; --------------------------- -- CCMR2_Output_Register -- --------------------------- subtype CCMR2_Output_CC3S_Field is HAL.UInt2; subtype CCMR2_Output_OC3M_Field is HAL.UInt3; subtype CCMR2_Output_CC4S_Field is HAL.UInt2; subtype CCMR2_Output_OC4M_Field is HAL.UInt3; -- capture/compare mode register 2 (output mode) type CCMR2_Output_Register is record -- Capture/Compare 3 selection CC3S : CCMR2_Output_CC3S_Field := 16#0#; -- Output compare 3 fast enable OC3FE : Boolean := False; -- Output compare 3 preload enable OC3PE : Boolean := False; -- Output compare 3 mode OC3M : CCMR2_Output_OC3M_Field := 16#0#; -- Output compare 3 clear enable OC3CE : Boolean := False; -- Capture/Compare 4 selection CC4S : CCMR2_Output_CC4S_Field := 16#0#; -- Output compare 4 fast enable OC4FE : Boolean := False; -- Output compare 4 preload enable OC4PE : Boolean := False; -- Output compare 4 mode OC4M : CCMR2_Output_OC4M_Field := 16#0#; -- Output compare 4 clear enable OC4CE : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR2_Output_Register use record CC3S at 0 range 0 .. 1; OC3FE at 0 range 2 .. 2; OC3PE at 0 range 3 .. 3; OC3M at 0 range 4 .. 6; OC3CE at 0 range 7 .. 7; CC4S at 0 range 8 .. 9; OC4FE at 0 range 10 .. 10; OC4PE at 0 range 11 .. 11; OC4M at 0 range 12 .. 14; OC4CE at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -------------------------- -- CCMR2_Input_Register -- -------------------------- subtype CCMR2_Input_CC3S_Field is HAL.UInt2; subtype CCMR2_Input_IC3PSC_Field is HAL.UInt2; subtype CCMR2_Input_IC3F_Field is HAL.UInt4; subtype CCMR2_Input_CC4S_Field is HAL.UInt2; subtype CCMR2_Input_IC4PSC_Field is HAL.UInt2; subtype CCMR2_Input_IC4F_Field is HAL.UInt4; -- capture/compare mode register 2 (input mode) type CCMR2_Input_Register is record -- Capture/compare 3 selection CC3S : CCMR2_Input_CC3S_Field := 16#0#; -- Input capture 3 prescaler IC3PSC : CCMR2_Input_IC3PSC_Field := 16#0#; -- Input capture 3 filter IC3F : CCMR2_Input_IC3F_Field := 16#0#; -- Capture/Compare 4 selection CC4S : CCMR2_Input_CC4S_Field := 16#0#; -- Input capture 4 prescaler IC4PSC : CCMR2_Input_IC4PSC_Field := 16#0#; -- Input capture 4 filter IC4F : CCMR2_Input_IC4F_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR2_Input_Register use record CC3S at 0 range 0 .. 1; IC3PSC at 0 range 2 .. 3; IC3F at 0 range 4 .. 7; CC4S at 0 range 8 .. 9; IC4PSC at 0 range 10 .. 11; IC4F at 0 range 12 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- CCER_Register -- ------------------- -- capture/compare enable register type CCER_Register is record -- Capture/Compare 1 output enable CC1E : Boolean := False; -- Capture/Compare 1 output Polarity CC1P : Boolean := False; -- Capture/Compare 1 complementary output enable CC1NE : Boolean := False; -- Capture/Compare 1 output Polarity CC1NP : Boolean := False; -- Capture/Compare 2 output enable CC2E : Boolean := False; -- Capture/Compare 2 output Polarity CC2P : Boolean := False; -- Capture/Compare 2 complementary output enable CC2NE : Boolean := False; -- Capture/Compare 2 output Polarity CC2NP : Boolean := False; -- Capture/Compare 3 output enable CC3E : Boolean := False; -- Capture/Compare 3 output Polarity CC3P : Boolean := False; -- Capture/Compare 3 complementary output enable CC3NE : Boolean := False; -- Capture/Compare 3 output Polarity CC3NP : Boolean := False; -- Capture/Compare 4 output enable CC4E : Boolean := False; -- Capture/Compare 3 output Polarity CC4P : Boolean := False; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCER_Register use record CC1E at 0 range 0 .. 0; CC1P at 0 range 1 .. 1; CC1NE at 0 range 2 .. 2; CC1NP at 0 range 3 .. 3; CC2E at 0 range 4 .. 4; CC2P at 0 range 5 .. 5; CC2NE at 0 range 6 .. 6; CC2NP at 0 range 7 .. 7; CC3E at 0 range 8 .. 8; CC3P at 0 range 9 .. 9; CC3NE at 0 range 10 .. 10; CC3NP at 0 range 11 .. 11; CC4E at 0 range 12 .. 12; CC4P at 0 range 13 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; ------------------ -- CNT_Register -- ------------------ subtype CNT_CNT_Field is HAL.Short; -- counter type CNT_Register is record -- counter value CNT : CNT_CNT_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CNT_Register use record CNT at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- PSC_Register -- ------------------ subtype PSC_PSC_Field is HAL.Short; -- prescaler type PSC_Register is record -- Prescaler value PSC : PSC_PSC_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PSC_Register use record PSC at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- ARR_Register -- ------------------ subtype ARR_ARR_Field is HAL.Short; -- auto-reload register type ARR_Register is record -- Auto-reload value ARR : ARR_ARR_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ARR_Register use record ARR at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- RCR_Register -- ------------------ subtype RCR_REP_Field is HAL.Byte; -- repetition counter register type RCR_Register is record -- Repetition counter value REP : RCR_REP_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RCR_Register use record REP at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------- -- CCR1_Register -- ------------------- subtype CCR1_CCR1_Field is HAL.Short; -- capture/compare register 1 type CCR1_Register is record -- Capture/Compare 1 value CCR1 : CCR1_CCR1_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR1_Register use record CCR1 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- CCR2_Register -- ------------------- subtype CCR2_CCR2_Field is HAL.Short; -- capture/compare register 2 type CCR2_Register is record -- Capture/Compare 2 value CCR2 : CCR2_CCR2_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR2_Register use record CCR2 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- CCR3_Register -- ------------------- subtype CCR3_CCR3_Field is HAL.Short; -- capture/compare register 3 type CCR3_Register is record -- Capture/Compare value CCR3 : CCR3_CCR3_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR3_Register use record CCR3 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- CCR4_Register -- ------------------- subtype CCR4_CCR4_Field is HAL.Short; -- capture/compare register 4 type CCR4_Register is record -- Capture/Compare value CCR4 : CCR4_CCR4_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR4_Register use record CCR4 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- BDTR_Register -- ------------------- subtype BDTR_DTG_Field is HAL.Byte; subtype BDTR_LOCK_Field is HAL.UInt2; -- break and dead-time register type BDTR_Register is record -- Dead-time generator setup DTG : BDTR_DTG_Field := 16#0#; -- Lock configuration LOCK : BDTR_LOCK_Field := 16#0#; -- Off-state selection for Idle mode OSSI : Boolean := False; -- Off-state selection for Run mode OSSR : Boolean := False; -- Break enable BKE : Boolean := False; -- Break polarity BKP : Boolean := False; -- Automatic output enable AOE : Boolean := False; -- Main output enable MOE : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BDTR_Register use record DTG at 0 range 0 .. 7; LOCK at 0 range 8 .. 9; OSSI at 0 range 10 .. 10; OSSR at 0 range 11 .. 11; BKE at 0 range 12 .. 12; BKP at 0 range 13 .. 13; AOE at 0 range 14 .. 14; MOE at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- DCR_Register -- ------------------ subtype DCR_DBA_Field is HAL.UInt5; subtype DCR_DBL_Field is HAL.UInt5; -- DMA control register type DCR_Register is record -- DMA base address DBA : DCR_DBA_Field := 16#0#; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- DMA burst length DBL : DCR_DBL_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DCR_Register use record DBA at 0 range 0 .. 4; Reserved_5_7 at 0 range 5 .. 7; DBL at 0 range 8 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; ------------------- -- DMAR_Register -- ------------------- subtype DMAR_DMAB_Field is HAL.Short; -- DMA address for full transfer type DMAR_Register is record -- DMA register for burst accesses DMAB : DMAR_DMAB_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DMAR_Register use record DMAB at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- CR2_Register -- ------------------ -- control register 2 type CR2_Register_1 is record -- unspecified Reserved_0_2 : HAL.UInt3 := 16#0#; -- Capture/compare DMA selection CCDS : Boolean := False; -- Master mode selection MMS : CR2_MMS_Field := 16#0#; -- TI1 selection TI1S : Boolean := False; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register_1 use record Reserved_0_2 at 0 range 0 .. 2; CCDS at 0 range 3 .. 3; MMS at 0 range 4 .. 6; TI1S at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------- -- DIER_Register -- ------------------- -- DMA/Interrupt enable register type DIER_Register_1 is record -- Update interrupt enable UIE : Boolean := False; -- Capture/Compare 1 interrupt enable CC1IE : Boolean := False; -- Capture/Compare 2 interrupt enable CC2IE : Boolean := False; -- Capture/Compare 3 interrupt enable CC3IE : Boolean := False; -- Capture/Compare 4 interrupt enable CC4IE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Trigger interrupt enable TIE : Boolean := False; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Update DMA request enable UDE : Boolean := False; -- Capture/Compare 1 DMA request enable CC1DE : Boolean := False; -- Capture/Compare 2 DMA request enable CC2DE : Boolean := False; -- Capture/Compare 3 DMA request enable CC3DE : Boolean := False; -- Capture/Compare 4 DMA request enable CC4DE : Boolean := False; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Trigger DMA request enable TDE : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIER_Register_1 use record UIE at 0 range 0 .. 0; CC1IE at 0 range 1 .. 1; CC2IE at 0 range 2 .. 2; CC3IE at 0 range 3 .. 3; CC4IE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; TIE at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; UDE at 0 range 8 .. 8; CC1DE at 0 range 9 .. 9; CC2DE at 0 range 10 .. 10; CC3DE at 0 range 11 .. 11; CC4DE at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; TDE at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- status register type SR_Register_1 is record -- Update interrupt flag UIF : Boolean := False; -- Capture/compare 1 interrupt flag CC1IF : Boolean := False; -- Capture/Compare 2 interrupt flag CC2IF : Boolean := False; -- Capture/Compare 3 interrupt flag CC3IF : Boolean := False; -- Capture/Compare 4 interrupt flag CC4IF : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Trigger interrupt flag TIF : Boolean := False; -- unspecified Reserved_7_8 : HAL.UInt2 := 16#0#; -- Capture/Compare 1 overcapture flag CC1OF : Boolean := False; -- Capture/compare 2 overcapture flag CC2OF : Boolean := False; -- Capture/Compare 3 overcapture flag CC3OF : Boolean := False; -- Capture/Compare 4 overcapture flag CC4OF : Boolean := False; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register_1 use record UIF at 0 range 0 .. 0; CC1IF at 0 range 1 .. 1; CC2IF at 0 range 2 .. 2; CC3IF at 0 range 3 .. 3; CC4IF at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; TIF at 0 range 6 .. 6; Reserved_7_8 at 0 range 7 .. 8; CC1OF at 0 range 9 .. 9; CC2OF at 0 range 10 .. 10; CC3OF at 0 range 11 .. 11; CC4OF at 0 range 12 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; ------------------ -- EGR_Register -- ------------------ -- event generation register type EGR_Register_1 is record -- Write-only. Update generation UG : Boolean := False; -- Write-only. Capture/compare 1 generation CC1G : Boolean := False; -- Write-only. Capture/compare 2 generation CC2G : Boolean := False; -- Write-only. Capture/compare 3 generation CC3G : Boolean := False; -- Write-only. Capture/compare 4 generation CC4G : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Trigger generation TG : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EGR_Register_1 use record UG at 0 range 0 .. 0; CC1G at 0 range 1 .. 1; CC2G at 0 range 2 .. 2; CC3G at 0 range 3 .. 3; CC4G at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; TG at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; --------------------------- -- CCMR2_Output_Register -- --------------------------- -- capture/compare mode register 2 (output mode) type CCMR2_Output_Register_1 is record -- CC3S CC3S : CCMR2_Output_CC3S_Field := 16#0#; -- OC3FE OC3FE : Boolean := False; -- OC3PE OC3PE : Boolean := False; -- OC3M OC3M : CCMR2_Output_OC3M_Field := 16#0#; -- OC3CE OC3CE : Boolean := False; -- CC4S CC4S : CCMR2_Output_CC4S_Field := 16#0#; -- OC4FE OC4FE : Boolean := False; -- OC4PE OC4PE : Boolean := False; -- OC4M OC4M : CCMR2_Output_OC4M_Field := 16#0#; -- O24CE O24CE : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR2_Output_Register_1 use record CC3S at 0 range 0 .. 1; OC3FE at 0 range 2 .. 2; OC3PE at 0 range 3 .. 3; OC3M at 0 range 4 .. 6; OC3CE at 0 range 7 .. 7; CC4S at 0 range 8 .. 9; OC4FE at 0 range 10 .. 10; OC4PE at 0 range 11 .. 11; OC4M at 0 range 12 .. 14; O24CE at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------- -- CCER_Register -- ------------------- -- capture/compare enable register type CCER_Register_1 is record -- Capture/Compare 1 output enable CC1E : Boolean := False; -- Capture/Compare 1 output Polarity CC1P : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Capture/Compare 1 output Polarity CC1NP : Boolean := False; -- Capture/Compare 2 output enable CC2E : Boolean := False; -- Capture/Compare 2 output Polarity CC2P : Boolean := False; -- unspecified Reserved_6_6 : HAL.Bit := 16#0#; -- Capture/Compare 2 output Polarity CC2NP : Boolean := False; -- Capture/Compare 3 output enable CC3E : Boolean := False; -- Capture/Compare 3 output Polarity CC3P : Boolean := False; -- unspecified Reserved_10_10 : HAL.Bit := 16#0#; -- Capture/Compare 3 output Polarity CC3NP : Boolean := False; -- Capture/Compare 4 output enable CC4E : Boolean := False; -- Capture/Compare 3 output Polarity CC4P : Boolean := False; -- unspecified Reserved_14_14 : HAL.Bit := 16#0#; -- Capture/Compare 4 output Polarity CC4NP : Boolean := False; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCER_Register_1 use record CC1E at 0 range 0 .. 0; CC1P at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; CC1NP at 0 range 3 .. 3; CC2E at 0 range 4 .. 4; CC2P at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; CC2NP at 0 range 7 .. 7; CC3E at 0 range 8 .. 8; CC3P at 0 range 9 .. 9; Reserved_10_10 at 0 range 10 .. 10; CC3NP at 0 range 11 .. 11; CC4E at 0 range 12 .. 12; CC4P at 0 range 13 .. 13; Reserved_14_14 at 0 range 14 .. 14; CC4NP at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------ -- CNT_Register -- ------------------ subtype CNT_CNT_L_Field is HAL.Short; subtype CNT_CNT_H_Field is HAL.Short; -- counter type CNT_Register_1 is record -- Low counter value CNT_L : CNT_CNT_L_Field := 16#0#; -- High counter value CNT_H : CNT_CNT_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CNT_Register_1 use record CNT_L at 0 range 0 .. 15; CNT_H at 0 range 16 .. 31; end record; ------------------ -- ARR_Register -- ------------------ subtype ARR_ARR_L_Field is HAL.Short; subtype ARR_ARR_H_Field is HAL.Short; -- auto-reload register type ARR_Register_1 is record -- Low Auto-reload value ARR_L : ARR_ARR_L_Field := 16#0#; -- High Auto-reload value ARR_H : ARR_ARR_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ARR_Register_1 use record ARR_L at 0 range 0 .. 15; ARR_H at 0 range 16 .. 31; end record; ------------------- -- CCR1_Register -- ------------------- subtype CCR1_CCR1_L_Field is HAL.Short; subtype CCR1_CCR1_H_Field is HAL.Short; -- capture/compare register 1 type CCR1_Register_1 is record -- Low Capture/Compare 1 value CCR1_L : CCR1_CCR1_L_Field := 16#0#; -- High Capture/Compare 1 value CCR1_H : CCR1_CCR1_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR1_Register_1 use record CCR1_L at 0 range 0 .. 15; CCR1_H at 0 range 16 .. 31; end record; ------------------- -- CCR2_Register -- ------------------- subtype CCR2_CCR2_L_Field is HAL.Short; subtype CCR2_CCR2_H_Field is HAL.Short; -- capture/compare register 2 type CCR2_Register_1 is record -- Low Capture/Compare 2 value CCR2_L : CCR2_CCR2_L_Field := 16#0#; -- High Capture/Compare 2 value CCR2_H : CCR2_CCR2_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR2_Register_1 use record CCR2_L at 0 range 0 .. 15; CCR2_H at 0 range 16 .. 31; end record; ------------------- -- CCR3_Register -- ------------------- subtype CCR3_CCR3_L_Field is HAL.Short; subtype CCR3_CCR3_H_Field is HAL.Short; -- capture/compare register 3 type CCR3_Register_1 is record -- Low Capture/Compare value CCR3_L : CCR3_CCR3_L_Field := 16#0#; -- High Capture/Compare value CCR3_H : CCR3_CCR3_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR3_Register_1 use record CCR3_L at 0 range 0 .. 15; CCR3_H at 0 range 16 .. 31; end record; ------------------- -- CCR4_Register -- ------------------- subtype CCR4_CCR4_L_Field is HAL.Short; subtype CCR4_CCR4_H_Field is HAL.Short; -- capture/compare register 4 type CCR4_Register_1 is record -- Low Capture/Compare value CCR4_L : CCR4_CCR4_L_Field := 16#0#; -- High Capture/Compare value CCR4_H : CCR4_CCR4_H_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCR4_Register_1 use record CCR4_L at 0 range 0 .. 15; CCR4_H at 0 range 16 .. 31; end record; ----------------- -- OR_Register -- ----------------- subtype OR_ITR1_RMP_Field is HAL.UInt2; -- TIM5 option register type OR_Register is record -- unspecified Reserved_0_9 : HAL.UInt10 := 16#0#; -- Timer Input 4 remap ITR1_RMP : OR_ITR1_RMP_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OR_Register use record Reserved_0_9 at 0 range 0 .. 9; ITR1_RMP at 0 range 10 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; ----------------- -- OR_Register -- ----------------- subtype OR_IT4_RMP_Field is HAL.UInt2; -- TIM5 option register type OR_Register_1 is record -- unspecified Reserved_0_5 : HAL.UInt6 := 16#0#; -- Timer Input 4 remap IT4_RMP : OR_IT4_RMP_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OR_Register_1 use record Reserved_0_5 at 0 range 0 .. 5; IT4_RMP at 0 range 6 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------ -- CR1_Register -- ------------------ -- control register 1 type CR1_Register_1 is record -- Counter enable CEN : Boolean := False; -- Update disable UDIS : Boolean := False; -- Update request source URS : Boolean := False; -- One-pulse mode OPM : Boolean := False; -- unspecified Reserved_4_6 : HAL.UInt3 := 16#0#; -- Auto-reload preload enable ARPE : Boolean := False; -- Clock division CKD : CR1_CKD_Field := 16#0#; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register_1 use record CEN at 0 range 0 .. 0; UDIS at 0 range 1 .. 1; URS at 0 range 2 .. 2; OPM at 0 range 3 .. 3; Reserved_4_6 at 0 range 4 .. 6; ARPE at 0 range 7 .. 7; CKD at 0 range 8 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ------------------ -- CR2_Register -- ------------------ -- control register 2 type CR2_Register_2 is record -- unspecified Reserved_0_3 : HAL.UInt4 := 16#0#; -- Master mode selection MMS : CR2_MMS_Field := 16#0#; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register_2 use record Reserved_0_3 at 0 range 0 .. 3; MMS at 0 range 4 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; ------------------- -- SMCR_Register -- ------------------- -- slave mode control register type SMCR_Register_1 is record -- Slave mode selection SMS : SMCR_SMS_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Trigger selection TS : SMCR_TS_Field := 16#0#; -- Master/Slave mode MSM : Boolean := False; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SMCR_Register_1 use record SMS at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; TS at 0 range 4 .. 6; MSM at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------- -- DIER_Register -- ------------------- -- DMA/Interrupt enable register type DIER_Register_2 is record -- Update interrupt enable UIE : Boolean := False; -- Capture/Compare 1 interrupt enable CC1IE : Boolean := False; -- Capture/Compare 2 interrupt enable CC2IE : Boolean := False; -- unspecified Reserved_3_5 : HAL.UInt3 := 16#0#; -- Trigger interrupt enable TIE : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIER_Register_2 use record UIE at 0 range 0 .. 0; CC1IE at 0 range 1 .. 1; CC2IE at 0 range 2 .. 2; Reserved_3_5 at 0 range 3 .. 5; TIE at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- status register type SR_Register_2 is record -- Update interrupt flag UIF : Boolean := False; -- Capture/compare 1 interrupt flag CC1IF : Boolean := False; -- Capture/Compare 2 interrupt flag CC2IF : Boolean := False; -- unspecified Reserved_3_5 : HAL.UInt3 := 16#0#; -- Trigger interrupt flag TIF : Boolean := False; -- unspecified Reserved_7_8 : HAL.UInt2 := 16#0#; -- Capture/Compare 1 overcapture flag CC1OF : Boolean := False; -- Capture/compare 2 overcapture flag CC2OF : Boolean := False; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register_2 use record UIF at 0 range 0 .. 0; CC1IF at 0 range 1 .. 1; CC2IF at 0 range 2 .. 2; Reserved_3_5 at 0 range 3 .. 5; TIF at 0 range 6 .. 6; Reserved_7_8 at 0 range 7 .. 8; CC1OF at 0 range 9 .. 9; CC2OF at 0 range 10 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; ------------------ -- EGR_Register -- ------------------ -- event generation register type EGR_Register_2 is record -- Write-only. Update generation UG : Boolean := False; -- Write-only. Capture/compare 1 generation CC1G : Boolean := False; -- Write-only. Capture/compare 2 generation CC2G : Boolean := False; -- unspecified Reserved_3_5 : HAL.UInt3 := 16#0#; -- Write-only. Trigger generation TG : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EGR_Register_2 use record UG at 0 range 0 .. 0; CC1G at 0 range 1 .. 1; CC2G at 0 range 2 .. 2; Reserved_3_5 at 0 range 3 .. 5; TG at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; --------------------------- -- CCMR1_Output_Register -- --------------------------- -- capture/compare mode register 1 (output mode) type CCMR1_Output_Register_1 is record -- Capture/Compare 1 selection CC1S : CCMR1_Output_CC1S_Field := 16#0#; -- Output Compare 1 fast enable OC1FE : Boolean := False; -- Output Compare 1 preload enable OC1PE : Boolean := False; -- Output Compare 1 mode OC1M : CCMR1_Output_OC1M_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Capture/Compare 2 selection CC2S : CCMR1_Output_CC2S_Field := 16#0#; -- Output Compare 2 fast enable OC2FE : Boolean := False; -- Output Compare 2 preload enable OC2PE : Boolean := False; -- Output Compare 2 mode OC2M : CCMR1_Output_OC2M_Field := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Output_Register_1 use record CC1S at 0 range 0 .. 1; OC1FE at 0 range 2 .. 2; OC1PE at 0 range 3 .. 3; OC1M at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; CC2S at 0 range 8 .. 9; OC2FE at 0 range 10 .. 10; OC2PE at 0 range 11 .. 11; OC2M at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -------------------------- -- CCMR1_Input_Register -- -------------------------- subtype CCMR1_Input_IC1F_Field_1 is HAL.UInt3; subtype CCMR1_Input_IC2F_Field_1 is HAL.UInt3; -- capture/compare mode register 1 (input mode) type CCMR1_Input_Register_1 is record -- Capture/Compare 1 selection CC1S : CCMR1_Input_CC1S_Field := 16#0#; -- Input capture 1 prescaler ICPCS : CCMR1_Input_ICPCS_Field := 16#0#; -- Input capture 1 filter IC1F : CCMR1_Input_IC1F_Field_1 := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Capture/Compare 2 selection CC2S : CCMR1_Input_CC2S_Field := 16#0#; -- Input capture 2 prescaler IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#; -- Input capture 2 filter IC2F : CCMR1_Input_IC2F_Field_1 := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Input_Register_1 use record CC1S at 0 range 0 .. 1; ICPCS at 0 range 2 .. 3; IC1F at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; CC2S at 0 range 8 .. 9; IC2PCS at 0 range 10 .. 11; IC2F at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; ------------------- -- CCER_Register -- ------------------- -- capture/compare enable register type CCER_Register_2 is record -- Capture/Compare 1 output enable CC1E : Boolean := False; -- Capture/Compare 1 output Polarity CC1P : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Capture/Compare 1 output Polarity CC1NP : Boolean := False; -- Capture/Compare 2 output enable CC2E : Boolean := False; -- Capture/Compare 2 output Polarity CC2P : Boolean := False; -- unspecified Reserved_6_6 : HAL.Bit := 16#0#; -- Capture/Compare 2 output Polarity CC2NP : Boolean := False; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCER_Register_2 use record CC1E at 0 range 0 .. 0; CC1P at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; CC1NP at 0 range 3 .. 3; CC2E at 0 range 4 .. 4; CC2P at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; CC2NP at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------ -- CR1_Register -- ------------------ -- control register 1 type CR1_Register_2 is record -- Counter enable CEN : Boolean := False; -- Update disable UDIS : Boolean := False; -- Update request source URS : Boolean := False; -- unspecified Reserved_3_6 : HAL.UInt4 := 16#0#; -- Auto-reload preload enable ARPE : Boolean := False; -- Clock division CKD : CR1_CKD_Field := 16#0#; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register_2 use record CEN at 0 range 0 .. 0; UDIS at 0 range 1 .. 1; URS at 0 range 2 .. 2; Reserved_3_6 at 0 range 3 .. 6; ARPE at 0 range 7 .. 7; CKD at 0 range 8 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ------------------- -- DIER_Register -- ------------------- -- DMA/Interrupt enable register type DIER_Register_3 is record -- Update interrupt enable UIE : Boolean := False; -- Capture/Compare 1 interrupt enable CC1IE : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIER_Register_3 use record UIE at 0 range 0 .. 0; CC1IE at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- status register type SR_Register_3 is record -- Update interrupt flag UIF : Boolean := False; -- Capture/compare 1 interrupt flag CC1IF : Boolean := False; -- unspecified Reserved_2_8 : HAL.UInt7 := 16#0#; -- Capture/Compare 1 overcapture flag CC1OF : Boolean := False; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register_3 use record UIF at 0 range 0 .. 0; CC1IF at 0 range 1 .. 1; Reserved_2_8 at 0 range 2 .. 8; CC1OF at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ------------------ -- EGR_Register -- ------------------ -- event generation register type EGR_Register_3 is record -- Write-only. Update generation UG : Boolean := False; -- Write-only. Capture/compare 1 generation CC1G : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EGR_Register_3 use record UG at 0 range 0 .. 0; CC1G at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; --------------------------- -- CCMR1_Output_Register -- --------------------------- -- capture/compare mode register 1 (output mode) type CCMR1_Output_Register_2 is record -- Capture/Compare 1 selection CC1S : CCMR1_Output_CC1S_Field := 16#0#; -- Output Compare 1 fast enable OC1FE : Boolean := False; -- Output Compare 1 preload enable OC1PE : Boolean := False; -- Output Compare 1 mode OC1M : CCMR1_Output_OC1M_Field := 16#0#; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Output_Register_2 use record CC1S at 0 range 0 .. 1; OC1FE at 0 range 2 .. 2; OC1PE at 0 range 3 .. 3; OC1M at 0 range 4 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; -------------------------- -- CCMR1_Input_Register -- -------------------------- -- capture/compare mode register 1 (input mode) type CCMR1_Input_Register_2 is record -- Capture/Compare 1 selection CC1S : CCMR1_Input_CC1S_Field := 16#0#; -- Input capture 1 prescaler ICPCS : CCMR1_Input_ICPCS_Field := 16#0#; -- Input capture 1 filter IC1F : CCMR1_Input_IC1F_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCMR1_Input_Register_2 use record CC1S at 0 range 0 .. 1; ICPCS at 0 range 2 .. 3; IC1F at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------- -- CCER_Register -- ------------------- -- capture/compare enable register type CCER_Register_3 is record -- Capture/Compare 1 output enable CC1E : Boolean := False; -- Capture/Compare 1 output Polarity CC1P : Boolean := False; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Capture/Compare 1 output Polarity CC1NP : Boolean := False; -- unspecified Reserved_4_31 : HAL.UInt28 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CCER_Register_3 use record CC1E at 0 range 0 .. 0; CC1P at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; CC1NP at 0 range 3 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; ----------------- -- OR_Register -- ----------------- subtype OR_RMP_Field is HAL.UInt2; -- option register type OR_Register_2 is record -- Input 1 remapping capability RMP : OR_RMP_Field := 16#0#; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OR_Register_2 use record RMP at 0 range 0 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; ------------------ -- CR1_Register -- ------------------ -- control register 1 type CR1_Register_3 is record -- Counter enable CEN : Boolean := False; -- Update disable UDIS : Boolean := False; -- Update request source URS : Boolean := False; -- One-pulse mode OPM : Boolean := False; -- unspecified Reserved_4_6 : HAL.UInt3 := 16#0#; -- Auto-reload preload enable ARPE : Boolean := False; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register_3 use record CEN at 0 range 0 .. 0; UDIS at 0 range 1 .. 1; URS at 0 range 2 .. 2; OPM at 0 range 3 .. 3; Reserved_4_6 at 0 range 4 .. 6; ARPE at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------- -- DIER_Register -- ------------------- -- DMA/Interrupt enable register type DIER_Register_4 is record -- Update interrupt enable UIE : Boolean := False; -- unspecified Reserved_1_7 : HAL.UInt7 := 16#0#; -- Update DMA request enable UDE : Boolean := False; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIER_Register_4 use record UIE at 0 range 0 .. 0; Reserved_1_7 at 0 range 1 .. 7; UDE at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- status register type SR_Register_4 is record -- Update interrupt flag UIF : Boolean := False; -- unspecified Reserved_1_31 : HAL.UInt31 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register_4 use record UIF at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; ------------------ -- EGR_Register -- ------------------ -- event generation register type EGR_Register_4 is record -- Write-only. Update generation UG : Boolean := False; -- unspecified Reserved_1_31 : HAL.UInt31 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EGR_Register_4 use record UG at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; type CCMR1_Discriminent is ( Output, Input); type CCMR1_Aliased_Register (Disc : CCMR1_Discriminent := Output) is record case Disc is when Output => Output : CCMR1_Output_Register; when Input => Input : CCMR1_Input_Register; end case; end record with Unchecked_Union; for CCMR1_Aliased_Register use record Output at 0 range 0 .. 31; Input at 0 range 0 .. 31; end record; type CCMR2_Discriminent is ( Output, Input); type CCMR2_Aliased_Register (Disc : CCMR2_Discriminent := Output) is record case Disc is when Output => Output : CCMR2_Output_Register; when Input => Input : CCMR2_Input_Register; end case; end record with Unchecked_Union; for CCMR2_Aliased_Register use record Output at 0 range 0 .. 31; Input at 0 range 0 .. 31; end record; type CCMR2_Aliased_Register_1 (Disc : CCMR2_Discriminent := Output) is record case Disc is when Output => Output : CCMR2_Output_Register_1; when Input => Input : CCMR2_Input_Register; end case; end record with Unchecked_Union; for CCMR2_Aliased_Register_1 use record Output at 0 range 0 .. 31; Input at 0 range 0 .. 31; end record; type CCMR1_Aliased_Register_1 (Disc : CCMR1_Discriminent := Output) is record case Disc is when Output => Output : CCMR1_Output_Register_1; when Input => Input : CCMR1_Input_Register_1; end case; end record with Unchecked_Union; for CCMR1_Aliased_Register_1 use record Output at 0 range 0 .. 31; Input at 0 range 0 .. 31; end record; type CCMR1_Aliased_Register_2 (Disc : CCMR1_Discriminent := Output) is record case Disc is when Output => Output : CCMR1_Output_Register_2; when Input => Input : CCMR1_Input_Register_2; end case; end record with Unchecked_Union; for CCMR1_Aliased_Register_2 use record Output at 0 range 0 .. 31; Input at 0 range 0 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- General purpose timers type TIM2_Peripheral is record -- control register 1 CR1 : CR1_Register; -- control register 2 CR2 : CR2_Register_1; -- slave mode control register SMCR : SMCR_Register; -- DMA/Interrupt enable register DIER : DIER_Register_1; -- status register SR : SR_Register_1; -- event generation register EGR : EGR_Register_1; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register; -- capture/compare mode register 2 (output mode) CCMR2 : CCMR2_Aliased_Register_1; -- capture/compare enable register CCER : CCER_Register_1; -- counter CNT : CNT_Register_1; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register_1; -- capture/compare register 1 CCR1 : CCR1_Register_1; -- capture/compare register 2 CCR2 : CCR2_Register_1; -- capture/compare register 3 CCR3 : CCR3_Register_1; -- capture/compare register 4 CCR4 : CCR4_Register_1; -- DMA control register DCR : DCR_Register; -- DMA address for full transfer DMAR : DMAR_Register; -- TIM5 option register OR_k : OR_Register; end record with Volatile; for TIM2_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; SMCR at 8 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCMR2 at 28 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; CCR2 at 56 range 0 .. 31; CCR3 at 60 range 0 .. 31; CCR4 at 64 range 0 .. 31; DCR at 72 range 0 .. 31; DMAR at 76 range 0 .. 31; OR_k at 80 range 0 .. 31; end record; -- General purpose timers TIM2_Periph : aliased TIM2_Peripheral with Import, Address => TIM2_Base; -- General purpose timers type TIM3_Peripheral is record -- control register 1 CR1 : CR1_Register; -- control register 2 CR2 : CR2_Register_1; -- slave mode control register SMCR : SMCR_Register; -- DMA/Interrupt enable register DIER : DIER_Register_1; -- status register SR : SR_Register_1; -- event generation register EGR : EGR_Register_1; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register; -- capture/compare mode register 2 (output mode) CCMR2 : CCMR2_Aliased_Register_1; -- capture/compare enable register CCER : CCER_Register_1; -- counter CNT : CNT_Register_1; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register_1; -- capture/compare register 1 CCR1 : CCR1_Register_1; -- capture/compare register 2 CCR2 : CCR2_Register_1; -- capture/compare register 3 CCR3 : CCR3_Register_1; -- capture/compare register 4 CCR4 : CCR4_Register_1; -- DMA control register DCR : DCR_Register; -- DMA address for full transfer DMAR : DMAR_Register; end record with Volatile; for TIM3_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; SMCR at 8 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCMR2 at 28 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; CCR2 at 56 range 0 .. 31; CCR3 at 60 range 0 .. 31; CCR4 at 64 range 0 .. 31; DCR at 72 range 0 .. 31; DMAR at 76 range 0 .. 31; end record; -- General purpose timers TIM3_Periph : aliased TIM3_Peripheral with Import, Address => TIM3_Base; -- General purpose timers TIM4_Periph : aliased TIM3_Peripheral with Import, Address => TIM4_Base; -- General-purpose-timers type TIM5_Peripheral is record -- control register 1 CR1 : CR1_Register; -- control register 2 CR2 : CR2_Register_1; -- slave mode control register SMCR : SMCR_Register; -- DMA/Interrupt enable register DIER : DIER_Register_1; -- status register SR : SR_Register_1; -- event generation register EGR : EGR_Register_1; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register; -- capture/compare mode register 2 (output mode) CCMR2 : CCMR2_Aliased_Register_1; -- capture/compare enable register CCER : CCER_Register_1; -- counter CNT : CNT_Register_1; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register_1; -- capture/compare register 1 CCR1 : CCR1_Register_1; -- capture/compare register 2 CCR2 : CCR2_Register_1; -- capture/compare register 3 CCR3 : CCR3_Register_1; -- capture/compare register 4 CCR4 : CCR4_Register_1; -- DMA control register DCR : DCR_Register; -- DMA address for full transfer DMAR : DMAR_Register; -- TIM5 option register OR_k : OR_Register_1; end record with Volatile; for TIM5_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; SMCR at 8 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCMR2 at 28 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; CCR2 at 56 range 0 .. 31; CCR3 at 60 range 0 .. 31; CCR4 at 64 range 0 .. 31; DCR at 72 range 0 .. 31; DMAR at 76 range 0 .. 31; OR_k at 80 range 0 .. 31; end record; -- General-purpose-timers TIM5_Periph : aliased TIM5_Peripheral with Import, Address => TIM5_Base; -- Basic timers type TIM6_Peripheral is record -- control register 1 CR1 : CR1_Register_3; -- control register 2 CR2 : CR2_Register_2; -- DMA/Interrupt enable register DIER : DIER_Register_4; -- status register SR : SR_Register_4; -- event generation register EGR : EGR_Register_4; -- counter CNT : CNT_Register; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register; end record with Volatile; for TIM6_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; end record; -- Basic timers TIM6_Periph : aliased TIM6_Peripheral with Import, Address => TIM6_Base; -- Basic timers TIM7_Periph : aliased TIM6_Peripheral with Import, Address => TIM7_Base; -- General purpose timers type TIM12_Peripheral is record -- control register 1 CR1 : CR1_Register_1; -- control register 2 CR2 : CR2_Register_2; -- slave mode control register SMCR : SMCR_Register_1; -- DMA/Interrupt enable register DIER : DIER_Register_2; -- status register SR : SR_Register_2; -- event generation register EGR : EGR_Register_2; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register_1; -- capture/compare enable register CCER : CCER_Register_2; -- counter CNT : CNT_Register; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register; -- capture/compare register 1 CCR1 : CCR1_Register; -- capture/compare register 2 CCR2 : CCR2_Register; end record with Volatile; for TIM12_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; SMCR at 8 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; CCR2 at 56 range 0 .. 31; end record; -- General purpose timers TIM12_Periph : aliased TIM12_Peripheral with Import, Address => TIM12_Base; -- General purpose timers TIM9_Periph : aliased TIM12_Peripheral with Import, Address => TIM9_Base; -- General-purpose-timers type TIM13_Peripheral is record -- control register 1 CR1 : CR1_Register_2; -- DMA/Interrupt enable register DIER : DIER_Register_3; -- status register SR : SR_Register_3; -- event generation register EGR : EGR_Register_3; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register_2; -- capture/compare enable register CCER : CCER_Register_3; -- counter CNT : CNT_Register; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register; -- capture/compare register 1 CCR1 : CCR1_Register; end record with Volatile; for TIM13_Peripheral use record CR1 at 0 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; end record; -- General-purpose-timers TIM13_Periph : aliased TIM13_Peripheral with Import, Address => TIM13_Base; -- General-purpose-timers TIM14_Periph : aliased TIM13_Peripheral with Import, Address => TIM14_Base; -- General-purpose-timers TIM10_Periph : aliased TIM13_Peripheral with Import, Address => TIM10_Base; -- Advanced-timers type TIM1_Peripheral is record -- control register 1 CR1 : CR1_Register; -- control register 2 CR2 : CR2_Register; -- slave mode control register SMCR : SMCR_Register; -- DMA/Interrupt enable register DIER : DIER_Register; -- status register SR : SR_Register; -- event generation register EGR : EGR_Register; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register; -- capture/compare mode register 2 (output mode) CCMR2 : CCMR2_Aliased_Register; -- capture/compare enable register CCER : CCER_Register; -- counter CNT : CNT_Register; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register; -- repetition counter register RCR : RCR_Register; -- capture/compare register 1 CCR1 : CCR1_Register; -- capture/compare register 2 CCR2 : CCR2_Register; -- capture/compare register 3 CCR3 : CCR3_Register; -- capture/compare register 4 CCR4 : CCR4_Register; -- break and dead-time register BDTR : BDTR_Register; -- DMA control register DCR : DCR_Register; -- DMA address for full transfer DMAR : DMAR_Register; end record with Volatile; for TIM1_Peripheral use record CR1 at 0 range 0 .. 31; CR2 at 4 range 0 .. 31; SMCR at 8 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCMR2 at 28 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; RCR at 48 range 0 .. 31; CCR1 at 52 range 0 .. 31; CCR2 at 56 range 0 .. 31; CCR3 at 60 range 0 .. 31; CCR4 at 64 range 0 .. 31; BDTR at 68 range 0 .. 31; DCR at 72 range 0 .. 31; DMAR at 76 range 0 .. 31; end record; -- Advanced-timers TIM1_Periph : aliased TIM1_Peripheral with Import, Address => TIM1_Base; -- Advanced-timers TIM8_Periph : aliased TIM1_Peripheral with Import, Address => TIM8_Base; -- General-purpose-timers type TIM11_Peripheral is record -- control register 1 CR1 : CR1_Register_2; -- DMA/Interrupt enable register DIER : DIER_Register_3; -- status register SR : SR_Register_3; -- event generation register EGR : EGR_Register_3; -- capture/compare mode register 1 (output mode) CCMR1 : CCMR1_Aliased_Register_2; -- capture/compare enable register CCER : CCER_Register_3; -- counter CNT : CNT_Register; -- prescaler PSC : PSC_Register; -- auto-reload register ARR : ARR_Register; -- capture/compare register 1 CCR1 : CCR1_Register; -- option register OR_k : OR_Register_2; end record with Volatile; for TIM11_Peripheral use record CR1 at 0 range 0 .. 31; DIER at 12 range 0 .. 31; SR at 16 range 0 .. 31; EGR at 20 range 0 .. 31; CCMR1 at 24 range 0 .. 31; CCER at 32 range 0 .. 31; CNT at 36 range 0 .. 31; PSC at 40 range 0 .. 31; ARR at 44 range 0 .. 31; CCR1 at 52 range 0 .. 31; OR_k at 80 range 0 .. 31; end record; -- General-purpose-timers TIM11_Periph : aliased TIM11_Peripheral with Import, Address => TIM11_Base; end STM32_SVD.TIM;
31.347458
66
0.536477
390709fce30943baffb3e45a53fb8f805ed807e5
9,854
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-mmosin.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-mmosin.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-mmosin.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . M M A P . O S _ I N T E R F A C E -- -- -- -- S p e c -- -- -- -- Copyright (C) 2007-2019, AdaCore -- -- -- -- This library is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 3, 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 MERCHAN- -- -- TABILITY 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. -- -- -- ------------------------------------------------------------------------------ -- OS pecularities abstraction package for Win32 systems. package System.Mmap.OS_Interface is -- The Win package contains copy of definition found in recent System.Win32 -- unit provided with the GNAT compiler. The copy is needed to be able to -- compile this unit with older compilers. Note that this internal Win -- package can be removed when GNAT 6.1.0 is not supported anymore. package Win is subtype PVOID is Standard.System.Address; type HANDLE is new Interfaces.C.ptrdiff_t; type WORD is new Interfaces.C.unsigned_short; type DWORD is new Interfaces.C.unsigned_long; type LONG is new Interfaces.C.long; type SIZE_T is new Interfaces.C.size_t; type BOOL is new Interfaces.C.int; for BOOL'Size use Interfaces.C.int'Size; FALSE : constant := 0; GENERIC_READ : constant := 16#80000000#; GENERIC_WRITE : constant := 16#40000000#; OPEN_EXISTING : constant := 3; type OVERLAPPED is record Internal : DWORD; InternalHigh : DWORD; Offset : DWORD; OffsetHigh : DWORD; hEvent : HANDLE; end record; type SECURITY_ATTRIBUTES is record nLength : DWORD; pSecurityDescriptor : PVOID; bInheritHandle : BOOL; end record; type SYSTEM_INFO is record dwOemId : DWORD; dwPageSize : DWORD; lpMinimumApplicationAddress : PVOID; lpMaximumApplicationAddress : PVOID; dwActiveProcessorMask : PVOID; dwNumberOfProcessors : DWORD; dwProcessorType : DWORD; dwAllocationGranularity : DWORD; wProcessorLevel : WORD; wProcessorRevision : WORD; end record; type LP_SYSTEM_INFO is access all SYSTEM_INFO; INVALID_HANDLE_VALUE : constant HANDLE := -1; FILE_BEGIN : constant := 0; FILE_SHARE_READ : constant := 16#00000001#; FILE_ATTRIBUTE_NORMAL : constant := 16#00000080#; FILE_MAP_COPY : constant := 1; FILE_MAP_READ : constant := 4; FILE_MAP_WRITE : constant := 2; PAGE_READONLY : constant := 16#0002#; PAGE_READWRITE : constant := 16#0004#; INVALID_FILE_SIZE : constant := 16#FFFFFFFF#; function CreateFile (lpFileName : Standard.System.Address; dwDesiredAccess : DWORD; dwShareMode : DWORD; lpSecurityAttributes : access SECURITY_ATTRIBUTES; dwCreationDisposition : DWORD; dwFlagsAndAttributes : DWORD; hTemplateFile : HANDLE) return HANDLE; pragma Import (Stdcall, CreateFile, "CreateFileW"); function WriteFile (hFile : HANDLE; lpBuffer : Standard.System.Address; nNumberOfBytesToWrite : DWORD; lpNumberOfBytesWritten : access DWORD; lpOverlapped : access OVERLAPPED) return BOOL; pragma Import (Stdcall, WriteFile, "WriteFile"); function ReadFile (hFile : HANDLE; lpBuffer : Standard.System.Address; nNumberOfBytesToRead : DWORD; lpNumberOfBytesRead : access DWORD; lpOverlapped : access OVERLAPPED) return BOOL; pragma Import (Stdcall, ReadFile, "ReadFile"); function CloseHandle (hObject : HANDLE) return BOOL; pragma Import (Stdcall, CloseHandle, "CloseHandle"); function GetFileSize (hFile : HANDLE; lpFileSizeHigh : access DWORD) return DWORD; pragma Import (Stdcall, GetFileSize, "GetFileSize"); function SetFilePointer (hFile : HANDLE; lDistanceToMove : LONG; lpDistanceToMoveHigh : access LONG; dwMoveMethod : DWORD) return DWORD; pragma Import (Stdcall, SetFilePointer, "SetFilePointer"); function CreateFileMapping (hFile : HANDLE; lpSecurityAttributes : access SECURITY_ATTRIBUTES; flProtect : DWORD; dwMaximumSizeHigh : DWORD; dwMaximumSizeLow : DWORD; lpName : Standard.System.Address) return HANDLE; pragma Import (Stdcall, CreateFileMapping, "CreateFileMappingW"); function MapViewOfFile (hFileMappingObject : HANDLE; dwDesiredAccess : DWORD; dwFileOffsetHigh : DWORD; dwFileOffsetLow : DWORD; dwNumberOfBytesToMap : SIZE_T) return Standard.System.Address; pragma Import (Stdcall, MapViewOfFile, "MapViewOfFile"); function UnmapViewOfFile (lpBaseAddress : Standard.System.Address) return BOOL; pragma Import (Stdcall, UnmapViewOfFile, "UnmapViewOfFile"); procedure GetSystemInfo (lpSystemInfo : LP_SYSTEM_INFO); pragma Import (Stdcall, GetSystemInfo, "GetSystemInfo"); end Win; type System_File is record Handle : Win.HANDLE; Mapped : Boolean; -- Whether mapping is requested by the user and available on the system Mapping_Handle : Win.HANDLE; Write : Boolean; -- Whether this file can be written to Length : File_Size; -- Length of the file. Used to know what can be mapped in the file end record; type System_Mapping is record Address : Standard.System.Address; Length : File_Size; end record; Invalid_System_File : constant System_File := (Win.INVALID_HANDLE_VALUE, False, Win.INVALID_HANDLE_VALUE, False, 0); Invalid_System_Mapping : constant System_Mapping := (Standard.System.Null_Address, 0); function Open_Read (Filename : String; Use_Mmap_If_Available : Boolean := True) return System_File; -- Open a file for reading and return the corresponding System_File. Return -- Invalid_System_File if unsuccessful. function Open_Write (Filename : String; Use_Mmap_If_Available : Boolean := True) return System_File; -- Likewise for writing to a file procedure Close (File : in out System_File); -- Close a system file function Read_From_Disk (File : System_File; Offset, Length : File_Size) return System.Strings.String_Access; -- Read a fragment of a file. It is up to the caller to free the result -- when done with it. procedure Write_To_Disk (File : System_File; Offset, Length : File_Size; Buffer : System.Strings.String_Access); -- Write some content to a fragment of a file procedure Create_Mapping (File : System_File; Offset, Length : in out File_Size; Mutable : Boolean; Mapping : out System_Mapping); -- Create a memory mapping for the given File, for the area starting at -- Offset and containing Length bytes. Store it to Mapping. -- Note that Offset and Length may be modified according to the system -- needs (for boudaries, for instance). The caller must cope with actually -- wider mapped areas. procedure Dispose_Mapping (Mapping : in out System_Mapping); -- Unmap a previously-created mapping function Get_Page_Size return File_Size; -- Return the number of bytes in a system page. end System.Mmap.OS_Interface;
41.754237
79
0.56373
2343ca922ef12a1d87ad6833ef76fa4e7728b735
3,359
adb
Ada
src/basic_tm.adb
STR-UPM/ToyOBDH
a39dc0b9fb5965300dceece1ec7f09886a46bf67
[ "BSD-3-Clause" ]
1
2021-04-08T22:30:18.000Z
2021-04-08T22:30:18.000Z
src/basic_tm.adb
STR-UPM/ToyOBDH
a39dc0b9fb5965300dceece1ec7f09886a46bf67
[ "BSD-3-Clause" ]
null
null
null
src/basic_tm.adb
STR-UPM/ToyOBDH
a39dc0b9fb5965300dceece1ec7f09886a46bf67
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, Universidad Politécnica de Madrid -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with Measurements; use Measurements; with TM; use TM; with Buffer; with Ada.Real_Time; use Ada.Real_Time; package body Basic_TM is -- cyclic ------------------------- -- Internal operations -- ------------------------- procedure Send_Temperature; -- Send a TM message with the last temperature value. ------------------------ -- Basic TM task body -- ------------------------ task body Basic_TM_Task is Next_Time : Time := Clock + Milliseconds(Start_Delay); begin loop delay until Next_Time; Send_Temperature; Next_Time := Next_Time + Milliseconds(Period); end loop; end Basic_TM_Task; ---------------------- -- Send temperature -- ---------------------- procedure Send_Temperature is Message : TM_Message(Basic); begin Message.Timestamp := Clock; Message.Data := Buffer.Last; Send(Message); end Send_Temperature; end Basic_TM;
46.652778
78
0.518607
df1a8fae6b34036e5860d8a17ea813b76fee583a
5,819
ads
Ada
source/amf/uml/amf-uml-activity_groups.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-activity_groups.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-activity_groups.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. ------------------------------------------------------------------------------ -- ActivityGroup is an abstract class for defining sets of nodes and edges in -- an activity. ------------------------------------------------------------------------------ limited with AMF.UML.Activities; limited with AMF.UML.Activity_Edges.Collections; limited with AMF.UML.Activity_Groups.Collections; limited with AMF.UML.Activity_Nodes.Collections; with AMF.UML.Named_Elements; package AMF.UML.Activity_Groups is pragma Preelaborate; type UML_Activity_Group is limited interface and AMF.UML.Named_Elements.UML_Named_Element; type UML_Activity_Group_Access is access all UML_Activity_Group'Class; for UML_Activity_Group_Access'Storage_Size use 0; not overriding function Get_Contained_Edge (Self : not null access constant UML_Activity_Group) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is abstract; -- Getter of ActivityGroup::containedEdge. -- -- Edges immediately contained in the group. not overriding function Get_Contained_Node (Self : not null access constant UML_Activity_Group) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is abstract; -- Getter of ActivityGroup::containedNode. -- -- Nodes immediately contained in the group. not overriding function Get_In_Activity (Self : not null access constant UML_Activity_Group) return AMF.UML.Activities.UML_Activity_Access is abstract; -- Getter of ActivityGroup::inActivity. -- -- Activity containing the group. not overriding procedure Set_In_Activity (Self : not null access UML_Activity_Group; To : AMF.UML.Activities.UML_Activity_Access) is abstract; -- Setter of ActivityGroup::inActivity. -- -- Activity containing the group. not overriding function Get_Subgroup (Self : not null access constant UML_Activity_Group) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is abstract; -- Getter of ActivityGroup::subgroup. -- -- Groups immediately contained in the group. not overriding function Get_Super_Group (Self : not null access constant UML_Activity_Group) return AMF.UML.Activity_Groups.UML_Activity_Group_Access is abstract; -- Getter of ActivityGroup::superGroup. -- -- Group immediately containing the group. end AMF.UML.Activity_Groups;
53.385321
88
0.526551
1005b6fa0aa0cbb69aefc57aef6fad9166511ad0
1,204
adb
Ada
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/exprs/p.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/exprs/p.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/exprs/p.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2008-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/>. -- Test Ada additions to core GDB evaluation. with System; with Text_IO; use Text_IO; procedure P is type Int is range System.Min_Int .. System.Max_Int; X, Z : Int; Y : Integer; begin X := 0; -- Set X to 7 by disguised means lest a future optimizer interfere. for I in 1 .. 7 loop X := X + 1; end loop; Z := 1; Y := 0; while Z < Int'Last / X loop Z := Z * X; Y := Y + 1; end loop; Put_Line (Int'Image (X ** Y)); -- START end P;
28.666667
73
0.666113
23a9cbd2d17555733b4b4d561c0ddfef35c2e206
5,060
ads
Ada
source/amf/uml/amf-uml-time_events.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-time_events.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-time_events.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 time event can be defined relative to entering the current state of the -- executing state machine. -- -- A time event specifies a point in time. At the specified time, the event -- occurs. ------------------------------------------------------------------------------ with AMF.UML.Events; limited with AMF.UML.Time_Expressions; package AMF.UML.Time_Events is pragma Preelaborate; type UML_Time_Event is limited interface and AMF.UML.Events.UML_Event; type UML_Time_Event_Access is access all UML_Time_Event'Class; for UML_Time_Event_Access'Storage_Size use 0; not overriding function Get_Is_Relative (Self : not null access constant UML_Time_Event) return Boolean is abstract; -- Getter of TimeEvent::isRelative. -- -- Specifies whether it is relative or absolute time. not overriding procedure Set_Is_Relative (Self : not null access UML_Time_Event; To : Boolean) is abstract; -- Setter of TimeEvent::isRelative. -- -- Specifies whether it is relative or absolute time. not overriding function Get_When (Self : not null access constant UML_Time_Event) return AMF.UML.Time_Expressions.UML_Time_Expression_Access is abstract; -- Getter of TimeEvent::when. -- -- Specifies the corresponding time deadline. not overriding procedure Set_When (Self : not null access UML_Time_Event; To : AMF.UML.Time_Expressions.UML_Time_Expression_Access) is abstract; -- Setter of TimeEvent::when. -- -- Specifies the corresponding time deadline. end AMF.UML.Time_Events;
53.263158
78
0.480632
4a865b3b362d016cd2168e0ab63f6fb6ff95147b
12,449
adb
Ada
src/databases-sqlite.adb
skordal/databases
f7fe639acb1c00a6a97ee8efa38e385583fd4dda
[ "MIT" ]
null
null
null
src/databases-sqlite.adb
skordal/databases
f7fe639acb1c00a6a97ee8efa38e385583fd4dda
[ "MIT" ]
null
null
null
src/databases-sqlite.adb
skordal/databases
f7fe639acb1c00a6a97ee8efa38e385583fd4dda
[ "MIT" ]
null
null
null
-- Databases - A simple database library for Ada applications -- (c) Kristian Klomsten Skordal 2019 <[email protected]> -- Report bugs and issues on <https://github.com/skordal/databases/issues> -- vim:ts=3:sw=3:et:si:sta with Ada.Text_IO; with Interfaces.C.Pointers; package body Databases.Sqlite is function Get_Value (This : in Column_Data) return Databases.Sql_Integer is function Sqlite3_Value_Int (Value : in Sqlite_Value_Pointer) return C.long; pragma Import (C, Sqlite3_Value_Int); Value : constant C.long := Sqlite3_Value_Int (This.Value_Object); begin return Databases.Sql_Integer (Value); end Get_Value; function Get_Value (This : in Column_Data) return Databases.Sql_Float is function Sqlite3_Value_Double (Value : in Sqlite_Value_Pointer) return C.double; pragma Import (C, Sqlite3_Value_Double); Value : constant C.double := Sqlite3_Value_Double (This.Value_Object); begin return Databases.Sql_Float (Value); end Get_Value; function Get_Value (This : in Column_Data) return Databases.Sql_Data_Array is package Byte_Array_Pointers is new Interfaces.C.Pointers ( Index => Natural, Element => Interfaces.Unsigned_8, Element_Array => Databases.Sql_Data_Array, Default_Terminator => 0); function Sqlite3_Value_Bytes (Value : in Sqlite_Value_Pointer) return C.ptrdiff_t; pragma Import (C, Sqlite3_Value_Bytes); function Sqlite3_Value_Blob (Value : in Sqlite_Value_Pointer) return Byte_Array_Pointers.Pointer; pragma Import (C, Sqlite3_Value_Blob); Blob_Pointer : constant Byte_Array_Pointers.Pointer := Sqlite3_Value_Blob (This.Value_Object); begin return Byte_Array_Pointers.Value (Blob_Pointer, Sqlite3_Value_Bytes (This.Value_Object)); end Get_Value; function Get_Value (This : in Column_Data) return String is package Char_Array_Pointers is new Interfaces.C.Pointers ( Index => C.size_t, Element => C.char, Element_Array => C.char_array, Default_Terminator => C.nul); function Sqlite3_Value_Text (Value : in Sqlite_Value_Pointer) return Char_Array_Pointers.Pointer; pragma Import (C, Sqlite3_Value_Text); Text_Pointer : constant Char_Array_Pointers.Pointer := Sqlite3_Value_Text (This.Value_Object); begin return C.To_Ada (Char_Array_Pointers.Value (Text_Pointer)); end Get_Value; procedure Finalize (This : in out Column_Data) is procedure Sqlite3_Value_Free (Value : in Sqlite_Value_Pointer); pragma Import (C, Sqlite3_Value_Free); begin Sqlite3_Value_Free (This.Value_Object); end Finalize; function Get_Column_Count (This : in Row_Data) return Natural is begin return Natural (This.Columns.Length); end Get_Column_Count; function Get_Column (This : in Row_Data; Index : in Positive) return Column_Data_Access is begin if Index > Natural (This.Columns.Length) then raise Databases.Invalid_Column_Index; else return This.Columns.Element (Index); end if; end Get_Column; procedure Finalize (This : in out Row_Data) is begin for Col of This.Columns loop Databases.Free (Col); end loop; end Finalize; function Get_Row (This : in Statement_Result; Row : in Positive) return Row_Data_Access is begin if Row > Natural (This.Rows.Length) then raise Invalid_Row_Index; else return This.Rows.Element (Row); end if; end Get_Row; function Get_Status (This : in Statement_Result) return Databases.Statement_Execution_Status is begin return This.Result_Status; end Get_Status; function Get_Returned_Row_Count (This : in Statement_Result) return Natural is begin return Natural (This.Rows.Length); end Get_Returned_Row_Count; procedure Finalize (This : in out Statement_Result) is begin for Row of This.Rows loop Databases.Free (Row); end loop; end Finalize; procedure Bind (This : in out Prepared_Statement; Index : in Positive; Value : in Sql_Integer) is function Sqlite3_Bind_Int64 (Statement : in Sqlite_Prepared_Statement_Pointer; Index : in C.int; Value : in C.long) return Sqlite_Status_Code; pragma Import (C, Sqlite3_Bind_Int64); Status_Code : constant Sqlite_Status_Code := Sqlite3_Bind_Int64 ( This.Stmt_Instance, C.int (Index), C.long (Value)); begin Handle_Sqlite_Status_Code (Status_Code); end Bind; procedure Bind (This : in out Prepared_Statement; Index : in Positive; Value : in Sql_Float) is function Sqlite3_Bind_Double (Statement : in Sqlite_Prepared_Statement_Pointer; Index : in C.int; Value : in C.double) return Sqlite_Status_Code; pragma Import (C, Sqlite3_Bind_Double); Status_Code : constant Sqlite_Status_Code := Sqlite3_Bind_Double ( This.Stmt_Instance, C.int (Index), C.double (Value)); begin Handle_Sqlite_Status_Code (Status_Code); end Bind; procedure Bind (This : in out Prepared_Statement; Index : in Positive; Value : in Boolean) is begin if Value then Bind (This, Index, 1); else Bind (This, Index, 0); end if; end Bind; procedure Bind (This : in out Prepared_Statement; Index : in Positive; Value : in String) is function Sqlite_Wrapper_Bind_String (Statement : in Sqlite_Prepared_Statement_Pointer; Index : in C.int; Value : in C.char_array) return Sqlite_Status_Code; pragma Import (C, Sqlite_Wrapper_Bind_String); Status_Code : constant Sqlite_Status_Code := Sqlite_Wrapper_Bind_String ( This.Stmt_Instance, C.int (Index), C.To_C (Value)); begin Handle_Sqlite_Status_Code (Status_Code); end Bind; procedure Clear (This : in out Prepared_Statement) is function Sqlite3_Clear_Bindings (Statement : in Sqlite_Prepared_Statement_Pointer) return Sqlite_Status_Code; pragma Import (C, Sqlite3_Clear_Bindings); Status_Code : constant Sqlite_Status_Code := Sqlite3_Clear_Bindings (This.Stmt_Instance); begin Handle_Sqlite_Status_Code (Status_Code); end Clear; procedure Reset (This : in out Prepared_Statement) is function Sqlite3_Reset (Statement : in Sqlite_Prepared_Statement_Pointer) return Sqlite_Status_Code; pragma Import (C, Sqlite3_Reset); Status_Code : constant Sqlite_Status_Code := Sqlite3_Reset (This.Stmt_Instance); begin Handle_Sqlite_Status_Code (Status_Code); end Reset; function Execute (This : in out Prepared_Statement) return Statement_Result_Access is use type Interfaces.C.int; function Sqlite3_Step (Statement : in Sqlite_Prepared_Statement_Pointer) return Sqlite_Status_Code; pragma Import (C, Sqlite3_Step); function Sqlite3_Column_Count (Statement : in Sqlite_Prepared_Statement_Pointer) return C.int; pragma Import (C, Sqlite3_Column_Count); function Sqlite3_Column_Value (Statement : in Sqlite_Prepared_Statement_Pointer; Col : in C.int) return Sqlite_Value_Pointer; pragma Import (C, Sqlite3_Column_Value); function Sqlite3_Value_Dup (Value : in Sqlite_Value_Pointer) return Sqlite_Value_Pointer; pragma Import (C, Sqlite3_Value_Dup); Status_Code : Sqlite_Status_Code; Return_Value : constant Statement_Result_Access := new Statement_Result'(Ada.Finalization.Controlled with Result_Status => Failure, Rows => Row_Data_Vectors.Empty_Vector); begin loop Status_Code := Sqlite3_Step (This.Stmt_Instance); case Status_Code is when Sqlite_Done => Statement_Result (Return_Value.all).Result_Status := Success; exit; when Sqlite_Row => -- FIXME: For SQLite, all results must be read and stored here to be accessible, as the SQLite API does -- FIXME: not provide a separate results object that allows reading objects separately from the statement. declare Row : constant Row_Data_Access := new Row_Data; begin for Col in 0 .. Sqlite3_Column_Count(This.Stmt_Instance) - 1 loop declare Column : constant Column_Data_Access := new Column_Data; begin Column_Data (Column.all).Value_Object := Sqlite3_Value_Dup (Sqlite3_Column_Value (This.Stmt_Instance, Col)); Row_Data (Row.all).Columns.Append (Column); end; end loop; Statement_Result (Return_Value.all).Rows.Append (Row); end; when others => Handle_Sqlite_Status_Code (Status_Code); end case; end loop; return Return_Value; end Execute; function Execute (This : in out Prepared_Statement) return Statement_Execution_Status is Results : Statement_Result_Access := This.Execute; Return_Value : constant Statement_Execution_Status := Results.Get_Status; begin Databases.Free (Results); return Return_Value; end Execute; procedure Finalize (This : in out Prepared_Statement) is procedure Sqlite_Wrapper_Free_Prepared_Statement (Statement : in Sqlite_Prepared_Statement_Pointer); pragma Import (C, Sqlite_Wrapper_Free_Prepared_Statement); begin Sqlite_Wrapper_Free_Prepared_Statement (This.Stmt_Instance); end Finalize; function Open (Filename : in String; Create : in Boolean := False) return Databases.Database_Access is function Sqlite_Wrapper_Open (Filename : in C.char_array; Create_File : in C.int; Status : out Sqlite_Status_Code) return Sqlite_Instance_Pointer; pragma Import (C, Sqlite_Wrapper_Open); Create_File : constant C.int := (if Create then 1 else 0); Status_Code : Sqlite_Status_Code; Db_Instance : constant Sqlite_Instance_Pointer := Sqlite_Wrapper_Open (C.To_C (Filename), Create_File, Status_Code); begin Handle_Sqlite_Status_Code (Status_Code); return new Database'(Instance => Db_Instance); end Open; procedure Close (This : in out Database) is procedure Sqlite_Wrapper_Close (Instance : in Sqlite_Instance_Pointer); pragma Import (C, Sqlite_Wrapper_Close); begin Sqlite_Wrapper_Close (This.Instance); This.Instance := null; end Close; function Is_Open (This : in Database) return Boolean is begin return This.Instance /= null; end Is_Open; function Prepare (This : in out Database; Statement : in String) return Databases.Prepared_Statement_Access is function Sqlite_Wrapper_Prepare (Instance : in Sqlite_Instance_Pointer; Statement : in C.char_array; Statement_Length : in C.int; Status_Code : out Sqlite_Status_Code) return Sqlite_Prepared_Statement_Pointer; pragma Import (C, Sqlite_Wrapper_Prepare); Status_Code : Sqlite_Status_Code; Statement_Instance : constant Sqlite_Prepared_Statement_Pointer := Sqlite_Wrapper_Prepare (This.Instance, C.To_C (Statement), C.int (Statement'Length), Status_Code); begin Handle_Sqlite_Status_Code (Status_Code); return new Prepared_Statement'(Ada.Finalization.Controlled with Db_Instance => This.Instance, Stmt_Instance => Statement_Instance); end Prepare; procedure Handle_Sqlite_Status_Code (Status : in Sqlite_Status_Code) is begin case Status is when Sqlite_Ok => return; when Sqlite_IOErr => raise Databases.IO_Error; when Sqlite_Cant_Open => raise Databases.File_Error; when others => Ada.Text_IO.Put_Line ("Databases.Sqlite: Got unknown error code: " & Sqlite_Status_Code'Image (Status)); raise Databases.Unspecified_Error; end case; end Handle_Sqlite_Status_Code; end Databases.Sqlite;
40.683007
132
0.677002
dfdbd56c0a8589b2e73af0eaad8fcabf3dd041ae
4,221
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3810b.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/ce/ce3810b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3810b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE3810B.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 FIXED_IO PUT CAN OPERATE ON STRINGS. ALSO CHECK THAT -- LAYOUT_ERROR IS RAISED WHEN THE STRING IS INSUFFICIENTLY LONG. -- HISTORY: -- DWC 09/15/87 CREATE ORIGINAL TEST. -- JRL 02/28/96 Changed upper bound of type FX from 1000.0 to 250.0. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; PROCEDURE CE3810B IS BEGIN TEST ("CE3810B", "CHECK THAT FIXED_IO PUT CAN OPERATE ON " & "STRINGS. ALSO CHECK THAT LAYOUT_ERROR IS " & "RAISED WHEN THE STRING IS INSUFFICIENTLY LONG"); DECLARE TYPE FX IS DELTA 0.0001 RANGE 0.0 .. 250.0; PACKAGE FXIO IS NEW FIXED_IO (FX); USE FXIO; ST1 : CONSTANT STRING := " 234.5000"; ST : STRING (ST1'RANGE); ST2 : STRING (1 .. 2); BEGIN BEGIN PUT (ST, 234.5); EXCEPTION WHEN LAYOUT_ERROR => FAILED ("LAYOUT_ERROR RAISED ON PUT" & "TO STRING - FIXED"); WHEN OTHERS => FAILED ("SOME EXCEPTION RAISED ON PUT" & "TO STRING -FIXED"); END; IF ST /= ST1 THEN FAILED ("PUT FIXED TO STRING INCORRECT; OUTPUT " & "WAS """ & ST & """"); END IF; BEGIN PUT (ST (1..7), 234.5000); FAILED ("LAYOUT_ERROR NOT RAISED - FIXED - 1"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - FIXED - 1"); END; BEGIN PUT (ST, 2.3, 9, 0); FAILED ("LAYOUT_ERROR NOT RAISED - FIXED - 2"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - FIXED - 2"); END; BEGIN PUT (ST2, 2.0, 0, 0); FAILED ("LAYOUT_ERROR NOT RAISED - FIXED - 3"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - FIXED - 3"); END; BEGIN PUT (ST, 2.345, 6, 2); FAILED ("LAYOUT_ERROR NOT RAISED - FIXED - 4"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - FIXED - 4"); END; BEGIN PUT (ST, 2.0, 0, 7); FAILED ("LAYOUT_ERROR NOT RAISED - FIXED - 5"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - FIXED - 5"); END; END; RESULT; END CE3810B;
34.317073
79
0.516702
c568b843bf66d6b2619caadda491fb27b3ce1a1c
9,102
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45651a.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/c45651a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45651a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C45651A.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: -- FOR FIXED POINT TYPES, CHECK: -- (A) FOR MODEL NUMBERS A >= 0.0, THAT ABS A = A. -- (B) FOR MODEL NUMBERS A <= 0.0. THAT ABS A = -A. -- (C) FOR NON-MODEL NUMBERS A > 0.0, THAT ABS A VALUES ARE -- WITHIN THE APPROPRIATE MODEL INTERVAL. -- (D) FOR NON-MODEL NUMBERS A < 0.0, THAT ABS A VALUES ARE -- WITHIN THE APPROPRIATE MODEL INTERVAL. -- CASE A: BASIC TYPES THAT FIT THE CHARACTERISTICS OF -- DURATION'BASE. -- HISTORY: -- WRG 9/11/86 -- PWB 3/31/88 CHANGED RANGE FOR MEMBERSHIP TEST INVOLVING -- ABS (DECIMAL_M4'FIRST + DECIMAL_M4'SMALL / 2). -- RJW 8/21/89 REMOVED CHECKS INVOLVING HARD-CODED FIXED-POINT -- UPPER BOUNDS WHICH WERE INCORRECT FOR SOME -- IMPLEMENTATIONS. REVISED HEADER. -- PWN 02/02/95 REMOVED INCONSISTENCIES WITH ADA 9X. -- KAS 11/14/95 REMOVED CASES THAT DEPEND ON SPECIFIC VALUE FOR 'SMALL -- TMB 11/19/94 REMOVED CASES RELATING TO 3.5.9(8) RULES - SMALL -- MAY BE LESS THAN OR EQUAL TO DELTA FOR FIXED POINT. WITH REPORT; USE REPORT; PROCEDURE C45651A IS -- THE NAME OF EACH TYPE OR SUBTYPE ENDS WITH THAT TYPE'S -- 'MANTISSA VALUE. BEGIN TEST ("C45651A", "CHECK THAT, FOR FIXED POINT TYPES, THE ABS " & "OPERATOR PRODUCES CORRECT RESULTS - BASIC " & "TYPES"); ------------------------------------------------------------------- A: DECLARE TYPE LIKE_DURATION_M23 IS DELTA 0.020 RANGE -86_400.0 .. 86_400.0; NON_MODEL_CONST : CONSTANT := 2.0 / 3; NON_MODEL_VAR : LIKE_DURATION_M23 := 0.0; SMALL, MAX, MIN, ZERO : LIKE_DURATION_M23 := 0.5; X : LIKE_DURATION_M23 := 1.0; BEGIN -- INITIALIZE "CONSTANTS": IF EQUAL (3, 3) THEN SMALL := LIKE_DURATION_M23'SMALL; MAX := LIKE_DURATION_M23'LAST; MIN := LIKE_DURATION_M23'FIRST; ZERO := 0.0; NON_MODEL_VAR := NON_MODEL_CONST; END IF; -- (A) IF EQUAL (3, 3) THEN X := SMALL; END IF; IF ABS X /= SMALL OR X /= ABS LIKE_DURATION_M23'SMALL THEN FAILED ("ABS (1.0 / 64) /= (1.0 / 64)"); END IF; IF EQUAL (3, 3) THEN X := MAX; END IF; IF ABS X /= MAX OR X /= ABS LIKE_DURATION_M23'LAST THEN FAILED ("ABS 86_400.0 /= 86_400.0"); END IF; -- (B) IF EQUAL (3, 3) THEN X := -SMALL; END IF; IF ABS X /= SMALL OR ABS (-LIKE_DURATION_M23'SMALL) /= SMALL THEN FAILED ("ABS -(1.0 / 64) /= (1.0 / 64)"); END IF; IF EQUAL (3, 3) THEN X := MIN; END IF; IF ABS X /= MAX OR ABS LIKE_DURATION_M23'FIRST /= MAX THEN FAILED ("ABS -86_400.0 /= 86_400.0"); END IF; -- (A) AND (B) IF EQUAL (3, 3) THEN X := 0.0; END IF; IF "ABS" (RIGHT => X) /= ZERO OR X /= ABS 0.0 THEN FAILED ("ABS 0.0 /= 0.0 -- (LIKE_DURATION_M23)"); END IF; -- CHECK THAT VALUE OF NON_MODEL_VAR IS IN THE RANGE -- 42 * 'SMALL .. 43 * 'SMALL: IF NON_MODEL_VAR NOT IN 0.65625 .. 0.671875 THEN FAILED ("VALUE OF NON_MODEL_VAR NOT IN CORRECT RANGE " & "- A"); END IF; -- (C) IF ABS NON_MODEL_VAR NOT IN 0.65625 .. 0.671875 OR ABS LIKE_DURATION_M23'(NON_MODEL_CONST) NOT IN 0.65625 .. 0.671875 THEN FAILED ("ABS (2.0 / 3) NOT IN CORRECT RANGE - A"); END IF; IF EQUAL (3, 3) THEN X := 86_399.992_187_5; -- LIKE_DURATION_M23'LAST - -- 1.0 / 128. END IF; IF ABS X NOT IN 86_399.984_375 .. 86_400.0 OR ABS (LIKE_DURATION_M23'LAST - LIKE_DURATION_M23'SMALL / 2) NOT IN 86_399.984_375 .. 86_400.0 THEN FAILED ("ABS (LIKE_DURATION_M23'LAST - " & "LIKE_DURATION_M23'SMALL / 2) NOT IN CORRECT " & "RANGE"); END IF; -- (D) IF EQUAL (3, 3) THEN X := -NON_MODEL_CONST; END IF; IF ABS X NOT IN 0.65625 .. 0.671875 OR ABS (-LIKE_DURATION_M23'(NON_MODEL_CONST)) NOT IN 0.65625 .. 0.671875 THEN FAILED ("ABS (-2.0 / 3) NOT IN CORRECT RANGE - A"); END IF; IF EQUAL (3, 3) THEN X := -86_399.992_187_5; -- LIKE_DURATION_M23'FIRST + -- 1.0 / 128. END IF; IF ABS X NOT IN 86_399.984_375 .. 86_400.0 OR ABS (LIKE_DURATION_M23'FIRST + LIKE_DURATION_M23'SMALL / 2) NOT IN 86_399.984_375 .. 86_400.0 THEN FAILED ("ABS (LIKE_DURATION_M23'FIRST +" & "LIKE_DURATION_M23'SMALL / 2) NOT IN CORRECT " & "RANGE"); END IF; END A; ------------------------------------------------------------------- B: DECLARE TYPE DECIMAL_M4 IS DELTA 100.0 RANGE -1000.0 .. 1000.0; NON_MODEL_CONST : CONSTANT := 2.0 / 3; NON_MODEL_VAR : DECIMAL_M4 := 0.0; SMALL, MAX, MIN, ZERO : DECIMAL_M4 := 128.0; X : DECIMAL_M4 := 0.0; BEGIN -- INITIALIZE "CONSTANTS": IF EQUAL (3, 3) THEN SMALL := DECIMAL_M4'SMALL; ZERO := 0.0; NON_MODEL_VAR := NON_MODEL_CONST; END IF; -- (A) IF EQUAL (3, 3) THEN X := SMALL; END IF; IF ABS X /= SMALL OR X /= ABS DECIMAL_M4'SMALL THEN FAILED ("ABS 64.0 /= 64.0"); END IF; -- (B) IF EQUAL (3, 3) THEN X := -SMALL; END IF; IF ABS X /= SMALL OR ABS (-DECIMAL_M4'SMALL) /= SMALL THEN FAILED ("ABS -64.0 /= 64.0"); END IF; -- (A) AND (B) IF EQUAL (3, 3) THEN X := 0.0; END IF; IF ABS X /= ZERO OR X /= ABS 0.0 THEN FAILED ("ABS 0.0 /= 0.0 -- (DECIMAL_M4)"); END IF; -- CHECK THE VALUE OF NON_MODEL_VAR: IF NON_MODEL_VAR NOT IN 0.0 .. 64.0 THEN FAILED ("VALUE OF NON_MODEL_VAR NOT IN CORRECT RANGE " & "- B"); END IF; -- (C) IF ABS NON_MODEL_VAR NOT IN 0.0 .. 64.0 OR ABS DECIMAL_M4'(NON_MODEL_CONST) NOT IN 0.0 .. 64.0 THEN FAILED ("ABS (2.0 / 3) NOT IN CORRECT RANGE - B"); END IF; IF EQUAL (3, 3) THEN X := 37.0; -- INTERVAL IS 0.0 .. 64.0. END IF; IF EQUAL (3, 3) THEN X := 928.0; END IF; -- (D) IF EQUAL (3, 3) THEN X := -NON_MODEL_CONST; END IF; IF ABS X NOT IN 0.0 .. 64.0 OR ABS (-DECIMAL_M4'(NON_MODEL_CONST)) NOT IN 0.0 .. 64.0 THEN FAILED ("ABS -(2.0 / 3) NOT IN CORRECT RANGE - B"); END IF; IF EQUAL (3, 3) THEN X := -37.0; -- INTERVAL IS -SMALL .. 0.0. END IF; IF EQUAL (3, 3) THEN X := -928.0; END IF; END B; ------------------------------------------------------------------- RESULT; END C45651A;
36.850202
79
0.480224