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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5819198b6cfaf372cafa7522db4612e4532c2fa5 | 93 | ada | Ada | Task/Loops-For/Ada/loops-for.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Loops-For/Ada/loops-for.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Loops-For/Ada/loops-for.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | for I in 1..5 loop
for J in 1..I loop
Put("*");
end loop;
New_Line;
end loop;
| 13.285714 | 21 | 0.526882 |
2f3efb730ce83e673f27401c85d2521bc3be5d46 | 3,043 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stunau.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stunau.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-stunau.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S T R I N G S . U N B O U N D E D . A U X --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
package body Ada.Strings.Unbounded.Aux is
----------------
-- Get_String --
----------------
procedure Get_String
(U : Unbounded_String;
S : out Big_String_Access;
L : out Natural)
is
X : aliased Big_String;
for X'Address use U.Reference.Data'Address;
begin
S := X'Unchecked_Access;
L := U.Reference.Last;
end Get_String;
----------------
-- Set_String --
----------------
procedure Set_String (UP : in out Unbounded_String; S : String_Access) is
X : String_Access := S;
begin
Set_Unbounded_String (UP, S.all);
Free (X);
end Set_String;
end Ada.Strings.Unbounded.Aux;
| 48.301587 | 78 | 0.41045 |
39f5a9d2beba06d57adfdcbcba861e7e5e1bbff5 | 2,263 | ads | Ada | examples/GA_Waves/src/ga_waves_globals.ads | ficorax/PortAudioAda | 565cf8a3ad4ec3f6cbe1ed2dae75f42d001f052e | [
"MIT"
] | 2 | 2022-02-26T04:14:01.000Z | 2022-03-07T09:57:25.000Z | examples/GA_Waves/src/ga_waves_globals.ads | ficorax/PortAudioAda | 565cf8a3ad4ec3f6cbe1ed2dae75f42d001f052e | [
"MIT"
] | null | null | null | examples/GA_Waves/src/ga_waves_globals.ads | ficorax/PortAudioAda | 565cf8a3ad4ec3f6cbe1ed2dae75f42d001f052e | [
"MIT"
] | null | null | null | with Ada.Numerics;
with Gtk.Widget; use Gtk.Widget;
with PortAudioAda; use PortAudioAda;
package GA_Waves_Globals is
Frames_Per_Buffer : Long_Float := 64.0;
Sample_Rate : Long_Float := 44_100.0;
stream : aliased PA_Stream_Ptr;
Two_Pi : Long_Float := Ada.Numerics.Pi * 2.0;
type Float_Array is array (Integer range <>) of aliased Float;
pragma Convention (C, Float_Array);
type User_Data is record
amplitude : aliased Long_Float := 0.5;
frequency : aliased Long_Float := 440.0;
phase : aliased Long_Float := 0.0;
end record;
pragma Convention (C, User_Data);
type User_Data_Ptr is access all User_Data;
pragma Convention (C, User_Data_Ptr);
pragma No_Strict_Aliasing (User_Data_Ptr);
gUserData : aliased User_Data;
type Option_Use is
(OU_Before,
OU_After,
OU_NoMatter);
type One_Option is record
optionWidget : access Gtk_Widget_Record'Class;
optionUse : Option_Use;
end record;
type Enum_Options is
(EO_Start,
EO_Frames_Per_Buffer,
EO_Sample_Rate,
EO_Wave_Type,
EO_Amplitude,
EO_Frequency);
options : array (Enum_Options) of One_Option;
type Samples is record
numRate : Long_Float;
txtRate : String (1 .. 6);
end record;
sample_Rates : array (Natural range <>) of Samples :=
((8000.0, " 8000"),
(9600.0, " 9600"),
(1025.0, " 11025"),
(12000.0, " 12000"),
(16000.0, " 16000"),
(22050.0, " 22050"),
(24000.0, " 24000"),
(32000.0, " 32000"),
(44100.0, " 44100"),
(48000.0, " 48000"),
(88200.0, " 88200"),
(96000.0, " 96000"),
(192000.0, "192000"));
type Wave_Types is
(Sine,
Square,
Sawtooth,
Triangle,
WhiteNoise,
PinkNoise,
BrownNoise);
wave_Type : Wave_Types := Sine;
-----------------------------------------------------------------------------
procedure Toggle_Options (started : Boolean);
end GA_Waves_Globals;
| 25.715909 | 80 | 0.533805 |
a1ff7c50701103410a5e3b3fd1801d063281d303 | 33,308 | ads | Ada | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_codecparsers_gstvc1parser_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | 1 | 2018-01-18T00:51:00.000Z | 2018-01-18T00:51:00.000Z | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_codecparsers_gstvc1parser_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_codecparsers_gstvc1parser_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_codecparsers_gstvc1parser_h is
MAX_HRD_NUM_LEAKY_BUCKETS : constant := 31; -- gst/codecparsers/gstvc1parser.h:34
GST_VC1_BFRACTION_BASIS : constant := 840; -- gst/codecparsers/gstvc1parser.h:40
-- unsupported macro: GST_VC1_BFRACTION_RESERVED (GST_VC1_BFRACTION_BASIS + 1)
-- unsupported macro: GST_VC1_BFRACTION_PTYPE_BI (GST_VC1_BFRACTION_BASIS + 2)
-- Gstreamer
-- * Copyright (C) <2011> Intel
-- * Copyright (C) <2011> Collabora Ltd.
-- * Copyright (C) <2011> Thibault Saunier <[email protected]>
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
--*
-- * @GST_VC1_BFRACTION_BASIS: The @bfraction variable should be divided
-- * by this constant to have the actual value.
--
subtype GstVC1StartCode is unsigned;
GST_VC1_END_OF_SEQ : constant GstVC1StartCode := 10;
GST_VC1_SLICE : constant GstVC1StartCode := 11;
GST_VC1_FIELD : constant GstVC1StartCode := 12;
GST_VC1_FRAME : constant GstVC1StartCode := 13;
GST_VC1_ENTRYPOINT : constant GstVC1StartCode := 14;
GST_VC1_SEQUENCE : constant GstVC1StartCode := 15;
GST_VC1_SLICE_USER : constant GstVC1StartCode := 27;
GST_VC1_FIELD_USER : constant GstVC1StartCode := 28;
GST_VC1_FRAME_USER : constant GstVC1StartCode := 29;
GST_VC1_ENTRY_POINT_USER : constant GstVC1StartCode := 30;
GST_VC1_SEQUENCE_USER : constant GstVC1StartCode := 31; -- gst/codecparsers/gstvc1parser.h:57
type GstVC1Profile is
(GST_VC1_PROFILE_SIMPLE,
GST_VC1_PROFILE_MAIN,
GST_VC1_PROFILE_RESERVED,
GST_VC1_PROFILE_ADVANCED);
pragma Convention (C, GstVC1Profile); -- gst/codecparsers/gstvc1parser.h:64
type GstVC1ParserResult is
(GST_VC1_PARSER_OK,
GST_VC1_PARSER_BROKEN_DATA,
GST_VC1_PARSER_NO_BDU,
GST_VC1_PARSER_NO_BDU_END,
GST_VC1_PARSER_ERROR);
pragma Convention (C, GstVC1ParserResult); -- gst/codecparsers/gstvc1parser.h:72
type GstVC1PictureType is
(GST_VC1_PICTURE_TYPE_P,
GST_VC1_PICTURE_TYPE_B,
GST_VC1_PICTURE_TYPE_I,
GST_VC1_PICTURE_TYPE_BI,
GST_VC1_PICTURE_TYPE_SKIPPED);
pragma Convention (C, GstVC1PictureType); -- gst/codecparsers/gstvc1parser.h:81
-- Simple/Main profile low level
-- Simple/Main profile medium level
-- Main profile high level
-- Advanced profile level 0
-- Advanced profile level 1
-- Advanced profile level 2
-- Advanced profile level 3
-- Advanced profile level 4
-- 5 to 7 reserved
-- Unknown profile
subtype GstVC1Level is unsigned;
GST_VC1_LEVEL_LOW : constant GstVC1Level := 0;
GST_VC1_LEVEL_MEDIUM : constant GstVC1Level := 1;
GST_VC1_LEVEL_HIGH : constant GstVC1Level := 2;
GST_VC1_LEVEL_L0 : constant GstVC1Level := 0;
GST_VC1_LEVEL_L1 : constant GstVC1Level := 1;
GST_VC1_LEVEL_L2 : constant GstVC1Level := 2;
GST_VC1_LEVEL_L3 : constant GstVC1Level := 3;
GST_VC1_LEVEL_L4 : constant GstVC1Level := 4;
GST_VC1_LEVEL_UNKNOWN : constant GstVC1Level := 255; -- gst/codecparsers/gstvc1parser.h:97
type GstVC1QuantizerSpec is
(GST_VC1_QUANTIZER_IMPLICITLY,
GST_VC1_QUANTIZER_EXPLICITLY,
GST_VC1_QUANTIZER_NON_UNIFORM,
GST_VC1_QUANTIZER_UNIFORM);
pragma Convention (C, GstVC1QuantizerSpec); -- gst/codecparsers/gstvc1parser.h:105
type GstVC1DQProfile is
(GST_VC1_DQPROFILE_FOUR_EDGES,
GST_VC1_DQPROFILE_DOUBLE_EDGES,
GST_VC1_DQPROFILE_SINGLE_EDGE,
GST_VC1_DQPROFILE_ALL_MBS);
pragma Convention (C, GstVC1DQProfile); -- gst/codecparsers/gstvc1parser.h:112
type GstVC1Condover is
(GST_VC1_CONDOVER_NONE,
GST_VC1_CONDOVER_ALL,
GST_VC1_CONDOVER_SELECT);
pragma Convention (C, GstVC1Condover); -- gst/codecparsers/gstvc1parser.h:118
--*
-- * GstVC1MvMode:
-- *
--
type GstVC1MvMode is
(GST_VC1_MVMODE_1MV_HPEL_BILINEAR,
GST_VC1_MVMODE_1MV,
GST_VC1_MVMODE_1MV_HPEL,
GST_VC1_MVMODE_MIXED_MV,
GST_VC1_MVMODE_INTENSITY_COMP);
pragma Convention (C, GstVC1MvMode); -- gst/codecparsers/gstvc1parser.h:131
subtype GstVC1FrameCodingMode is unsigned;
GST_VC1_FRAME_PROGRESSIVE : constant GstVC1FrameCodingMode := 0;
GST_VC1_FRAME_INTERLACE : constant GstVC1FrameCodingMode := 16;
GST_VC1_FIELD_INTERLACE : constant GstVC1FrameCodingMode := 17; -- gst/codecparsers/gstvc1parser.h:138
type GstVC1SeqHdr;
--subtype GstVC1SeqHdr is u_GstVC1SeqHdr; -- gst/codecparsers/gstvc1parser.h:140
type GstVC1AdvancedSeqHdr;
--subtype GstVC1AdvancedSeqHdr is u_GstVC1AdvancedSeqHdr; -- gst/codecparsers/gstvc1parser.h:141
type GstVC1HrdParam;
type u_GstVC1HrdParam_hrd_rate_array is array (0 .. 30) of aliased GLIB.guint16;
type u_GstVC1HrdParam_hrd_buffer_array is array (0 .. 30) of aliased GLIB.guint16;
--subtype GstVC1HrdParam is u_GstVC1HrdParam; -- gst/codecparsers/gstvc1parser.h:142
type GstVC1EntryPointHdr;
type u_GstVC1EntryPointHdr_hrd_full_array is array (0 .. 30) of aliased GLIB.guint8;
--subtype GstVC1EntryPointHdr is u_GstVC1EntryPointHdr; -- gst/codecparsers/gstvc1parser.h:143
type GstVC1SeqLayer;
--subtype GstVC1SeqLayer is u_GstVC1SeqLayer; -- gst/codecparsers/gstvc1parser.h:145
type GstVC1SeqStructA;
--subtype GstVC1SeqStructA is u_GstVC1SeqStructA; -- gst/codecparsers/gstvc1parser.h:147
type GstVC1SeqStructB;
--subtype GstVC1SeqStructB is u_GstVC1SeqStructB; -- gst/codecparsers/gstvc1parser.h:148
type GstVC1SeqStructC;
--subtype GstVC1SeqStructC is u_GstVC1SeqStructC; -- gst/codecparsers/gstvc1parser.h:149
-- Pictures Structures
type GstVC1FrameLayer;
--subtype GstVC1FrameLayer is u_GstVC1FrameLayer; -- gst/codecparsers/gstvc1parser.h:152
type GstVC1FrameHdr;
type GstVC1PicAdvanced;
--subtype GstVC1PicAdvanced is u_GstVC1PicAdvanced; -- gst/codecparsers/gstvc1parser.h:154
type GstVC1PicSimpleMain;
--subtype GstVC1PicSimpleMain is u_GstVC1PicSimpleMain; -- gst/codecparsers/gstvc1parser.h:155
-- skipped empty struct u_GstVC1Picture
-- skipped empty struct GstVC1Picture
type GstVC1VopDquant;
--subtype GstVC1VopDquant is u_GstVC1VopDquant; -- gst/codecparsers/gstvc1parser.h:158
type GstVC1BitPlanes;
--subtype GstVC1BitPlanes is u_GstVC1BitPlanes; -- gst/codecparsers/gstvc1parser.h:160
type GstVC1BDU;
--subtype GstVC1BDU is u_GstVC1BDU; -- gst/codecparsers/gstvc1parser.h:162
type GstVC1HrdParam is record
hrd_num_leaky_buckets : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:166
bit_rate_exponent : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:167
buffer_size_exponent : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:168
hrd_rate : aliased u_GstVC1HrdParam_hrd_rate_array; -- gst/codecparsers/gstvc1parser.h:169
hrd_buffer : aliased u_GstVC1HrdParam_hrd_buffer_array; -- gst/codecparsers/gstvc1parser.h:170
end record;
pragma Convention (C_Pass_By_Copy, GstVC1HrdParam); -- gst/codecparsers/gstvc1parser.h:164
--*
-- * GstVC1EntryPointHdr:
-- *
-- * Structure for entrypoint header, this will be used only in advanced profiles
--
type GstVC1EntryPointHdr is record
broken_link : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:180
closed_entry : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:181
panscan_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:182
refdist_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:183
loopfilter : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:184
fastuvmc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:185
extended_mv : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:186
dquant : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:187
vstransform : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:188
overlap : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:189
quantizer : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:190
coded_size_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:191
coded_width : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:192
coded_height : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:193
extended_dmv : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:194
range_mapy_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:195
range_mapy : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:196
range_mapuv_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:197
range_mapuv : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:198
hrd_full : aliased u_GstVC1EntryPointHdr_hrd_full_array; -- gst/codecparsers/gstvc1parser.h:200
end record;
pragma Convention (C_Pass_By_Copy, GstVC1EntryPointHdr); -- gst/codecparsers/gstvc1parser.h:178
--*
-- * GstVC1AdvancedSeqHdr:
-- *
-- * Structure for the advanced profile sequence headers specific parameters.
--
type GstVC1AdvancedSeqHdr is record
level : aliased GstVC1Level; -- gst/codecparsers/gstvc1parser.h:210
frmrtq_postproc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:212
bitrtq_postproc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:213
postprocflag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:214
max_coded_width : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:215
max_coded_height : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:216
pulldown : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:217
interlace : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:218
tfcntrflag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:219
finterpflag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:220
psf : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:221
display_ext : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:222
disp_horiz_size : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:223
disp_vert_size : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:224
aspect_ratio_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:225
aspect_ratio : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:226
aspect_horiz_size : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:227
aspect_vert_size : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:228
framerate_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:229
framerateind : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:230
frameratenr : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:231
frameratedr : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:232
framerateexp : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:233
color_format_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:234
color_prim : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:235
transfer_char : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:236
matrix_coef : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:237
hrd_param_flag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:238
colordiff_format : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:239
hrd_param : aliased GstVC1HrdParam; -- gst/codecparsers/gstvc1parser.h:241
framerate : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:244
bitrate : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:245
par_n : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:246
par_d : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:247
fps_n : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:248
fps_d : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:249
entrypoint : aliased GstVC1EntryPointHdr; -- gst/codecparsers/gstvc1parser.h:252
end record;
pragma Convention (C_Pass_By_Copy, GstVC1AdvancedSeqHdr); -- gst/codecparsers/gstvc1parser.h:208
-- computed
-- Around in fps, 0 if unknown
-- Around in kpbs, 0 if unknown
-- The last parsed entry point
type GstVC1SeqStructA is record
vert_size : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:257
horiz_size : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:258
end record;
pragma Convention (C_Pass_By_Copy, GstVC1SeqStructA); -- gst/codecparsers/gstvc1parser.h:255
type GstVC1SeqStructB is record
level : aliased GstVC1Level; -- gst/codecparsers/gstvc1parser.h:263
cbr : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:265
framerate : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:266
hrd_buffer : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:269
hrd_rate : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:270
end record;
pragma Convention (C_Pass_By_Copy, GstVC1SeqStructB); -- gst/codecparsers/gstvc1parser.h:261
-- In simple and main profiles only
type GstVC1SeqStructC is record
profile : aliased GstVC1Profile; -- gst/codecparsers/gstvc1parser.h:275
frmrtq_postproc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:278
bitrtq_postproc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:279
res_sprite : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:280
loop_filter : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:281
multires : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:282
fastuvmc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:283
extended_mv : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:284
dquant : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:285
vstransform : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:286
overlap : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:287
syncmarker : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:288
rangered : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:289
maxbframes : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:290
quantizer : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:291
finterpflag : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:292
framerate : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:295
bitrate : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:296
coded_width : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:299
coded_height : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:301
wmvp : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:304
slice_code : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:306
end record;
pragma Convention (C_Pass_By_Copy, GstVC1SeqStructC); -- gst/codecparsers/gstvc1parser.h:273
-- Only in simple and main profiles
-- Computed
-- Around in fps, 0 if unknown
-- Around in kpbs, 0 if unknown
-- This should be filled by user if previously known
-- This should be filled by user if previously known
-- Wmvp specific
-- Specify if the stream is wmp or not
-- In the wmvp case, the framerate is not computed but in the bistream
type GstVC1SeqLayer is record
numframes : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:311
struct_a : aliased GstVC1SeqStructA; -- gst/codecparsers/gstvc1parser.h:313
struct_b : aliased GstVC1SeqStructB; -- gst/codecparsers/gstvc1parser.h:314
struct_c : aliased GstVC1SeqStructC; -- gst/codecparsers/gstvc1parser.h:315
end record;
pragma Convention (C_Pass_By_Copy, GstVC1SeqLayer); -- gst/codecparsers/gstvc1parser.h:309
--*
-- * GstVC1SeqHdr:
-- *
-- * Structure for sequence headers in any profile.
--
type GstVC1SeqHdr is record
profile : aliased GstVC1Profile; -- gst/codecparsers/gstvc1parser.h:325
struct_c : aliased GstVC1SeqStructC; -- gst/codecparsers/gstvc1parser.h:327
mb_height : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:330
mb_width : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:331
mb_stride : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:332
advanced : aliased GstVC1AdvancedSeqHdr; -- gst/codecparsers/gstvc1parser.h:334
end record;
pragma Convention (C_Pass_By_Copy, GstVC1SeqHdr); -- gst/codecparsers/gstvc1parser.h:323
-- calculated
--*
-- * GstVC1PicSimpleMain:
-- * @bfaction: Should be divided by #GST_VC1_BFRACTION_BASIS
-- * to get the real value.
--
type GstVC1PicSimpleMain is record
frmcnt : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:345
mvrange : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:346
rangeredfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:347
respic : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:350
transacfrm2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:353
bf : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:354
mvmode : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:357
mvtab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:358
ttmbf : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:359
mvmode2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:362
lumscale : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:363
lumshift : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:364
cbptab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:366
ttfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:367
bfraction : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:372
mvtypemb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:376
skipmb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:377
directmb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:378
end record;
pragma Convention (C_Pass_By_Copy, GstVC1PicSimpleMain); -- gst/codecparsers/gstvc1parser.h:343
-- I and P pic simple and main profiles only
-- I and BI pic simple and main profiles only
-- B and P pic simple and main profiles only
-- P pic simple and main profiles only
-- B and BI picture only
-- * Should be divided by #GST_VC1_BFRACTION_BASIS
-- * to get the real value.
-- Biplane value, those fields only mention the fact
-- * that the bitplane is in raw mode or not
-- B pic main profile only
--*
-- * GstVC1PicAdvanced:
-- * @bfaction: Should be divided by #GST_VC1_BFRACTION_BASIS
-- * to get the real value.
--
type GstVC1PicAdvanced is record
fcm : aliased GstVC1FrameCodingMode; -- gst/codecparsers/gstvc1parser.h:388
tfcntr : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:389
rptfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:391
tff : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:392
rff : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:393
ps_present : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:394
ps_hoffset : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:395
ps_voffset : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:396
ps_width : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:397
ps_height : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:398
rndctrl : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:399
uvsamp : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:400
postproc : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:401
mvrange : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:404
mvmode : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:405
mvtab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:406
cbptab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:407
ttmbf : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:408
ttfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:409
bfraction : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:414
mvmode2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:417
lumscale : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:418
lumshift : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:419
bf : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:422
condover : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:423
transacfrm2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:424
acpred : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:428
overflags : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:429
mvtypemb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:430
skipmb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:431
directmb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:432
forwardmb : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:433
fieldtx : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:436
intcomp : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:439
dmvrange : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:440
mbmodetab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:441
imvtab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:442
icbptab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:443
mvbptab2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:444
mvbptab4 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:445
mvswitch4 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:448
refdist : aliased GLIB.guint16; -- gst/codecparsers/gstvc1parser.h:451
fptype : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:452
numref : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:455
reffield : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:456
lumscale2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:457
lumshift2 : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:458
intcompfield : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:459
end record;
pragma Convention (C_Pass_By_Copy, GstVC1PicAdvanced); -- gst/codecparsers/gstvc1parser.h:386
-- B and P picture specific
-- B and BI picture only
-- * Should be divided by #GST_VC1_BFRACTION_BASIS
-- * to get the real value.
-- ppic
-- bipic
-- Biplane value, those fields only mention the fact
-- * that the bitplane is in raw mode or not
-- B pic interlace field only
-- For interlaced pictures only
-- P and B pictures
-- If 4mvswitch in ppic
-- P picture
-- For interlaced fields only
-- Raw value
-- P pic
type GstVC1BitPlanes is record
acpred : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:465
fieldtx : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:466
overflags : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:467
mvtypemb : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:468
skipmb : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:469
directmb : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:470
forwardmb : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:471
size : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:473
end record;
pragma Convention (C_Pass_By_Copy, GstVC1BitPlanes); -- gst/codecparsers/gstvc1parser.h:463
-- Size of the arrays
type GstVC1VopDquant is record
pqdiff : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:478
abspq : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:479
altpquant : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:482
dquantfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:485
dqprofile : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:486
dqsbedge : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:490
dqbedge : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:494
dqbilevel : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:497
end record;
pragma Convention (C_Pass_By_Copy, GstVC1VopDquant); -- gst/codecparsers/gstvc1parser.h:476
-- Computed
-- if dqant != 2
-- if dqprofile == GST_VC1_DQPROFILE_SINGLE_EDGE
-- * or GST_VC1_DQPROFILE_DOUBLE_EDGE:
-- if dqprofile == GST_VC1_DQPROFILE_SINGLE_EDGE
-- * or GST_VC1_DQPROFILE_DOUBLE_EDGE:
-- if dqprofile == GST_VC1_DQPROFILE_ALL_MBS
type GstVC1FrameLayer is record
key : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:503
framesize : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:504
timestamp : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:506
next_framelayer_offset : aliased GLIB.guint32; -- gst/codecparsers/gstvc1parser.h:509
skiped_p_frame : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:510
end record;
pragma Convention (C_Pass_By_Copy, GstVC1FrameLayer); -- gst/codecparsers/gstvc1parser.h:501
-- calculated
--*
-- * GstVC1FrameHdr:
-- *
-- * Structure that represent picture in any profile or mode.
-- * You should look at @ptype and @profile to know what is currently
-- * in use.
--
-- common fields
type anon_433 (discr : unsigned := 0) is record
case discr is
when 0 =>
simple : aliased GstVC1PicSimpleMain; -- gst/codecparsers/gstvc1parser.h:542
when others =>
advanced : aliased GstVC1PicAdvanced; -- gst/codecparsers/gstvc1parser.h:543
end case;
end record;
pragma Convention (C_Pass_By_Copy, anon_433);
pragma Unchecked_Union (anon_433);--subtype GstVC1FrameHdr is u_GstVC1FrameHdr; -- gst/codecparsers/gstvc1parser.h:153
type GstVC1FrameHdr is record
ptype : aliased GstVC1PictureType; -- gst/codecparsers/gstvc1parser.h:523
interpfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:524
halfqp : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:525
transacfrm : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:526
transdctab : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:527
pqindex : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:528
pquantizer : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:529
pquant : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:532
profile : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:535
dquant : aliased GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:536
vopdquant : aliased GstVC1VopDquant; -- gst/codecparsers/gstvc1parser.h:539
pic : aliased anon_433; -- gst/codecparsers/gstvc1parser.h:544
header_size : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:547
end record;
pragma Convention (C_Pass_By_Copy, GstVC1FrameHdr); -- gst/codecparsers/gstvc1parser.h:520
-- Computed
-- Convenience fields
-- If dquant
-- Size of the picture layer in bits
--*
-- * GstVC1BDU:
-- *
-- * Structure that represents a Bitstream Data Unit.
--
type GstVC1BDU is record
c_type : aliased GstVC1StartCode; -- gst/codecparsers/gstvc1parser.h:557
size : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:558
sc_offset : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:559
offset : aliased GLIB.guint; -- gst/codecparsers/gstvc1parser.h:560
data : access GLIB.guint8; -- gst/codecparsers/gstvc1parser.h:561
end record;
pragma Convention (C_Pass_By_Copy, GstVC1BDU); -- gst/codecparsers/gstvc1parser.h:555
function gst_vc1_identify_next_bdu
(data : access GLIB.guint8;
size : GLIB.gsize;
bdu : access GstVC1BDU) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:564
pragma Import (C, gst_vc1_identify_next_bdu, "gst_vc1_identify_next_bdu");
function gst_vc1_parse_sequence_header
(data : access GLIB.guint8;
size : GLIB.gsize;
seqhdr : access GstVC1SeqHdr) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:569
pragma Import (C, gst_vc1_parse_sequence_header, "gst_vc1_parse_sequence_header");
function gst_vc1_parse_entry_point_header
(data : access GLIB.guint8;
size : GLIB.gsize;
entrypoint : access GstVC1EntryPointHdr;
seqhdr : access GstVC1SeqHdr) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:573
pragma Import (C, gst_vc1_parse_entry_point_header, "gst_vc1_parse_entry_point_header");
function gst_vc1_parse_sequence_layer
(data : access GLIB.guint8;
size : GLIB.gsize;
seqlayer : access GstVC1SeqLayer) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:578
pragma Import (C, gst_vc1_parse_sequence_layer, "gst_vc1_parse_sequence_layer");
function gst_vc1_parse_sequence_header_struct_a
(data : access GLIB.guint8;
size : GLIB.gsize;
structa : access GstVC1SeqStructA) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:583
pragma Import (C, gst_vc1_parse_sequence_header_struct_a, "gst_vc1_parse_sequence_header_struct_a");
function gst_vc1_parse_sequence_header_struct_b
(data : access GLIB.guint8;
size : GLIB.gsize;
structb : access GstVC1SeqStructB) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:587
pragma Import (C, gst_vc1_parse_sequence_header_struct_b, "gst_vc1_parse_sequence_header_struct_b");
function gst_vc1_parse_sequence_header_struct_c
(data : access GLIB.guint8;
size : GLIB.gsize;
structc : access GstVC1SeqStructC) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:592
pragma Import (C, gst_vc1_parse_sequence_header_struct_c, "gst_vc1_parse_sequence_header_struct_c");
function gst_vc1_parse_frame_layer
(data : access GLIB.guint8;
size : GLIB.gsize;
framelayer : access GstVC1FrameLayer) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:596
pragma Import (C, gst_vc1_parse_frame_layer, "gst_vc1_parse_frame_layer");
function gst_vc1_parse_frame_header
(data : access GLIB.guint8;
size : GLIB.gsize;
framehdr : access GstVC1FrameHdr;
seqhdr : access GstVC1SeqHdr;
bitplanes : access GstVC1BitPlanes) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:600
pragma Import (C, gst_vc1_parse_frame_header, "gst_vc1_parse_frame_header");
function gst_vc1_parse_field_header
(data : access GLIB.guint8;
size : GLIB.gsize;
fieldhdr : access GstVC1FrameHdr;
seqhdr : access GstVC1SeqHdr;
bitplanes : access GstVC1BitPlanes) return GstVC1ParserResult; -- gst/codecparsers/gstvc1parser.h:606
pragma Import (C, gst_vc1_parse_field_header, "gst_vc1_parse_field_header");
function gst_vc1_bitplanes_new return access GstVC1BitPlanes; -- gst/codecparsers/gstvc1parser.h:612
pragma Import (C, gst_vc1_bitplanes_new, "gst_vc1_bitplanes_new");
procedure gst_vc1_bitplanes_free (bitplanes : access GstVC1BitPlanes); -- gst/codecparsers/gstvc1parser.h:614
pragma Import (C, gst_vc1_bitplanes_free, "gst_vc1_bitplanes_free");
procedure gst_vc1_bitplanes_free_1 (bitplanes : access GstVC1BitPlanes); -- gst/codecparsers/gstvc1parser.h:616
pragma Import (C, gst_vc1_bitplanes_free_1, "gst_vc1_bitplanes_free_1");
function gst_vc1_bitplanes_ensure_size (bitplanes : access GstVC1BitPlanes; seqhdr : access GstVC1SeqHdr) return GLIB.gboolean; -- gst/codecparsers/gstvc1parser.h:618
pragma Import (C, gst_vc1_bitplanes_ensure_size, "gst_vc1_bitplanes_ensure_size");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_codecparsers_gstvc1parser_h;
| 51.08589 | 170 | 0.732347 |
fba5ef606b6c78cc23029b5b838f401d67c551b8 | 373 | ads | Ada | source/symbol_sets.ads | jquorning/CELLE | 0584a22bd48464c2727751fca9dbca079e217b0c | [
"blessing"
] | null | null | null | source/symbol_sets.ads | jquorning/CELLE | 0584a22bd48464c2727751fca9dbca079e217b0c | [
"blessing"
] | null | null | null | source/symbol_sets.ads | jquorning/CELLE | 0584a22bd48464c2727751fca9dbca079e217b0c | [
"blessing"
] | null | null | null | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Types;
with Sets;
package Symbol_Sets is
new Sets (Index_Type => Types.Symbol_Index);
| 24.866667 | 68 | 0.699732 |
580d4281c29926d1346ffd7a6ddf3355b9be2226 | 35,207 | adb | Ada | boards/ip_colordetect/colordetect/colordetect/.autopilot/db/colorthresholding_9_0_3_2160_3840_1_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc.adb | Kgfu/PYNQ_HelloWorld | a5197130e7d4a5e7f382c3963349c1c0bd213213 | [
"BSD-3-Clause"
] | null | null | null | boards/ip_colordetect/colordetect/colordetect/.autopilot/db/colorthresholding_9_0_3_2160_3840_1_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc.adb | Kgfu/PYNQ_HelloWorld | a5197130e7d4a5e7f382c3963349c1c0bd213213 | [
"BSD-3-Clause"
] | null | null | null | boards/ip_colordetect/colordetect/colordetect/.autopilot/db/colorthresholding_9_0_3_2160_3840_1_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc.adb | Kgfu/PYNQ_HelloWorld | a5197130e7d4a5e7f382c3963349c1c0bd213213 | [
"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>colorthresholding_9_0_3_2160_3840_1_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc</name>
<ret_bitwidth>32</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_src_mat_rows</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName>FIFO_SRL</coreName>
<coreId>49</coreId>
</Obj>
<bitwidth>16</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_src_mat_cols</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName>FIFO_SRL</coreName>
<coreId>49</coreId>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>img_height</name>
<fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>152</lineNumber>
<contextFuncName>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</contextFuncName>
<contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</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>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first>
<second>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</second>
</first>
<second>152</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_height</originalName>
<rtlName/>
<control>auto</control>
<opType>fifo</opType>
<implIndex>srl</implIndex>
<coreName>FIFO_SRL</coreName>
<coreId>81</coreId>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>12</item>
<item>13</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>3.40</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>img_width</name>
<fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>153</lineNumber>
<contextFuncName>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</contextFuncName>
<contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first>
<second>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</second>
</first>
<second>153</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>img_width</originalName>
<rtlName/>
<control>auto</control>
<opType>fifo</opType>
<implIndex>srl</implIndex>
<coreName>FIFO_SRL</coreName>
<coreId>81</coreId>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>14</item>
<item>15</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>3.40</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>7</id>
<name>mrv</name>
<fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>152</lineNumber>
<contextFuncName>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</contextFuncName>
<contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first>
<second>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</second>
</first>
<second>152</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<coreId>113</coreId>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>17</item>
<item>18</item>
</oprand_edges>
<opcode>insertvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>mrv_1</name>
<fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>152</lineNumber>
<contextFuncName>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</contextFuncName>
<contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first>
<second>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</second>
</first>
<second>152</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<coreId>113</coreId>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>19</item>
<item>20</item>
</oprand_edges>
<opcode>insertvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>_ln152</name>
<fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>152</lineNumber>
<contextFuncName>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</contextFuncName>
<contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first>
<second>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;</second>
</first>
<second>152</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<coreId>113</coreId>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_8">
<Value>
<Obj>
<type>2</type>
<id>16</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<coreId>49</coreId>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>5</const_type>
<content><undef></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="_9">
<Obj>
<type>3</type>
<id>10</id>
<name>colorthresholding<9, 0, 3, 2160, 3840, 1>_Block_colorthresholding<9, 0, 3, 2160, 3840, 1>_.exit_proc</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<coreId>1768189039</coreId>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_10">
<id>13</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_11">
<id>15</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_12">
<id>17</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>7</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_13">
<id>18</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>7</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_14">
<id>19</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_15">
<id>20</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_16">
<id>21</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_17">
<mId>1</mId>
<mTag>colorthresholding<9, 0, 3, 2160, 3840, 1>_Block_colorthresholding<9, 0, 3, 2160, 3840, 1>_.exit_proc</mTag>
<mNormTag>colorthresholding_9_0_3_2160_3840_1_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc</mNormTag>
<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>10</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>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_18">
<states class_id="25" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_19">
<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="_20">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_21">
<id>4</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_22">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_23">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_24">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_25">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_26">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</transitions>
</fsm>
<res class_id="30" tracking_level="1" version="0" object_id="_27">
<dp_component_resource class_id="31" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_resource>
<dp_expression_resource>
<count>1</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="0" version="0">
<first>ap_block_state1 ( or ) </first>
<second class_id="33" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<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>1</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>0</count>
<item_version>0</item_version>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>5</count>
<item_version>0</item_version>
<item>
<first>ap_done</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_return_0</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>16</second>
</item>
<item>
<first>(2Count)</first>
<second>32</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>ap_return_1</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>16</second>
</item>
<item>
<first>(2Count)</first>
<second>32</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>p_src_mat_cols_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>p_src_mat_rows_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>
</dp_multiplexer_resource>
<dp_register_resource>
<count>4</count>
<item_version>0</item_version>
<item>
<first>ap_CS_fsm</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_done_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>ap_return_0_preg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>16</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>16</second>
</item>
</second>
</item>
<item>
<first>ap_return_1_preg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>16</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>16</second>
</item>
</second>
</item>
</dp_register_resource>
<dp_dsp_resource>
<count>0</count>
<item_version>0</item_version>
</dp_dsp_resource>
<dp_component_map class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_map>
<dp_memory_map>
<count>0</count>
<item_version>0</item_version>
</dp_memory_map>
</res>
<node_label_latency class_id="36" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="37" tracking_level="0" version="0">
<first>5</first>
<second class_id="38" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>7</first>
<second>
<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>
</node_label_latency>
<bblk_ent_exit class_id="39" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>10</first>
<second class_id="41" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="42" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="43" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="0" version="0">
<first>22</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>28</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>34</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>40</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="46" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="47" tracking_level="0" version="0">
<first>mrv_1_fu_40</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>mrv_fu_34</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</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>2</count>
<item_version>0</item_version>
<item>
<first>img_height_read_fu_22</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>img_width_read_fu_28</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>2</count>
<item_version>0</item_version>
<item>
<first>ap_return_0</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>ap_return_1</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
</return_ports>
<dp_mem_port_nodes class_id="48" 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="49" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>p_src_mat_cols</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
</second>
</item>
<item>
<first>p_src_mat_rows</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core>
<count>2</count>
<item_version>0</item_version>
<item>
<first>1</first>
<second>
<first>1150</first>
<second>10</second>
</second>
</item>
<item>
<first>2</first>
<second>
<first>1150</first>
<second>10</second>
</second>
</item>
</port2core>
<node2core>
<count>2</count>
<item_version>0</item_version>
<item>
<first>5</first>
<second>
<first>1150</first>
<second>10</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>1150</first>
<second>10</second>
</second>
</item>
</node2core>
</syndb>
</boost_serialization>
| 33.214151 | 151 | 0.490272 |
0ef70f49445190f1e901c2e687700f6621b9eedf | 3,897 | ads | Ada | llvm-gcc-4.2-2.9/gcc/ada/s-imglld.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/s-imglld.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/s-imglld.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . I M G _ L L D --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Image for decimal fixed types where the size of the corresponding integer
-- type does exceeds Integer'Size (also used for Text_IO.Decimal_IO output)
package System.Img_LLD is
pragma Preelaborate;
function Image_Long_Long_Decimal
(V : Long_Long_Integer;
Scale : Integer)
return String;
-- Compute 'Image of V, the integer value (in units of delta) of a decimal
-- type whose Scale is as given and returns the result. The image is given
-- by the rules in RM 3.5(34) for fixed-point type image functions.
procedure Set_Image_Long_Long_Decimal
(V : Long_Long_Integer;
S : out String;
P : in out Natural;
Scale : Integer;
Fore : Natural;
Aft : Natural;
Exp : Natural);
-- Sets the image of V, where V is the integer value (in units of delta)
-- of a decimal type with the given Scale, starting at S (P + 1), updating
-- P to point to the last character stored, the caller promises that the
-- buffer is large enough and no check is made for this. Constraint_Error
-- will not necessarily be raised if this requirement is violated, since
-- it is perfectly valid to compile this unit with checks off. The Fore,
-- Aft and Exp values can be set to any valid values for the case of use
-- by Text_IO.Decimal_IO.
end System.Img_LLD;
| 59.045455 | 78 | 0.504491 |
57abc8f1747fa428cee11b7436f20222ae9ad92a | 3,712 | ads | Ada | tools/scitools/conf/understand/ada/ada05/a-ztdeau.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/ada05/a-ztdeau.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/a-ztdeau.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . W I D E _ W I D E _ T E X T _ I O . D E C I M A L _ A U X --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the routines for Ada.Wide_Wide_Text_IO.Decimal_IO
-- that are shared among separate instantiations of this package. The
-- routines in the package are identical semantically to those declared
-- in Wide_Wide_Text_IO, except that default values have been supplied by the
-- generic, and the Num parameter has been replaced by Integer or
-- Long_Long_Integer, with an additional Scale parameter giving the
-- value of Num'Scale. In addition the Get routines return the value
-- rather than store it in an Out parameter.
private package Ada.Wide_Wide_Text_IO.Decimal_Aux is
function Get_Dec
(File : File_Type;
Width : Field;
Scale : Integer) return Integer;
function Get_LLD
(File : File_Type;
Width : Field;
Scale : Integer) return Long_Long_Integer;
function Gets_Dec
(From : String;
Last : access Positive;
Scale : Integer) return Integer;
function Gets_LLD
(From : String;
Last : access Positive;
Scale : Integer) return Long_Long_Integer;
procedure Put_Dec
(File : File_Type;
Item : Integer;
Fore : Field;
Aft : Field;
Exp : Field;
Scale : Integer);
procedure Put_LLD
(File : File_Type;
Item : Long_Long_Integer;
Fore : Field;
Aft : Field;
Exp : Field;
Scale : Integer);
procedure Puts_Dec
(To : out String;
Item : Integer;
Aft : Field;
Exp : Field;
Scale : Integer);
procedure Puts_LLD
(To : out String;
Item : Long_Long_Integer;
Aft : Field;
Exp : Field;
Scale : Integer);
end Ada.Wide_Wide_Text_IO.Decimal_Aux;
| 38.666667 | 78 | 0.497306 |
57e2e9a4963bb2409fa76103e49ff71f9ae2a2fe | 4,032 | ads | Ada | llvm-gcc-4.2-2.9/gcc/ada/a-wtmoau.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-wtmoau.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/a-wtmoau.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . W I D E _ T E X T _ I O . M O D U L A R _ A U X --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the routines for Ada.Wide_Text_IO.Modular_IO that
-- are shared among separate instantiations of this package. The routines
-- in this package are identical semantically to those in Modular_IO itself,
-- except that the generic parameter Num has been replaced by Unsigned or
-- Long_Long_Unsigned, and the default parameters have been removed because
-- they are supplied explicitly by the calls from within the generic template.
with System.Unsigned_Types;
private package Ada.Wide_Text_IO.Modular_Aux is
package U renames System.Unsigned_Types;
procedure Get_Uns
(File : File_Type;
Item : out U.Unsigned;
Width : Field);
procedure Get_LLU
(File : File_Type;
Item : out U.Long_Long_Unsigned;
Width : Field);
procedure Gets_Uns
(From : String;
Item : out U.Unsigned;
Last : out Positive);
procedure Gets_LLU
(From : String;
Item : out U.Long_Long_Unsigned;
Last : out Positive);
procedure Put_Uns
(File : File_Type;
Item : U.Unsigned;
Width : Field;
Base : Number_Base);
procedure Put_LLU
(File : File_Type;
Item : U.Long_Long_Unsigned;
Width : Field;
Base : Number_Base);
procedure Puts_Uns
(To : out String;
Item : U.Unsigned;
Base : Number_Base);
procedure Puts_LLU
(To : out String;
Item : U.Long_Long_Unsigned;
Base : Number_Base);
end Ada.Wide_Text_IO.Modular_Aux;
| 44.8 | 79 | 0.509673 |
2f7efaacbd5990bb7036ea4cd590bbd55a6e7975 | 3,024 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95012a.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/c9/c95012a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95012a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C95012A.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 A CALL TO AN ENTRY OF A TASK THAT HAS NOT BEEN ACTIVATED
-- DOES NOT RAISE EXCEPTIONS.
-- THIS TEST CONTAINS RACE CONDITIONS.
-- JRK 11/6/81
-- SPS 11/21/82
-- PWN 01/31/95 REMOVED PRAGMA PRIORITY FOR ADA 9X.
with Impdef;
WITH REPORT; USE REPORT;
WITH SYSTEM; USE SYSTEM;
PROCEDURE C95012A IS
I : INTEGER := 0;
BEGIN
TEST ("C95012A", "CHECK THAT A CALL TO AN ENTRY OF A TASK " &
"THAT HAS NOT BEEN ACTIVATED DOES NOT " &
"RAISE EXCEPTIONS");
DECLARE
TASK T1 IS
ENTRY E1 (I : OUT INTEGER);
END T1;
TASK TYPE T2T IS
ENTRY E2 (I : OUT INTEGER);
END T2T;
TYPE AT2T IS ACCESS T2T;
AT2 : AT2T;
TASK BODY T1 IS
BEGIN
ACCEPT E1 (I : OUT INTEGER) DO
I := IDENT_INT (1);
END E1;
END T1;
TASK BODY T2T IS
J : INTEGER := 0;
BEGIN
BEGIN
T1.E1 (J);
EXCEPTION
WHEN OTHERS =>
J := -1;
END;
ACCEPT E2 (I : OUT INTEGER) DO
I := J;
END E2;
END T2T;
PACKAGE PKG IS
END PKG;
PACKAGE BODY PKG IS
BEGIN
AT2 := NEW T2T;
DELAY 60.0 * Impdef.One_Second;
END PKG;
BEGIN
AT2.ALL.E2 (I);
IF I = -1 THEN
FAILED ("EXCEPTION RAISED");
T1.E1 (I);
END IF;
IF I /= 1 THEN
FAILED ("WRONG VALUE PASSED");
END IF;
END;
RESULT;
END C95012A;
| 28.261682 | 79 | 0.535384 |
29204b35996b1b9d5f3102d2b68110b0b44aea7e | 657 | ada | Ada | examples/Ada/rrclient.ada | dcramer/zguide | a07fe97c4c597e6401b4281ae07c3a156590f4c6 | [
"Zed",
"X11",
"MIT"
] | 2 | 2015-09-24T19:53:04.000Z | 2015-11-06T10:22:53.000Z | examples/Ada/rrclient.ada | gaubert/zguide | e24c02481c47b129a37f261d1109140572f255f4 | [
"Zed",
"X11",
"MIT"
] | null | null | null | examples/Ada/rrclient.ada | gaubert/zguide | e24c02481c47b129a37f261d1109140572f255f4 | [
"Zed",
"X11",
"MIT"
] | null | null | null | No-one has translated the rrclient example into Ada yet. Be the first to create
rrclient in Ada and get one free Internet! If you're the author of the Ada
binding, this is a great way to get people to use 0MQ in Ada.
To submit a new translation email it to [email protected]. Please:
* Stick to identical functionality and naming used in examples so that readers
can easily compare languages.
* You MUST place your name as author in the examples so readers can contact you.
* You MUST state in the email that you license your code under the MIT/X11
license.
Subscribe to this list at http://lists.zeromq.org/mailman/listinfo/zeromq-dev.
| 46.928571 | 80 | 0.776256 |
580ee188b204b1c867ad18f97e3f2c14eea115d9 | 3,774 | adb | Ada | STM32F4/ToyOBDH/ground_station/terminal/src/user_interface.adb | AntonioRamosNieto/TFG-STM32F429 | d241065e51451199e7066e6ff3cbd207b4c88837 | [
"BSD-3-Clause"
] | null | null | null | STM32F4/ToyOBDH/ground_station/terminal/src/user_interface.adb | AntonioRamosNieto/TFG-STM32F429 | d241065e51451199e7066e6ff3cbd207b4c88837 | [
"BSD-3-Clause"
] | null | null | null | STM32F4/ToyOBDH/ground_station/terminal/src/user_interface.adb | AntonioRamosNieto/TFG-STM32F429 | d241065e51451199e7066e6ff3cbd207b4c88837 | [
"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. --
-- --
-------------------------------------------------------------------------------
-- User interface implementation
-- Terminal version
with Ada.Text_IO; use Ada.Text_IO;
-- with TC_Sender; use TC_Sender;
with TTC_Data.Strings;
-- with System;
package body User_Interface is
-- task Command_Listener
-- with Priority => System.Default_Priority;
-- -- waits for the user to type a 'C' .and then
-- -- generates a TC and send it to the OBSW
----------
-- Init --
----------
procedure Init is
begin
-- nothing to do
null;
end Init;
----------------
-- Put string --
----------------
procedure Put (S : String) is
begin
Ada.Text_IO.Put_Line (S);
end Put;
-----------------
-- Put message --
-----------------
procedure Put (M : TM_Message) is
begin
Put (TTC_Data.Strings.Image(M));
end Put;
----------------------
-- Command listener --
----------------------
-- task body Command_Listener is
-- C : Character;
-- begin
-- pragma Debug(Put_Line("Command listener started"));
-- loop
-- delay 1.0; -- allow for some free time
-- Get_Immediate(C);
-- C := To_Upper(C);
-- case C is
-- when 'C' =>
-- Send(HK);
-- when others =>
-- null;
-- end case;
-- end loop;
-- end Command_Listener;
end User_Interface;
| 37.74 | 79 | 0.500265 |
3d7b9605ccea26635bcb634e5eb9e66cdc3227ab | 49,614 | adb | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cfdlli.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cfdlli.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cfdlli.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.FORMAL_DOUBLY_LINKED_LISTS --
-- --
-- B o d y --
-- --
-- Copyright (C) 2010-2021, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
------------------------------------------------------------------------------
with System; use type System.Address;
package body Ada.Containers.Formal_Doubly_Linked_Lists with
SPARK_Mode => Off
is
-----------------------
-- Local Subprograms --
-----------------------
procedure Allocate
(Container : in out List;
New_Item : Element_Type;
New_Node : out Count_Type);
procedure Free (Container : in out List; X : Count_Type);
procedure Insert_Internal
(Container : in out List;
Before : Count_Type;
New_Node : Count_Type);
function Vet (L : List; Position : Cursor) return Boolean;
---------
-- "=" --
---------
function "=" (Left : List; Right : List) return Boolean is
LI : Count_Type;
RI : Count_Type;
begin
if Left'Address = Right'Address then
return True;
end if;
if Left.Length /= Right.Length then
return False;
end if;
LI := Left.First;
RI := Left.First;
while LI /= 0 loop
if Left.Nodes (LI).Element /= Right.Nodes (LI).Element then
return False;
end if;
LI := Left.Nodes (LI).Next;
RI := Right.Nodes (RI).Next;
end loop;
return True;
end "=";
--------------
-- Allocate --
--------------
procedure Allocate
(Container : in out List;
New_Item : Element_Type;
New_Node : out Count_Type)
is
N : Node_Array renames Container.Nodes;
begin
if Container.Free >= 0 then
New_Node := Container.Free;
N (New_Node).Element := New_Item;
Container.Free := N (New_Node).Next;
else
New_Node := abs Container.Free;
N (New_Node).Element := New_Item;
Container.Free := Container.Free - 1;
end if;
end Allocate;
------------
-- Append --
------------
procedure Append (Container : in out List; New_Item : Element_Type) is
begin
Insert (Container, No_Element, New_Item, 1);
end Append;
procedure Append
(Container : in out List;
New_Item : Element_Type;
Count : Count_Type)
is
begin
Insert (Container, No_Element, New_Item, Count);
end Append;
------------
-- Assign --
------------
procedure Assign (Target : in out List; Source : List) is
N : Node_Array renames Source.Nodes;
J : Count_Type;
begin
if Target'Address = Source'Address then
return;
end if;
if Target.Capacity < Source.Length then
raise Constraint_Error with -- ???
"Source length exceeds Target capacity";
end if;
Clear (Target);
J := Source.First;
while J /= 0 loop
Append (Target, N (J).Element, 1);
J := N (J).Next;
end loop;
end Assign;
-----------
-- Clear --
-----------
procedure Clear (Container : in out List) is
N : Node_Array renames Container.Nodes;
X : Count_Type;
begin
if Container.Length = 0 then
pragma Assert (Container.First = 0);
pragma Assert (Container.Last = 0);
return;
end if;
pragma Assert (Container.First >= 1);
pragma Assert (Container.Last >= 1);
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
while Container.Length > 1 loop
X := Container.First;
Container.First := N (X).Next;
N (Container.First).Prev := 0;
Container.Length := Container.Length - 1;
Free (Container, X);
end loop;
X := Container.First;
Container.First := 0;
Container.Last := 0;
Container.Length := 0;
Free (Container, X);
end Clear;
------------------------
-- Constant_Reference --
------------------------
function Constant_Reference
(Container : aliased List;
Position : Cursor) return not null access constant Element_Type
is
begin
if not Has_Element (Container => Container, Position => Position) then
raise Constraint_Error with "Position cursor has no element";
end if;
return Container.Nodes (Position.Node).Element'Access;
end Constant_Reference;
--------------
-- Contains --
--------------
function Contains
(Container : List;
Item : Element_Type) return Boolean
is
begin
return Find (Container, Item) /= No_Element;
end Contains;
----------
-- Copy --
----------
function Copy
(Source : List;
Capacity : Count_Type := 0) return List
is
C : constant Count_Type := Count_Type'Max (Source.Capacity, Capacity);
N : Count_Type;
P : List (C);
begin
if 0 < Capacity and then Capacity < Source.Capacity then
raise Capacity_Error;
end if;
N := 1;
while N <= Source.Capacity loop
P.Nodes (N).Prev := Source.Nodes (N).Prev;
P.Nodes (N).Next := Source.Nodes (N).Next;
P.Nodes (N).Element := Source.Nodes (N).Element;
N := N + 1;
end loop;
P.Free := Source.Free;
P.Length := Source.Length;
P.First := Source.First;
P.Last := Source.Last;
if P.Free >= 0 then
N := Source.Capacity + 1;
while N <= C loop
Free (P, N);
N := N + 1;
end loop;
end if;
return P;
end Copy;
------------
-- Delete --
------------
procedure Delete (Container : in out List; Position : in out Cursor) is
begin
Delete
(Container => Container,
Position => Position,
Count => 1);
end Delete;
procedure Delete
(Container : in out List;
Position : in out Cursor;
Count : Count_Type)
is
N : Node_Array renames Container.Nodes;
X : Count_Type;
begin
if not Has_Element (Container => Container,
Position => Position)
then
raise Constraint_Error with "Position cursor has no element";
end if;
pragma Assert (Vet (Container, Position), "bad cursor in Delete");
pragma Assert (Container.First >= 1);
pragma Assert (Container.Last >= 1);
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
if Position.Node = Container.First then
Delete_First (Container, Count);
Position := No_Element;
return;
end if;
if Count = 0 then
Position := No_Element;
return;
end if;
for Index in 1 .. Count loop
pragma Assert (Container.Length >= 2);
X := Position.Node;
Container.Length := Container.Length - 1;
if X = Container.Last then
Position := No_Element;
Container.Last := N (X).Prev;
N (Container.Last).Next := 0;
Free (Container, X);
return;
end if;
Position.Node := N (X).Next;
pragma Assert (N (Position.Node).Prev >= 0);
N (N (X).Next).Prev := N (X).Prev;
N (N (X).Prev).Next := N (X).Next;
Free (Container, X);
end loop;
Position := No_Element;
end Delete;
------------------
-- Delete_First --
------------------
procedure Delete_First (Container : in out List) is
begin
Delete_First
(Container => Container,
Count => 1);
end Delete_First;
procedure Delete_First (Container : in out List; Count : Count_Type) is
N : Node_Array renames Container.Nodes;
X : Count_Type;
begin
if Count >= Container.Length then
Clear (Container);
return;
end if;
if Count = 0 then
return;
end if;
for J in 1 .. Count loop
X := Container.First;
pragma Assert (N (N (X).Next).Prev = Container.First);
Container.First := N (X).Next;
N (Container.First).Prev := 0;
Container.Length := Container.Length - 1;
Free (Container, X);
end loop;
end Delete_First;
-----------------
-- Delete_Last --
-----------------
procedure Delete_Last (Container : in out List) is
begin
Delete_Last
(Container => Container,
Count => 1);
end Delete_Last;
procedure Delete_Last (Container : in out List; Count : Count_Type) is
N : Node_Array renames Container.Nodes;
X : Count_Type;
begin
if Count >= Container.Length then
Clear (Container);
return;
end if;
if Count = 0 then
return;
end if;
for J in 1 .. Count loop
X := Container.Last;
pragma Assert (N (N (X).Prev).Next = Container.Last);
Container.Last := N (X).Prev;
N (Container.Last).Next := 0;
Container.Length := Container.Length - 1;
Free (Container, X);
end loop;
end Delete_Last;
-------------
-- Element --
-------------
function Element
(Container : List;
Position : Cursor) return Element_Type
is
begin
if not Has_Element (Container => Container, Position => Position) then
raise Constraint_Error with "Position cursor has no element";
end if;
return Container.Nodes (Position.Node).Element;
end Element;
----------
-- Find --
----------
function Find
(Container : List;
Item : Element_Type;
Position : Cursor := No_Element) return Cursor
is
From : Count_Type := Position.Node;
begin
if From = 0 and Container.Length = 0 then
return No_Element;
end if;
if From = 0 then
From := Container.First;
end if;
if Position.Node /= 0 and then not Has_Element (Container, Position) then
raise Constraint_Error with "Position cursor has no element";
end if;
while From /= 0 loop
if Container.Nodes (From).Element = Item then
return (Node => From);
end if;
From := Container.Nodes (From).Next;
end loop;
return No_Element;
end Find;
-----------
-- First --
-----------
function First (Container : List) return Cursor is
begin
if Container.First = 0 then
return No_Element;
end if;
return (Node => Container.First);
end First;
-------------------
-- First_Element --
-------------------
function First_Element (Container : List) return Element_Type is
F : constant Count_Type := Container.First;
begin
if F = 0 then
raise Constraint_Error with "list is empty";
else
return Container.Nodes (F).Element;
end if;
end First_Element;
------------------
-- Formal_Model --
------------------
package body Formal_Model is
----------------------------
-- Lift_Abstraction_Level --
----------------------------
procedure Lift_Abstraction_Level (Container : List) is null;
-------------------------
-- M_Elements_In_Union --
-------------------------
function M_Elements_In_Union
(Container : M.Sequence;
Left : M.Sequence;
Right : M.Sequence) return Boolean
is
Elem : Element_Type;
begin
for Index in 1 .. M.Length (Container) loop
Elem := Element (Container, Index);
if not M.Contains (Left, 1, M.Length (Left), Elem)
and then not M.Contains (Right, 1, M.Length (Right), Elem)
then
return False;
end if;
end loop;
return True;
end M_Elements_In_Union;
-------------------------
-- M_Elements_Included --
-------------------------
function M_Elements_Included
(Left : M.Sequence;
L_Fst : Positive_Count_Type := 1;
L_Lst : Count_Type;
Right : M.Sequence;
R_Fst : Positive_Count_Type := 1;
R_Lst : Count_Type) return Boolean
is
begin
for I in L_Fst .. L_Lst loop
declare
Found : Boolean := False;
J : Count_Type := R_Fst - 1;
begin
while not Found and J < R_Lst loop
J := J + 1;
if Element (Left, I) = Element (Right, J) then
Found := True;
end if;
end loop;
if not Found then
return False;
end if;
end;
end loop;
return True;
end M_Elements_Included;
-------------------------
-- M_Elements_Reversed --
-------------------------
function M_Elements_Reversed
(Left : M.Sequence;
Right : M.Sequence) return Boolean
is
L : constant Count_Type := M.Length (Left);
begin
if L /= M.Length (Right) then
return False;
end if;
for I in 1 .. L loop
if Element (Left, I) /= Element (Right, L - I + 1) then
return False;
end if;
end loop;
return True;
end M_Elements_Reversed;
------------------------
-- M_Elements_Swapped --
------------------------
function M_Elements_Swapped
(Left : M.Sequence;
Right : M.Sequence;
X : Positive_Count_Type;
Y : Positive_Count_Type) return Boolean
is
begin
if M.Length (Left) /= M.Length (Right)
or else Element (Left, X) /= Element (Right, Y)
or else Element (Left, Y) /= Element (Right, X)
then
return False;
end if;
for I in 1 .. M.Length (Left) loop
if I /= X and then I /= Y
and then Element (Left, I) /= Element (Right, I)
then
return False;
end if;
end loop;
return True;
end M_Elements_Swapped;
-----------
-- Model --
-----------
function Model (Container : List) return M.Sequence is
Position : Count_Type := Container.First;
R : M.Sequence;
begin
-- Can't use First, Next or Element here, since they depend on models
-- for their postconditions.
while Position /= 0 loop
R := M.Add (R, Container.Nodes (Position).Element);
Position := Container.Nodes (Position).Next;
end loop;
return R;
end Model;
-----------------------
-- Mapping_Preserved --
-----------------------
function Mapping_Preserved
(M_Left : M.Sequence;
M_Right : M.Sequence;
P_Left : P.Map;
P_Right : P.Map) return Boolean
is
begin
for C of P_Left loop
if not P.Has_Key (P_Right, C)
or else P.Get (P_Left, C) > M.Length (M_Left)
or else P.Get (P_Right, C) > M.Length (M_Right)
or else M.Get (M_Left, P.Get (P_Left, C)) /=
M.Get (M_Right, P.Get (P_Right, C))
then
return False;
end if;
end loop;
for C of P_Right loop
if not P.Has_Key (P_Left, C) then
return False;
end if;
end loop;
return True;
end Mapping_Preserved;
-------------------------
-- P_Positions_Shifted --
-------------------------
function P_Positions_Shifted
(Small : P.Map;
Big : P.Map;
Cut : Positive_Count_Type;
Count : Count_Type := 1) return Boolean
is
begin
for Cu of Small loop
if not P.Has_Key (Big, Cu) then
return False;
end if;
end loop;
for Cu of Big loop
declare
Pos : constant Positive_Count_Type := P.Get (Big, Cu);
begin
if Pos < Cut then
if not P.Has_Key (Small, Cu)
or else Pos /= P.Get (Small, Cu)
then
return False;
end if;
elsif Pos >= Cut + Count then
if not P.Has_Key (Small, Cu)
or else Pos /= P.Get (Small, Cu) + Count
then
return False;
end if;
else
if P.Has_Key (Small, Cu) then
return False;
end if;
end if;
end;
end loop;
return True;
end P_Positions_Shifted;
-------------------------
-- P_Positions_Swapped --
-------------------------
function P_Positions_Swapped
(Left : P.Map;
Right : P.Map;
X : Cursor;
Y : Cursor) return Boolean
is
begin
if not P.Has_Key (Left, X)
or not P.Has_Key (Left, Y)
or not P.Has_Key (Right, X)
or not P.Has_Key (Right, Y)
then
return False;
end if;
if P.Get (Left, X) /= P.Get (Right, Y)
or P.Get (Left, Y) /= P.Get (Right, X)
then
return False;
end if;
for C of Left loop
if not P.Has_Key (Right, C) then
return False;
end if;
end loop;
for C of Right loop
if not P.Has_Key (Left, C)
or else (C /= X
and C /= Y
and P.Get (Left, C) /= P.Get (Right, C))
then
return False;
end if;
end loop;
return True;
end P_Positions_Swapped;
---------------------------
-- P_Positions_Truncated --
---------------------------
function P_Positions_Truncated
(Small : P.Map;
Big : P.Map;
Cut : Positive_Count_Type;
Count : Count_Type := 1) return Boolean
is
begin
for Cu of Small loop
if not P.Has_Key (Big, Cu) then
return False;
end if;
end loop;
for Cu of Big loop
declare
Pos : constant Positive_Count_Type := P.Get (Big, Cu);
begin
if Pos < Cut then
if not P.Has_Key (Small, Cu)
or else Pos /= P.Get (Small, Cu)
then
return False;
end if;
elsif Pos >= Cut + Count then
return False;
elsif P.Has_Key (Small, Cu) then
return False;
end if;
end;
end loop;
return True;
end P_Positions_Truncated;
---------------
-- Positions --
---------------
function Positions (Container : List) return P.Map is
I : Count_Type := 1;
Position : Count_Type := Container.First;
R : P.Map;
begin
-- Can't use First, Next or Element here, since they depend on models
-- for their postconditions.
while Position /= 0 loop
R := P.Add (R, (Node => Position), I);
pragma Assert (P.Length (R) = I);
Position := Container.Nodes (Position).Next;
I := I + 1;
end loop;
return R;
end Positions;
end Formal_Model;
----------
-- Free --
----------
procedure Free (Container : in out List; X : Count_Type) is
pragma Assert (X > 0);
pragma Assert (X <= Container.Capacity);
N : Node_Array renames Container.Nodes;
begin
N (X).Prev := -1; -- Node is deallocated (not on active list)
if Container.Free >= 0 then
N (X).Next := Container.Free;
Container.Free := X;
elsif X + 1 = abs Container.Free then
N (X).Next := 0; -- Not strictly necessary, but marginally safer
Container.Free := Container.Free + 1;
else
Container.Free := abs Container.Free;
if Container.Free > Container.Capacity then
Container.Free := 0;
else
for J in Container.Free .. Container.Capacity - 1 loop
N (J).Next := J + 1;
end loop;
N (Container.Capacity).Next := 0;
end if;
N (X).Next := Container.Free;
Container.Free := X;
end if;
end Free;
---------------------
-- Generic_Sorting --
---------------------
package body Generic_Sorting with SPARK_Mode => Off is
------------------
-- Formal_Model --
------------------
package body Formal_Model is
-----------------------
-- M_Elements_Sorted --
-----------------------
function M_Elements_Sorted (Container : M.Sequence) return Boolean is
begin
if M.Length (Container) = 0 then
return True;
end if;
declare
E1 : Element_Type := Element (Container, 1);
begin
for I in 2 .. M.Length (Container) loop
declare
E2 : constant Element_Type := Element (Container, I);
begin
if E2 < E1 then
return False;
end if;
E1 := E2;
end;
end loop;
end;
return True;
end M_Elements_Sorted;
end Formal_Model;
---------------
-- Is_Sorted --
---------------
function Is_Sorted (Container : List) return Boolean is
Nodes : Node_Array renames Container.Nodes;
Node : Count_Type := Container.First;
begin
for J in 2 .. Container.Length loop
if Nodes (Nodes (Node).Next).Element < Nodes (Node).Element then
return False;
else
Node := Nodes (Node).Next;
end if;
end loop;
return True;
end Is_Sorted;
-----------
-- Merge --
-----------
procedure Merge (Target : in out List; Source : in out List) is
LN : Node_Array renames Target.Nodes;
RN : Node_Array renames Source.Nodes;
LI : Cursor;
RI : Cursor;
begin
if Target'Address = Source'Address then
raise Program_Error with "Target and Source denote same container";
end if;
LI := First (Target);
RI := First (Source);
while RI.Node /= 0 loop
pragma Assert
(RN (RI.Node).Next = 0
or else not (RN (RN (RI.Node).Next).Element <
RN (RI.Node).Element));
if LI.Node = 0 then
Splice (Target, No_Element, Source);
return;
end if;
pragma Assert
(LN (LI.Node).Next = 0
or else not (LN (LN (LI.Node).Next).Element <
LN (LI.Node).Element));
if RN (RI.Node).Element < LN (LI.Node).Element then
declare
RJ : Cursor := RI;
pragma Warnings (Off, RJ);
begin
RI.Node := RN (RI.Node).Next;
Splice (Target, LI, Source, RJ);
end;
else
LI.Node := LN (LI.Node).Next;
end if;
end loop;
end Merge;
----------
-- Sort --
----------
procedure Sort (Container : in out List) is
N : Node_Array renames Container.Nodes;
procedure Partition (Pivot : Count_Type; Back : Count_Type);
procedure Sort (Front : Count_Type; Back : Count_Type);
---------------
-- Partition --
---------------
procedure Partition (Pivot : Count_Type; Back : Count_Type) is
Node : Count_Type;
begin
Node := N (Pivot).Next;
while Node /= Back loop
if N (Node).Element < N (Pivot).Element then
declare
Prev : constant Count_Type := N (Node).Prev;
Next : constant Count_Type := N (Node).Next;
begin
N (Prev).Next := Next;
if Next = 0 then
Container.Last := Prev;
else
N (Next).Prev := Prev;
end if;
N (Node).Next := Pivot;
N (Node).Prev := N (Pivot).Prev;
N (Pivot).Prev := Node;
if N (Node).Prev = 0 then
Container.First := Node;
else
N (N (Node).Prev).Next := Node;
end if;
Node := Next;
end;
else
Node := N (Node).Next;
end if;
end loop;
end Partition;
----------
-- Sort --
----------
procedure Sort (Front : Count_Type; Back : Count_Type) is
Pivot : Count_Type;
begin
if Front = 0 then
Pivot := Container.First;
else
Pivot := N (Front).Next;
end if;
if Pivot /= Back then
Partition (Pivot, Back);
Sort (Front, Pivot);
Sort (Pivot, Back);
end if;
end Sort;
-- Start of processing for Sort
begin
if Container.Length <= 1 then
return;
end if;
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
Sort (Front => 0, Back => 0);
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
end Sort;
end Generic_Sorting;
-----------------
-- Has_Element --
-----------------
function Has_Element (Container : List; Position : Cursor) return Boolean is
begin
if Position.Node = 0 then
return False;
end if;
return Container.Nodes (Position.Node).Prev /= -1;
end Has_Element;
------------
-- Insert --
------------
procedure Insert
(Container : in out List;
Before : Cursor;
New_Item : Element_Type;
Position : out Cursor;
Count : Count_Type)
is
J : Count_Type;
begin
if Before.Node /= 0 then
pragma Assert (Vet (Container, Before), "bad cursor in Insert");
end if;
if Count = 0 then
Position := Before;
return;
end if;
if Container.Length > Container.Capacity - Count then
raise Constraint_Error with "new length exceeds capacity";
end if;
Allocate (Container, New_Item, New_Node => J);
Insert_Internal (Container, Before.Node, New_Node => J);
Position := (Node => J);
for Index in 2 .. Count loop
Allocate (Container, New_Item, New_Node => J);
Insert_Internal (Container, Before.Node, New_Node => J);
end loop;
end Insert;
procedure Insert
(Container : in out List;
Before : Cursor;
New_Item : Element_Type;
Position : out Cursor)
is
begin
Insert
(Container => Container,
Before => Before,
New_Item => New_Item,
Position => Position,
Count => 1);
end Insert;
procedure Insert
(Container : in out List;
Before : Cursor;
New_Item : Element_Type;
Count : Count_Type)
is
Position : Cursor;
begin
Insert (Container, Before, New_Item, Position, Count);
end Insert;
procedure Insert
(Container : in out List;
Before : Cursor;
New_Item : Element_Type)
is
Position : Cursor;
begin
Insert (Container, Before, New_Item, Position, 1);
end Insert;
---------------------
-- Insert_Internal --
---------------------
procedure Insert_Internal
(Container : in out List;
Before : Count_Type;
New_Node : Count_Type)
is
N : Node_Array renames Container.Nodes;
begin
if Container.Length = 0 then
pragma Assert (Before = 0);
pragma Assert (Container.First = 0);
pragma Assert (Container.Last = 0);
Container.First := New_Node;
Container.Last := New_Node;
N (Container.First).Prev := 0;
N (Container.Last).Next := 0;
elsif Before = 0 then
pragma Assert (N (Container.Last).Next = 0);
N (Container.Last).Next := New_Node;
N (New_Node).Prev := Container.Last;
Container.Last := New_Node;
N (Container.Last).Next := 0;
elsif Before = Container.First then
pragma Assert (N (Container.First).Prev = 0);
N (Container.First).Prev := New_Node;
N (New_Node).Next := Container.First;
Container.First := New_Node;
N (Container.First).Prev := 0;
else
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
N (New_Node).Next := Before;
N (New_Node).Prev := N (Before).Prev;
N (N (Before).Prev).Next := New_Node;
N (Before).Prev := New_Node;
end if;
Container.Length := Container.Length + 1;
end Insert_Internal;
--------------
-- Is_Empty --
--------------
function Is_Empty (Container : List) return Boolean is
begin
return Length (Container) = 0;
end Is_Empty;
----------
-- Last --
----------
function Last (Container : List) return Cursor is
begin
if Container.Last = 0 then
return No_Element;
end if;
return (Node => Container.Last);
end Last;
------------------
-- Last_Element --
------------------
function Last_Element (Container : List) return Element_Type is
L : constant Count_Type := Container.Last;
begin
if L = 0 then
raise Constraint_Error with "list is empty";
else
return Container.Nodes (L).Element;
end if;
end Last_Element;
------------
-- Length --
------------
function Length (Container : List) return Count_Type is
begin
return Container.Length;
end Length;
----------
-- Move --
----------
procedure Move (Target : in out List; Source : in out List) is
N : Node_Array renames Source.Nodes;
X : Count_Type;
begin
if Target'Address = Source'Address then
return;
end if;
if Target.Capacity < Source.Length then
raise Constraint_Error with -- ???
"Source length exceeds Target capacity";
end if;
Clear (Target);
while Source.Length > 1 loop
pragma Assert (Source.First in 1 .. Source.Capacity);
pragma Assert (Source.Last /= Source.First);
pragma Assert (N (Source.First).Prev = 0);
pragma Assert (N (Source.Last).Next = 0);
-- Copy first element from Source to Target
X := Source.First;
Append (Target, N (X).Element); -- optimize away???
-- Unlink first node of Source
Source.First := N (X).Next;
N (Source.First).Prev := 0;
Source.Length := Source.Length - 1;
-- The representation invariants for Source have been restored. It is
-- now safe to free the unlinked node, without fear of corrupting the
-- active links of Source.
-- Note that the algorithm we use here models similar algorithms used
-- in the unbounded form of the doubly-linked list container. In that
-- case, Free is an instantation of Unchecked_Deallocation, which can
-- fail (because PE will be raised if controlled Finalize fails), so
-- we must defer the call until the last step. Here in the bounded
-- form, Free merely links the node we have just "deallocated" onto a
-- list of inactive nodes, so technically Free cannot fail. However,
-- for consistency, we handle Free the same way here as we do for the
-- unbounded form, with the pessimistic assumption that it can fail.
Free (Source, X);
end loop;
if Source.Length = 1 then
pragma Assert (Source.First in 1 .. Source.Capacity);
pragma Assert (Source.Last = Source.First);
pragma Assert (N (Source.First).Prev = 0);
pragma Assert (N (Source.Last).Next = 0);
-- Copy element from Source to Target
X := Source.First;
Append (Target, N (X).Element);
-- Unlink node of Source
Source.First := 0;
Source.Last := 0;
Source.Length := 0;
-- Return the unlinked node to the free store
Free (Source, X);
end if;
end Move;
----------
-- Next --
----------
procedure Next (Container : List; Position : in out Cursor) is
begin
Position := Next (Container, Position);
end Next;
function Next (Container : List; Position : Cursor) return Cursor is
begin
if Position.Node = 0 then
return No_Element;
end if;
if not Has_Element (Container, Position) then
raise Program_Error with "Position cursor has no element";
end if;
return (Node => Container.Nodes (Position.Node).Next);
end Next;
-------------
-- Prepend --
-------------
procedure Prepend (Container : in out List; New_Item : Element_Type) is
begin
Insert (Container, First (Container), New_Item, 1);
end Prepend;
procedure Prepend
(Container : in out List;
New_Item : Element_Type;
Count : Count_Type)
is
begin
Insert (Container, First (Container), New_Item, Count);
end Prepend;
--------------
-- Previous --
--------------
procedure Previous (Container : List; Position : in out Cursor) is
begin
Position := Previous (Container, Position);
end Previous;
function Previous (Container : List; Position : Cursor) return Cursor is
begin
if Position.Node = 0 then
return No_Element;
end if;
if not Has_Element (Container, Position) then
raise Program_Error with "Position cursor has no element";
end if;
return (Node => Container.Nodes (Position.Node).Prev);
end Previous;
---------------
-- Reference --
---------------
function Reference
(Container : not null access List;
Position : Cursor) return not null access Element_Type
is
begin
if not Has_Element (Container.all, Position) then
raise Constraint_Error with "Position cursor has no element";
end if;
return Container.Nodes (Position.Node).Element'Access;
end Reference;
---------------------
-- Replace_Element --
---------------------
procedure Replace_Element
(Container : in out List;
Position : Cursor;
New_Item : Element_Type)
is
begin
if not Has_Element (Container, Position) then
raise Constraint_Error with "Position cursor has no element";
end if;
pragma Assert
(Vet (Container, Position), "bad cursor in Replace_Element");
Container.Nodes (Position.Node).Element := New_Item;
end Replace_Element;
----------------------
-- Reverse_Elements --
----------------------
procedure Reverse_Elements (Container : in out List) is
N : Node_Array renames Container.Nodes;
I : Count_Type := Container.First;
J : Count_Type := Container.Last;
procedure Swap (L : Count_Type; R : Count_Type);
----------
-- Swap --
----------
procedure Swap (L : Count_Type; R : Count_Type) is
LN : constant Count_Type := N (L).Next;
LP : constant Count_Type := N (L).Prev;
RN : constant Count_Type := N (R).Next;
RP : constant Count_Type := N (R).Prev;
begin
if LP /= 0 then
N (LP).Next := R;
end if;
if RN /= 0 then
N (RN).Prev := L;
end if;
N (L).Next := RN;
N (R).Prev := LP;
if LN = R then
pragma Assert (RP = L);
N (L).Prev := R;
N (R).Next := L;
else
N (L).Prev := RP;
N (RP).Next := L;
N (R).Next := LN;
N (LN).Prev := R;
end if;
end Swap;
-- Start of processing for Reverse_Elements
begin
if Container.Length <= 1 then
return;
end if;
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
Container.First := J;
Container.Last := I;
loop
Swap (L => I, R => J);
J := N (J).Next;
exit when I = J;
I := N (I).Prev;
exit when I = J;
Swap (L => J, R => I);
I := N (I).Next;
exit when I = J;
J := N (J).Prev;
exit when I = J;
end loop;
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
end Reverse_Elements;
------------------
-- Reverse_Find --
------------------
function Reverse_Find
(Container : List;
Item : Element_Type;
Position : Cursor := No_Element) return Cursor
is
CFirst : Count_Type := Position.Node;
begin
if CFirst = 0 then
CFirst := Container.Last;
end if;
if Container.Length = 0 then
return No_Element;
else
while CFirst /= 0 loop
if Container.Nodes (CFirst).Element = Item then
return (Node => CFirst);
else
CFirst := Container.Nodes (CFirst).Prev;
end if;
end loop;
return No_Element;
end if;
end Reverse_Find;
------------
-- Splice --
------------
procedure Splice
(Target : in out List;
Before : Cursor;
Source : in out List)
is
SN : Node_Array renames Source.Nodes;
begin
if Target'Address = Source'Address then
raise Program_Error with "Target and Source denote same container";
end if;
if Before.Node /= 0 then
pragma Assert (Vet (Target, Before), "bad cursor in Splice");
end if;
pragma Assert (SN (Source.First).Prev = 0);
pragma Assert (SN (Source.Last).Next = 0);
if Target.Length > Count_Type'Base'Last - Source.Length then
raise Constraint_Error with "new length exceeds maximum";
end if;
if Target.Length + Source.Length > Target.Capacity then
raise Constraint_Error;
end if;
loop
Insert (Target, Before, SN (Source.Last).Element);
Delete_Last (Source);
exit when Is_Empty (Source);
end loop;
end Splice;
procedure Splice
(Target : in out List;
Before : Cursor;
Source : in out List;
Position : in out Cursor)
is
Target_Position : Cursor;
begin
if Target'Address = Source'Address then
raise Program_Error with "Target and Source denote same container";
end if;
if Position.Node = 0 then
raise Constraint_Error with "Position cursor has no element";
end if;
pragma Assert (Vet (Source, Position), "bad Position cursor in Splice");
if Target.Length >= Target.Capacity then
raise Constraint_Error;
end if;
Insert
(Container => Target,
Before => Before,
New_Item => Source.Nodes (Position.Node).Element,
Position => Target_Position);
Delete (Source, Position);
Position := Target_Position;
end Splice;
procedure Splice
(Container : in out List;
Before : Cursor;
Position : Cursor)
is
N : Node_Array renames Container.Nodes;
begin
if Before.Node /= 0 then
pragma Assert
(Vet (Container, Before), "bad Before cursor in Splice");
end if;
if Position.Node = 0 then
raise Constraint_Error with "Position cursor has no element";
end if;
pragma Assert
(Vet (Container, Position), "bad Position cursor in Splice");
if Position.Node = Before.Node
or else N (Position.Node).Next = Before.Node
then
return;
end if;
pragma Assert (Container.Length >= 2);
if Before.Node = 0 then
pragma Assert (Position.Node /= Container.Last);
if Position.Node = Container.First then
Container.First := N (Position.Node).Next;
N (Container.First).Prev := 0;
else
N (N (Position.Node).Prev).Next := N (Position.Node).Next;
N (N (Position.Node).Next).Prev := N (Position.Node).Prev;
end if;
N (Container.Last).Next := Position.Node;
N (Position.Node).Prev := Container.Last;
Container.Last := Position.Node;
N (Container.Last).Next := 0;
return;
end if;
if Before.Node = Container.First then
pragma Assert (Position.Node /= Container.First);
if Position.Node = Container.Last then
Container.Last := N (Position.Node).Prev;
N (Container.Last).Next := 0;
else
N (N (Position.Node).Prev).Next := N (Position.Node).Next;
N (N (Position.Node).Next).Prev := N (Position.Node).Prev;
end if;
N (Container.First).Prev := Position.Node;
N (Position.Node).Next := Container.First;
Container.First := Position.Node;
N (Container.First).Prev := 0;
return;
end if;
if Position.Node = Container.First then
Container.First := N (Position.Node).Next;
N (Container.First).Prev := 0;
elsif Position.Node = Container.Last then
Container.Last := N (Position.Node).Prev;
N (Container.Last).Next := 0;
else
N (N (Position.Node).Prev).Next := N (Position.Node).Next;
N (N (Position.Node).Next).Prev := N (Position.Node).Prev;
end if;
N (N (Before.Node).Prev).Next := Position.Node;
N (Position.Node).Prev := N (Before.Node).Prev;
N (Before.Node).Prev := Position.Node;
N (Position.Node).Next := Before.Node;
pragma Assert (N (Container.First).Prev = 0);
pragma Assert (N (Container.Last).Next = 0);
end Splice;
----------
-- Swap --
----------
procedure Swap
(Container : in out List;
I : Cursor;
J : Cursor)
is
begin
if I.Node = 0 then
raise Constraint_Error with "I cursor has no element";
end if;
if J.Node = 0 then
raise Constraint_Error with "J cursor has no element";
end if;
if I.Node = J.Node then
return;
end if;
pragma Assert (Vet (Container, I), "bad I cursor in Swap");
pragma Assert (Vet (Container, J), "bad J cursor in Swap");
declare
NN : Node_Array renames Container.Nodes;
NI : Node_Type renames NN (I.Node);
NJ : Node_Type renames NN (J.Node);
EI_Copy : constant Element_Type := NI.Element;
begin
NI.Element := NJ.Element;
NJ.Element := EI_Copy;
end;
end Swap;
----------------
-- Swap_Links --
----------------
procedure Swap_Links
(Container : in out List;
I : Cursor;
J : Cursor)
is
I_Next : Cursor;
J_Next : Cursor;
begin
if I.Node = 0 then
raise Constraint_Error with "I cursor has no element";
end if;
if J.Node = 0 then
raise Constraint_Error with "J cursor has no element";
end if;
if I.Node = J.Node then
return;
end if;
pragma Assert (Vet (Container, I), "bad I cursor in Swap_Links");
pragma Assert (Vet (Container, J), "bad J cursor in Swap_Links");
I_Next := Next (Container, I);
if I_Next = J then
Splice (Container, Before => I, Position => J);
else
J_Next := Next (Container, J);
if J_Next = I then
Splice (Container, Before => J, Position => I);
else
pragma Assert (Container.Length >= 3);
Splice (Container, Before => I_Next, Position => J);
Splice (Container, Before => J_Next, Position => I);
end if;
end if;
end Swap_Links;
---------
-- Vet --
---------
function Vet (L : List; Position : Cursor) return Boolean is
N : Node_Array renames L.Nodes;
begin
if L.Length = 0 then
return False;
end if;
if L.First = 0 then
return False;
end if;
if L.Last = 0 then
return False;
end if;
if Position.Node > L.Capacity then
return False;
end if;
if N (Position.Node).Prev < 0
or else N (Position.Node).Prev > L.Capacity
then
return False;
end if;
if N (Position.Node).Next > L.Capacity then
return False;
end if;
if N (L.First).Prev /= 0 then
return False;
end if;
if N (L.Last).Next /= 0 then
return False;
end if;
if N (Position.Node).Prev = 0 and then Position.Node /= L.First then
return False;
end if;
if N (Position.Node).Next = 0 and then Position.Node /= L.Last then
return False;
end if;
if L.Length = 1 then
return L.First = L.Last;
end if;
if L.First = L.Last then
return False;
end if;
if N (L.First).Next = 0 then
return False;
end if;
if N (L.Last).Prev = 0 then
return False;
end if;
if N (N (L.First).Next).Prev /= L.First then
return False;
end if;
if N (N (L.Last).Prev).Next /= L.Last then
return False;
end if;
if L.Length = 2 then
if N (L.First).Next /= L.Last then
return False;
end if;
if N (L.Last).Prev /= L.First then
return False;
end if;
return True;
end if;
if N (L.First).Next = L.Last then
return False;
end if;
if N (L.Last).Prev = L.First then
return False;
end if;
if Position.Node = L.First then
return True;
end if;
if Position.Node = L.Last then
return True;
end if;
if N (Position.Node).Next = 0 then
return False;
end if;
if N (Position.Node).Prev = 0 then
return False;
end if;
if N (N (Position.Node).Next).Prev /= Position.Node then
return False;
end if;
if N (N (Position.Node).Prev).Next /= Position.Node then
return False;
end if;
if L.Length = 3 then
if N (L.First).Next /= Position.Node then
return False;
end if;
if N (L.Last).Prev /= Position.Node then
return False;
end if;
end if;
return True;
end Vet;
end Ada.Containers.Formal_Doubly_Linked_Lists;
| 25.746757 | 79 | 0.497964 |
412d877f6055af7daae0a3c9f3470191a5e5e2a8 | 229 | adb | Ada | src/sparknacl-sign-utils.adb | yannickmoy/SPARKNaCl | c27fa811bf38b3706c1dc242f30e82967ad8f1c6 | [
"BSD-2-Clause"
] | 76 | 2020-02-24T20:30:15.000Z | 2022-02-16T15:10:56.000Z | src/sparknacl-sign-utils.adb | yannickmoy/SPARKNaCl | c27fa811bf38b3706c1dc242f30e82967ad8f1c6 | [
"BSD-2-Clause"
] | 10 | 2020-04-15T10:02:49.000Z | 2022-02-24T20:10:46.000Z | src/sparknacl-sign-utils.adb | yannickmoy/SPARKNaCl | c27fa811bf38b3706c1dc242f30e82967ad8f1c6 | [
"BSD-2-Clause"
] | 4 | 2020-03-10T15:19:45.000Z | 2022-02-17T09:46:20.000Z | package body SPARKNaCl.Sign.Utils
with SPARK_Mode => On
is
procedure Construct (X : in Bytes_64;
Y : out Signing_SK)
is
begin
Y.F := X;
end Construct;
end SPARKNaCl.Sign.Utils;
| 19.083333 | 46 | 0.580786 |
3d01e0cd017810a334278e6a1cc4d7e6e1b4af9b | 11,524 | adb | Ada | 1A/S5/PIM/projet/src/test_registre.adb | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 4 | 2020-05-02T12:32:32.000Z | 2022-01-12T20:20:35.000Z | 1A/S5/PIM/projet/src/test_registre.adb | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 2 | 2021-01-14T20:03:26.000Z | 2022-01-30T01:10:00.000Z | 1A/S5/PIM/projet/src/test_registre.adb | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 13 | 2020-11-11T21:28:11.000Z | 2022-02-19T13:54:22.000Z | with Ada.Text_IO; use Ada.Text_IO;
with registre; use registre;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure test_registre is
-- Création d'un registre avec un Id et ses données.
procedure Initialiser_Le_Test (Registre : out T_Registre) is
Donnee : T_Donnee;
Date_N : T_Date;
Date_D : T_Date;
begin
-- Initialisation du registre.
Initialiser_R(Registre);
-- Inscription d'une donnée.
Date_N := Initialiser_Date(18,09,1999);
Date_D := Initialiser_Date(0,0,0);
Donnee := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N,To_Unbounded_String("Paris"),Date_D,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("[email protected]"),0678953421);
Inserer_R(Registre, 3, Donnee);
end Initialiser_Le_Test;
-- Création d'un registre avec un Id et ses données.
procedure Initialiser_Le_Test_Avec_3_Elts (Registre : in out T_Registre) is
Donnee1 : T_Donnee;
Donnee2 : T_Donnee;
Donnee3 : T_Donnee;
Date_N1, Date_D1, Date_N2, Date_D2, Date_N3, Date_D3 : T_Date;
begin
-- Initialisation du registre.
Initialiser_R(Registre);
-- Inscription de Donnee1.
Date_N1 := Initialiser_Date(18,09,1999);
Date_D1 := Initialiser_Date(0,0,0);
Donnee1 := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N1,To_Unbounded_String("Paris"),Date_D1,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("[email protected]"),0678953421);
-- Insertion de l'Id 3, avec Donnee1, dans Registre.
Inserer_R(Registre, 3, Donnee1);
-- Inscription de Donnee2.
Date_N2 := Initialiser_Date(21,12,1925);
Date_D2 := Initialiser_Date(01,09,2001);
Donnee2 := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N2,To_Unbounded_String("Toulouse"),Date_D2,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656673421);
-- Insertion de l'Id 8, avec Donnee2, dans Registre.
Inserer_R(Registre, 8, Donnee2);
-- Inscription de Donnee3.
Date_D3 := Initialiser_Date(02,05,2019);
Date_N3 := Initialiser_Date(11,02,1998);
Donnee3 := Initialiser_Donnee (To_Unbounded_String("Halwani"),To_Unbounded_String("Jad"),Date_N3,To_Unbounded_String("Lille"), Date_D3,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656693421);
-- Insertion de l'Id 20, avec Donnee3, dans Registre.
Inserer_R(Registre, 20, Donnee3);
end Initialiser_Le_Test_Avec_3_Elts;
-- Tester les procédures Initialiser_R et Est_Vide_R
procedure Tester_Initialiser_R_Et_Est_Vide_R is
Registre : T_Registre;
begin
-- Initialisation du registre.
Initialiser_R(Registre);
pragma Assert (Est_Vide_R(Registre));
-- Libération de la mémoire.
Vider_R(Registre);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Initialiser_R_Et_Est_Vide_R est ");
Put_Line (" testée avec succès.");
New_Line;
end Tester_Initialiser_R_Et_Est_Vide_R;
-- Tester la procédure Taille_R
procedure Tester_Taille_R is
Registre : T_Registre;
begin
-- Création d'un registre avec un 3 Id et leurs données.
Initialiser_Le_Test_Avec_3_Elts(Registre);
pragma Assert(Taille_R(Registre)=3);
pragma Assert(not(Taille_R(Registre)=5));
-- Suppression de l'Id 3 et de ses données du registre.
Supprimer_R(Registre,3);
pragma Assert(Taille_R(Registre)=2);
pragma Assert(not(Taille_R(Registre)=8));
-- Suppression de l'Id 8 et de ses données du registre.
Supprimer_R(Registre,8);
pragma Assert(Taille_R(Registre)=1);
pragma Assert(not(Taille_R(Registre)=2));
-- Libération de la mémoire.
Vider_R(Registre);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Taille_R est testée avec succès.");
New_Line;
end Tester_Taille_R;
-- Tester la procédure Inserer_R
procedure Tester_Inserer_R is
Registre : T_Registre;
Donnee : T_Donnee;
Date_D, Date_N : T_Date;
begin
-- Création d'un registre avec un Id et ses données.
Initialiser_Le_Test(Registre);
-- Inscription d'une donnée.
Date_N := Initialiser_Date(21,12,1925);
Date_D := Initialiser_Date(01,09,2001);
Donnee := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N,To_Unbounded_String("Toulouse"),Date_D,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656673421);
-- Insertion de l'Id 8 avec ses données dans le registre.
Inserer_R(Registre, 8, Donnee);
pragma Assert(La_Donnee_R(Registre,8)=Donnee);
-- Libération de la mémoire.
Vider_R(Registre);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Inserer_R est testée avec succès.");
New_Line;
end Tester_Inserer_R;
-- Tester la procédure Modifier_R
procedure Tester_Modifier_R is
Registre : T_Registre;
Donnee : T_Donnee; -- la donnée avec laquelle on en modifie une autre.
Date_D, Date_N : T_Date;
begin
-- Création d'un registre avec un Id et ses données.
Initialiser_Le_Test(Registre);
-- Inscription d'une donnée.
Date_N := Initialiser_Date(21,12,1925);
Date_D := Initialiser_Date(01,09,2001);
Donnee := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N,To_Unbounded_String("Toulouse"),Date_D,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656673421);
-- Modification des données de l'Id présent avec Donnee.
Modifier_R(Registre, 3, Donnee);
pragma Assert(La_Donnee_R(Registre, 3) = Donnee);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Modifier_R est testée avec succès.");
New_Line;
end Tester_Modifier_R;
-- Tester la procédure Supprimer_R
procedure Tester_Supprimer_R is
Registre : T_Registre;
begin
-- Création d'un registre avec un 3 Id et leurs données.
Initialiser_Le_Test_Avec_3_Elts(Registre);
pragma Assert (Taille_R (Registre) = 3);
-- Suppression de l'Id 3 et de ses données du registre.
Supprimer_R(Registre, 3);
pragma Assert (Taille_R (Registre) = 2);
-- Suppression de l'Id 8 et de ses données du registre.
Supprimer_R(Registre, 8);
pragma Assert (Taille_R (Registre) = 1);
-- Suppression de l'Id 20 et de ses données du registre.
Supprimer_R(Registre, 20);
pragma Assert (Taille_R (Registre) = 0);
pragma Assert (Est_Vide_R (Registre));
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Supprimer_R est testée avec succès.");
New_Line;
end Tester_Supprimer_R;
-- Tester la procédure La_Donnee_R
procedure Tester_La_Donnee_R is
Registre : T_Registre;
Donnee1 : T_Donnee;
Donnee2 : T_Donnee;
Donnee3 : T_Donnee;
Date_N1, Date_D1, Date_N2, Date_D2, Date_N3, Date_D3 : T_Date;
begin
-- Création d'un registre avec un 3 Id et leurs données.
Initialiser_Le_Test_Avec_3_Elts(Registre);
Date_N1 := Initialiser_Date(18,09,1999);
Date_D1 := Initialiser_Date(0,0,0);
Date_N2 := Initialiser_Date(21,12,1925);
Date_D2 := Initialiser_Date(01,09,2001);
Date_D3 := Initialiser_Date(02,05,2019);
Date_N3 := Initialiser_Date(11,02,1998);
Donnee1 := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N1,To_Unbounded_String("Paris"),Date_D1,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("[email protected]"),0678953421);
Donnee2 := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N2,To_Unbounded_String("Toulouse"),Date_D2,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656673421);
Donnee3 := Initialiser_Donnee (To_Unbounded_String("Halwani"),To_Unbounded_String("Jad"),Date_N3,To_Unbounded_String("Lille"), Date_D3,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("[email protected]"),0656693421);
pragma Assert(La_Donnee_R(Registre,3) = Donnee1);
pragma Assert(La_Donnee_R(Registre,8) = Donnee2);
pragma Assert(La_Donnee_R(Registre,20) = Donnee3);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_La_Donnee_R est testée avec succès.");
New_Line;
end Tester_La_Donnee_R;
-- Tester la fonction Vider_R
procedure Tester_Vider_R is
Registre : T_Registre;
begin
-- Création d'un registre avec un Id et ses données.
Initialiser_Le_Test(Registre);
Vider_R(Registre);
pragma Assert(Taille_R(Registre)=0);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Vider_R est testée avec succès.");
New_Line;
end Tester_Vider_R;
-- Tester la fonction Ecart_Age_Parent_Enfant_R
procedure Tester_Ecart_Age_Parent_Enfant_R is
Registre : T_Registre;
Id : constant Integer := 3; -- Identifiant de l'enfant
Parent_1 : T_Tab; -- l'enfant a un parent
begin
-- Création d'un registre avec un Id et ses données.
Initialiser_Le_Test_Avec_3_Elts(Registre);
-- L'individu d'identifiant 3 a un parent d'identifiant 8.
Parent_1.Taille := 1;
Parent_1.Elt(1) := 8;
pragma Assert(Ecart_Age_Parent_Enfant_R(Registre,Id, Parent_1));
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Ecart_Age_Parent_EnfantSupprimer_R ");
Put_Line(" est testée avec succès.");
New_Line;
end Tester_Ecart_Age_Parent_Enfant_R;
-- Tester la fonction Age
procedure Tester_Age is
Registre : T_Registre;
Age_Individu1, Age_Individu2, Age_Individu3 : Integer;
begin
Initialiser_Le_Test_Avec_3_Elts(Registre);
Age_Individu1 := Age(Registre,3);
Age_Individu2 := Age(Registre,8);
Age_Individu3 := Age(Registre,20);
pragma Assert(Age_Individu1 = 20);
pragma Assert(Age_Individu2 = 75);
pragma Assert(Age_Individu3 = 21);
New_Line;
Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Age est testée avec succès.");
New_Line;
end Tester_Age;
begin
New_Line;
Put_Line("*************************** Début ****************************");
New_Line;
Tester_Initialiser_R_Et_Est_Vide_R;
Tester_Taille_R;
Tester_Inserer_R;
Tester_Modifier_R;
Tester_Supprimer_R;
Tester_La_Donnee_R;
Tester_Vider_R;
Tester_Age;
Tester_Ecart_Age_Parent_Enfant_R;
New_Line;
Put_Line("***************************** Fin ****************************");
New_Line;
end test_registre;
| 38.413333 | 246 | 0.656369 |
29b376ff6fc6c9aeee837d01bd525780770ff550 | 746 | adb | Ada | source/tabula-casts-load.adb | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | 1 | 2016-12-19T13:25:14.000Z | 2016-12-19T13:25:14.000Z | source/tabula-casts-load.adb | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | null | null | null | source/tabula-casts-load.adb | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | null | null | null | -- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Streams.Stream_IO;
with Serialization.YAML;
with YAML.Streams;
with Tabula.Casts.Cast_IO;
function Tabula.Casts.Load (Name : String) return Cast_Collection is
begin
return Result : Cast_Collection do
declare
File : Ada.Streams.Stream_IO.File_Type :=
Ada.Streams.Stream_IO.Open (Ada.Streams.Stream_IO.In_File, Name => Name);
begin
declare
Parser : aliased YAML.Parser :=
YAML.Streams.Create (Ada.Streams.Stream_IO.Stream (File));
begin
Cast_IO.IO (
Serialization.YAML.Reading (Parser'Access, Cast_IO.Yaml_Type).Serializer,
Result);
YAML.Finish (Parser);
end;
Ada.Streams.Stream_IO.Close (File);
end;
end return;
end Tabula.Casts.Load;
| 28.692308 | 78 | 0.730563 |
59e3696562abaf0ef60e32ea200cdf2741b97693 | 3,641 | ads | Ada | source/amf/uml/amf-uml-interaction_constraints-hash.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-interaction_constraints-hash.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-interaction_constraints-hash.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.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.UML.Interaction_Constraints.Hash is
new AMF.Elements.Generic_Hash (UML_Interaction_Constraint, UML_Interaction_Constraint_Access);
| 72.82 | 96 | 0.407306 |
291e0f9e1df661ab5411475d783232c4218092de | 1,034 | ads | Ada | source/required/s-pack14.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/required/s-pack14.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/required/s-pack14.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_14 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_14 is mod 2 ** 14;
for Bits_14'Size use 14;
package Indexing is new Packed_Arrays.Indexing (Bits_14);
-- required for accessing aligned arrays by compiler
function Get_14 (
Arr : Address;
N : Natural;
Rev_SSO : Boolean)
return Bits_14
renames Indexing.Get;
procedure Set_14 (
Arr : Address;
N : Natural;
E : Bits_14;
Rev_SSO : Boolean)
renames Indexing.Set;
-- required for accessing unaligned arrays by compiler
function GetU_14 (
Arr : Address;
N : Natural;
Rev_SSO : Boolean)
return Bits_14
renames Indexing.Get;
procedure SetU_14 (
Arr : Address;
N : Natural;
E : Bits_14;
Rev_SSO : Boolean)
renames Indexing.Set;
end System.Pack_14;
| 24.619048 | 78 | 0.647969 |
414e3404807472d9ea0c20094a8f908646cc1991 | 7,297 | ads | Ada | source/amf/dd/amf-internals-dg_circles.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/dd/amf-internals-dg_circles.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/dd/amf-internals-dg_circles.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, 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.DC;
with AMF.DG.Circles;
with AMF.DG.Clip_Paths;
with AMF.DG.Groups;
with AMF.DG.Styles.Collections;
with AMF.Internals.DG_Elements;
with AMF.Visitors;
package AMF.Internals.DG_Circles is
type DG_Circle_Proxy is
limited new AMF.Internals.DG_Elements.DG_Element_Proxy
and AMF.DG.Circles.DG_Circle with null record;
overriding function Get_Center
(Self : not null access constant DG_Circle_Proxy)
return AMF.DC.DC_Point;
-- Getter of Circle::center.
--
-- the center point of the circle in the x-y coordinate system.
overriding procedure Set_Center
(Self : not null access DG_Circle_Proxy;
To : AMF.DC.DC_Point);
-- Setter of Circle::center.
--
-- the center point of the circle in the x-y coordinate system.
overriding function Get_Radius
(Self : not null access constant DG_Circle_Proxy)
return AMF.Real;
-- Getter of Circle::radius.
--
-- a real number (>=0) that represents the radius of the circle.
overriding procedure Set_Radius
(Self : not null access DG_Circle_Proxy;
To : AMF.Real);
-- Setter of Circle::radius.
--
-- a real number (>=0) that represents the radius of the circle.
overriding function Get_Group
(Self : not null access constant DG_Circle_Proxy)
return AMF.DG.Groups.DG_Group_Access;
-- Getter of GraphicalElement::group.
--
-- the group element that owns this graphical element.
overriding procedure Set_Group
(Self : not null access DG_Circle_Proxy;
To : AMF.DG.Groups.DG_Group_Access);
-- Setter of GraphicalElement::group.
--
-- the group element that owns this graphical element.
overriding function Get_Local_Style
(Self : not null access constant DG_Circle_Proxy)
return AMF.DG.Styles.Collections.Ordered_Set_Of_DG_Style;
-- Getter of GraphicalElement::localStyle.
--
-- a list of locally-owned styles for this graphical element.
overriding function Get_Shared_Style
(Self : not null access constant DG_Circle_Proxy)
return AMF.DG.Styles.Collections.Ordered_Set_Of_DG_Style;
-- Getter of GraphicalElement::sharedStyle.
--
-- a list of shared styles for this graphical element.
overriding function Get_Transform
(Self : not null access constant DG_Circle_Proxy)
return AMF.DG.Sequence_Of_DG_Transform;
-- Getter of GraphicalElement::transform.
--
-- a list of zero or more transforms to apply to this graphical element.
overriding function Get_Clip_Path
(Self : not null access constant DG_Circle_Proxy)
return AMF.DG.Clip_Paths.DG_Clip_Path_Access;
-- Getter of GraphicalElement::clipPath.
--
-- an optional reference to a clip path element that masks the painting of
-- this graphical element.
overriding procedure Set_Clip_Path
(Self : not null access DG_Circle_Proxy;
To : AMF.DG.Clip_Paths.DG_Clip_Path_Access);
-- Setter of GraphicalElement::clipPath.
--
-- an optional reference to a clip path element that masks the painting of
-- this graphical element.
overriding procedure Enter_Element
(Self : not null access constant DG_Circle_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Leave_Element
(Self : not null access constant DG_Circle_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Visit_Element
(Self : not null access constant DG_Circle_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
end AMF.Internals.DG_Circles;
| 46.775641 | 79 | 0.558449 |
597bf63c5ebf1351a9baffe5b480efc089a92c75 | 9,077 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34006j.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/c3/c34006j.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34006j.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C34006J.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT THE REQUIRED PREDEFINED OPERATIONS ARE DECLARED
-- (IMPLICITLY) FOR DERIVED RECORD TYPES WITH DISCRIMINANTS AND WITH
-- A LIMITED COMPONENT TYPE.
-- HISTORY:
-- JRK 08/25/87 CREATED ORIGINAL TEST.
-- VCL 06/28/88 MODIFIED THE STATEMENTS INVOLVING THE 'SIZE
-- ATTRIBUTE TO REMOVE ANY ASSUMPTIONS ABOUT THE
-- SIZES.
-- PWN 11/30/94 REMOVED 'BASE USE ILLEGAL IN ADA 9X.
WITH SYSTEM; USE SYSTEM;
WITH REPORT; USE REPORT;
PROCEDURE C34006J IS
PACKAGE PKG_L IS
TYPE LP IS LIMITED PRIVATE;
FUNCTION CREATE (X : INTEGER) RETURN LP;
FUNCTION EQUAL (X, Y : LP) RETURN BOOLEAN;
PROCEDURE ASSIGN (X : OUT LP; Y : LP);
C4 : CONSTANT LP;
C5 : CONSTANT LP;
PRIVATE
TYPE LP IS NEW INTEGER;
C4 : CONSTANT LP := 4;
C5 : CONSTANT LP := 5;
END PKG_L;
USE PKG_L;
SUBTYPE COMPONENT IS LP;
PACKAGE PKG_P IS
MAX_LEN : CONSTANT := 10;
SUBTYPE LENGTH IS NATURAL RANGE 0 .. MAX_LEN;
TYPE PARENT (B : BOOLEAN := TRUE; L : LENGTH := 3) IS
RECORD
I : INTEGER := 2;
CASE B IS
WHEN TRUE =>
S : STRING (1 .. L) := (1 .. L => 'A');
C : COMPONENT;
WHEN FALSE =>
F : FLOAT := 5.0;
END CASE;
END RECORD;
FUNCTION CREATE ( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT;
F : FLOAT;
X : PARENT -- TO RESOLVE OVERLOADING.
) RETURN PARENT;
FUNCTION EQUAL (X, Y : PARENT) RETURN BOOLEAN;
FUNCTION AGGR ( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT
) RETURN PARENT;
FUNCTION AGGR ( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
F : FLOAT
) RETURN PARENT;
END PKG_P;
USE PKG_P;
TYPE T IS NEW PARENT (IDENT_BOOL (TRUE), IDENT_INT (3));
X : T;
W : PARENT;
B : BOOLEAN := FALSE;
PROCEDURE A (X : ADDRESS) IS
BEGIN
B := IDENT_BOOL (TRUE);
END A;
PACKAGE BODY PKG_L IS
FUNCTION CREATE (X : INTEGER) RETURN LP IS
BEGIN
RETURN LP (IDENT_INT (X));
END CREATE;
FUNCTION EQUAL (X, Y : LP) RETURN BOOLEAN IS
BEGIN
RETURN X = Y;
END EQUAL;
PROCEDURE ASSIGN (X : OUT LP; Y : LP) IS
BEGIN
X := Y;
END ASSIGN;
END PKG_L;
PACKAGE BODY PKG_P IS
FUNCTION CREATE
( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT;
F : FLOAT;
X : PARENT
) RETURN PARENT
IS
A : PARENT (B, L);
BEGIN
A.I := I;
CASE B IS
WHEN TRUE =>
A.S := S;
ASSIGN (A.C, C);
WHEN FALSE =>
A.F := F;
END CASE;
RETURN A;
END CREATE;
FUNCTION EQUAL (X, Y : PARENT) RETURN BOOLEAN IS
BEGIN
IF X.B /= Y.B OR X.L /= Y.L OR X.I /= Y.I THEN
RETURN FALSE;
END IF;
CASE X.B IS
WHEN TRUE =>
RETURN X.S = Y.S AND EQUAL (X.C, Y.C);
WHEN FALSE =>
RETURN X.F = Y.F;
END CASE;
END EQUAL;
FUNCTION AGGR
( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT
) RETURN PARENT
IS
RESULT : PARENT (B, L);
BEGIN
RESULT.I := I;
RESULT.S := S;
ASSIGN (RESULT.C, C);
RETURN RESULT;
END AGGR;
FUNCTION AGGR
( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
F : FLOAT
) RETURN PARENT
IS
RESULT : PARENT (B, L);
BEGIN
RESULT.I := I;
RESULT.F := F;
RETURN RESULT;
END AGGR;
END PKG_P;
BEGIN
TEST ("C34006J", "CHECK THAT THE REQUIRED PREDEFINED OPERATIONS " &
"ARE DECLARED (IMPLICITLY) FOR DERIVED " &
"RECORD TYPES WITH DISCRIMINANTS AND WITH A " &
"LIMITED COMPONENT TYPE");
X.I := IDENT_INT (1);
X.S := IDENT_STR ("ABC");
ASSIGN (X.C, CREATE (4));
W.I := IDENT_INT (1);
W.S := IDENT_STR ("ABC");
ASSIGN (W.C, CREATE (4));
IF NOT EQUAL (T'(X), AGGR (TRUE, 3, 1, "ABC", C4)) THEN
FAILED ("INCORRECT QUALIFICATION");
END IF;
IF NOT EQUAL (T(X), AGGR (TRUE, 3, 1, "ABC", C4)) THEN
FAILED ("INCORRECT SELF CONVERSION");
END IF;
IF NOT EQUAL (T(W), AGGR (TRUE, 3, 1, "ABC", C4)) THEN
FAILED ("INCORRECT CONVERSION FROM PARENT");
END IF;
IF NOT EQUAL (PARENT(X), AGGR (TRUE, 3, 1, "ABC", C4)) OR
NOT EQUAL (PARENT(CREATE (FALSE, 2, 3, "XX", C5, 6.0, X)),
AGGR (FALSE, 2, 3, 6.0)) THEN
FAILED ("INCORRECT CONVERSION TO PARENT");
END IF;
IF X.B /= TRUE OR X.L /= 3 OR
CREATE (FALSE, 2, 3, "XX", C5, 6.0, X).B /= FALSE OR
CREATE (FALSE, 2, 3, "XX", C5, 6.0, X).L /= 2 THEN
FAILED ("INCORRECT SELECTION (DISCRIMINANT)");
END IF;
IF X.I /= 1 OR X.S /= "ABC" OR NOT EQUAL (X.C, C4) OR
CREATE (FALSE, 2, 3, "XX", C5, 6.0, X).I /= 3 OR
CREATE (FALSE, 2, 3, "XX", C5, 6.0, X).F /= 6.0 THEN
FAILED ("INCORRECT SELECTION (VALUE)");
END IF;
X.I := IDENT_INT (7);
X.S := IDENT_STR ("XYZ");
IF NOT EQUAL (X, AGGR (TRUE, 3, 7, "XYZ", C4)) THEN
FAILED ("INCORRECT SELECTION (ASSIGNMENT)");
END IF;
X.I := IDENT_INT (1);
X.S := IDENT_STR ("ABC");
IF NOT (X IN T) OR AGGR (FALSE, 2, 3, 6.0) IN T THEN
FAILED ("INCORRECT ""IN""");
END IF;
IF X NOT IN T OR NOT (AGGR (FALSE, 2, 3, 6.0) NOT IN T) THEN
FAILED ("INCORRECT ""NOT IN""");
END IF;
B := FALSE;
A (X'ADDRESS);
IF NOT B THEN
FAILED ("INCORRECT 'ADDRESS");
END IF;
IF NOT X'CONSTRAINED THEN
FAILED ("INCORRECT 'CONSTRAINED");
END IF;
IF X.C'FIRST_BIT < 0 THEN
FAILED ("INCORRECT 'FIRST_BIT");
END IF;
IF X.C'LAST_BIT < 0 OR
X.C'LAST_BIT - X.C'FIRST_BIT + 1 /= X.C'SIZE THEN
FAILED ("INCORRECT 'LAST_BIT");
END IF;
IF X.C'POSITION < 0 THEN
FAILED ("INCORRECT 'POSITION");
END IF;
IF X'SIZE < T'SIZE THEN
COMMENT ("X'SIZE < T'SIZE");
ELSIF X'SIZE = T'SIZE THEN
COMMENT ("X'SIZE = T'SIZE");
ELSE
COMMENT ("X'SIZE > T'SIZE");
END IF;
RESULT;
EXCEPTION
WHEN OTHERS =>
FAILED ("UNEXPECTED EXCEPTION RAISED WHILE CHECKING BASIC " &
"OPERATIONS");
RESULT;
END C34006J;
| 29.092949 | 79 | 0.466123 |
5866120b0e195c7c4caac57f4083c61b7625005c | 2,011 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/ae3709a.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/a/ae3709a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/ae3709a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- AE3709A.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 THE NAMES OF THE FORMAL PARAMETERS.
-- JBG 3/30/83
WITH REPORT; USE REPORT;
WITH TEXT_IO; USE TEXT_IO;
PROCEDURE AE3709A IS
PACKAGE INT IS NEW INTEGER_IO(INTEGER);
USE INT;
FILE : FILE_TYPE;
STR : STRING(1..3);
LAST : POSITIVE;
ITEM : INTEGER;
BEGIN
TEST ("AE3709A", "CHECK NAMES OF FORMAL PARAMETERS");
IF EQUAL(2, 3) THEN
GET (FILE => FILE, ITEM => ITEM, WIDTH => 0);
GET (ITEM => ITEM, WIDTH => 0);
PUT (FILE => FILE, ITEM => ITEM, WIDTH => 4, BASE => 4);
PUT (ITEM => ITEM, WIDTH => 4, BASE => 4);
GET (FROM => STR, ITEM => ITEM, LAST => LAST);
PUT (TO => STR, ITEM => ITEM, BASE => 4);
END IF;
RESULT;
END AE3709A;
| 35.280702 | 79 | 0.625062 |
3dc1484b2e78fde5c0a1428f37a9d1f6b8aefa6a | 4,332 | ads | Ada | tools/scitools/conf/understand/ada/ada95/system.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/system.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada95/system.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- --
-- $Revision: 33902 $ --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- Note: although the values in System are target dependent, the source of
-- the package System itself is target independent in GNAT. This is achieved
-- by using attributes for all values, including the special additional GNAT
-- Standard attributes that are provided for exactly this purpose.
pragma Ada_95;
-- Since we may be withed from Ada_83 code
package System is
pragma Pure (System);
-- Note that we take advantage of the implementation permission to
-- make this unit Pure instead of Preelaborable, see RM 13.7(36)
type Name is (GNAT);
System_Name : constant Name := GNAT;
-- System-Dependent Named Numbers
Min_Int : constant := Long_Long_Integer'First;
Max_Int : constant := Long_Long_Integer'Last;
Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size;
Max_Nonbinary_Modulus : constant := Integer'Last;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := Long_Long_Integer'Size - 1;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
-- Changed value to avoid using GNAT Standard attributes
-- Tick : constant := Standard'Tick;
Tick : constant := 1.0;
-- Storage-related Declarations
type Address is private;
Null_Address : constant Address;
-- Changed values to avoid using GNAT Standard attributes
--Storage_Unit : constant := Standard'Storage_Unit;
--Word_Size : constant := Standard'Word_Size;
--Memory_Size : constant := 2 ** Standard'Address_Size;
Storage_Unit : constant := 8; -- System-Dependent
Word_Size : constant := 32; -- System-Dependent
Memory_Size : constant := 2 ** 32; -- System-Dependent
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order;
-- Priority-related Declarations (RM D.1)
Max_Priority : constant Positive := 30;
Max_Interrupt_Priority : constant Positive := 31;
subtype Any_Priority is Integer range 0 .. 31;
subtype Priority is Any_Priority range 0 .. 30;
subtype Interrupt_Priority is Any_Priority range 31 .. 31;
Default_Priority : constant Priority := 15;
private
type Address is mod Memory_Size;
Null_Address : constant Address := 0;
Default_Bit_Order : constant Bit_Order := Low_Order_First;
end System;
| 42.058252 | 79 | 0.531163 |
1db0e585454361e49cdbe711247a00187dec035c | 827 | adb | Ada | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/io_test2.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/io_test2.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/tests/io_test2.adb | LaudateCorpus1/rose-1 | 5fe906d2a01253130c5de465aded6a917a8476a0 | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | -----------------------------------------------------------
-- This program asks the user to enter a character,
-- preferably a 'c' or a 't'. The resultant behavior
-- (conditional or timed) depends on the character entered
-- and the time it is entered.
-- Taken from http://www.cs.uni.edu//~mccormic/AdaEssentials/select_statement.htm
-----------------------------------------------------------
with Text_IO; use Text_IO;
procedure IO_Test2 is
Ch : Character;
begin -- Caller executable part
Put_Line("Enter c or t (Conditional or Timed)");
Get(Ch);
if Ch = 'c' then -- Conditional Entry Call
null;
elsif Ch = 't' then -- Timed Entry Call
Put_Line("Timed call withdrawn");
else
Put_Line("Invalid Input");
end if;
end IO_Test2;
| 31.807692 | 81 | 0.540508 |
57f27386f71b2e2a18ca3eb0c023b54ab3ecc53b | 2,098 | adb | Ada | include/sf-audio-music.adb | Fabien-Chouteau/ASFML | 52a013554bcfb6150e0d6391871356c1443a6b93 | [
"Zlib"
] | null | null | null | include/sf-audio-music.adb | Fabien-Chouteau/ASFML | 52a013554bcfb6150e0d6391871356c1443a6b93 | [
"Zlib"
] | null | null | null | include/sf-audio-music.adb | Fabien-Chouteau/ASFML | 52a013554bcfb6150e0d6391871356c1443a6b93 | [
"Zlib"
] | null | null | null | --//////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila ([email protected])
-- //
-- // 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;
package body Sf.Audio.Music is
use Interfaces.C.Strings;
--//////////////////////////////////////////////////////////
--/ Create a new music and load it from a file
--/
--/ @param Filename Path of the music file to open
--/
--/ @return A new sfMusic object (NULL if failed)
--/
--//////////////////////////////////////////////////////////
function CreateFromFile (Filename : String) return sfMusic_Ptr is
function Internal (Filename : chars_ptr) return sfMusic_Ptr;
pragma Import (C, Internal, "sfMusic_createFromFile");
Temp : chars_ptr := New_String (Filename);
R : sfMusic_Ptr := Internal (Temp);
begin
Free (Temp);
return R;
end CreateFromFile;
end Sf.Audio.Music;
| 37.464286 | 79 | 0.554337 |
4df66f68a0e14726f41addd9b4c048a3745b55b8 | 5,611 | ads | Ada | tools/scanner_transformer/scanner_extractor.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | tools/scanner_transformer/scanner_extractor.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | tools/scanner_transformer/scanner_extractor.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 --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2011, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Containers.Vectors;
with Ada.Strings.Wide_Unbounded;
with Asis;
package Scanner_Extractor is
package Unbounded_Wide_String_Vectors is
new Ada.Containers.Vectors
(Positive,
Ada.Strings.Wide_Unbounded.Unbounded_Wide_String,
Ada.Strings.Wide_Unbounded."=");
type Choice_Information (Is_Empty : Boolean := True) is record
case Is_Empty is
when True =>
null;
when False =>
Choice : Positive;
Line : Positive;
File : Ada.Strings.Wide_Unbounded.Unbounded_Wide_String;
Text : Unbounded_Wide_String_Vectors.Vector;
end case;
end record;
package Choice_Vectors is
new Ada.Containers.Vectors (Positive, Choice_Information);
type State_Constant_Information is record
Name : Ada.Strings.Wide_Unbounded.Unbounded_Wide_String;
Value : Integer;
end record;
package State_Constants_Vectors is
new Ada.Containers.Vectors (Positive, State_Constant_Information);
package Integer_Vectors is
new Ada.Containers.Vectors (Natural, Integer);
type Plane_Information is record
Number : Natural;
Values : Integer_Vectors.Vector;
end record;
type Reference_Information is record
Number : Natural;
Reference : Natural;
end record;
package Plane_Vectors is
new Ada.Containers.Vectors (Positive, Plane_Information);
package Reference_Vectors is
new Ada.Containers.Vectors (Positive, Reference_Information);
YY_End_Of_Buffer : Integer := -1;
YY_Jam_State : Integer := -1;
YY_Jam_Base : Integer := -1;
YY_First_Template : Integer := -1;
State_Constants : State_Constants_Vectors.Vector;
YY_EC_Planes : Plane_Vectors.Vector;
YY_EC_Base : Reference_Vectors.Vector;
YY_EC_Base_Others : Natural;
YY_Accept : Integer_Vectors.Vector;
YY_Meta : Integer_Vectors.Vector;
YY_Base : Integer_Vectors.Vector;
YY_Def : Integer_Vectors.Vector;
YY_Nxt : Integer_Vectors.Vector;
YY_Chk : Integer_Vectors.Vector;
Choices : Choice_Vectors.Vector;
procedure Extract (Element : Asis.Element);
end Scanner_Extractor;
| 47.151261 | 78 | 0.508644 |
3d3162a710d722793ea6a17c54dcb8ce00bf0851 | 183 | ads | Ada | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_code.ads | LaudateCorpus1/rose-1 | 5fe906d2a01253130c5de465aded6a917a8476a0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_code.ads | LaudateCorpus1/rose-1 | 5fe906d2a01253130c5de465aded6a917a8476a0 | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_code.ads | LaudateCorpus1/rose-1 | 5fe906d2a01253130c5de465aded6a917a8476a0 | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | package Ada_Code is
procedure Ada_Proc;
pragma Export (C, Ada_Proc, "Ada_Proc");
procedure Ada_C_Caller;
pragma Export (C, Ada_C_Caller, "Ada_C_Caller");
end Ada_Code;
| 18.3 | 51 | 0.721311 |
5737efb769f9914bf1d36dea93f662c3d31fc664 | 405 | adb | Ada | source/machine-w64-mingw32/s-saalsi.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/machine-w64-mingw32/s-saalsi.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/machine-w64-mingw32/s-saalsi.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | with C.winbase;
with C.windef;
function System.System_Allocators.Allocated_Size (
Storage_Address : Address)
return Storage_Elements.Storage_Count
is
pragma Suppress (All_Checks);
begin
return Storage_Elements.Storage_Offset (
C.winbase.HeapSize (
C.winbase.GetProcessHeap,
0,
C.windef.LPCVOID (Storage_Address)));
end System.System_Allocators.Allocated_Size;
| 27 | 50 | 0.740741 |
41981f0d1d944dcafeede8b2e517a0c1a712b201 | 5,230 | ads | Ada | ada-calendar-formatting.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 15 | 2018-07-08T07:09:19.000Z | 2021-11-21T09:58:55.000Z | ada-calendar-formatting.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 4 | 2019-11-17T20:04:33.000Z | 2021-08-29T21:24:55.000Z | ada-calendar-formatting.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 3 | 2020-04-23T11:17:11.000Z | 2021-08-29T19:31:09.000Z | -- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <[email protected]>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
with Ada.Calendar.Time_Zones;
package Ada.Calendar.Formatting is
-- Day of the week:
type Day_Name is
(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
function Day_of_Week (Date : in Time) return Day_Name;
-- Hours:Minutes:Seconds access:
subtype Hour_Number is Natural range 0 .. 23;
subtype Minute_Number is Natural range 0 .. 59;
subtype Second_Number is Natural range 0 .. 59;
subtype Second_Duration is Day_Duration range 0.0 .. 1.0;
function Year (Date : in Time;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Year_Number;
function Month (Date : in Time;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Month_Number;
function Day (Date : in Time;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Day_Number;
function Hour (Date : in Time;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Hour_Number;
function Minute (Date : in Time;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Minute_Number;
function Second (Date : in Time) return Second_Number;
function Sub_Second (Date : in Time) return Second_Duration;
function Seconds_Of (Hour : in Hour_Number;
Minute : in Minute_Number;
Second : in Second_Number := 0;
Sub_Second : in Second_Duration := 0.0)
return Day_Duration;
procedure Split (Seconds : in Day_Duration;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration);
function Time_Of (Year : in Year_Number;
Month : in Month_Number;
Day : in Day_Number;
Hour : in Hour_Number;
Minute : in Minute_Number;
Second : in Second_Number;
Sub_Second : in Second_Duration := 0.0;
Leap_Second : in Boolean := False;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Time;
function Time_Of (Year : in Year_Number;
Month : in Month_Number;
Day : in Day_Number;
Seconds : in Day_Duration := 0.0;
Leap_Second : in Boolean := False;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Time;
procedure Split (Date : in Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration;
Time_Zone : in Time_Zones.Time_Offset := 0);
procedure Split (Date : in Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration;
Leap_Second : out Boolean;
Time_Zone : in Time_Zones.Time_Offset := 0);
procedure Split (Date : in Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Seconds : out Day_Duration;
Leap_Second : out Boolean;
Time_Zone : in Time_Zones.Time_Offset := 0);
-- Simple image and value:
function Image (Date : in Time;
Include_Time_Fraction : in Boolean := False;
Time_Zone : in Time_Zones.Time_Offset := 0)
return String;
function Value (Date : in String;
Time_Zone : in Time_Zones.Time_Offset := 0)
return Time;
function Image (Elapsed_Time : in Duration;
Include_Time_Fraction : in Boolean := False)
return String;
function Value (Elapsed_Time : in String) return Duration;
end Ada.Calendar.Formatting;
| 40.230769 | 75 | 0.504015 |
1d7a9656e158ef0390dc078bef96384bc7abf4fe | 1,620 | adb | Ada | src/skill-internal-parts.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | src/skill-internal-parts.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | src/skill-internal-parts.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ file partitioning info --
-- |___/_|\_\_|_|____| by: Timm Felden --
-- --
pragma Ada_2012;
with Ada.Containers.Vectors;
with Skill.Types;
with Skill.Containers.Vectors;
with Ada.Unchecked_Deallocation;
with Ada.Unchecked_Conversion;
-- documentation can be found in java common
package body Skill.Internal.Parts is
function To_Simple (This : access Chunk_T'Class) return Simple_Chunk_X is
type P is access all Chunk_T'Class;
function Cast is new Ada.Unchecked_Conversion (P, Simple_Chunk_X);
begin
return Cast (This);
end To_Simple;
function To_Bulk (This : access Chunk_T'Class) return Bulk_Chunk_X is
type P is access all Chunk_T'Class;
function Cast is new Ada.Unchecked_Conversion (P, Bulk_Chunk_X);
begin
return Cast (This);
end To_Bulk;
procedure Free (This : access Simple_Chunk) is
type T is access all Simple_Chunk;
procedure Delete is new Ada.Unchecked_Deallocation (Simple_Chunk, T);
D : T := T (This);
begin
Delete (D);
end Free;
procedure Free (This : access Bulk_Chunk) is
type T is access all Bulk_Chunk;
procedure Delete is new Ada.Unchecked_Deallocation (Bulk_Chunk, T);
D : T := T (This);
begin
Delete (D);
end Free;
end Skill.Internal.Parts;
| 33.061224 | 80 | 0.57963 |
2941faa464d855c8415b61b9560cb37701eaa0fc | 9,747 | ads | Ada | source/RASCAL-FileExternal.ads | bracke/Ext2Dir | 84068a3c785eb1b7c606342b56097decfadfc907 | [
"MIT"
] | 1 | 2017-04-29T20:02:28.000Z | 2017-04-29T20:02:28.000Z | source/RASCAL-FileExternal.ads | bracke/Ext2Dir | 84068a3c785eb1b7c606342b56097decfadfc907 | [
"MIT"
] | null | null | null | source/RASCAL-FileExternal.ads | bracke/Ext2Dir | 84068a3c785eb1b7c606342b56097decfadfc907 | [
"MIT"
] | null | null | null | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU Lesser General Public --
-- License as published by the Free Software Foundation; either --
-- version 2.1 of the License, or (at your option) any later version. --
-- --
-- This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- Lesser General Public License for more details. --
-- --
-- You should have received a copy of the GNU Lesser General Public --
-- License along with this library; if not, write to the Free Software --
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --
-- --
--------------------------------------------------------------------------------
-- @brief External file handling.
-- $Author$
-- $Date$
-- $Revision$
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with System.Unsigned_Types; use System.Unsigned_Types;
with System; use System;
with RASCAL.Time; use RASCAL.Time;
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.OS; use RASCAL.OS;
package RASCAL.FileExternal is
type File_Object_Type is (Not_Found,File_Object,Dir,Image);
Attribute_Owner_Read : constant System.Unsigned_Types.Unsigned := 2#1#;
Attribute_Owner_Write : constant System.Unsigned_Types.Unsigned := 2#10#;
Attribute_Locked : constant System.Unsigned_Types.Unsigned := 2#1000#;
Attribute_Public_Read : constant System.Unsigned_Types.Unsigned := 2#10000#;
Attribute_Public_Write : constant System.Unsigned_Types.Unsigned := 2#100000#;
Attribure_Hidden : constant System.Unsigned_Types.Unsigned := 2#1000000#;
Attribute_Application : constant System.Unsigned_Types.Unsigned := 2#10000000#;
Copy_Option_Recurse : constant System.Unsigned_Types.Unsigned := 2#1#;
Copy_Option_Force : constant System.Unsigned_Types.Unsigned := 2#10#;
Copy_Option_Given_Times : constant System.Unsigned_Types.Unsigned := 2#100#;
Copy_Option_Confirm : constant System.Unsigned_Types.Unsigned := 2#1000#;
Copy_Option_Verbose : constant System.Unsigned_Types.Unsigned := 2#10000#;
Copy_Option_Quick : constant System.Unsigned_Types.Unsigned := 2#100000#;
Copy_Option_Prompt : constant System.Unsigned_Types.Unsigned := 2#1000000#;
Copy_Option_Delete : constant System.Unsigned_Types.Unsigned := 2#10000000#;
Copy_Option_PrintProgress : constant System.Unsigned_Types.Unsigned := 2#100000000#;
Copy_Option_Access : constant System.Unsigned_Types.Unsigned := 2#1000000000#;
Copy_Option_Stamp : constant System.Unsigned_Types.Unsigned := 2#10000000000#;
Copy_Option_StructureOnly : constant System.Unsigned_Types.Unsigned := 2#100000000000#;
Copy_Option_Newer : constant System.Unsigned_Types.Unsigned := 2#1000000000000#;
Copy_Option_UseDescriptor : constant System.Unsigned_Types.Unsigned := 2#10000000000000#;
Copy_Option_LookFirst : constant System.Unsigned_Types.Unsigned := 2#100000000000000#;
type Directory_Type is array (natural range <>) of UString;
type Directory_Pointer is access Directory_Type;
--
-- Closes all files in path.
--
procedure Close_AllInPath (path : in String);
--
-- Find a filename which has not been used yet in 'path'. Returns only name not path.
--
function Get_UnUsedFileName (Path : in String) return String;
--
-- Returns true if the object, pointed to by 'Filename', exists.
--
function Exists (Filename : in string) return boolean;
--
-- Is the path valid for writing to ?
--
function Is_Valid (Path : in String;
FileSize : in Natural) return Boolean;
--
-- Deletes the file pointed to by 'Filename'.
--
procedure Delete_File (Filename : in string);
--
-- Rename file.
--
procedure Rename (Source : in string;
Target : in string);
--
-- Copies an object from 'Source' to 'Target'.
--
procedure Copy(Source : in string; Target : in string;
Flags : in System.Unsigned_Types.Unsigned := 0);
--
-- Moves an object from 'Source' to 'Target'.
--
procedure Move(Source : in string; Target : in string;
Flags : in System.Unsigned_Types.Unsigned := Copy_Option_Delete);
--
-- Deletes file/directory.
--
procedure Wipe(Path : in string);
--
-- Creates a file at 'Filename'.
--
procedure Create_File (Filename : in string;
Length : in integer := 0;
Filetype : in integer := 16#FFD#);
--
-- Creates a directory at 'Dirname'. It is not an error if the directory already exists.
--
procedure Create_Directory (Dirname : in string);
--
-- Returns a string containing a commaseperated list of the names of all files in 'Path'.
--
function Get_FileNames (Path : in string) return string;
--
-- Returns an array of names of the files in 'Path'.
--
function Get_DirectoryList (Path : in String) return Directory_Pointer;
--
-- Enumerates through the files in 'Path'. Multiple files are read with each call and the information is written into the supplied buffer.
--
procedure Read_Dir (Path : in String;
Index : in out Integer;
ObjectsRead: out Natural;
Buffer : in Address;
BufferSize : in Positive := 8192;
Match : in string := "*");
--
-- Returns the number of files in 'Path'.
--
function Nr_Of_Files (Path : in string) return integer;
--
-- Enumerates through the files in 'Directory', while providing extensive information on every file found.
--
procedure Get_DirectoryEntry (Directory : in string;
Index : in out Integer;
Itemname : out Unbounded_String;
Loadadr : out Integer;
Execadr : out Integer;
Length : out Integer;
Attributes : out Integer;
Itemtype : out Integer;
Match : in String := "*");
--
-- Enumerates through the files in 'Directory', while providing extensive information on every file found.
--Multiple files are read with each call and the information is written into the supplied buffer.
--
procedure Get_DirectoryEntries (Path : in String;
Index : in out Integer;
ObjectsRead: out Natural;
Buffer : in Address;
BufferSize : in Positive := 8192;
Match : in string := "*");
--
-- Returns information regarding the file 'Filename'.
--
procedure Get_FileInformation (Filepath : in string;
Loadadr : out integer;
Execadr : out integer;
Length : out integer;
Attributes : out integer;
Itemtype : out File_Object_Type);
--
-- Sets the filetype if 'Filename'.
--
procedure Set_FileType (Filename : in string;
Filetype : in integer);
--
-- Finds the filetype of 'Filename'.
--
function Get_FileType (Filename : in string) return integer;
--
-- Finds the object type of 'Filename'.
--
function Get_ObjectType (Filename : in string) return File_Object_Type;
--
--
--
function Filetype_To_Hex (Loadadr : in integer) return string;
--
--
--
function Filetype_To_Number (FileType : in String) return Integer;
--
-- Finds the size of 'Filename'.
--
function Get_Size (Filename : in string) return integer;
--
-- Finds the stamp of 'Directory'.
--
procedure Get_DirectoryStamp (Directory : in string;
Loadadr : out integer;
Execadr : out integer);
--
-- Returns the attributes of 'Path'.
--
function Get_Attributes (Path : in string) return integer;
--
-- Sets the attributes of 'Path'.
--
procedure Set_Attributes (Path : in string; Attributes : in integer);
--
-- Returns the stamp of the file pointed to by 'Path'.
--
function Get_Stamp (Path : in String) return UTC_Pointer;
end RASCAL.FileExternal;
| 40.6125 | 141 | 0.553504 |
4153db2a5f5c2ea8094d5b823d5789021eafbd66 | 1,883 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36301b.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/c3/c36301b.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36301b.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C36301B.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 PREDEFINED STRING ATTRIBUTES ARE CORRECTLY IMPLEMENTED.
-- CASE B: STRING OF LENGTH INTEGER'LAST
-- DAT 2/17/81
-- JBG 12/28/82
WITH REPORT;
PROCEDURE C36301B IS
USE REPORT;
SUBTYPE STR2 IS STRING (1..INTEGER'LAST);
BEGIN
TEST("C36301B", "CHECK ATTRIBUTES OF LONGEST STRING");
IF STR2'FIRST /= 1 THEN
FAILED ("STR'FIRST NOT 1");
END IF;
IF STR2'LAST /= INTEGER'LAST THEN
FAILED ("STR'LAST NOT INTEGER'LAST");
END IF;
IF STR2'LENGTH /= INTEGER'LAST THEN
FAILED ("'LENGTH NOT INTEGER'LAST");
END IF;
RESULT;
END C36301B;
| 33.625 | 79 | 0.659586 |
57597bf265c9e1ac828545ed1361cee698bc1785 | 4,225 | adb | Ada | src/ada/src/services/example_spark_service/uxas-comms-lmcp_net_client-service-example_spark_service.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 88 | 2017-08-24T07:02:01.000Z | 2022-03-18T04:34:17.000Z | src/ada/src/services/example_spark_service/uxas-comms-lmcp_net_client-service-example_spark_service.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 46 | 2017-06-08T18:18:08.000Z | 2022-03-15T18:24:43.000Z | src/ada/src/services/example_spark_service/uxas-comms-lmcp_net_client-service-example_spark_service.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 53 | 2017-06-22T14:48:05.000Z | 2022-02-15T16:59:38.000Z | with AFRL.CMASI.AutomationResponse.SPARK_Boundary; use AFRL.CMASI.AutomationResponse.SPARK_Boundary;
with AFRL.CMASI.MissionCommand; use AFRL.CMASI.MissionCommand;
with AVTAS.LMCP.Object.SPARK_Boundary; use AVTAS.LMCP.Object.SPARK_Boundary;
with UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service.SPARK;
with AFRL.CMASI.AutomationResponse;
use AFRL.CMASI.AutomationResponse;
package body UxAS.comms.LMCP_net_client.service.Example_Spark_Service is
---------------
-- Configure --
---------------
overriding
procedure Configure
(This : in out Example_Spark_Service;
XML_Node : DOM.Core.Element;
Result : out Boolean)
is
pragma Unreferenced (XML_Node);
Unused : Boolean;
begin
This.Add_Subscription_Address (AFRL.CMASI.AutomationResponse.Subscription, Unused);
This.Add_Subscription_Address (AFRL.CMASI.MissionCommand.Subscription, Unused);
Result := True;
end Configure;
---------------
-- Construct --
---------------
procedure Construct
(This : in out Example_Spark_Service)
is
begin
This.Construct_Service
(Service_Type => Type_Name,
Work_Directory_Name => Directory_Name);
end Construct;
------------
-- Create --
------------
function Create return Any_Service is
Result : Example_Spark_Service_Ref;
begin
Result := new Example_Spark_Service;
Result.Construct; -- Specific to Ada version
return Any_Service (Result);
end Create;
-----------------------------------
-- Handle_AutomationResponse_Msg --
-----------------------------------
procedure Handle_AutomationResponse_Msg
(This : in out Example_Spark_Service;
Response : Object_Any)
is
begin
This.Configs.AutomationIds :=
Int64_Sets.Union
(This.Configs.AutomationIds,
Get_WaypointEntity_Set (AutomationResponse (Response.all)));
end Handle_AutomationResponse_Msg;
-------------------------------
-- Handle_MissionCommand_Msg --
-------------------------------
procedure Handle_MissionCommand_Msg
(This : in out Example_Spark_Service;
Command : Object_Any)
is
Result : Boolean;
begin
SPARK.Handle_MissionCommand (This, Wrap (Command), Result);
end Handle_MissionCommand_Msg;
----------------
-- Initialize --
----------------
overriding
procedure Initialize
(This : in out Example_Spark_Service;
Result : out Boolean)
is
pragma Unreferenced (This); -- since not doing the Timers
begin
Result := True;
end Initialize;
-----------------------------------
-- Process_Received_LMCP_Message --
-----------------------------------
overriding
procedure Process_Received_LMCP_Message
(This : in out Example_Spark_Service;
Received_Message : not null Any_LMCP_Message;
Should_Terminate : out Boolean)
is
begin
if Received_Message.Payload.all in AutomationResponse'Class then
This.Handle_AutomationResponse_Msg (Received_Message.Payload);
end if;
if Received_Message.Payload.all in MissionCommand'Class then
This.Handle_MissionCommand_Msg (Received_Message.Payload);
end if;
Should_Terminate := False;
end Process_Received_LMCP_Message;
---------------------------------
-- Registry_Service_Type_Names --
---------------------------------
function Registry_Service_Type_Names return Service_Type_Names_List is
(Service_Type_Names_List'(1 => Instance (Service_Type_Name_Max_Length, Content => Type_Name)));
-----------------------------
-- Package Executable Part --
-----------------------------
-- This is the executable part for the package, invoked automatically and only once.
begin
-- All concrete service subclasses must call this procedure in their
-- own package like this, with their own params.
Register_Service_Creation_Function_Pointers (Registry_Service_Type_Names, Create'Access);
end UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service;
| 30.839416 | 100 | 0.617988 |
1d5fdce5cd1e1a8e1668c86f20a6731bbef35f70 | 6,637 | ads | Ada | source/web/tools/a2js/properties-tools.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/web/tools/a2js/properties-tools.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/web/tools/a2js/properties-tools.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015-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;
with League.Strings;
package Properties.Tools is
function Get_Aspect
(Element : Asis.Declaration;
Name : Wide_String) return Wide_String;
function Library_Level_Header
(Unit : Asis.Compilation_Unit) return League.Strings.Universal_String;
function Corresponding_Type_Subprograms
(Definition : Asis.Definition) return Asis.Declaration_List;
-- For given type definition return list of primitive subprograms
function Corresponding_Type_Components
(Definition : Asis.Definition) return Asis.Declaration_List;
-- For given (non-array complex) type definition return list of component
function Corresponding_Type_Discriminants
(Definition : Asis.Definition) return Asis.Declaration_List;
-- For given (non-array complex) type definition return list of discr-s.
function Is_Primitive_Subprogram
(Definition : Asis.Definition;
Subprogram : Asis.Declaration) return Boolean;
-- Check if given Subprogram is primitive subprograms for given type
function Parameter_Profile
(Prefix : Asis.Expression) return Asis.Parameter_Specification_List;
-- For given prefix of procedure call return corresponding parameter
-- declaration list
function Corresponding_Type
(Declaration : Asis.Declaration) return Asis.Declaration;
-- Return type declaration for given primitive subprogram
function Corresponding_Declaration
(Name : Asis.Expression) return Asis.Declaration;
-- Like Asis.Expressions.Corresponding_Name_Declaration, but takes
-- selector of selected_component
function Type_Declaration_View
(Declaration : Asis.Declaration) return Asis.Definition;
-- Like Asis.Declarations.Type_Declaration_View but expand derived types
function Array_Component_Definition
(Type_Definition : Asis.Type_Definition)
return Asis.Component_Definition;
-- Like Asis.Definitions.Array_Component_Definition, but takes into account
-- implicit dereference.
function Is_Equal_Type
(Left : Asis.Declaration;
Right : Asis.Declaration) return Boolean;
function Is_Array (Exp : Asis.Expression) return Boolean;
function Enclosing_Declaration (X : Asis.Element) return Asis.Declaration;
function Has_Controlling_Result (Func : Asis.Declaration) return Boolean;
-- Check if function Func is like 'function F return T' where T is tagged
function Is_Array_Buffer (Element : Asis.Declaration) return Boolean;
-- Check if given type declaration has corresponding pragma
-- JavaScript_Array_Buffer
function Join
(Left, Right : League.Strings.Universal_String)
return League.Strings.Universal_String;
-- Return Left & Right
function Comma
(Left, Right : League.Strings.Universal_String)
return League.Strings.Universal_String;
-- Return Left & "," & Right
function "or" (Left, Right : Boolean)
return Boolean is (Standard."or" (Left, Right));
function Get_Dimension (Exp : Asis.Expression) return Natural;
-- Return dimention of an array aggregate Exp. Return 0 if subaggregate
function Attribute_Definition
(Decl : Asis.Declaration;
Attr : Wide_String) return Asis.Expression;
-- find corresponding attribute declaration
end Properties.Tools;
| 49.529851 | 79 | 0.565918 |
2f2dab0f73ee01dc1990c94f570c383bb87372a2 | 346 | adb | Ada | src/ada/src/utils/bounded_stack.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 88 | 2017-08-24T07:02:01.000Z | 2022-03-18T04:34:17.000Z | src/ada/src/utils/bounded_stack.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 46 | 2017-06-08T18:18:08.000Z | 2022-03-15T18:24:43.000Z | src/ada/src/utils/bounded_stack.adb | VVCAS-Sean/OpenUxAS | dcd7be29d182d278a5387908f568d6f8a06b79ee | [
"NASA-1.3"
] | 53 | 2017-06-22T14:48:05.000Z | 2022-02-15T16:59:38.000Z | package body Bounded_Stack with SPARK_Mode is
procedure Push (S : in out Stack; E : Element_Type) is
begin
S.Content (S.Top + 1) := E;
S.Top := S.Top + 1;
end Push;
procedure Pop (S : in out Stack; E : out Element_Type) is
begin
E := S.Content (S.Top);
S.Top := S.Top - 1;
end Pop;
end Bounded_Stack;
| 21.625 | 60 | 0.589595 |
3d60ab75c517eac23bff0894f4df976fee0177ca | 5,635 | adb | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valuen.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valuen.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valuen.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L U E _ N --
-- --
-- B o d y --
-- --
-- Copyright (C) 2021, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with System.Val_Util; use System.Val_Util;
package body System.Value_N is
function Value_Enumeration_Pos
(Names : String;
Indexes : System.Address;
Hash : Hash_Function_Ptr;
Num : Natural;
Str : String)
return Integer with Pure_Function;
-- Same as Value_Enumeration, except returns negative if Value_Enumeration
-- would raise Constraint_Error.
---------------------------
-- Value_Enumeration_Pos --
---------------------------
function Value_Enumeration_Pos
(Names : String;
Indexes : System.Address;
Hash : Hash_Function_Ptr;
Num : Natural;
Str : String)
return Integer
is
F, L : Integer;
H : Natural;
S : String (Str'Range) := Str;
subtype Names_Index is
Index_Type range Index_Type (Names'First)
.. Index_Type (Names'Last) + 1;
subtype Index is Natural range Natural'First .. Names'Length;
type Index_Table is array (Index) of Names_Index;
type Index_Table_Ptr is access Index_Table;
function To_Index_Table_Ptr is
new Ada.Unchecked_Conversion (System.Address, Index_Table_Ptr);
IndexesT : constant Index_Table_Ptr := To_Index_Table_Ptr (Indexes);
pragma Assert (Num + 1 in IndexesT'Range);
begin
Normalize_String (S, F, L);
declare
Normal : String renames S (F .. L);
begin
-- If we have a valid hash value, do a single lookup
H := (if Hash /= null then Hash.all (Normal) else Natural'Last);
if H /= Natural'Last then
if Names
(Natural (IndexesT (H)) ..
Natural (IndexesT (H + 1)) - 1) = Normal
then
return H;
end if;
-- Otherwise do a linear search
else
for J in 0 .. Num loop
if Names
(Natural (IndexesT (J)) ..
Natural (IndexesT (J + 1)) - 1) = Normal
then
return J;
end if;
end loop;
end if;
end;
return -1;
end Value_Enumeration_Pos;
-----------------------------
-- Valid_Value_Enumeration --
-----------------------------
function Valid_Value_Enumeration
(Names : String;
Indexes : System.Address;
Hash : Hash_Function_Ptr;
Num : Natural;
Str : String)
return Boolean
is
begin
return Value_Enumeration_Pos (Names, Indexes, Hash, Num, Str) >= 0;
end Valid_Value_Enumeration;
-----------------------
-- Value_Enumeration --
-----------------------
function Value_Enumeration
(Names : String;
Indexes : System.Address;
Hash : Hash_Function_Ptr;
Num : Natural;
Str : String)
return Natural
is
Result : constant Integer :=
Value_Enumeration_Pos (Names, Indexes, Hash, Num, Str);
begin
-- The comparison eliminates the need for a range check on return
if Result < 0 then
Bad_Value (Str);
else
return Result;
end if;
end Value_Enumeration;
end System.Value_N;
| 36.121795 | 78 | 0.437799 |
12833419a9e7529d52a9f2be26a4e2e0234eb469 | 1,484 | ads | Ada | include/bits_types_struct_tm_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | 5 | 2021-11-03T04:34:16.000Z | 2021-11-10T23:06:30.000Z | include/bits_types_struct_tm_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | null | null | null | include/bits_types_struct_tm_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | null | null | null | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package bits_types_struct_tm_h is
-- ISO C `broken-down time' structure.
-- Seconds. [0-60] (1 leap second)
type tm is record
tm_sec : aliased int; -- /usr/include/bits/types/struct_tm.h:9
tm_min : aliased int; -- /usr/include/bits/types/struct_tm.h:10
tm_hour : aliased int; -- /usr/include/bits/types/struct_tm.h:11
tm_mday : aliased int; -- /usr/include/bits/types/struct_tm.h:12
tm_mon : aliased int; -- /usr/include/bits/types/struct_tm.h:13
tm_year : aliased int; -- /usr/include/bits/types/struct_tm.h:14
tm_wday : aliased int; -- /usr/include/bits/types/struct_tm.h:15
tm_yday : aliased int; -- /usr/include/bits/types/struct_tm.h:16
tm_isdst : aliased int; -- /usr/include/bits/types/struct_tm.h:17
tm_gmtoff : aliased long; -- /usr/include/bits/types/struct_tm.h:20
tm_zone : Interfaces.C.Strings.chars_ptr; -- /usr/include/bits/types/struct_tm.h:21
end record
with Convention => C_Pass_By_Copy; -- /usr/include/bits/types/struct_tm.h:7
-- Minutes. [0-59]
-- Hours. [0-23]
-- Day. [1-31]
-- Month. [0-11]
-- Year - 1900.
-- Day of week. [0-6]
-- Days in year.[0-365]
-- DST. [-1/0/1]
-- Seconds east of UTC.
-- Timezone abbreviation.
-- Seconds east of UTC.
-- Timezone abbreviation.
end bits_types_struct_tm_h;
| 38.051282 | 90 | 0.646226 |
5779731aff8ef5fa121b387c6f6eec12837d6b6a | 13,198 | ads | Ada | stm32l0/stm32l0x1/svd/stm32_svd-adc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | stm32l0/stm32l0x1/svd/stm32_svd-adc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | stm32l0/stm32l0x1/svd/stm32_svd-adc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | -- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- interrupt and status register
type ISR_Register is record
-- ADC ready
ADRDY : STM32_SVD.Bit;
-- End of sampling flag
EOSMP : STM32_SVD.Bit;
-- End of conversion flag
EOC : STM32_SVD.Bit;
-- End of sequence flag
EOS : STM32_SVD.Bit;
-- ADC overrun
OVR : STM32_SVD.Bit;
-- unspecified
Reserved_5_6 : STM32_SVD.UInt2;
-- Analog watchdog flag
AWD : STM32_SVD.Bit;
-- unspecified
Reserved_8_10 : STM32_SVD.UInt3;
-- End Of Calibration flag
EOCAL : STM32_SVD.Bit;
-- unspecified
Reserved_12_31 : STM32_SVD.UInt20;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ISR_Register use record
ADRDY at 0 range 0 .. 0;
EOSMP at 0 range 1 .. 1;
EOC at 0 range 2 .. 2;
EOS at 0 range 3 .. 3;
OVR at 0 range 4 .. 4;
Reserved_5_6 at 0 range 5 .. 6;
AWD at 0 range 7 .. 7;
Reserved_8_10 at 0 range 8 .. 10;
EOCAL at 0 range 11 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-- interrupt enable register
type IER_Register is record
-- ADC ready interrupt enable
ADRDYIE : STM32_SVD.Bit;
-- End of sampling flag interrupt enable
EOSMPIE : STM32_SVD.Bit;
-- End of conversion interrupt enable
EOCIE : STM32_SVD.Bit;
-- End of conversion sequence interrupt enable
EOSIE : STM32_SVD.Bit;
-- Overrun interrupt enable
OVRIE : STM32_SVD.Bit;
-- unspecified
Reserved_5_6 : STM32_SVD.UInt2;
-- Analog watchdog interrupt enable
AWDIE : STM32_SVD.Bit;
-- unspecified
Reserved_8_10 : STM32_SVD.UInt3;
-- End of calibration interrupt enable
EOCALIE : STM32_SVD.Bit;
-- unspecified
Reserved_12_31 : STM32_SVD.UInt20;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for IER_Register use record
ADRDYIE at 0 range 0 .. 0;
EOSMPIE at 0 range 1 .. 1;
EOCIE at 0 range 2 .. 2;
EOSIE at 0 range 3 .. 3;
OVRIE at 0 range 4 .. 4;
Reserved_5_6 at 0 range 5 .. 6;
AWDIE at 0 range 7 .. 7;
Reserved_8_10 at 0 range 8 .. 10;
EOCALIE at 0 range 11 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-- control register
type CR_Register is record
-- ADC enable command
ADEN : STM32_SVD.Bit;
-- ADC disable command
ADDIS : STM32_SVD.Bit;
-- ADC start conversion command
ADSTART : STM32_SVD.Bit;
-- unspecified
Reserved_3_3 : STM32_SVD.Bit;
-- ADC stop conversion command
ADSTP : STM32_SVD.Bit;
-- unspecified
Reserved_5_27 : STM32_SVD.UInt23;
-- ADC Voltage Regulator Enable
ADVREGEN : STM32_SVD.Bit;
-- unspecified
Reserved_29_30 : STM32_SVD.UInt2;
-- ADC calibration
ADCAL : STM32_SVD.Bit;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
ADEN at 0 range 0 .. 0;
ADDIS at 0 range 1 .. 1;
ADSTART at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
ADSTP at 0 range 4 .. 4;
Reserved_5_27 at 0 range 5 .. 27;
ADVREGEN at 0 range 28 .. 28;
Reserved_29_30 at 0 range 29 .. 30;
ADCAL at 0 range 31 .. 31;
end record;
-- configuration register 1
type CFGR1_Register is record
-- Direct memory access enable
DMAEN : STM32_SVD.Bit;
-- Direct memery access configuration
DMACFG : STM32_SVD.Bit;
-- Scan sequence direction
SCANDIR : STM32_SVD.Bit;
-- Data resolution
RES : STM32_SVD.UInt2;
-- Data alignment
ALIGN : STM32_SVD.Bit;
-- External trigger selection
EXTSEL : STM32_SVD.UInt3;
-- unspecified
Reserved_9_9 : STM32_SVD.Bit;
-- External trigger enable and polarity selection
EXTEN : STM32_SVD.UInt2;
-- Overrun management mode
OVRMOD : STM32_SVD.Bit;
-- Single / continuous conversion mode
CONT : STM32_SVD.Bit;
-- Auto-delayed conversion mode
AUTDLY : STM32_SVD.Bit;
-- Auto-off mode
AUTOFF : STM32_SVD.Bit;
-- Discontinuous mode
DISCEN : STM32_SVD.Bit;
-- unspecified
Reserved_17_21 : STM32_SVD.UInt5;
-- Enable the watchdog on a single channel or on all channels
AWDSGL : STM32_SVD.Bit;
-- Analog watchdog enable
AWDEN : STM32_SVD.Bit;
-- unspecified
Reserved_24_25 : STM32_SVD.UInt2;
-- Analog watchdog channel selection
AWDCH : STM32_SVD.UInt5;
-- unspecified
Reserved_31_31 : STM32_SVD.Bit;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CFGR1_Register use record
DMAEN at 0 range 0 .. 0;
DMACFG at 0 range 1 .. 1;
SCANDIR at 0 range 2 .. 2;
RES at 0 range 3 .. 4;
ALIGN at 0 range 5 .. 5;
EXTSEL at 0 range 6 .. 8;
Reserved_9_9 at 0 range 9 .. 9;
EXTEN at 0 range 10 .. 11;
OVRMOD at 0 range 12 .. 12;
CONT at 0 range 13 .. 13;
AUTDLY at 0 range 14 .. 14;
AUTOFF at 0 range 15 .. 15;
DISCEN at 0 range 16 .. 16;
Reserved_17_21 at 0 range 17 .. 21;
AWDSGL at 0 range 22 .. 22;
AWDEN at 0 range 23 .. 23;
Reserved_24_25 at 0 range 24 .. 25;
AWDCH at 0 range 26 .. 30;
Reserved_31_31 at 0 range 31 .. 31;
end record;
-- configuration register 2
type CFGR2_Register is record
-- Oversampler Enable
OVSE : STM32_SVD.Bit;
-- unspecified
Reserved_1_1 : STM32_SVD.Bit;
-- Oversampling ratio
OVSR : STM32_SVD.UInt3;
-- Oversampling shift
OVSS : STM32_SVD.UInt4;
-- Triggered Oversampling
TOVS : STM32_SVD.Bit;
-- unspecified
Reserved_10_29 : STM32_SVD.UInt20;
-- ADC clock mode
CKMODE : STM32_SVD.UInt2;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CFGR2_Register use record
OVSE at 0 range 0 .. 0;
Reserved_1_1 at 0 range 1 .. 1;
OVSR at 0 range 2 .. 4;
OVSS at 0 range 5 .. 8;
TOVS at 0 range 9 .. 9;
Reserved_10_29 at 0 range 10 .. 29;
CKMODE at 0 range 30 .. 31;
end record;
-- sampling time register
type SMPR_Register is record
-- Sampling time selection
SMPR : STM32_SVD.UInt3;
-- unspecified
Reserved_3_31 : STM32_SVD.UInt29;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for SMPR_Register use record
SMPR at 0 range 0 .. 2;
Reserved_3_31 at 0 range 3 .. 31;
end record;
-- watchdog threshold register
type TR_Register is record
-- Analog watchdog lower threshold
LT : STM32_SVD.UInt12;
-- unspecified
Reserved_12_15 : STM32_SVD.UInt4;
-- Analog watchdog higher threshold
HT : STM32_SVD.UInt12;
-- unspecified
Reserved_28_31 : STM32_SVD.UInt4;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for TR_Register use record
LT at 0 range 0 .. 11;
Reserved_12_15 at 0 range 12 .. 15;
HT at 0 range 16 .. 27;
Reserved_28_31 at 0 range 28 .. 31;
end record;
-- CHSELR_CHSEL array
type CHSELR_CHSEL_Field_Array is array (0 .. 18) of STM32_SVD.Bit
with Component_Size => 1, Size => 19;
-- Type definition for CHSELR_CHSEL
type CHSELR_CHSEL_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CHSEL as a value
Val : STM32_SVD.UInt19;
when True =>
-- CHSEL as an array
Arr : CHSELR_CHSEL_Field_Array;
end case;
end record
with Unchecked_Union, Size => 19;
for CHSELR_CHSEL_Field use record
Val at 0 range 0 .. 18;
Arr at 0 range 0 .. 18;
end record;
-- channel selection register
type CHSELR_Register is record
-- Channel-x selection
CHSEL : CHSELR_CHSEL_Field;
-- unspecified
Reserved_19_31 : STM32_SVD.UInt13;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CHSELR_Register use record
CHSEL at 0 range 0 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- data register
type DR_Register is record
-- Read-only. Converted data
DATA : STM32_SVD.UInt16;
-- unspecified
Reserved_16_31 : STM32_SVD.UInt16;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for DR_Register use record
DATA at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- ADC Calibration factor
type CALFACT_Register is record
-- Calibration factor
CALFACT : STM32_SVD.UInt7;
-- unspecified
Reserved_7_31 : STM32_SVD.UInt25;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CALFACT_Register use record
CALFACT at 0 range 0 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
-- ADC common configuration register
type CCR_Register is record
-- unspecified
Reserved_0_17 : STM32_SVD.UInt18;
-- ADC prescaler
PRESC : STM32_SVD.UInt4;
-- VREFINT enable
VREFEN : STM32_SVD.Bit;
-- Temperature sensor enable
TSEN : STM32_SVD.Bit;
-- VLCD enable
VLCDEN : STM32_SVD.Bit;
-- Low Frequency Mode enable
LFMEN : STM32_SVD.Bit;
-- unspecified
Reserved_26_31 : STM32_SVD.UInt6;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CCR_Register use record
Reserved_0_17 at 0 range 0 .. 17;
PRESC at 0 range 18 .. 21;
VREFEN at 0 range 22 .. 22;
TSEN at 0 range 23 .. 23;
VLCDEN at 0 range 24 .. 24;
LFMEN at 0 range 25 .. 25;
Reserved_26_31 at 0 range 26 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Analog-to-digital converter
type ADC_Peripheral is record
-- interrupt and status register
ISR : aliased ISR_Register;
-- interrupt enable register
IER : aliased IER_Register;
-- control register
CR : aliased CR_Register;
-- configuration register 1
CFGR1 : aliased CFGR1_Register;
-- configuration register 2
CFGR2 : aliased CFGR2_Register;
-- sampling time register
SMPR : aliased SMPR_Register;
-- watchdog threshold register
TR : aliased TR_Register;
-- channel selection register
CHSELR : aliased CHSELR_Register;
-- data register
DR : aliased DR_Register;
-- ADC Calibration factor
CALFACT : aliased CALFACT_Register;
-- ADC common configuration register
CCR : aliased CCR_Register;
end record
with Volatile;
for ADC_Peripheral use record
ISR at 16#0# range 0 .. 31;
IER at 16#4# range 0 .. 31;
CR at 16#8# range 0 .. 31;
CFGR1 at 16#C# range 0 .. 31;
CFGR2 at 16#10# range 0 .. 31;
SMPR at 16#14# range 0 .. 31;
TR at 16#20# range 0 .. 31;
CHSELR at 16#28# range 0 .. 31;
DR at 16#40# range 0 .. 31;
CALFACT at 16#B4# range 0 .. 31;
CCR at 16#308# range 0 .. 31;
end record;
-- Analog-to-digital converter
ADC_Periph : aliased ADC_Peripheral
with Import, Address => ADC_Base;
end STM32_SVD.ADC;
| 32.111922 | 68 | 0.564555 |
4d9dd29f983cfdee27b4e344f1a2223fc49c552a | 4,313 | ads | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-heasor.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-heasor.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-heasor.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . H E A P _ S O R T --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-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. --
-- --
------------------------------------------------------------------------------
-- Sort utility (Using Heapsort Algorithm)
-- This package provides a heapsort routine that works with access to
-- subprogram parameters, so that it can be used with different types with
-- shared sorting code.
-- This heapsort algorithm uses approximately N*log(N) compares in the
-- worst case and is in place with no additional storage required. See
-- the body for exact details of the algorithm used.
-- See also GNAT.Heap_Sort_G which is a generic version that will be faster
-- since the overhead of the indirect calls is avoided, at the expense of
-- generic code duplication and less convenient interface.
-- Note: GNAT.Heap_Sort replaces and obsoletes GNAT.Heap_Sort_A, which is
-- retained in the GNAT library for backwards compatibility.
package GNAT.Heap_Sort is
pragma Pure;
-- The data to be sorted is assumed to be indexed by integer values
-- from 1 to N, where N is the number of items to be sorted.
type Xchg_Procedure is access procedure (Op1, Op2 : Natural);
-- A pointer to a procedure that exchanges the two data items whose
-- index values are Op1 and Op2.
type Lt_Function is access function (Op1, Op2 : Natural) return Boolean;
-- A pointer to a function that compares two items and returns True if
-- the item with index value Op1 is less than the item with Index value
-- Op2, and False if the Op1 item is greater than the Op2 item. If
-- the items are equal, then it does not matter if True or False is
-- returned (but it is slightly more efficient to return False).
procedure Sort (N : Natural; Xchg : Xchg_Procedure; Lt : Lt_Function);
-- This procedures sorts items in the range from 1 to N into ascending
-- order making calls to Lt to do required comparisons, and calls to
-- Xchg to exchange items. The sort is not stable, that is the order
-- of equal items in the input data set is not preserved.
end GNAT.Heap_Sort;
| 59.082192 | 78 | 0.526084 |
31bcdffe558a6f42e3ffb17f4968e54670849adf | 3,068 | ads | Ada | source/asis/spec/ada-exceptions.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | 4 | 2016-02-05T15:51:56.000Z | 2022-03-25T20:38:32.000Z | source/asis/spec/ada-exceptions.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | source/asis/spec/ada-exceptions.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
with Ada.Streams;
package Ada.Exceptions is
pragma Preelaborate (Exceptions);
type Exception_Id is private;
pragma Preelaborable_Initialization (Exception_Id);
Null_Id : constant Exception_Id;
function Exception_Name (Id : in Exception_Id) return String;
function Wide_Exception_Name (Id : in Exception_Id) return Wide_String;
function Wide_Wide_Exception_Name (Id : in Exception_Id)
return Wide_Wide_String;
type Exception_Occurrence is limited private;
pragma Preelaborable_Initialization (Exception_Occurrence);
type Exception_Occurrence_Access is access all Exception_Occurrence;
Null_Occurrence : constant Exception_Occurrence;
procedure Raise_Exception (E : in Exception_Id;
Message : in String := "");
pragma No_Return (Raise_Exception);
function Exception_Message (X : in Exception_Occurrence) return String;
procedure Reraise_Occurrence (X : in Exception_Occurrence);
function Exception_Identity (X : in Exception_Occurrence)
return Exception_Id;
function Exception_Name (X : in Exception_Occurrence) return String;
-- Same as Exception_Name(Exception_Identity(X)).
function Wide_Exception_Name (X : in Exception_Occurrence)
return Wide_String;
-- Same as Wide_Exception_Name(Exception_Identity(X)).
function Wide_Wide_Exception_Name (X : in Exception_Occurrence)
return Wide_Wide_String;
-- Same as Wide_Wide_Exception_Name(Exception_Identity(X)).
function Exception_Information (X : in Exception_Occurrence) return String;
procedure Save_Occurrence (Target : out Exception_Occurrence;
Source : in Exception_Occurrence);
function Save_Occurrence (Source : in Exception_Occurrence)
return Exception_Occurrence_Access;
procedure Read_Exception_Occurrence
(Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Item : out Exception_Occurrence);
procedure Write_Exception_Occurrence
(Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Item : in Exception_Occurrence);
for Exception_Occurrence'Read use Read_Exception_Occurrence;
for Exception_Occurrence'Write use Write_Exception_Occurrence;
private
pragma Import (Ada, Exception_Id);
pragma Import (Ada, Exception_Occurrence);
pragma Import (Ada, Null_Id);
pragma Import (Ada, Null_Occurrence);
end Ada.Exceptions;
| 36.52381 | 78 | 0.656454 |
57d1cdacc9b1663ce1d4369e8001314a8229a279 | 904 | ads | Ada | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/sym_print_name/pck.ads | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/sym_print_name/pck.ads | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/sym_print_name/pck.ads | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | -- Copyright 2008 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package Pck is
package First is
I : Integer := 48;
end First;
package Second is
I : Integer := 74;
end Second;
procedure Do_Nothing (Val : in out Integer);
end Pck;
| 33.481481 | 73 | 0.710177 |
3107afa9a98c996c8d844d61a8c86ccc824985cf | 2,954 | adb | Ada | samples/print_user.adb | My-Colaborations/ada-ado | cebf1f9b38c0c259c44935e8bca05a5bff12aace | [
"Apache-2.0"
] | null | null | null | samples/print_user.adb | My-Colaborations/ada-ado | cebf1f9b38c0c259c44935e8bca05a5bff12aace | [
"Apache-2.0"
] | null | null | null | samples/print_user.adb | My-Colaborations/ada-ado | cebf1f9b38c0c259c44935e8bca05a5bff12aace | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- Print_User -- Example to find an object from the database
-- Copyright (C) 2010, 2011, 2018 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 ADO;
with ADO.Drivers;
with ADO.Configs;
with ADO.Sessions;
with ADO.Connections;
with ADO.SQL;
with ADO.Sessions.Factory;
with Samples.User.Model;
with Util.Log.Loggers;
with Ada.Text_IO;
with Ada.Exceptions;
with Ada.Command_Line;
procedure Print_User is
use ADO;
use Samples.User.Model;
Factory : ADO.Sessions.Factory.Session_Factory;
begin
Util.Log.Loggers.Initialize ("samples.properties");
-- Initialize the database drivers.
ADO.Drivers.Initialize ("samples.properties");
if Ada.Command_Line.Argument_Count < 1 then
Ada.Text_IO.Put_Line ("Usage: print_user user-name ...");
Ada.Text_IO.Put_Line ("Example: print_user joe");
Ada.Command_Line.Set_Exit_Status (2);
return;
end if;
-- Create and configure the connection pool
Factory.Create (ADO.Configs.Get_Config ("ado.database"));
declare
Session : ADO.Sessions.Session := Factory.Get_Session;
User : User_Ref;
Found : Boolean;
begin
for I in 1 .. Ada.Command_Line.Argument_Count loop
declare
User_Name : constant String := Ada.Command_Line.Argument (I);
Query : ADO.SQL.Query;
begin
Ada.Text_IO.Put_Line ("Searching '" & User_Name & "'...");
Query.Bind_Param (1, User_Name);
Query.Set_Filter ("name = ?");
User.Find (Session => Session, Query => Query, Found => Found);
if Found then
Ada.Text_IO.Put_Line (" Id : " & Identifier'Image (User.Get_Id));
Ada.Text_IO.Put_Line (" User : " & User.Get_Name);
Ada.Text_IO.Put_Line (" Email : " & User.Get_Email);
else
Ada.Text_IO.Put_Line (" User '" & User_Name & "' does not exist");
end if;
end;
end loop;
end;
exception
when E : ADO.Connections.Database_Error | ADO.Sessions.Connection_Error =>
Ada.Text_IO.Put_Line ("Cannot connect to database: "
& Ada.Exceptions.Exception_Message (E));
end Print_User;
| 35.590361 | 86 | 0.617806 |
41ec788d0d698133eb59ae7b25390f62b6dc216b | 1,856 | ads | Ada | src/css-core-errors.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | 3 | 2017-01-03T22:18:22.000Z | 2017-01-10T07:58:17.000Z | src/css-core-errors.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | src/css-core-errors.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- css-core-errors -- Error handler interface
-- 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.
-----------------------------------------------------------------------
-- === Error Handler ===
-- The <tt>Error_Handler</tt> interface represents the operations that must be implemented
-- by an error handler to get the error and warning message reported by the CSS parser.
-- The CSS source position is represented by the <tt>Location</tt> type that describes
-- the CSS stylesheet, the source line number and column number where the error or message
-- is reported.
package CSS.Core.Errors is
type Error_Handler is limited interface;
type Error_Handler_Access is access all Error_Handler'Class;
-- Report an error message at the given CSS source position.
procedure Error (Handler : in out Error_Handler;
Loc : in Location;
Message : in String) is abstract;
-- Report a warning message at the given CSS source position.
procedure Warning (Handler : in out Error_Handler;
Loc : in Location;
Message : in String) is abstract;
end CSS.Core.Errors;
| 45.268293 | 91 | 0.647629 |
5718bdb05e20167f595a73b5c15a87e5a1101166 | 21,318 | adb | Ada | model_multistart/0/hls4ml_prj/myproject_prj/solution1/.autopilot/db/Block_arrayctor_loop.adb | filipemlins/nas-hls4ml | b35afc4f684d803d352776c40f3a6cbbf47c4b1c | [
"MIT"
] | null | null | null | model_multistart/0/hls4ml_prj/myproject_prj/solution1/.autopilot/db/Block_arrayctor_loop.adb | filipemlins/nas-hls4ml | b35afc4f684d803d352776c40f3a6cbbf47c4b1c | [
"MIT"
] | null | null | null | model_multistart/0/hls4ml_prj/myproject_prj/solution1/.autopilot/db/Block_arrayctor_loop.adb | filipemlins/nas-hls4ml | b35afc4f684d803d352776c40f3a6cbbf47c4b1c | [
"MIT"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName/>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>Block_arrayctor_loop</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>const_size_in_1</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>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>const_size_out_1</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>3</id>
<name/>
<fileName>firmware/myproject.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>35</lineNumber>
<contextFuncName>myproject</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>firmware/myproject.cpp</first>
<second>myproject</second>
</first>
<second>35</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>8</item>
<item>9</item>
<item>11</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>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>4</id>
<name/>
<fileName>firmware/myproject.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>36</lineNumber>
<contextFuncName>myproject</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/myproject.cpp</first>
<second>myproject</second>
</first>
<second>36</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>12</item>
<item>13</item>
<item>15</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>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>5</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>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>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_6">
<Value>
<Obj>
<type>2</type>
<id>10</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>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>1024</content>
</item>
<item class_id_reference="16" object_id="_7">
<Value>
<Obj>
<type>2</type>
<id>14</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>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>10</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="_8">
<Obj>
<type>3</type>
<id>6</id>
<name>Block_arrayctor.loop</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>3</item>
<item>4</item>
<item>5</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_9">
<id>9</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_10">
<id>11</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_11">
<id>13</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>4</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_12">
<id>15</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>4</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_13">
<mId>1</mId>
<mTag>Block_arrayctor.loop</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>6</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>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_14">
<states class_id="25" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_15">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_16">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_17">
<id>4</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_18">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</transitions>
</fsm>
<res class_id="30" tracking_level="1" version="0" object_id="_19">
<dp_component_resource class_id="31" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_resource>
<dp_expression_resource>
<count>1</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="0" version="0">
<first>ap_block_state1 ( or ) </first>
<second class_id="33" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
</dp_expression_resource>
<dp_fifo_resource>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_resource>
<dp_memory_resource>
<count>0</count>
<item_version>0</item_version>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>1</count>
<item_version>0</item_version>
<item>
<first>ap_done</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>
</dp_multiplexer_resource>
<dp_register_resource>
<count>2</count>
<item_version>0</item_version>
<item>
<first>ap_CS_fsm</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_done_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>
</dp_register_resource>
<dp_dsp_resource>
<count>0</count>
<item_version>0</item_version>
</dp_dsp_resource>
<dp_component_map class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_map>
<dp_memory_map>
<count>0</count>
<item_version>0</item_version>
</dp_memory_map>
</res>
<node_label_latency class_id="36" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="37" tracking_level="0" version="0">
<first>3</first>
<second class_id="38" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>4</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>5</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="39" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>6</first>
<second class_id="41" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="42" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="43" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="0" version="0">
<first>10</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>3</item>
</second>
</item>
<item>
<first>18</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>4</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="46" 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>2</count>
<item_version>0</item_version>
<item class_id="47" tracking_level="0" version="0">
<first>StgValue_2_write_fu_10</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>3</item>
</second>
</item>
<item>
<first>StgValue_3_write_fu_18</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>4</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="48" tracking_level="0" version="0">
<count>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="49" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>const_size_in_1</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>3</item>
</second>
</item>
</second>
</item>
<item>
<first>const_size_out_1</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>4</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="51" 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>
| 32.153846 | 98 | 0.49545 |
584476c27ae589ab44816a133866176df4c6eed2 | 834 | adb | Ada | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/packed_array_assign/pck.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 31 | 2018-08-01T21:25:24.000Z | 2022-02-14T07:52:34.000Z | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/packed_array_assign/pck.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 40 | 2018-12-03T19:48:52.000Z | 2021-03-10T06:34:26.000Z | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/packed_array_assign/pck.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 20 | 2018-11-16T21:19:22.000Z | 2021-10-18T23:08:24.000Z | -- Copyright 2018-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
procedure Do_Nothing (A : System.Address) is
begin
null;
end Do_Nothing;
end Pck;
| 34.75 | 73 | 0.727818 |
418255e15325f70af044ea7265b848813f3156ff | 16,146 | adb | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-imager.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-imager.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-imager.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . I M A G E _ R --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2021, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Double_Real;
with System.Float_Control;
with System.Img_Util; use System.Img_Util;
package body System.Image_R is
-- The following defines the maximum number of digits that we can convert
-- accurately. This is limited by the precision of the Num type, and also
-- by the number of digits that can be held in the Uns type, which is the
-- integer type we use as an intermediate in the computation. But, in both
-- cases, we can work with a double value in these types.
-- Note that in the following, the "-2" accounts for the space and one
-- extra digit, since we need the maximum number of 9's that can be
-- represented, e.g. for the 64-bit case, Long_Long_Unsigned'Width is
-- 21, since the maximum value (approx 1.8E+19) has 20 digits, but the
-- maximum number of 9's that can be represented is only 19.
Maxdigs : constant Natural := 2 * Natural'Min (Uns'Width - 2, Num'Digits);
Maxscaling : constant := 5000;
-- Max decimal scaling required during conversion of floating-point
-- numbers to decimal. This is used to defend against infinite
-- looping in the conversion, as can be caused by erroneous executions.
-- The largest exponent used on any current system is 2**16383, which
-- is approximately 10**4932, and the highest number of decimal digits
-- is about 35 for 128-bit floating-point formats, so 5000 leaves
-- enough room for scaling such values
package Double_Real is new System.Double_Real (Num);
use type Double_Real.Double_T;
subtype Double_T is Double_Real.Double_T;
-- The double floating-point type
function From_Unsigned is new Double_Real.From_Unsigned (Uns);
function To_Unsigned is new Double_Real.To_Unsigned (Uns);
-- Convert betwwen a double Num and a single Uns
function Is_Negative (V : Num) return Boolean;
-- Return True if V is negative for the purpose of the output, i.e. return
-- True for negative zeros only if Signed_Zeros is True.
-----------------------
-- Image_Fixed_Point --
-----------------------
procedure Image_Fixed_Point
(V : Num;
S : in out String;
P : out Natural;
Aft : Natural)
is
pragma Assert (S'First = 1);
begin
-- Output space at start if non-negative
if V >= 0.0 then
S (1) := ' ';
P := 1;
else
P := 0;
end if;
Set_Image_Real (V, S, P, 1, Aft, 0);
end Image_Fixed_Point;
--------------------------
-- Image_Floating_Point --
--------------------------
procedure Image_Floating_Point
(V : Num;
S : in out String;
P : out Natural;
Digs : Natural)
is
pragma Assert (S'First = 1);
begin
-- Decide whether a blank should be prepended before the call to
-- Set_Image_Real. We generate a blank for positive values, and
-- also for positive zeros. For negative zeros, we generate a
-- blank only if Signed_Zeros is False (the RM only permits the
-- output of -0.0 when Signed_Zeros is True). We do not generate
-- a blank for positive infinity, since we output an explicit +.
if not Is_Negative (V) and then V <= Num'Last then
pragma Annotate (CodePeer, False_Positive, "condition predetermined",
"CodePeer analysis ignores NaN and Inf values");
pragma Assert (S'Last > 1);
-- The caller is responsible for S to be large enough for all
-- Image_Floating_Point operation.
S (1) := ' ';
P := 1;
else
P := 0;
end if;
Set_Image_Real (V, S, P, 1, Digs - 1, 3);
end Image_Floating_Point;
-----------------
-- Is_Negative --
-----------------
function Is_Negative (V : Num) return Boolean is
begin
if V < 0.0 then
return True;
elsif V > 0.0 then
return False;
elsif not Num'Signed_Zeros then
return False;
else
return Num'Copy_Sign (1.0, V) < 0.0;
end if;
end Is_Negative;
--------------------
-- Set_Image_Real --
--------------------
procedure Set_Image_Real
(V : Num;
S : in out String;
P : in out Natural;
Fore : Natural;
Aft : Natural;
Exp : Natural)
is
Powten : constant array (0 .. Maxpow) of Double_T;
pragma Import (Ada, Powten);
for Powten'Address use Powten_Address;
NFrac : constant Natural := Natural'Max (Aft, 1);
-- Number of digits after the decimal point
Digs : String (1 .. 3 + Maxdigs);
-- Array used to hold digits of converted integer value
Ndigs : Natural;
-- Number of digits stored in Digs (and also subscript of last digit)
Scale : Integer := 0;
-- Exponent such that the result is Digs (1 .. NDigs) * 10**(-Scale)
X : Double_T;
-- Current absolute value of the input after scaling
procedure Adjust_Scale (S : Natural);
-- Adjusts the value in X by multiplying or dividing by a power of
-- ten so that it is in the range 10**(S-1) <= X < 10**S. Scale is
-- adjusted to reflect the power of ten used to divide the result,
-- i.e. one is added to the scale value for each multiplication by
-- 10.0 and one is subtracted for each division by 10.0.
------------------
-- Adjust_Scale --
------------------
procedure Adjust_Scale (S : Natural) is
Lo, Mid, Hi : Natural;
XP : Double_T;
begin
-- Cases where scaling up is required
if X < Powten (S - 1) then
-- What we are looking for is a power of ten to multiply X by
-- so that the result lies within the required range.
loop
XP := X * Powten (Maxpow);
exit when XP >= Powten (S - 1) or else Scale > Maxscaling;
X := XP;
Scale := Scale + Maxpow;
end loop;
-- The following exception is only raised in case of erroneous
-- execution, where a number was considered valid but still
-- fails to scale up. One situation where this can happen is
-- when a system which is supposed to be IEEE-compliant, but
-- has been reconfigured to flush denormals to zero.
if Scale > Maxscaling then
raise Constraint_Error;
end if;
-- Here we know that we must multiply by at least 10**1 and that
-- 10**Maxpow takes us too far: binary search to find right one.
-- Because of roundoff errors, it is possible for the value
-- of XP to be just outside of the interval when Lo >= Hi. In
-- that case we adjust explicitly by a factor of 10. This
-- can only happen with a value that is very close to an
-- exact power of 10.
Lo := 1;
Hi := Maxpow;
loop
Mid := (Lo + Hi) / 2;
XP := X * Powten (Mid);
if XP < Powten (S - 1) then
if Lo >= Hi then
Mid := Mid + 1;
XP := XP * 10.0;
exit;
else
Lo := Mid + 1;
end if;
elsif XP >= Powten (S) then
if Lo >= Hi then
Mid := Mid - 1;
XP := XP / 10.0;
exit;
else
Hi := Mid - 1;
end if;
else
exit;
end if;
end loop;
X := XP;
Scale := Scale + Mid;
-- Cases where scaling down is required
elsif X >= Powten (S) then
-- What we are looking for is a power of ten to divide X by
-- so that the result lies within the required range.
loop
XP := X / Powten (Maxpow);
exit when XP < Powten (S) or else Scale < -Maxscaling;
X := XP;
Scale := Scale - Maxpow;
end loop;
-- The following exception is only raised in case of erroneous
-- execution, where a number was considered valid but still
-- fails to scale up. One situation where this can happen is
-- when a system which is supposed to be IEEE-compliant, but
-- has been reconfigured to flush denormals to zero.
if Scale < -Maxscaling then
raise Constraint_Error;
end if;
-- Here we know that we must divide by at least 10**1 and that
-- 10**Maxpow takes us too far, binary search to find right one.
Lo := 1;
Hi := Maxpow;
loop
Mid := (Lo + Hi) / 2;
XP := X / Powten (Mid);
if XP < Powten (S - 1) then
if Lo >= Hi then
XP := XP * 10.0;
Mid := Mid - 1;
exit;
else
Hi := Mid - 1;
end if;
elsif XP >= Powten (S) then
if Lo >= Hi then
XP := XP / 10.0;
Mid := Mid + 1;
exit;
else
Lo := Mid + 1;
end if;
else
exit;
end if;
end loop;
X := XP;
Scale := Scale - Mid;
-- Here we are already scaled right
else
null;
end if;
end Adjust_Scale;
-- Start of processing for Set_Image_Real
begin
-- We call the floating-point processor reset routine so we can be sure
-- that the processor is properly set for conversions. This is notably
-- needed on Windows, where calls to the operating system randomly reset
-- the processor into 64-bit mode.
if Num'Machine_Mantissa = 64 then
System.Float_Control.Reset;
end if;
-- Deal with invalid values first
if not V'Valid then
-- Note that we're taking our chances here, as V might be
-- an invalid bit pattern resulting from erroneous execution
-- (caused by using uninitialized variables for example).
-- No matter what, we'll at least get reasonable behavior,
-- converting to infinity or some other value, or causing an
-- exception to be raised is fine.
-- If the following two tests succeed, then we definitely have
-- an infinite value, so we print +Inf or -Inf.
if V > Num'Last then
pragma Annotate (CodePeer, False_Positive, "dead code",
"CodePeer analysis ignores NaN and Inf values");
pragma Annotate (CodePeer, False_Positive, "test always true",
"CodePeer analysis ignores NaN and Inf values");
Set_Floating_Invalid_Value (Infinity, S, P, Fore, Aft, Exp);
elsif V < Num'First then
Set_Floating_Invalid_Value (Minus_Infinity, S, P, Fore, Aft, Exp);
-- In all other cases we print NaN
else
Set_Floating_Invalid_Value (Not_A_Number, S, P, Fore, Aft, Exp);
end if;
return;
end if;
-- Set the first character like Image
Digs (1) := (if Is_Negative (V) then '-' else ' ');
Ndigs := 1;
X := Double_Real.To_Double (abs (V));
-- If X is zero, we are done
if X = 0.0 then
Digs (2) := '0';
Ndigs := 2;
-- Otherwise, scale X and convert it to an integer
else
-- In exponent notation, we need exactly NFrac + 1 digits and always
-- round the last one.
if Exp > 0 then
Adjust_Scale (Natural'Min (NFrac + 1, Maxdigs));
X := X + 0.5;
-- In straight notation, we compute the maximum number of digits and
-- compare how many of them will be put after the decimal point with
-- Nfrac, in order to find out whether we need to round the last one
-- here or whether the rounding is performed by Set_Decimal_Digits.
else
Adjust_Scale (Maxdigs);
if Scale <= NFrac then
X := X + 0.5;
end if;
end if;
-- If X fits in an Uns, do the conversion directly. Note that this is
-- always the case for the Image attribute.
if X <= Num (Uns'Last) then
Set_Image_Unsigned (To_Unsigned (X), Digs, Ndigs);
-- Otherwise, do the conversion in two steps
else pragma Assert (X <= 10.0 ** Num'Digits * Num (Uns'Last));
declare
Y : constant Uns := To_Unsigned (X / Powten (Num'Digits));
Buf : String (1 .. Num'Digits);
Len : Natural;
begin
Set_Image_Unsigned (Y, Digs, Ndigs);
X := X - From_Unsigned (Y) * Powten (Num'Digits);
Len := 0;
Set_Image_Unsigned (To_Unsigned (X), Buf, Len);
for J in 1 .. Num'Digits - Len loop
Digs (Ndigs + J) := '0';
end loop;
for J in 1 .. Len loop
Digs (Ndigs + Num'Digits - Len + J) := Buf (J);
end loop;
Ndigs := Ndigs + Num'Digits;
end;
end if;
end if;
Set_Decimal_Digits (Digs, Ndigs, S, P, Scale, Fore, Aft, Exp);
end Set_Image_Real;
end System.Image_R;
| 34.722581 | 79 | 0.497956 |
59aacff82488e12301861a2ff4a553705bd2172d | 9,288 | adb | Ada | source/amf/mof/amf-internals-element_collections.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/mof/amf-internals-element_collections.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/mof/amf-internals-element_collections.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 © 2010-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.Internals.Collections.Elements.Proxies;
with AMF.Internals.Links;
with AMF.Internals.Tables.AMF_Tables;
with AMF.Internals.Tables.CMOF_Attributes;
package body AMF.Internals.Element_Collections is
use AMF.Internals.Tables;
use type AMF.Internals.Tables.AMF_Tables.Collection_Element_Identifier;
---------
-- Add --
---------
procedure Add (Self : AMF_Collection_Of_Element; Item : AMF_Element) is
Owner : constant AMF_Element
:= AMF_Tables.Collections.Table (Self).Owner;
Property : constant CMOF_Element
:= AMF_Tables.Collections.Table (Self).Property;
Association : constant CMOF_Element
:= AMF.Internals.Tables.CMOF_Attributes.Internal_Get_Association
(Property);
Member_End : constant AMF_Collection_Of_Element
:= AMF.Internals.Tables.CMOF_Attributes.Internal_Get_Member_End
(Association);
begin
if Element (Member_End, 1) = Property then
AMF.Internals.Links.Create_Link (Association, Owner, Item);
else
AMF.Internals.Links.Create_Link (Association, Item, Owner);
end if;
end Add;
--------------------------
-- Allocate_Collections --
--------------------------
function Allocate_Collections
(Count : Natural) return AMF.Internals.AMF_Collection_Of_Element
is
First : constant AMF_Collection_Of_Element
:= AMF_Tables.Collections.Last + 1;
begin
AMF_Tables.Collections.Set_Last
(First + AMF_Collection_Of_Element (Count));
-- Initialize first allocated collection.
AMF_Tables.Collections.Table (First) :=
(Kind => AMF_Tables.C_None,
Proxy =>
new AMF.Internals.Collections.Elements.Proxies.Shared_Element_Collection_Proxy'
(Collection => First),
Owner => 0,
Property => 0,
Head => 0,
Tail => 0);
return First;
end Allocate_Collections;
-------------
-- Element --
-------------
function Element
(Self : AMF_Collection_Of_Element;
Index : Positive) return AMF_Element
is
Current : AMF_Tables.Collection_Element_Identifier
:= AMF_Tables.Collections.Table (Self).Head;
begin
for J in 2 .. Index loop
exit when Current = 0;
Current := AMF_Tables.Collection_Elements.Table (Current).Next;
end loop;
if Current = 0 then
raise Constraint_Error;
else
return AMF_Tables.Collection_Elements.Table (Current).Element;
end if;
end Element;
---------------------------------------
-- Initialize_Ordered_Set_Collection --
---------------------------------------
procedure Initialize_Ordered_Set_Collection
(Element : AMF_Element;
Property : CMOF_Element;
Collection : AMF_Collection_Of_Element) is
begin
AMF_Tables.Collections.Table (Collection) :=
(Kind => AMF_Tables.C_Ordered_Set,
Proxy =>
new AMF.Internals.Collections.Elements.Proxies.Shared_Element_Collection_Proxy'
(Collection => Collection),
Owner => Element,
Property => Property,
Head => 0,
Tail => 0);
end Initialize_Ordered_Set_Collection;
-------------------------------
-- Initialize_Set_Collection --
-------------------------------
procedure Initialize_Set_Collection
(Element : AMF_Element;
Property : CMOF_Element;
Collection : AMF_Collection_Of_Element) is
begin
AMF_Tables.Collections.Table (Collection) :=
(Kind => AMF_Tables.C_Set,
Proxy =>
new AMF.Internals.Collections.Elements.Proxies.Shared_Element_Collection_Proxy'
(Collection => Collection),
Owner => Element,
Property => Property,
Head => 0,
Tail => 0);
end Initialize_Set_Collection;
---------------------
-- Internal_Append --
---------------------
procedure Internal_Append
(Collection : AMF_Collection_Of_Element;
Element : AMF_Element;
Link : AMF_Link)
is
Previous : constant AMF_Tables.Collection_Element_Identifier
:= AMF_Tables.Collections.Table (Collection).Tail;
New_Element : AMF_Tables.Collection_Element_Identifier;
begin
AMF_Tables.Collection_Elements.Increment_Last;
New_Element := AMF_Tables.Collection_Elements.Last;
-- Initialize new element.
AMF_Tables.Collection_Elements.Table (New_Element) :=
(Element, Link, Previous, 0);
-- Connect list.
AMF_Tables.Collections.Table (Collection).Tail := New_Element;
if AMF_Tables.Collections.Table (Collection).Head = 0 then
-- List is empty, sets list's head to point to element.
AMF_Tables.Collections.Table (Collection).Head := New_Element;
else
-- List is not empty, attach new element to last element in the list.
AMF_Tables.Collection_Elements.Table (Previous).Next := New_Element;
end if;
end Internal_Append;
------------
-- Length --
------------
function Length (Self : AMF_Collection_Of_Element) return Natural is
Current : AMF_Tables.Collection_Element_Identifier
:= AMF_Tables.Collections.Table (Self).Head;
Aux : Natural := 0;
begin
while Current /= 0 loop
Aux := Aux + 1;
Current := AMF_Tables.Collection_Elements.Table (Current).Next;
end loop;
return Aux;
end Length;
----------
-- Wrap --
----------
function Wrap
(Collection : AMF_Collection_Of_Element)
return AMF.Internals.Collections.Elements.Shared_Element_Collection_Access is
begin
return
AMF.Internals.Collections.Elements.Shared_Element_Collection_Access
(AMF_Tables.Collections.Table (Collection).Proxy);
end Wrap;
end AMF.Internals.Element_Collections;
| 38.065574 | 89 | 0.537252 |
582afdbdfb6397c4ce6845e459cb6ffebac12a7c | 252 | adb | Ada | list1/task1/src/main.adb | luk9400/nsi | dd76cfbc811163e77bdb05ab30115b734774ca33 | [
"MIT"
] | null | null | null | list1/task1/src/main.adb | luk9400/nsi | dd76cfbc811163e77bdb05ab30115b734774ca33 | [
"MIT"
] | null | null | null | list1/task1/src/main.adb | luk9400/nsi | dd76cfbc811163e77bdb05ab30115b734774ca33 | [
"MIT"
] | null | null | null | with Smallest_Factor; use Smallest_Factor;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
N : Integer := 15;
Factor : Integer;
begin
SmallestF (N, Factor);
Put_Line ("N: " & N'Image);
Put_Line ("Factor: " & Factor'Image);
end Main;
| 16.8 | 42 | 0.674603 |
58305c02cf4555d525e8c0338f19bb7e6070a4f5 | 62,155 | ads | Ada | arch/ARM/STM32/svd/stm32l4x2/stm32_svd-can.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/stm32l4x2/stm32_svd-can.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/svd/stm32l4x2/stm32_svd-can.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | -- This spec has been automatically generated from STM32L4x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CAN is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- master control register
type MCR_Register is record
-- INRQ
INRQ : Boolean := False;
-- SLEEP
SLEEP : Boolean := True;
-- TXFP
TXFP : Boolean := False;
-- RFLM
RFLM : Boolean := False;
-- NART
NART : Boolean := False;
-- AWUM
AWUM : Boolean := False;
-- ABOM
ABOM : Boolean := False;
-- TTCM
TTCM : Boolean := False;
-- unspecified
Reserved_8_14 : HAL.UInt7 := 16#0#;
-- RESET
RESET : Boolean := False;
-- DBF
DBF : Boolean := True;
-- unspecified
Reserved_17_31 : HAL.UInt15 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MCR_Register use record
INRQ at 0 range 0 .. 0;
SLEEP at 0 range 1 .. 1;
TXFP at 0 range 2 .. 2;
RFLM at 0 range 3 .. 3;
NART at 0 range 4 .. 4;
AWUM at 0 range 5 .. 5;
ABOM at 0 range 6 .. 6;
TTCM at 0 range 7 .. 7;
Reserved_8_14 at 0 range 8 .. 14;
RESET at 0 range 15 .. 15;
DBF at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
-- master status register
type MSR_Register is record
-- Read-only. INAK
INAK : Boolean := False;
-- Read-only. SLAK
SLAK : Boolean := True;
-- ERRI
ERRI : Boolean := False;
-- WKUI
WKUI : Boolean := False;
-- SLAKI
SLAKI : Boolean := False;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Read-only. TXM
TXM : Boolean := False;
-- Read-only. RXM
RXM : Boolean := False;
-- Read-only. SAMP
SAMP : Boolean := True;
-- Read-only. RX
RX : Boolean := True;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MSR_Register use record
INAK at 0 range 0 .. 0;
SLAK at 0 range 1 .. 1;
ERRI at 0 range 2 .. 2;
WKUI at 0 range 3 .. 3;
SLAKI at 0 range 4 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
TXM at 0 range 8 .. 8;
RXM at 0 range 9 .. 9;
SAMP at 0 range 10 .. 10;
RX at 0 range 11 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype TSR_CODE_Field is HAL.UInt2;
-- TSR_TME array
type TSR_TME_Field_Array is array (0 .. 2) of Boolean
with Component_Size => 1, Size => 3;
-- Type definition for TSR_TME
type TSR_TME_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- TME as a value
Val : HAL.UInt3;
when True =>
-- TME as an array
Arr : TSR_TME_Field_Array;
end case;
end record
with Unchecked_Union, Size => 3;
for TSR_TME_Field use record
Val at 0 range 0 .. 2;
Arr at 0 range 0 .. 2;
end record;
-- TSR_LOW array
type TSR_LOW_Field_Array is array (0 .. 2) of Boolean
with Component_Size => 1, Size => 3;
-- Type definition for TSR_LOW
type TSR_LOW_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- LOW as a value
Val : HAL.UInt3;
when True =>
-- LOW as an array
Arr : TSR_LOW_Field_Array;
end case;
end record
with Unchecked_Union, Size => 3;
for TSR_LOW_Field use record
Val at 0 range 0 .. 2;
Arr at 0 range 0 .. 2;
end record;
-- transmit status register
type TSR_Register is record
-- RQCP0
RQCP0 : Boolean := False;
-- TXOK0
TXOK0 : Boolean := False;
-- ALST0
ALST0 : Boolean := False;
-- TERR0
TERR0 : Boolean := False;
-- unspecified
Reserved_4_6 : HAL.UInt3 := 16#0#;
-- ABRQ0
ABRQ0 : Boolean := False;
-- RQCP1
RQCP1 : Boolean := False;
-- TXOK1
TXOK1 : Boolean := False;
-- ALST1
ALST1 : Boolean := False;
-- TERR1
TERR1 : Boolean := False;
-- unspecified
Reserved_12_14 : HAL.UInt3 := 16#0#;
-- ABRQ1
ABRQ1 : Boolean := False;
-- RQCP2
RQCP2 : Boolean := False;
-- TXOK2
TXOK2 : Boolean := False;
-- ALST2
ALST2 : Boolean := False;
-- TERR2
TERR2 : Boolean := False;
-- unspecified
Reserved_20_22 : HAL.UInt3 := 16#0#;
-- ABRQ2
ABRQ2 : Boolean := False;
-- Read-only. CODE
CODE : TSR_CODE_Field := 16#0#;
-- Read-only. Lowest priority flag for mailbox 0
TME : TSR_TME_Field := (As_Array => False, Val => 16#1#);
-- Read-only. Lowest priority flag for mailbox 0
LOW : TSR_LOW_Field := (As_Array => False, Val => 16#0#);
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TSR_Register use record
RQCP0 at 0 range 0 .. 0;
TXOK0 at 0 range 1 .. 1;
ALST0 at 0 range 2 .. 2;
TERR0 at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
ABRQ0 at 0 range 7 .. 7;
RQCP1 at 0 range 8 .. 8;
TXOK1 at 0 range 9 .. 9;
ALST1 at 0 range 10 .. 10;
TERR1 at 0 range 11 .. 11;
Reserved_12_14 at 0 range 12 .. 14;
ABRQ1 at 0 range 15 .. 15;
RQCP2 at 0 range 16 .. 16;
TXOK2 at 0 range 17 .. 17;
ALST2 at 0 range 18 .. 18;
TERR2 at 0 range 19 .. 19;
Reserved_20_22 at 0 range 20 .. 22;
ABRQ2 at 0 range 23 .. 23;
CODE at 0 range 24 .. 25;
TME at 0 range 26 .. 28;
LOW at 0 range 29 .. 31;
end record;
subtype RF0R_FMP0_Field is HAL.UInt2;
-- receive FIFO 0 register
type RF0R_Register is record
-- Read-only. FMP0
FMP0 : RF0R_FMP0_Field := 16#0#;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- FULL0
FULL0 : Boolean := False;
-- FOVR0
FOVR0 : Boolean := False;
-- RFOM0
RFOM0 : Boolean := False;
-- unspecified
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RF0R_Register use record
FMP0 at 0 range 0 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
FULL0 at 0 range 3 .. 3;
FOVR0 at 0 range 4 .. 4;
RFOM0 at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
subtype RF1R_FMP1_Field is HAL.UInt2;
-- receive FIFO 1 register
type RF1R_Register is record
-- Read-only. FMP1
FMP1 : RF1R_FMP1_Field := 16#0#;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- FULL1
FULL1 : Boolean := False;
-- FOVR1
FOVR1 : Boolean := False;
-- RFOM1
RFOM1 : Boolean := False;
-- unspecified
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RF1R_Register use record
FMP1 at 0 range 0 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
FULL1 at 0 range 3 .. 3;
FOVR1 at 0 range 4 .. 4;
RFOM1 at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
-- interrupt enable register
type IER_Register is record
-- TMEIE
TMEIE : Boolean := False;
-- FMPIE0
FMPIE0 : Boolean := False;
-- FFIE0
FFIE0 : Boolean := False;
-- FOVIE0
FOVIE0 : Boolean := False;
-- FMPIE1
FMPIE1 : Boolean := False;
-- FFIE1
FFIE1 : Boolean := False;
-- FOVIE1
FOVIE1 : Boolean := False;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- EWGIE
EWGIE : Boolean := False;
-- EPVIE
EPVIE : Boolean := False;
-- BOFIE
BOFIE : Boolean := False;
-- LECIE
LECIE : Boolean := False;
-- unspecified
Reserved_12_14 : HAL.UInt3 := 16#0#;
-- ERRIE
ERRIE : Boolean := False;
-- WKUIE
WKUIE : Boolean := False;
-- SLKIE
SLKIE : 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 IER_Register use record
TMEIE at 0 range 0 .. 0;
FMPIE0 at 0 range 1 .. 1;
FFIE0 at 0 range 2 .. 2;
FOVIE0 at 0 range 3 .. 3;
FMPIE1 at 0 range 4 .. 4;
FFIE1 at 0 range 5 .. 5;
FOVIE1 at 0 range 6 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
EWGIE at 0 range 8 .. 8;
EPVIE at 0 range 9 .. 9;
BOFIE at 0 range 10 .. 10;
LECIE at 0 range 11 .. 11;
Reserved_12_14 at 0 range 12 .. 14;
ERRIE at 0 range 15 .. 15;
WKUIE at 0 range 16 .. 16;
SLKIE at 0 range 17 .. 17;
Reserved_18_31 at 0 range 18 .. 31;
end record;
subtype ESR_LEC_Field is HAL.UInt3;
subtype ESR_TEC_Field is HAL.UInt8;
subtype ESR_REC_Field is HAL.UInt8;
-- interrupt enable register
type ESR_Register is record
-- Read-only. EWGF
EWGF : Boolean := False;
-- Read-only. EPVF
EPVF : Boolean := False;
-- Read-only. BOFF
BOFF : Boolean := False;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- LEC
LEC : ESR_LEC_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#0#;
-- Read-only. TEC
TEC : ESR_TEC_Field := 16#0#;
-- Read-only. REC
REC : ESR_REC_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ESR_Register use record
EWGF at 0 range 0 .. 0;
EPVF at 0 range 1 .. 1;
BOFF at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
LEC at 0 range 4 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
TEC at 0 range 16 .. 23;
REC at 0 range 24 .. 31;
end record;
subtype BTR_BRP_Field is HAL.UInt10;
subtype BTR_TS1_Field is HAL.UInt4;
subtype BTR_TS2_Field is HAL.UInt3;
subtype BTR_SJW_Field is HAL.UInt2;
-- bit timing register
type BTR_Register is record
-- BRP
BRP : BTR_BRP_Field := 16#0#;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- TS1
TS1 : BTR_TS1_Field := 16#0#;
-- TS2
TS2 : BTR_TS2_Field := 16#0#;
-- unspecified
Reserved_23_23 : HAL.Bit := 16#0#;
-- SJW
SJW : BTR_SJW_Field := 16#0#;
-- unspecified
Reserved_26_29 : HAL.UInt4 := 16#0#;
-- LBKM
LBKM : Boolean := False;
-- SILM
SILM : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for BTR_Register use record
BRP at 0 range 0 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
TS1 at 0 range 16 .. 19;
TS2 at 0 range 20 .. 22;
Reserved_23_23 at 0 range 23 .. 23;
SJW at 0 range 24 .. 25;
Reserved_26_29 at 0 range 26 .. 29;
LBKM at 0 range 30 .. 30;
SILM at 0 range 31 .. 31;
end record;
subtype TI0R_EXID_Field is HAL.UInt18;
subtype TI0R_STID_Field is HAL.UInt11;
-- TX mailbox identifier register
type TI0R_Register is record
-- TXRQ
TXRQ : Boolean := False;
-- RTR
RTR : Boolean := False;
-- IDE
IDE : Boolean := False;
-- EXID
EXID : TI0R_EXID_Field := 16#0#;
-- STID
STID : TI0R_STID_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TI0R_Register use record
TXRQ at 0 range 0 .. 0;
RTR at 0 range 1 .. 1;
IDE at 0 range 2 .. 2;
EXID at 0 range 3 .. 20;
STID at 0 range 21 .. 31;
end record;
subtype TDT0R_DLC_Field is HAL.UInt4;
subtype TDT0R_TIME_Field is HAL.UInt16;
-- mailbox data length control and time stamp register
type TDT0R_Register is record
-- DLC
DLC : TDT0R_DLC_Field := 16#0#;
-- unspecified
Reserved_4_7 : HAL.UInt4 := 16#0#;
-- TGT
TGT : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- TIME
TIME : TDT0R_TIME_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TDT0R_Register use record
DLC at 0 range 0 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
TGT at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
TIME at 0 range 16 .. 31;
end record;
-- TDL0R_DATA array element
subtype TDL0R_DATA_Element is HAL.UInt8;
-- TDL0R_DATA array
type TDL0R_DATA_Field_Array is array (0 .. 3) of TDL0R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data low register
type TDL0R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDL0R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDL0R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- TDH0R_DATA array element
subtype TDH0R_DATA_Element is HAL.UInt8;
-- TDH0R_DATA array
type TDH0R_DATA_Field_Array is array (4 .. 7) of TDH0R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type TDH0R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDH0R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDH0R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
subtype TI1R_EXID_Field is HAL.UInt18;
subtype TI1R_STID_Field is HAL.UInt11;
-- mailbox identifier register
type TI1R_Register is record
-- TXRQ
TXRQ : Boolean := False;
-- RTR
RTR : Boolean := False;
-- IDE
IDE : Boolean := False;
-- EXID
EXID : TI1R_EXID_Field := 16#0#;
-- STID
STID : TI1R_STID_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TI1R_Register use record
TXRQ at 0 range 0 .. 0;
RTR at 0 range 1 .. 1;
IDE at 0 range 2 .. 2;
EXID at 0 range 3 .. 20;
STID at 0 range 21 .. 31;
end record;
subtype TDT1R_DLC_Field is HAL.UInt4;
subtype TDT1R_TIME_Field is HAL.UInt16;
-- mailbox data length control and time stamp register
type TDT1R_Register is record
-- DLC
DLC : TDT1R_DLC_Field := 16#0#;
-- unspecified
Reserved_4_7 : HAL.UInt4 := 16#0#;
-- TGT
TGT : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- TIME
TIME : TDT1R_TIME_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TDT1R_Register use record
DLC at 0 range 0 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
TGT at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
TIME at 0 range 16 .. 31;
end record;
-- TDL1R_DATA array element
subtype TDL1R_DATA_Element is HAL.UInt8;
-- TDL1R_DATA array
type TDL1R_DATA_Field_Array is array (0 .. 3) of TDL1R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data low register
type TDL1R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDL1R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDL1R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- TDH1R_DATA array element
subtype TDH1R_DATA_Element is HAL.UInt8;
-- TDH1R_DATA array
type TDH1R_DATA_Field_Array is array (4 .. 7) of TDH1R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type TDH1R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDH1R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDH1R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
subtype TI2R_EXID_Field is HAL.UInt18;
subtype TI2R_STID_Field is HAL.UInt11;
-- mailbox identifier register
type TI2R_Register is record
-- TXRQ
TXRQ : Boolean := False;
-- RTR
RTR : Boolean := False;
-- IDE
IDE : Boolean := False;
-- EXID
EXID : TI2R_EXID_Field := 16#0#;
-- STID
STID : TI2R_STID_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TI2R_Register use record
TXRQ at 0 range 0 .. 0;
RTR at 0 range 1 .. 1;
IDE at 0 range 2 .. 2;
EXID at 0 range 3 .. 20;
STID at 0 range 21 .. 31;
end record;
subtype TDT2R_DLC_Field is HAL.UInt4;
subtype TDT2R_TIME_Field is HAL.UInt16;
-- mailbox data length control and time stamp register
type TDT2R_Register is record
-- DLC
DLC : TDT2R_DLC_Field := 16#0#;
-- unspecified
Reserved_4_7 : HAL.UInt4 := 16#0#;
-- TGT
TGT : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- TIME
TIME : TDT2R_TIME_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for TDT2R_Register use record
DLC at 0 range 0 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
TGT at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
TIME at 0 range 16 .. 31;
end record;
-- TDL2R_DATA array element
subtype TDL2R_DATA_Element is HAL.UInt8;
-- TDL2R_DATA array
type TDL2R_DATA_Field_Array is array (0 .. 3) of TDL2R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data low register
type TDL2R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDL2R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDL2R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- TDH2R_DATA array element
subtype TDH2R_DATA_Element is HAL.UInt8;
-- TDH2R_DATA array
type TDH2R_DATA_Field_Array is array (4 .. 7) of TDH2R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type TDH2R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : TDH2R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for TDH2R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
subtype RI0R_EXID_Field is HAL.UInt18;
subtype RI0R_STID_Field is HAL.UInt11;
-- receive FIFO mailbox identifier register
type RI0R_Register is record
-- unspecified
Reserved_0_0 : HAL.Bit;
-- Read-only. RTR
RTR : Boolean;
-- Read-only. IDE
IDE : Boolean;
-- Read-only. EXID
EXID : RI0R_EXID_Field;
-- Read-only. STID
STID : RI0R_STID_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RI0R_Register use record
Reserved_0_0 at 0 range 0 .. 0;
RTR at 0 range 1 .. 1;
IDE at 0 range 2 .. 2;
EXID at 0 range 3 .. 20;
STID at 0 range 21 .. 31;
end record;
subtype RDT0R_DLC_Field is HAL.UInt4;
subtype RDT0R_FMI_Field is HAL.UInt8;
subtype RDT0R_TIME_Field is HAL.UInt16;
-- mailbox data high register
type RDT0R_Register is record
-- Read-only. DLC
DLC : RDT0R_DLC_Field;
-- unspecified
Reserved_4_7 : HAL.UInt4;
-- Read-only. FMI
FMI : RDT0R_FMI_Field;
-- Read-only. TIME
TIME : RDT0R_TIME_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RDT0R_Register use record
DLC at 0 range 0 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
FMI at 0 range 8 .. 15;
TIME at 0 range 16 .. 31;
end record;
-- RDL0R_DATA array element
subtype RDL0R_DATA_Element is HAL.UInt8;
-- RDL0R_DATA array
type RDL0R_DATA_Field_Array is array (0 .. 3) of RDL0R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type RDL0R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : RDL0R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for RDL0R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- RDH0R_DATA array element
subtype RDH0R_DATA_Element is HAL.UInt8;
-- RDH0R_DATA array
type RDH0R_DATA_Field_Array is array (4 .. 7) of RDH0R_DATA_Element
with Component_Size => 8, Size => 32;
-- receive FIFO mailbox data high register
type RDH0R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : RDH0R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for RDH0R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
subtype RI1R_EXID_Field is HAL.UInt18;
subtype RI1R_STID_Field is HAL.UInt11;
-- mailbox data high register
type RI1R_Register is record
-- unspecified
Reserved_0_0 : HAL.Bit;
-- Read-only. RTR
RTR : Boolean;
-- Read-only. IDE
IDE : Boolean;
-- Read-only. EXID
EXID : RI1R_EXID_Field;
-- Read-only. STID
STID : RI1R_STID_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RI1R_Register use record
Reserved_0_0 at 0 range 0 .. 0;
RTR at 0 range 1 .. 1;
IDE at 0 range 2 .. 2;
EXID at 0 range 3 .. 20;
STID at 0 range 21 .. 31;
end record;
subtype RDT1R_DLC_Field is HAL.UInt4;
subtype RDT1R_FMI_Field is HAL.UInt8;
subtype RDT1R_TIME_Field is HAL.UInt16;
-- mailbox data high register
type RDT1R_Register is record
-- Read-only. DLC
DLC : RDT1R_DLC_Field;
-- unspecified
Reserved_4_7 : HAL.UInt4;
-- Read-only. FMI
FMI : RDT1R_FMI_Field;
-- Read-only. TIME
TIME : RDT1R_TIME_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RDT1R_Register use record
DLC at 0 range 0 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
FMI at 0 range 8 .. 15;
TIME at 0 range 16 .. 31;
end record;
-- RDL1R_DATA array element
subtype RDL1R_DATA_Element is HAL.UInt8;
-- RDL1R_DATA array
type RDL1R_DATA_Field_Array is array (0 .. 3) of RDL1R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type RDL1R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : RDL1R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for RDL1R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- RDH1R_DATA array element
subtype RDH1R_DATA_Element is HAL.UInt8;
-- RDH1R_DATA array
type RDH1R_DATA_Field_Array is array (4 .. 7) of RDH1R_DATA_Element
with Component_Size => 8, Size => 32;
-- mailbox data high register
type RDH1R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- DATA as a value
Val : HAL.UInt32;
when True =>
-- DATA as an array
Arr : RDH1R_DATA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for RDH1R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- filter master register
type FMR_Register is record
-- Filter initialization mode
FINIT : Boolean := True;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#150E0700#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FMR_Register use record
FINIT at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
-- FM1R_FBM array
type FM1R_FBM_Field_Array is array (0 .. 13) of Boolean
with Component_Size => 1, Size => 14;
-- Type definition for FM1R_FBM
type FM1R_FBM_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FBM as a value
Val : HAL.UInt14;
when True =>
-- FBM as an array
Arr : FM1R_FBM_Field_Array;
end case;
end record
with Unchecked_Union, Size => 14;
for FM1R_FBM_Field use record
Val at 0 range 0 .. 13;
Arr at 0 range 0 .. 13;
end record;
-- filter mode register
type FM1R_Register is record
-- Filter mode
FBM : FM1R_FBM_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FM1R_Register use record
FBM at 0 range 0 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- FS1R_FSC array
type FS1R_FSC_Field_Array is array (0 .. 13) of Boolean
with Component_Size => 1, Size => 14;
-- Type definition for FS1R_FSC
type FS1R_FSC_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FSC as a value
Val : HAL.UInt14;
when True =>
-- FSC as an array
Arr : FS1R_FSC_Field_Array;
end case;
end record
with Unchecked_Union, Size => 14;
for FS1R_FSC_Field use record
Val at 0 range 0 .. 13;
Arr at 0 range 0 .. 13;
end record;
-- filter scale register
type FS1R_Register is record
-- Filter scale configuration
FSC : FS1R_FSC_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FS1R_Register use record
FSC at 0 range 0 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- FFA1R_FFA array
type FFA1R_FFA_Field_Array is array (0 .. 13) of Boolean
with Component_Size => 1, Size => 14;
-- Type definition for FFA1R_FFA
type FFA1R_FFA_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FFA as a value
Val : HAL.UInt14;
when True =>
-- FFA as an array
Arr : FFA1R_FFA_Field_Array;
end case;
end record
with Unchecked_Union, Size => 14;
for FFA1R_FFA_Field use record
Val at 0 range 0 .. 13;
Arr at 0 range 0 .. 13;
end record;
-- filter FIFO assignment register
type FFA1R_Register is record
-- Filter FIFO assignment for filter 0
FFA : FFA1R_FFA_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FFA1R_Register use record
FFA at 0 range 0 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- FA1R_FACT array
type FA1R_FACT_Field_Array is array (0 .. 13) of Boolean
with Component_Size => 1, Size => 14;
-- Type definition for FA1R_FACT
type FA1R_FACT_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FACT as a value
Val : HAL.UInt14;
when True =>
-- FACT as an array
Arr : FA1R_FACT_Field_Array;
end case;
end record
with Unchecked_Union, Size => 14;
for FA1R_FACT_Field use record
Val at 0 range 0 .. 13;
Arr at 0 range 0 .. 13;
end record;
-- filter activation register
type FA1R_Register is record
-- Filter active
FACT : FA1R_FACT_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FA1R_Register use record
FACT at 0 range 0 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- F0R_FB array
type F0R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 0 register 1
type F0R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F0R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F0R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F1R_FB array
type F1R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 1 register 1
type F1R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F1R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F1R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F2R_FB array
type F2R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 2 register 1
type F2R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F2R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F2R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F3R_FB array
type F3R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 3 register 1
type F3R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F3R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F3R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F4R_FB array
type F4R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 4 register 1
type F4R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F4R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F4R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F5R_FB array
type F5R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 5 register 1
type F5R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F5R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F5R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F6R_FB array
type F6R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 6 register 1
type F6R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F6R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F6R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F7R_FB array
type F7R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 7 register 1
type F7R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F7R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F7R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F8R_FB array
type F8R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 8 register 1
type F8R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F8R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F8R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F9R_FB array
type F9R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 9 register 1
type F9R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F9R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F9R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F10R_FB array
type F10R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 10 register 1
type F10R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F10R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F10R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F11R_FB array
type F11R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 11 register 1
type F11R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F11R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F11R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F12R_FB array
type F12R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 4 register 1
type F12R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F12R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F12R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F13R_FB array
type F13R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 13 register 1
type F13R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F13R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F13R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F14R_FB array
type F14R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 14 register 1
type F14R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F14R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F14R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F15R_FB array
type F15R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 15 register 1
type F15R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F15R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F15R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F16R_FB array
type F16R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 16 register 1
type F16R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F16R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F16R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F17R_FB array
type F17R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 17 register 1
type F17R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F17R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F17R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F18R_FB array
type F18R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 18 register 1
type F18R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F18R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F18R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F19R_FB array
type F19R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 19 register 1
type F19R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F19R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F19R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F20R_FB array
type F20R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 20 register 1
type F20R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F20R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F20R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F21R_FB array
type F21R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 21 register 1
type F21R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F21R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F21R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F22R_FB array
type F22R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 22 register 1
type F22R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F22R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F22R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F23R_FB array
type F23R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 23 register 1
type F23R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F23R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F23R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F24R_FB array
type F24R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 24 register 1
type F24R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F24R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F24R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F25R_FB array
type F25R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 25 register 1
type F25R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F25R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F25R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F26R_FB array
type F26R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 26 register 1
type F26R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F26R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F26R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- F27R_FB array
type F27R_FB_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Filter bank 27 register 1
type F27R_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FB as a value
Val : HAL.UInt32;
when True =>
-- FB as an array
Arr : F27R_FB_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for F27R_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Controller area network
type CAN1_Peripheral is record
-- master control register
MCR : aliased MCR_Register;
-- master status register
MSR : aliased MSR_Register;
-- transmit status register
TSR : aliased TSR_Register;
-- receive FIFO 0 register
RF0R : aliased RF0R_Register;
-- receive FIFO 1 register
RF1R : aliased RF1R_Register;
-- interrupt enable register
IER : aliased IER_Register;
-- interrupt enable register
ESR : aliased ESR_Register;
-- bit timing register
BTR : aliased BTR_Register;
-- TX mailbox identifier register
TI0R : aliased TI0R_Register;
-- mailbox data length control and time stamp register
TDT0R : aliased TDT0R_Register;
-- mailbox data low register
TDL0R : aliased TDL0R_Register;
-- mailbox data high register
TDH0R : aliased TDH0R_Register;
-- mailbox identifier register
TI1R : aliased TI1R_Register;
-- mailbox data length control and time stamp register
TDT1R : aliased TDT1R_Register;
-- mailbox data low register
TDL1R : aliased TDL1R_Register;
-- mailbox data high register
TDH1R : aliased TDH1R_Register;
-- mailbox identifier register
TI2R : aliased TI2R_Register;
-- mailbox data length control and time stamp register
TDT2R : aliased TDT2R_Register;
-- mailbox data low register
TDL2R : aliased TDL2R_Register;
-- mailbox data high register
TDH2R : aliased TDH2R_Register;
-- receive FIFO mailbox identifier register
RI0R : aliased RI0R_Register;
-- mailbox data high register
RDT0R : aliased RDT0R_Register;
-- mailbox data high register
RDL0R : aliased RDL0R_Register;
-- receive FIFO mailbox data high register
RDH0R : aliased RDH0R_Register;
-- mailbox data high register
RI1R : aliased RI1R_Register;
-- mailbox data high register
RDT1R : aliased RDT1R_Register;
-- mailbox data high register
RDL1R : aliased RDL1R_Register;
-- mailbox data high register
RDH1R : aliased RDH1R_Register;
-- filter master register
FMR : aliased FMR_Register;
-- filter mode register
FM1R : aliased FM1R_Register;
-- filter scale register
FS1R : aliased FS1R_Register;
-- filter FIFO assignment register
FFA1R : aliased FFA1R_Register;
-- filter activation register
FA1R : aliased FA1R_Register;
-- Filter bank 0 register 1
F0R1 : aliased F0R_Register;
-- Filter bank 0 register 2
F0R2 : aliased F0R_Register;
-- Filter bank 1 register 1
F1R1 : aliased F1R_Register;
-- Filter bank 1 register 2
F1R2 : aliased F1R_Register;
-- Filter bank 2 register 1
F2R1 : aliased F2R_Register;
-- Filter bank 2 register 2
F2R2 : aliased F2R_Register;
-- Filter bank 3 register 1
F3R1 : aliased F3R_Register;
-- Filter bank 3 register 2
F3R2 : aliased F3R_Register;
-- Filter bank 4 register 1
F4R1 : aliased F4R_Register;
-- Filter bank 4 register 2
F4R2 : aliased F4R_Register;
-- Filter bank 5 register 1
F5R1 : aliased F5R_Register;
-- Filter bank 5 register 2
F5R2 : aliased F5R_Register;
-- Filter bank 6 register 1
F6R1 : aliased F6R_Register;
-- Filter bank 6 register 2
F6R2 : aliased F6R_Register;
-- Filter bank 7 register 1
F7R1 : aliased F7R_Register;
-- Filter bank 7 register 2
F7R2 : aliased F7R_Register;
-- Filter bank 8 register 1
F8R1 : aliased F8R_Register;
-- Filter bank 8 register 2
F8R2 : aliased F8R_Register;
-- Filter bank 9 register 1
F9R1 : aliased F9R_Register;
-- Filter bank 9 register 2
F9R2 : aliased F9R_Register;
-- Filter bank 10 register 1
F10R1 : aliased F10R_Register;
-- Filter bank 10 register 2
F10R2 : aliased F10R_Register;
-- Filter bank 11 register 1
F11R1 : aliased F11R_Register;
-- Filter bank 11 register 2
F11R2 : aliased F11R_Register;
-- Filter bank 4 register 1
F12R1 : aliased F12R_Register;
-- Filter bank 12 register 2
F12R2 : aliased F12R_Register;
-- Filter bank 13 register 1
F13R1 : aliased F13R_Register;
-- Filter bank 13 register 2
F13R2 : aliased F13R_Register;
-- Filter bank 14 register 1
F14R1 : aliased F14R_Register;
-- Filter bank 14 register 2
F14R2 : aliased F14R_Register;
-- Filter bank 15 register 1
F15R1 : aliased F15R_Register;
-- Filter bank 15 register 2
F15R2 : aliased F15R_Register;
-- Filter bank 16 register 1
F16R1 : aliased F16R_Register;
-- Filter bank 16 register 2
F16R2 : aliased F16R_Register;
-- Filter bank 17 register 1
F17R1 : aliased F17R_Register;
-- Filter bank 17 register 2
F17R2 : aliased F17R_Register;
-- Filter bank 18 register 1
F18R1 : aliased F18R_Register;
-- Filter bank 18 register 2
F18R2 : aliased F18R_Register;
-- Filter bank 19 register 1
F19R1 : aliased F19R_Register;
-- Filter bank 19 register 2
F19R2 : aliased F19R_Register;
-- Filter bank 20 register 1
F20R1 : aliased F20R_Register;
-- Filter bank 20 register 2
F20R2 : aliased F20R_Register;
-- Filter bank 21 register 1
F21R1 : aliased F21R_Register;
-- Filter bank 21 register 2
F21R2 : aliased F21R_Register;
-- Filter bank 22 register 1
F22R1 : aliased F22R_Register;
-- Filter bank 22 register 2
F22R2 : aliased F22R_Register;
-- Filter bank 23 register 1
F23R1 : aliased F23R_Register;
-- Filter bank 23 register 2
F23R2 : aliased F23R_Register;
-- Filter bank 24 register 1
F24R1 : aliased F24R_Register;
-- Filter bank 24 register 2
F24R2 : aliased F24R_Register;
-- Filter bank 25 register 1
F25R1 : aliased F25R_Register;
-- Filter bank 25 register 2
F25R2 : aliased F25R_Register;
-- Filter bank 26 register 1
F26R1 : aliased F26R_Register;
-- Filter bank 26 register 2
F26R2 : aliased F26R_Register;
-- Filter bank 27 register 1
F27R1 : aliased F27R_Register;
-- Filter bank 27 register 2
F27R2 : aliased F27R_Register;
end record
with Volatile;
for CAN1_Peripheral use record
MCR at 16#0# range 0 .. 31;
MSR at 16#4# range 0 .. 31;
TSR at 16#8# range 0 .. 31;
RF0R at 16#C# range 0 .. 31;
RF1R at 16#10# range 0 .. 31;
IER at 16#14# range 0 .. 31;
ESR at 16#18# range 0 .. 31;
BTR at 16#1C# range 0 .. 31;
TI0R at 16#180# range 0 .. 31;
TDT0R at 16#184# range 0 .. 31;
TDL0R at 16#188# range 0 .. 31;
TDH0R at 16#18C# range 0 .. 31;
TI1R at 16#190# range 0 .. 31;
TDT1R at 16#194# range 0 .. 31;
TDL1R at 16#198# range 0 .. 31;
TDH1R at 16#19C# range 0 .. 31;
TI2R at 16#1A0# range 0 .. 31;
TDT2R at 16#1A4# range 0 .. 31;
TDL2R at 16#1A8# range 0 .. 31;
TDH2R at 16#1AC# range 0 .. 31;
RI0R at 16#1B0# range 0 .. 31;
RDT0R at 16#1B4# range 0 .. 31;
RDL0R at 16#1B8# range 0 .. 31;
RDH0R at 16#1BC# range 0 .. 31;
RI1R at 16#1C0# range 0 .. 31;
RDT1R at 16#1C4# range 0 .. 31;
RDL1R at 16#1C8# range 0 .. 31;
RDH1R at 16#1CC# range 0 .. 31;
FMR at 16#200# range 0 .. 31;
FM1R at 16#204# range 0 .. 31;
FS1R at 16#20C# range 0 .. 31;
FFA1R at 16#214# range 0 .. 31;
FA1R at 16#21C# range 0 .. 31;
F0R1 at 16#240# range 0 .. 31;
F0R2 at 16#244# range 0 .. 31;
F1R1 at 16#248# range 0 .. 31;
F1R2 at 16#24C# range 0 .. 31;
F2R1 at 16#250# range 0 .. 31;
F2R2 at 16#254# range 0 .. 31;
F3R1 at 16#258# range 0 .. 31;
F3R2 at 16#25C# range 0 .. 31;
F4R1 at 16#260# range 0 .. 31;
F4R2 at 16#264# range 0 .. 31;
F5R1 at 16#268# range 0 .. 31;
F5R2 at 16#26C# range 0 .. 31;
F6R1 at 16#270# range 0 .. 31;
F6R2 at 16#274# range 0 .. 31;
F7R1 at 16#278# range 0 .. 31;
F7R2 at 16#27C# range 0 .. 31;
F8R1 at 16#280# range 0 .. 31;
F8R2 at 16#284# range 0 .. 31;
F9R1 at 16#288# range 0 .. 31;
F9R2 at 16#28C# range 0 .. 31;
F10R1 at 16#290# range 0 .. 31;
F10R2 at 16#294# range 0 .. 31;
F11R1 at 16#298# range 0 .. 31;
F11R2 at 16#29C# range 0 .. 31;
F12R1 at 16#2A0# range 0 .. 31;
F12R2 at 16#2A4# range 0 .. 31;
F13R1 at 16#2A8# range 0 .. 31;
F13R2 at 16#2AC# range 0 .. 31;
F14R1 at 16#2B0# range 0 .. 31;
F14R2 at 16#2B4# range 0 .. 31;
F15R1 at 16#2B8# range 0 .. 31;
F15R2 at 16#2BC# range 0 .. 31;
F16R1 at 16#2C0# range 0 .. 31;
F16R2 at 16#2C4# range 0 .. 31;
F17R1 at 16#2C8# range 0 .. 31;
F17R2 at 16#2CC# range 0 .. 31;
F18R1 at 16#2D0# range 0 .. 31;
F18R2 at 16#2D4# range 0 .. 31;
F19R1 at 16#2D8# range 0 .. 31;
F19R2 at 16#2DC# range 0 .. 31;
F20R1 at 16#2E0# range 0 .. 31;
F20R2 at 16#2E4# range 0 .. 31;
F21R1 at 16#2E8# range 0 .. 31;
F21R2 at 16#2EC# range 0 .. 31;
F22R1 at 16#2F0# range 0 .. 31;
F22R2 at 16#2F4# range 0 .. 31;
F23R1 at 16#2F8# range 0 .. 31;
F23R2 at 16#2FC# range 0 .. 31;
F24R1 at 16#300# range 0 .. 31;
F24R2 at 16#304# range 0 .. 31;
F25R1 at 16#308# range 0 .. 31;
F25R2 at 16#30C# range 0 .. 31;
F26R1 at 16#310# range 0 .. 31;
F26R2 at 16#314# range 0 .. 31;
F27R1 at 16#318# range 0 .. 31;
F27R2 at 16#31C# range 0 .. 31;
end record;
-- Controller area network
CAN1_Periph : aliased CAN1_Peripheral
with Import, Address => System'To_Address (16#40006400#);
end STM32_SVD.CAN;
| 29.276967 | 76 | 0.561435 |
4108015fda73b51a04240d707a1d792848673e13 | 8,611 | ads | Ada | stm32f4/stm32f411xx/svd/stm32_svd-syscfg.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | stm32f4/stm32f411xx/svd/stm32_svd-syscfg.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | stm32f4/stm32f411xx/svd/stm32_svd-syscfg.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | -- This spec has been automatically generated from STM32F411xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.SYSCFG is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype MEMRM_MEM_MODE_Field is STM32_SVD.UInt2;
-- memory remap register
type MEMRM_Register is record
-- MEM_MODE
MEM_MODE : MEMRM_MEM_MODE_Field := 16#0#;
-- unspecified
Reserved_2_31 : STM32_SVD.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MEMRM_Register use record
MEM_MODE at 0 range 0 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
subtype PMC_ADC1DC2_Field is STM32_SVD.Bit;
-- peripheral mode configuration register
type PMC_Register is record
-- unspecified
Reserved_0_15 : STM32_SVD.UInt16 := 16#0#;
-- ADC1DC2
ADC1DC2 : PMC_ADC1DC2_Field := 16#0#;
-- unspecified
Reserved_17_31 : STM32_SVD.UInt15 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_Register use record
Reserved_0_15 at 0 range 0 .. 15;
ADC1DC2 at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
-- EXTICR1_EXTI array element
subtype EXTICR1_EXTI_Element is STM32_SVD.UInt4;
-- EXTICR1_EXTI array
type EXTICR1_EXTI_Field_Array is array (0 .. 3) of EXTICR1_EXTI_Element
with Component_Size => 4, Size => 16;
-- Type definition for EXTICR1_EXTI
type EXTICR1_EXTI_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EXTI as a value
Val : STM32_SVD.UInt16;
when True =>
-- EXTI as an array
Arr : EXTICR1_EXTI_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for EXTICR1_EXTI_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- external interrupt configuration register 1
type EXTICR1_Register is record
-- EXTI x configuration (x = 0 to 3)
EXTI : EXTICR1_EXTI_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : STM32_SVD.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EXTICR1_Register use record
EXTI at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- EXTICR2_EXTI array element
subtype EXTICR2_EXTI_Element is STM32_SVD.UInt4;
-- EXTICR2_EXTI array
type EXTICR2_EXTI_Field_Array is array (4 .. 7) of EXTICR2_EXTI_Element
with Component_Size => 4, Size => 16;
-- Type definition for EXTICR2_EXTI
type EXTICR2_EXTI_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EXTI as a value
Val : STM32_SVD.UInt16;
when True =>
-- EXTI as an array
Arr : EXTICR2_EXTI_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for EXTICR2_EXTI_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- external interrupt configuration register 2
type EXTICR2_Register is record
-- EXTI x configuration (x = 4 to 7)
EXTI : EXTICR2_EXTI_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : STM32_SVD.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EXTICR2_Register use record
EXTI at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- EXTICR3_EXTI array element
subtype EXTICR3_EXTI_Element is STM32_SVD.UInt4;
-- EXTICR3_EXTI array
type EXTICR3_EXTI_Field_Array is array (8 .. 11) of EXTICR3_EXTI_Element
with Component_Size => 4, Size => 16;
-- Type definition for EXTICR3_EXTI
type EXTICR3_EXTI_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EXTI as a value
Val : STM32_SVD.UInt16;
when True =>
-- EXTI as an array
Arr : EXTICR3_EXTI_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for EXTICR3_EXTI_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- external interrupt configuration register 3
type EXTICR3_Register is record
-- EXTI x configuration (x = 8 to 11)
EXTI : EXTICR3_EXTI_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : STM32_SVD.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EXTICR3_Register use record
EXTI at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- EXTICR4_EXTI array element
subtype EXTICR4_EXTI_Element is STM32_SVD.UInt4;
-- EXTICR4_EXTI array
type EXTICR4_EXTI_Field_Array is array (12 .. 15) of EXTICR4_EXTI_Element
with Component_Size => 4, Size => 16;
-- Type definition for EXTICR4_EXTI
type EXTICR4_EXTI_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EXTI as a value
Val : STM32_SVD.UInt16;
when True =>
-- EXTI as an array
Arr : EXTICR4_EXTI_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for EXTICR4_EXTI_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- external interrupt configuration register 4
type EXTICR4_Register is record
-- EXTI x configuration (x = 12 to 15)
EXTI : EXTICR4_EXTI_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : STM32_SVD.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EXTICR4_Register use record
EXTI at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CMPCR_CMP_PD_Field is STM32_SVD.Bit;
subtype CMPCR_READY_Field is STM32_SVD.Bit;
-- Compensation cell control register
type CMPCR_Register is record
-- Read-only. Compensation cell power-down
CMP_PD : CMPCR_CMP_PD_Field;
-- unspecified
Reserved_1_7 : STM32_SVD.UInt7;
-- Read-only. READY
READY : CMPCR_READY_Field;
-- unspecified
Reserved_9_31 : STM32_SVD.UInt23;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CMPCR_Register use record
CMP_PD at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
READY at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- System configuration controller
type SYSCFG_Peripheral is record
-- memory remap register
MEMRM : aliased MEMRM_Register;
-- peripheral mode configuration register
PMC : aliased PMC_Register;
-- external interrupt configuration register 1
EXTICR1 : aliased EXTICR1_Register;
-- external interrupt configuration register 2
EXTICR2 : aliased EXTICR2_Register;
-- external interrupt configuration register 3
EXTICR3 : aliased EXTICR3_Register;
-- external interrupt configuration register 4
EXTICR4 : aliased EXTICR4_Register;
-- Compensation cell control register
CMPCR : aliased CMPCR_Register;
end record
with Volatile;
for SYSCFG_Peripheral use record
MEMRM at 16#0# range 0 .. 31;
PMC at 16#4# range 0 .. 31;
EXTICR1 at 16#8# range 0 .. 31;
EXTICR2 at 16#C# range 0 .. 31;
EXTICR3 at 16#10# range 0 .. 31;
EXTICR4 at 16#14# range 0 .. 31;
CMPCR at 16#20# range 0 .. 31;
end record;
-- System configuration controller
SYSCFG_Periph : aliased SYSCFG_Peripheral
with Import, Address => System'To_Address (16#40013800#);
end STM32_SVD.SYSCFG;
| 30.003484 | 76 | 0.616885 |
29b59ff524ee4e07607f45d1d8ed05ac6b1ac82f | 737 | ads | Ada | source/coroutines-polling.ads | reznikmm/coroutines | 52dd5d483f09d69cdc133910e49d13664cf05d80 | [
"MIT"
] | 3 | 2019-11-11T06:35:21.000Z | 2019-11-13T13:34:56.000Z | source/coroutines-polling.ads | reznikmm/coroutines | 52dd5d483f09d69cdc133910e49d13664cf05d80 | [
"MIT"
] | null | null | null | source/coroutines-polling.ads | reznikmm/coroutines | 52dd5d483f09d69cdc133910e49d13664cf05d80 | [
"MIT"
] | null | null | null | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
--
-- This package provides file descriptor polling events to yield.
--
with Interfaces.C;
package Coroutines.Polling is
pragma Preelaborate;
procedure Initialize;
-- Call this before use
subtype FD is Interfaces.C.int;
type Polling_Kind is (Input, Output, Error, Close);
type Polling_Kind_Set is array (Polling_Kind) of Boolean with Pack;
function Watch
(File : FD;
Events : Polling_Kind_Set) return Event_Id;
-- Wake the coroutine up as state of given file descriptor changed.
end Coroutines.Polling;
| 23.774194 | 71 | 0.65536 |
23bb9c5b699ae9078be4f3f8a89a935dc0a3473e | 3,643 | ads | Ada | src/riscv32/agate_arch_parameters.ads | Fabien-Chouteau/AGATE | cd8dbc54c1c70379c833e7cd710e2326ad6e9a91 | [
"BSD-3-Clause"
] | 3 | 2017-12-23T10:25:07.000Z | 2021-06-09T13:47:19.000Z | src/riscv32/agate_arch_parameters.ads | Fabien-Chouteau/AGATE | cd8dbc54c1c70379c833e7cd710e2326ad6e9a91 | [
"BSD-3-Clause"
] | null | null | null | src/riscv32/agate_arch_parameters.ads | Fabien-Chouteau/AGATE | cd8dbc54c1c70379c833e7cd710e2326ad6e9a91 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Fabien Chouteau --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with HAL;
with System; use System;
with System.Storage_Elements; use System.Storage_Elements;
package AGATE_Arch_Parameters is
subtype Word is HAL.UInt32;
type Context_Index is range 0 .. 31;
type Task_Context is array (Context_Index) of Word
with Pack, Size => 32 * 32;
Ctx_PC_Index : constant Context_Index := 0;
Ctx_SP_Index : constant Context_Index := 2;
Ctx_TP_Index : constant Context_Index := 4;
Ctx_A0_Index : constant Context_Index := 10;
Ctx_A1_Index : constant Context_Index := 11;
Ctx_A2_Index : constant Context_Index := 12;
Ctx_A3_Index : constant Context_Index := 13;
type Trap_ID is range -24 .. -1;
type Trap_Priority is range 0 .. 0;
CLINT_Addr : constant := 16#02000000#;
CLINT_Mtime_Offset : constant := 16#BFF8#;
CLINT_Mtimecmp_Offset : constant := 16#4000#;
Mtime_Lo_Addr : Address := To_Address (CLINT_Addr + CLINT_Mtime_Offset);
Mtime_Hi_Addr : Address := To_Address (CLINT_Addr + CLINT_Mtime_Offset + 4);
Mtimecmp_Lo_Addr : Address :=
To_Address (CLINT_Addr + CLINT_Mtimecmp_Offset);
Mtimecmp_Hi_Addr : Address :=
To_Address (CLINT_Addr + CLINT_Mtimecmp_Offset + 4);
Timer_Frequency : constant := 32768;
end AGATE_Arch_Parameters;
| 52.042857 | 79 | 0.574801 |
a12be0d7d7397b55daae93191949de9405651bfb | 88,855 | adb | Ada | submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.sched.adb | maanjum95/SynthesisDigitalSystems_Lab | afc942decf7595eb1557ff78074693de2eea1780 | [
"MIT"
] | null | null | null | submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.sched.adb | maanjum95/SynthesisDigitalSystems_Lab | afc942decf7595eb1557ff78074693de2eea1780 | [
"MIT"
] | null | null | null | submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.sched.adb | maanjum95/SynthesisDigitalSystems_Lab | afc942decf7595eb1557ff78074693de2eea1780 | [
"MIT"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>ShiftRows</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>state</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>state</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>2</direction>
<if_type>1</if_type>
<array_size>16</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>37</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_2">
<Value>
<Obj>
<type>0</type>
<id>2</id>
<name>state_addr</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>288</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>288</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>40</item>
<item>42</item>
<item>44</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>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>3</id>
<name>state_addr_1</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>289</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>289</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>45</item>
<item>46</item>
<item>48</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>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>4</id>
<name>state_addr_2</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>290</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>290</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>49</item>
<item>50</item>
<item>52</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>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>state_addr_3</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>291</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>291</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>53</item>
<item>54</item>
<item>56</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="_6">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>state_addr_4</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>295</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>295</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>57</item>
<item>58</item>
<item>60</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="_7">
<Value>
<Obj>
<type>0</type>
<id>7</id>
<name>state_addr_5</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>296</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>296</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>61</item>
<item>62</item>
<item>64</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>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>state_addr_6</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>299</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>299</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>65</item>
<item>66</item>
<item>68</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>state_addr_7</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>300</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>300</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>69</item>
<item>70</item>
<item>72</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>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>state_addr_8</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>304</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>304</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>73</item>
<item>74</item>
<item>76</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>17</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>state_addr_9</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>305</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>305</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>77</item>
<item>78</item>
<item>80</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>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>state_addr_10</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>306</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>306</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>81</item>
<item>82</item>
<item>84</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>21</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>state_addr_11</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>307</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>307</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>85</item>
<item>86</item>
<item>88</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>22</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>temp</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>288</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>288</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>temp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>89</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>1.76</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>state_load</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>289</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>289</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>90</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>1.76</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>16</id>
<name>state_addr_write_ln289</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>289</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>289</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>91</item>
<item>92</item>
<item>136</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>1.76</m_delay>
<m_topoIndex>25</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>state_load_1</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>290</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>290</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>93</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>1.76</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>state_addr_1_write_ln290</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>290</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</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>94</item>
<item>95</item>
<item>135</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>1.76</m_delay>
<m_topoIndex>26</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>state_load_2</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>291</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>291</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>96</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>1.76</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>state_addr_2_write_ln291</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>291</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>291</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>97</item>
<item>98</item>
<item>134</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>1.76</m_delay>
<m_topoIndex>27</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>state_addr_3_write_ln292</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>292</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>292</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>99</item>
<item>100</item>
<item>133</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>1.76</m_delay>
<m_topoIndex>28</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>temp_1</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>295</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>295</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>temp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>101</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>1.76</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>state_load_4</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>296</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>296</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>102</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>1.76</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>state_addr_4_write_ln296</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>296</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>296</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>103</item>
<item>104</item>
<item>132</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>1.76</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>state_addr_5_write_ln297</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>297</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>297</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>105</item>
<item>106</item>
<item>131</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>1.76</m_delay>
<m_topoIndex>30</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>temp_2</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>299</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>299</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>temp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>107</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>1.76</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>state_load_6</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>300</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>300</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>108</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>1.76</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>state_addr_6_write_ln300</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>300</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>300</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>109</item>
<item>110</item>
<item>130</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>1.76</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>state_addr_7_write_ln301</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>301</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>301</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>111</item>
<item>112</item>
<item>129</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>1.76</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>temp_3</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>304</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>304</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>temp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>113</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>1.76</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>state_load_8</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>305</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>305</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>114</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>1.76</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>state_addr_8_write_ln305</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>305</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>305</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>115</item>
<item>116</item>
<item>128</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>1.76</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>state_load_9</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>306</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>306</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>117</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>1.76</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>state_addr_9_write_ln306</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>306</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>306</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>118</item>
<item>119</item>
<item>127</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>1.76</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>state_load_10</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>307</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>307</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>120</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>1.76</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>state_addr_10_write_ln307</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>307</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>307</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>121</item>
<item>122</item>
<item>126</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>1.76</m_delay>
<m_topoIndex>35</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>state_addr_11_write_ln308</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>308</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>308</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>123</item>
<item>124</item>
<item>125</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>1.76</m_delay>
<m_topoIndex>36</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>_ln309</name>
<fileName>c_src/aes.c</fileName>
<fileDirectory>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</fileDirectory>
<lineNumber>309</lineNumber>
<contextFuncName>ShiftRows</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>c_src/aes.c</first>
<second>ShiftRows</second>
</first>
<second>309</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>37</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_39">
<Value>
<Obj>
<type>2</type>
<id>41</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_40">
<Value>
<Obj>
<type>2</type>
<id>43</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="_41">
<Value>
<Obj>
<type>2</type>
<id>47</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>5</content>
</item>
<item class_id_reference="16" object_id="_42">
<Value>
<Obj>
<type>2</type>
<id>51</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>9</content>
</item>
<item class_id_reference="16" object_id="_43">
<Value>
<Obj>
<type>2</type>
<id>55</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>13</content>
</item>
<item class_id_reference="16" object_id="_44">
<Value>
<Obj>
<type>2</type>
<id>59</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>2</content>
</item>
<item class_id_reference="16" object_id="_45">
<Value>
<Obj>
<type>2</type>
<id>63</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>10</content>
</item>
<item class_id_reference="16" object_id="_46">
<Value>
<Obj>
<type>2</type>
<id>67</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>6</content>
</item>
<item class_id_reference="16" object_id="_47">
<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>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>14</content>
</item>
<item class_id_reference="16" object_id="_48">
<Value>
<Obj>
<type>2</type>
<id>75</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>3</content>
</item>
<item class_id_reference="16" object_id="_49">
<Value>
<Obj>
<type>2</type>
<id>79</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>15</content>
</item>
<item class_id_reference="16" object_id="_50">
<Value>
<Obj>
<type>2</type>
<id>83</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>11</content>
</item>
<item class_id_reference="16" object_id="_51">
<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>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>7</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="_52">
<Obj>
<type>3</type>
<id>39</id>
<name>ShiftRows</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>37</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>
<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>
<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>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>84</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_53">
<id>40</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>2</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>2</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>2</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>45</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>46</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>4</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>4</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_61">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>4</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_62">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_64">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>7</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>7</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>64</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>7</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>66</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>71</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>90</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>91</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="_92">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>94</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="_95">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>96</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_119">
<id>119</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_120">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_121">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_122">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_123">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_124">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_125">
<id>125</id>
<edge_type>4</edge_type>
<source_obj>35</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_126">
<id>126</id>
<edge_type>4</edge_type>
<source_obj>33</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_127">
<id>127</id>
<edge_type>4</edge_type>
<source_obj>31</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_128">
<id>128</id>
<edge_type>4</edge_type>
<source_obj>30</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_129">
<id>129</id>
<edge_type>4</edge_type>
<source_obj>27</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_130">
<id>130</id>
<edge_type>4</edge_type>
<source_obj>26</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_131">
<id>131</id>
<edge_type>4</edge_type>
<source_obj>23</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_132">
<id>132</id>
<edge_type>4</edge_type>
<source_obj>22</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_133">
<id>133</id>
<edge_type>4</edge_type>
<source_obj>19</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_134">
<id>134</id>
<edge_type>4</edge_type>
<source_obj>17</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_135">
<id>135</id>
<edge_type>4</edge_type>
<source_obj>15</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_136">
<id>136</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_137">
<mId>1</mId>
<mTag>ShiftRows</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>39</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>11</mMinLatency>
<mMaxLatency>11</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>37</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>2</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>3</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>4</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>5</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>7</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>3</first>
<second>1</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>3</first>
<second>1</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>5</first>
<second>1</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>5</first>
<second>1</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>39</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>11</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="34" 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="35" 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="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="37" 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.862966 | 91 | 0.606246 |
4170438191fc4575d69e2c61ce0f84aac6d0707c | 504 | ads | Ada | source/tasking/machine-w64-mingw32/s-nainve.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/tasking/machine-w64-mingw32/s-nainve.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/tasking/machine-w64-mingw32/s-nainve.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | pragma License (Unrestricted);
-- implementation unit specialized for Windows
with Ada.Interrupts;
package System.Native_Interrupts.Vector is
subtype Parameterless_Handler is Ada.Interrupts.Parameterless_Handler;
function Current_Handler (Interrupt : Interrupt_Id)
return Parameterless_Handler;
procedure Exchange_Handler (
Old_Handler : out Parameterless_Handler;
New_Handler : Parameterless_Handler;
Interrupt : Interrupt_Id);
end System.Native_Interrupts.Vector;
| 29.647059 | 73 | 0.791667 |
064c31b75cbdf0b9ba3040748d727fd94c4aa492 | 4,103 | ads | Ada | src/sockets-can_thin.ads | glencornell/ada-socketcan | 5ea24aff42ee9b91bb44b39a1c957886651ad46b | [
"MIT"
] | 2 | 2020-03-02T10:49:31.000Z | 2020-03-05T18:47:28.000Z | src/sockets-can_thin.ads | glencornell/ada-socketcan | 5ea24aff42ee9b91bb44b39a1c957886651ad46b | [
"MIT"
] | null | null | null | src/sockets-can_thin.ads | glencornell/ada-socketcan | 5ea24aff42ee9b91bb44b39a1c957886651ad46b | [
"MIT"
] | null | null | null | -- MIT License
--
-- Copyright (c) 2021 Glen Cornell <[email protected]>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
with Interfaces.C;
with Sockets.Can_Frame;
with GNAT.OS_Lib;
package Sockets.Can_Thin is
pragma Preelaborate;
use type Interfaces.C.Size_T;
-- kernel socket address structure redefined here for CAN
subtype data_array is Interfaces.C.char_array (0 .. 125);
type kernel_sockaddr_storage is record
ss_family : aliased Interfaces.C.unsigned_short; -- address family
data : aliased data_array; -- implementation-specific field
end record;
-- transport protocol class address information (e.g. ISOTP)
type Can_Addr_Type is record
rx_id : aliased Can_Frame.Can_Id_Type;
tx_id : aliased Can_Frame.Can_Id_Type;
end record;
-- the sockaddr structure for CAN sockets
type sockaddr_can is record
can_family : aliased Interfaces.C.Unsigned_Short; -- address family number AF_CAN.
can_ifindex : aliased Interfaces.C.Unsigned; -- CAN network interface index.
can_addr : aliased Can_Addr_Type; -- protocol specific address information
end record;
-- From /usr/include/net/if.h:
IFNAMSIZ : constant := 16;
subtype Ifr_Name_Array is Interfaces.C.char_array (0 .. IFNAMSIZ - 1);
-- struct ifreq is much more complicated than presented below. It
-- is a collection of unions used for various protocols. Since we
-- are limiting use of this structure to CANbus interfaces, we
-- have the liberty to declutter the unions and limit the
-- representation of the structure to just the CAN-specfic data
-- items. Also, we will be only using the structure for finding
-- the interface by name. Use this at your own risk!
type Ifreq is record
Ifr_Name : Ifr_Name_Array; -- Interface name, e.g. "can0"
Ifr_Index : Interfaces.C.Unsigned; -- Interface index
Unused : Interfaces.C.Char_Array (1 .. 20); -- NOT USED
end record;
-- Use the POSIX.1 if_nametoindex() call to access the interface index:
-- NOTE: OS limits ifname to IFNAMSIZ
function If_Nametoindex (Ifname : Interfaces.C.Char_Array) return Interfaces.C.Unsigned;
function Socket_Errno return Integer renames GNAT.OS_Lib.Errno;
-- Returns last socket error number
function Socket_Error_Message (Errno : Integer) return String;
-- Returns the error message string for the error number Errno. If Errno is
-- not known, returns "Unknown system error".
private
pragma Convention (C_Pass_By_Copy, Kernel_Sockaddr_Storage);
pragma Convention (C_Pass_By_Copy, Can_Addr_Type);
pragma Convention (C_Pass_By_Copy, Sockaddr_Can);
pragma Convention (C_Pass_By_Copy, Ifreq);
for Ifreq'Size use 320;
for Ifreq use record
Ifr_Name at 0 range 0 .. 127;
Ifr_Index at 16 range 0 .. 31;
Unused at 20 range 0 .. 159;
end record;
pragma Import (C, If_Nametoindex, "if_nametoindex");
end Sockets.Can_Thin;
| 42.298969 | 97 | 0.714843 |
1d78eee0b468559b775f98af740508b21ec547f5 | 389 | ads | Ada | specs/ada/common/tkmrpc-request-ike-cc_reset-convert.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | specs/ada/common/tkmrpc-request-ike-cc_reset-convert.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | specs/ada/common/tkmrpc-request-ike-cc_reset-convert.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Ike.Cc_Reset.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Cc_Reset.Request_Type,
Target => Request.Data_Type);
function From_Request is new Ada.Unchecked_Conversion (
Source => Request.Data_Type,
Target => Cc_Reset.Request_Type);
end Tkmrpc.Request.Ike.Cc_Reset.Convert;
| 27.785714 | 58 | 0.748072 |
3db6a98cf1f71025f69b98c494c9721a41b018b0 | 2,751 | ada | Ada | demos/new_maze.ada | daveshields/AdaEd | 57daecfb7ccadfd9aaf13b4d54f51065affbe599 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 3 | 2019-05-11T04:11:33.000Z | 2021-04-18T14:55:43.000Z | demos/new_maze.ada | daveshields/AdaEd | 57daecfb7ccadfd9aaf13b4d54f51065affbe599 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | demos/new_maze.ada | daveshields/AdaEd | 57daecfb7ccadfd9aaf13b4d54f51065affbe599 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 2 | 2016-10-29T22:52:56.000Z | 2021-04-18T14:55:45.000Z | ----------------------------------------------------------------------
--
-- New_maze : create a new maze
--
-- written by
--
-- Edmond Schonberg
--
-- Ada Project
-- Courant Institute
-- New York University
-- 251 Mercer Street
-- New York, New York 10012
--
-----------------------------------------------------------------------
with random_numbers; use random_numbers;
with system;
separate(maze)
procedure new_maze(start, goal: position; num_lines: integer) is
-- create a new maze with a given number of paths, including two long ones
-- that lead to source and destination.
pos: position;
d: direction ;
l: integer ;
task type liner is
-- one is created for each path.
entry draw(pos: position; dir: direction; len: integer);
end liner;
type new_liner is access liner ;
next_line: new_liner ;
function max_len(p: position; d: direction) return integer is
-- establish distance from any point to boundary,
-- along a given direction.
begin
case d is
when up => return p.row ;
when right => return (80 - p.col) ;
when down => return (23 - p.row) ;
when left => return p.col ;
end case ;
end max_len;
task body liner is
p: position ;
d: direction ;
l: integer;
begin
accept draw(pos: position; dir:direction; len: integer) do
p := pos ;
d := dir ;
l := len ;
end draw ;
for i in 1..l loop
putc(' ', p.row, p.col) ;
dist(p.row, p.col) := max_dist ;
p := next_pos(p, d) ;
end loop ;
end liner ;
begin
clear ;
case SYSTEM.SYSTEM_NAME is
when SYSTEM.PC_DOS =>
fill_screen(ASCII.SI);
when others =>
fill_screen('#');
end case;
pos := start ; -- first path starts at source.
d := up; -- which is always on bottom row.
l := 20 ;
for i in 1..num_lines loop
-- create the right number of tasks, and start each at a random posi-
-- tion, going in a random direction towards the boundary.
next_line := new liner ;
next_line.draw(pos, d, l) ;
pos := (2*(1 + random_int(11)), 2*(1 + random_int(38))) ;
d := direction'val(random_int(40) mod 4) ;
l := max_len(pos, d) ;
l := l/2 + random_int(l/4) ;
end loop ;
-- One more for path leading to destination. (always on top row).
next_line := new liner ;
next_line.draw(goal, down, 22) ;
exception
when storage_error | program_error =>
puts("unable to create new tasks. Try simpler maze.", 23,1);
end new_maze ;
| 29.580645 | 79 | 0.529262 |
1d3327e10a8a70277b1c21218fd2dd6cb234b8fa | 2,333 | ads | Ada | src/natools-smaz_4096.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | src/natools-smaz_4096.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | src/natools-smaz_4096.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | ------------------------------------------------------------------------------
-- Copyright (c) 2016-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. --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Natools.Smaz_4096 provides the subprograms needed to instantiate --
-- Natools.Smaz_Generic into a variant of the Smaz compression algorithm --
-- that output directly base-64 printable symbols, but with a dictionary --
-- indexed by two symbols, allowing a maximum size of 4095 entries. --
------------------------------------------------------------------------------
with Natools.Smaz_Generic;
with Natools.Smaz_Implementations.Base_4096;
package Natools.Smaz_4096 is new Natools.Smaz_Generic
(Dictionary_Code => Natools.Smaz_Implementations.Base_4096.Base_4096_Digit,
Read_Code => Natools.Smaz_Implementations.Base_4096.Read_Code,
Read_Verbatim => Natools.Smaz_Implementations.Base_4096.Read_Verbatim,
Skip_Verbatim => Natools.Smaz_Implementations.Base_4096.Skip_Verbatim,
Verbatim_Size => Natools.Smaz_Implementations.Base_4096.Verbatim_Size,
Write_Code => Natools.Smaz_Implementations.Base_4096.Write_Code,
Write_Verbatim => Natools.Smaz_Implementations.Base_4096.Write_Verbatim);
pragma Pure (Natools.Smaz_4096);
| 63.054054 | 78 | 0.593656 |
3d591ffec60c3a70f233638d9a2abd1ca9c5fc3b | 3,979 | adb | Ada | src/fmt-generic_signed_int_argument.adb | likai3g/afmt | fa7439a69bfde35e746c92ab57307d6a509dabc7 | [
"MIT"
] | null | null | null | src/fmt-generic_signed_int_argument.adb | likai3g/afmt | fa7439a69bfde35e746c92ab57307d6a509dabc7 | [
"MIT"
] | null | null | null | src/fmt-generic_signed_int_argument.adb | likai3g/afmt | fa7439a69bfde35e746c92ab57307d6a509dabc7 | [
"MIT"
] | null | null | null | with Interfaces; use Interfaces;
package body Fmt.Generic_Signed_Int_Argument is
function To_Argument (X : Signed_Int_Type) return Argument_Type'Class
is
begin
return Signed_Int_Argument_Type'(Value => X, others => <>);
end To_Argument;
function "&" (Args : Arguments; X : Signed_Int_Type) return Arguments
is
begin
return Args & To_Argument(X);
end "&";
overriding
procedure Parse (Self : in out Signed_Int_Argument_Type; Edit : String)
is
procedure On_KV (K, V : String)
is
B : Natural;
Key : Character;
begin
if K'Length /= 1 then
return;
end if;
Key := K(K'First);
case Key is
when 'w' =>
if Is_Decimal_Number(V) then
Self.Width := Natural'Value(V);
end if;
when 'a' =>
if V'Length = 1 and then V(V'First) in Text_Align then
Self.Align := V(V'First);
end if;
when 'f' =>
if V'Length > 0 then
Self.Fill := V(V'First);
end if;
when 'b' | 'B' =>
if Is_Decimal_Number(V) then
B := Natural'Value(V);
if B in Number_Base then
Self.Base := B;
Self.Style := (
case Key is
when 'b' => DS_Lowercase,
when others => DS_Uppercase);
end if;
end if;
when others =>
null;
end case;
end On_KV;
begin
Parse_KV_Edit(Edit, On_KV'Access);
end Parse;
overriding
function Get_Length (
Self : in out Signed_Int_Argument_Type)
return Natural
is
B : Unsigned_64;
Y : Unsigned_64;
L : Natural := 1;
begin
if Self.Width /= 0 then
return Self.Width;
end if;
Y := Safe_Abs(Long_Long_Integer(Self.Value));
B := Unsigned_64(Self.Base);
while Y > B - 1 loop
Y := Y / B;
L := L + 1;
end loop;
if Self.Value < 0 then
L := L + 1;
end if;
return L;
end Get_length;
overriding
procedure Put (
Self : in out Signed_Int_Argument_Type;
Edit : String;
To : in out String)
is
MS : constant array(Digit_Style) of String(1 .. Number_Base'Last) := (
"0123456789abcdefghijklmnopqrstuvwxyz",
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
M : String renames MS(Self.Style);
B : constant Unsigned_64 := Unsigned_64(Self.Base);
Y : Unsigned_64 := Safe_Abs(Long_Long_Integer(Self.Value));
L : Natural := To'Last;
begin
loop
To(L) := M(Natural(Y mod B + 1));
Y := Y / B;
L := L - 1;
exit when L < To'First;
exit when Y = 0;
end loop;
if Self.Value < 0 then
To(L) := '-';
L := L - 1;
end if;
for Fill of To(To'First .. L) loop
Fill := Self.Fill;
end loop;
case Self.Align is
when 'L' =>
declare
V : String renames To(L + 1 .. To'Last);
F : String renames To(To'First .. L);
begin
if F'Length > 0 then
-- swap order
To := V & F;
end if;
end;
when 'M' =>
declare
V : String renames To(L + 1 .. To'Last);
F : String renames To(To'First .. L);
C : Natural;
begin
if F'Length > 1 then
C := F'First + F'Length / 2 - 1;
-- split fill part
To := F(F'First .. C) & V & F(C + 1 .. F'Last);
end if;
end;
when others =>
null;
end case;
end Put;
end Fmt.Generic_Signed_Int_Argument;
| 28.021127 | 76 | 0.467705 |
fb2cefcc0f5e025d52de7c8da4db6b47f0c1a6c9 | 798 | ads | Ada | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/whatis_array_val/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | 3 | 2021-05-04T17:09:06.000Z | 2021-10-04T07:19:26.000Z | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/whatis_array_val/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/whatis_array_val/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2011-2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with System;
package Pck is
procedure Do_Nothing (A : System.Address);
end Pck;
| 39.9 | 73 | 0.738095 |
0b595fe044c310dad76ffe558102d35f18e3844a | 98,582 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/bindgen.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/bindgen.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/bindgen.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- B I N D G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2006, 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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with ALI; use ALI;
with Binde; use Binde;
with Casing; use Casing;
with Fname; use Fname;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Gnatvsn; use Gnatvsn;
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.B; use Osint.B;
with Output; use Output;
with Rident; use Rident;
with Table; use Table;
with Targparm; use Targparm;
with Types; use Types;
with GNAT.Heap_Sort_A; use GNAT.Heap_Sort_A;
package body Bindgen is
Statement_Buffer : String (1 .. 1000);
-- Buffer used for constructing output statements
Last : Natural := 0;
-- Last location in Statement_Buffer currently set
With_DECGNAT : Boolean := False;
-- Flag which indicates whether the program uses the DECGNAT library
-- (presence of the unit DEC).
With_GNARL : Boolean := False;
-- Flag which indicates whether the program uses the GNARL library
-- (presence of the unit System.OS_Interface)
Num_Elab_Calls : Nat := 0;
-- Number of generated calls to elaboration routines
----------------------------------
-- Interface_State Pragma Table --
----------------------------------
-- This table assembles the interface state pragma information from
-- all the units in the partition. Note that Bcheck has already checked
-- that the information is consistent across partitions. The entries
-- in this table are n/u/r/s for not set/user/runtime/system.
package IS_Pragma_Settings is new Table.Table (
Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "IS_Pragma_Settings");
----------------------
-- Run-Time Globals --
----------------------
-- This section documents the global variables that are passed to the
-- run time from the generated binder file. The call that is made is
-- to the routine Set_Globals, which has the following spec:
-- procedure Set_Globals
-- (Main_Priority : Integer;
-- Time_Slice_Value : Integer;
-- WC_Encoding : Character;
-- Locking_Policy : Character;
-- Queuing_Policy : Character;
-- Task_Dispatching_Policy : Character;
-- Restrictions : System.Address;
-- Interrupt_States : System.Address;
-- Num_Interrupt_States : Integer;
-- Unreserve_All_Interrupts : Integer;
-- Exception_Tracebacks : Integer;
-- Zero_Cost_Exceptions : Integer;
-- Detect_Blocking : Integer);
-- Main_Priority is the priority value set by pragma Priority in the
-- main program. If no such pragma is present, the value is -1.
-- Time_Slice_Value is the time slice value set by pragma Time_Slice
-- in the main program, or by the use of a -Tnnn parameter for the
-- binder (if both are present, the binder value overrides). The
-- value is in milliseconds. A value of zero indicates that time
-- slicing should be suppressed. If no pragma is present, and no
-- -T switch was used, the value is -1.
-- WC_Encoding shows the wide character encoding method used for
-- the main program. This is one of the encoding letters defined
-- in System.WCh_Con.WC_Encoding_Letters.
-- Locking_Policy is a space if no locking policy was specified
-- for the partition. If a locking policy was specified, the value
-- is the upper case first character of the locking policy name,
-- for example, 'C' for Ceiling_Locking.
-- Queuing_Policy is a space if no queuing policy was specified
-- for the partition. If a queuing policy was specified, the value
-- is the upper case first character of the queuing policy name
-- for example, 'F' for FIFO_Queuing.
-- Task_Dispatching_Policy is a space if no task dispatching policy
-- was specified for the partition. If a task dispatching policy
-- was specified, the value is the upper case first character of
-- the policy name, e.g. 'F' for FIFO_Within_Priorities.
-- Restrictions is the address of a null-terminated string specifying the
-- restrictions information for the partition. The format is identical to
-- that of the parameter string found on R lines in ali files (see Lib.Writ
-- spec in lib-writ.ads for full details). The difference is that in this
-- context the values are the cumulative ones for the entire partition.
-- Interrupt_States is the address of a string used to specify the
-- cumulative results of Interrupt_State pragmas used in the partition.
-- The length of this string is determined by the last interrupt for which
-- such a pragma is given (the string will be a null string if no pragmas
-- were used). If pragma were present the entries apply to the interrupts
-- in sequence from the first interrupt, and are set to one of four
-- possible settings: 'n' for not specified, 'u' for user, 'r' for
-- run time, 's' for system, see description of Interrupt_State pragma
-- for further details.
-- Num_Interrupt_States is the length of the Interrupt_States string.
-- It will be set to zero if no Interrupt_State pragmas are present.
-- Unreserve_All_Interrupts is set to one if at least one unit in the
-- partition had a pragma Unreserve_All_Interrupts, and zero otherwise.
-- Exception_Tracebacks is set to one if the -E parameter was present
-- in the bind and to zero otherwise. Note that on some targets exception
-- tracebacks are provided by default, so a value of zero for this
-- parameter does not necessarily mean no trace backs are available.
-- Zero_Cost_Exceptions is set to one if zero cost exceptions are used for
-- this partition, and to zero if longjmp/setjmp exceptions are used.
-- the use of zero
-- Detect_Blocking indicates whether pragma Detect_Blocking is
-- active or not. A value of zero indicates that the pragma is not
-- present, while a value of 1 signals its presence in the
-- partition.
-----------------------
-- Local Subprograms --
-----------------------
procedure WBI (Info : String) renames Osint.B.Write_Binder_Info;
-- Convenient shorthand used throughout
procedure Gen_Adainit_Ada;
-- Generates the Adainit procedure (Ada code case)
procedure Gen_Adainit_C;
-- Generates the Adainit procedure (C code case)
procedure Gen_Adafinal_Ada;
-- Generate the Adafinal procedure (Ada code case)
procedure Gen_Adafinal_C;
-- Generate the Adafinal procedure (C code case)
procedure Gen_Elab_Calls_Ada;
-- Generate sequence of elaboration calls (Ada code case)
procedure Gen_Elab_Calls_C;
-- Generate sequence of elaboration calls (C code case)
procedure Gen_Elab_Order_Ada;
-- Generate comments showing elaboration order chosen (Ada case)
procedure Gen_Elab_Order_C;
-- Generate comments showing elaboration order chosen (C case)
procedure Gen_Elab_Defs_C;
-- Generate sequence of definitions for elaboration routines (C code case)
procedure Gen_Main_Ada;
-- Generate procedure main (Ada code case)
procedure Gen_Main_C;
-- Generate main() procedure (C code case)
procedure Gen_Object_Files_Options;
-- Output comments containing a list of the full names of the object
-- files to be linked and the list of linker options supplied by
-- Linker_Options pragmas in the source. (C and Ada code case)
procedure Gen_Output_File_Ada (Filename : String);
-- Generate output file (Ada code case)
procedure Gen_Output_File_C (Filename : String);
-- Generate output file (C code case)
procedure Gen_Restrictions_String_1;
-- Generate first restrictions string, which consists of the parameters
-- the first R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Restrictions_String_2;
-- Generate first restrictions string, which consists of the parameters
-- the second R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Versions_Ada;
-- Output series of definitions for unit versions (Ada code case)
procedure Gen_Versions_C;
-- Output series of definitions for unit versions (C code case)
function Get_Ada_Main_Name return String;
-- This function is used in the Ada main output case to compute a usable
-- name for the generated main program. The normal main program name is
-- Ada_Main, but this won't work if the user has a unit with this name.
-- This function tries Ada_Main first, and if there is such a clash, then
-- it tries Ada_Name_01, Ada_Name_02 ... Ada_Name_99 in sequence.
function Get_Main_Name return String;
-- This function is used in the Ada main output case to compute the
-- correct external main program. It is "main" by default, unless the
-- flag Use_Ada_Main_Program_Name_On_Target is set, in which case it
-- is the name of the Ada main name without the "_ada". This default
-- can be overridden explicitly using the -Mname binder switch.
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean;
-- Compare linker options, when sorting, first according to
-- Is_Internal_File (internal files come later) and then by
-- elaboration order position (latest to earliest).
procedure Move_Linker_Option (From : Natural; To : Natural);
-- Move routine for sorting linker options
procedure Public_Version_Warning;
-- Emit a warning concerning the use of the Public version under
-- certain circumstances. See details in body.
procedure Resolve_Binder_Options;
-- Set the value of With_GNARL and With_DECGNAT. The latter only on VMS
-- since it tests for a package named "dec" which might cause a conflict
-- on non-VMS systems.
procedure Set_Char (C : Character);
-- Set given character in Statement_Buffer at the Last + 1 position
-- and increment Last by one to reflect the stored character.
procedure Set_Int (N : Int);
-- Set given value in decimal in Statement_Buffer with no spaces
-- starting at the Last + 1 position, and updating Last past the value.
-- A minus sign is output for a negative value.
procedure Set_IS_Pragma_Table;
-- Initializes contents of IS_Pragma_Settings table from ALI table
procedure Set_Main_Program_Name;
-- Given the main program name in Name_Buffer (length in Name_Len)
-- generate the name of the routine to be used in the call. The name
-- is generated starting at Last + 1, and Last is updated past it.
procedure Set_Name_Buffer;
-- Set the value stored in positions 1 .. Name_Len of the Name_Buffer
procedure Set_String (S : String);
-- Sets characters of given string in Statement_Buffer, starting at the
-- Last + 1 position, and updating last past the string value.
procedure Set_Unit_Name;
-- Given a unit name in the Name_Buffer, copies it to Statement_Buffer,
-- starting at the Last + 1 position, and updating last past the value.
-- changing periods to double underscores, and updating Last appropriately.
procedure Set_Unit_Number (U : Unit_Id);
-- Sets unit number (first unit is 1, leading zeroes output to line
-- up all output unit numbers nicely as required by the value, and
-- by the total number of units.
procedure Tab_To (N : Natural);
-- If Last is greater than or equal to N, no effect, otherwise store
-- blanks in Statement_Buffer bumping Last, until Last = N.
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String);
-- For C code case, write C & Common, for Ada case write Ada & Common
-- to current binder output file using Write_Binder_Info.
procedure Write_Statement_Buffer;
-- Write out contents of statement buffer up to Last, and reset Last to 0
procedure Write_Statement_Buffer (S : String);
-- First writes its argument (using Set_String (S)), then writes out the
-- contents of statement buffer up to Last, and reset Last to 0
----------------------
-- Gen_Adafinal_Ada --
----------------------
procedure Gen_Adafinal_Ada is
begin
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & " is");
WBI (" begin");
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
-- If there is no finalization, there is nothing to do
elsif Cumulative_Restrictions.Set (No_Finalization) then
WBI (" null;");
else
WBI (" Do_Finalize;");
end if;
WBI (" end " & Ada_Final_Name.all & ";");
end Gen_Adafinal_Ada;
--------------------
-- Gen_Adafinal_C --
--------------------
procedure Gen_Adafinal_C is
begin
WBI ("void " & Ada_Final_Name.all & " (void) {");
WBI (" system__standard_library__adafinal ();");
WBI ("}");
WBI ("");
end Gen_Adafinal_C;
---------------------
-- Gen_Adainit_Ada --
---------------------
procedure Gen_Adainit_Ada is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI (" procedure " & Ada_Init_Name.all & " is");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab_Entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (" : Boolean; pragma Import (Ada, ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (", """);
Get_Name_String (U.Uname);
-- In the case of JGNAT we need to emit an Import name
-- that includes the class name (using '$' separators
-- in the case of a child unit name).
if Hostparm.Java_VM then
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("$");
end if;
end loop;
Set_String (".");
-- If the unit name is very long, then split the
-- Import link name across lines using "&" (occurs
-- in some C2 tests).
if 2 * Name_Len + 60 > Hostparm.Max_Line_Length then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
end if;
end if;
Set_Unit_Name;
Set_String ("_E"");");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- If the standard library is suppressed, then the only global variable
-- that might be needed (by the Ravenscar profile) is the priority of
-- the environment. Also no exception tables are needed.
if Suppress_Standard_Library_On_Target then
if Main_Priority /= No_Main_Priority then
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority," &
" ""__gl_main_priority"");");
WBI ("");
end if;
WBI (" begin");
if Main_Priority /= No_Main_Priority then
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
else
WBI (" null;");
end if;
-- Normal case (standard library not suppressed). Global values are
-- assigned using the runtime routine Set_Globals (we have to use
-- the routine call, rather than define the globals in the binder
-- file to deal with cross-library calls in some systems.
else
-- Generate restrictions string
Set_String (" Restrictions : constant String :=");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_1;
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_2;
Set_String (""" & ASCII.Nul;");
Write_Statement_Buffer;
WBI ("");
-- Generate Interrupt_State pragma string
Set_String (" Interrupt_States : constant String :=");
Write_Statement_Buffer;
declare
Col : Natural;
begin
Set_String (" """);
Col := 9;
for J in 0 .. IS_Pragma_Settings.Last loop
if Col > 72 then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Col := 9;
else
Col := Col + 1;
end if;
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
end;
Set_String (""";");
Write_Statement_Buffer;
WBI ("");
-- Generate spec for Set_Globals procedure
WBI (" procedure Set_Globals");
WBI (" (Main_Priority : Integer;");
WBI (" Time_Slice_Value : Integer;");
WBI (" WC_Encoding : Character;");
WBI (" Locking_Policy : Character;");
WBI (" Queuing_Policy : Character;");
WBI (" Task_Dispatching_Policy : Character;");
WBI (" Restrictions : System.Address;");
WBI (" Interrupt_States : System.Address;");
WBI (" Num_Interrupt_States : Integer;");
WBI (" Unreserve_All_Interrupts : Integer;");
WBI (" Exception_Tracebacks : Integer;");
WBI (" Zero_Cost_Exceptions : Integer;");
WBI (" Detect_Blocking : Integer;");
WBI (" Default_Stack_Size : Integer);");
WBI (" pragma Import (C, Set_Globals, ""__gnat_set_globals"");");
-- Import entry point for elaboration time signal handler
-- installation, and indication of if it's been called previously.
WBI ("");
WBI (" procedure Install_Handler;");
WBI (" pragma Import (C, Install_Handler, " &
"""__gnat_install_handler"");");
WBI ("");
WBI (" Handler_Installed : Integer;");
WBI (" pragma Import (C, Handler_Installed, " &
"""__gnat_handler_installed"");");
WBI (" begin");
-- Generate the call to Set_Globals
WBI (" Set_Globals");
Set_String (" (Main_Priority => ");
Set_Int (Main_Priority);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Time_Slice_Value => ");
if Task_Dispatching_Policy_Specified = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" WC_Encoding => '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Locking_Policy => '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Queuing_Policy => '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Task_Dispatching_Policy => '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
WBI (" Restrictions => Restrictions'Address,");
WBI (" Interrupt_States => " &
"Interrupt_States'Address,");
Set_String (" Num_Interrupt_States => ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Unreserve_All_Interrupts => ");
if Unreserve_All_Interrupts_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Exception_Tracebacks => ");
if Exception_Tracebacks then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Zero_Cost_Exceptions => ");
if Zero_Cost_Exceptions_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Detect_Blocking => ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Default_Stack_Size => ");
Set_Int (Default_Stack_Size);
Set_String (");");
Write_Statement_Buffer;
-- Generate call to Install_Handler
WBI ("");
WBI (" if Handler_Installed = 0 then");
WBI (" Install_Handler;");
WBI (" end if;");
end if;
-- Generate call to set Initialize_Scalar values if active
if Initialize_Scalars_Used then
WBI ("");
Set_String (" System.Scalar_Values.Initialize ('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" System.Secondary_Stack.");
Set_String ("Default_Secondary_Stack_Size := ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_Ada;
WBI (" end " & Ada_Init_Name.all & ";");
end Gen_Adainit_Ada;
-------------------
-- Gen_Adainit_C --
--------------------
procedure Gen_Adainit_C is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI ("void " & Ada_Init_Name.all & " (void)");
WBI ("{");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" extern char ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E;");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- Standard library suppressed
if Suppress_Standard_Library_On_Target then
-- Case of High_Integrity_Mode mode. Set __gl_main_priority if needed
-- for the Ravenscar profile.
if Main_Priority /= No_Main_Priority then
Set_String (" extern int __gl_main_priority = ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Normal case (standard library not suppressed)
else
-- Generate definition for restrictions string
Set_String (" const char *restrictions = """);
Gen_Restrictions_String_1;
Gen_Restrictions_String_2;
Set_String (""";");
Write_Statement_Buffer;
-- Generate definition for interrupt states string
Set_String (" const char *interrupt_states = """);
for J in 0 .. IS_Pragma_Settings.Last loop
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
-- Generate declaration for secondary stack default if needed
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI (" extern int system__secondary_stack__" &
"default_secondary_stack_size;");
end if;
WBI ("");
-- Code for normal case (standard library not suppressed)
-- Generate call to set the runtime global variables defined in
-- init.c. We define the varables in init.c, rather than in
-- the binder generated file itself to avoid undefined externals
-- when the runtime is linked as a shareable image library.
-- We call the routine from inside adainit() because this works for
-- both programs with and without binder generated "main" functions.
WBI (" __gnat_set_globals (");
Set_String (" ");
Set_Int (Main_Priority);
Set_Char (',');
Tab_To (24);
Set_String ("/* Main_Priority */");
Write_Statement_Buffer;
Set_String (" ");
if Task_Dispatching_Policy = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Tab_To (24);
Set_String ("/* Time_Slice_Value */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Tab_To (24);
Set_String ("/* WC_Encoding */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Locking_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Queuing_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Tasking_Dispatching_Policy */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("restrictions");
Set_String (",");
Tab_To (24);
Set_String ("/* Restrictions */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("interrupt_states");
Set_String (",");
Tab_To (24);
Set_String ("/* Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_String (",");
Tab_To (24);
Set_String ("/* Num_Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Unreserve_All_Interrupts_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Unreserve_All_Interrupts */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Exception_Tracebacks));
Set_String (",");
Tab_To (24);
Set_String ("/* Exception_Tracebacks */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Zero_Cost_Exceptions_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Zero_Cost_Exceptions */");
Write_Statement_Buffer;
Set_String (" ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Tab_To (24);
Set_String ("/* Detect_Blocking */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Default_Stack_Size);
Set_String (");");
Tab_To (24);
Set_String ("/* Default_Stack_Size */");
Write_Statement_Buffer;
WBI ("");
-- Install elaboration time signal handler
WBI (" if (__gnat_handler_installed == 0)");
WBI (" {");
WBI (" __gnat_install_handler ();");
WBI (" }");
end if;
-- Generate call to set Initialize_Scalar values if needed
if Initialize_Scalars_Used then
WBI ("");
Set_String (" system__scalar_values__initialize('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" system__secondary_stack__");
Set_String ("default_secondary_stack_size = ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_C;
WBI ("}");
end Gen_Adainit_C;
------------------------
-- Gen_Elab_Calls_Ada --
------------------------
procedure Gen_Elab_Calls_Ada is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if not uname_E then
-- uname'elab_[spec|body];
-- uname_E := True;
-- end if;
-- Otherwise, elaboration routines are called unconditionally:
-- uname'elab_[spec|body];
-- uname_E := True;
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if not E");
Set_Unit_Number (Unum_Spec);
Set_String (" then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Get_Decoded_Name_String_With_Brackets (U.Uname);
if Name_Buffer (Name_Len) = 's' then
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_spec";
else
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_body";
end if;
Name_Len := Name_Len + 8;
Set_Casing (U.Icasing);
Set_Name_Buffer;
Set_Char (';');
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" end if;");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_Ada;
----------------------
-- Gen_Elab_Calls_C --
----------------------
procedure Gen_Elab_Calls_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E = 1;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if (uname_E == 0) {
-- uname__elab[s|b] ();
-- uname_E++;
-- }
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
Get_Name_String (U.Uname);
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if (");
Set_Unit_Name;
Set_String ("_E == 0) {");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" ();");
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("_E++;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" }");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_C;
----------------------
-- Gen_Elab_Defs_C --
----------------------
procedure Gen_Elab_Defs_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
-- Generate declaration of elaboration procedure if elaboration
-- needed. Note that passive units are always excluded.
if not Units.Table (Elab_Order.Table (E)).No_Elab then
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
Set_String ("extern void ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" (void);");
Write_Statement_Buffer;
end if;
end loop;
WBI ("");
end Gen_Elab_Defs_C;
------------------------
-- Gen_Elab_Order_Ada --
------------------------
procedure Gen_Elab_Order_Ada is
begin
WBI ("");
WBI (" -- BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Set_String (" -- ");
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" -- END ELABORATION ORDER");
end Gen_Elab_Order_Ada;
----------------------
-- Gen_Elab_Order_C --
----------------------
procedure Gen_Elab_Order_C is
begin
WBI ("");
WBI ("/* BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" END ELABORATION ORDER */");
end Gen_Elab_Order_C;
------------------
-- Gen_Main_Ada --
------------------
procedure Gen_Main_Ada is
begin
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
WBI (" envp : System.Address)");
if Exit_Status_Supported_On_Target then
WBI (" return Integer");
end if;
WBI (" is");
else
if Exit_Status_Supported_On_Target then
Set_String (" return Integer is");
else
Set_String (" is");
end if;
Write_Statement_Buffer;
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
WBI (" procedure Set_Exit_Status (Status : Integer);");
WBI (" pragma Import (C, Set_Exit_Status, " &
"""__gnat_set_exit_status"");");
WBI ("");
end if;
-- Initialize and Finalize
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" procedure initialize (Addr : System.Address);");
WBI (" pragma Import (C, initialize, ""__gnat_initialize"");");
WBI ("");
WBI (" procedure finalize;");
WBI (" pragma Import (C, finalize, ""__gnat_finalize"");");
end if;
-- If we want to analyze the stack, we have to import corresponding
-- symbols
if Dynamic_Stack_Measurement then
WBI ("");
WBI (" procedure Output_Results;");
WBI (" pragma Import (C, Output_Results, " &
"""__gnat_stack_usage_output_results"");");
WBI ("");
WBI (" " &
"procedure Initialize_Stack_Analysis (Buffer_Size : Natural);");
WBI (" pragma Import (C, Initialize_Stack_Analysis, " &
"""__gnat_stack_usage_initialize"");");
end if;
-- Deal with declarations for main program case
if not No_Main_Subprogram then
-- To call the main program, we declare it using a pragma Import
-- Ada with the right link name.
-- It might seem more obvious to "with" the main program, and call
-- it in the normal Ada manner. We do not do this for three reasons:
-- 1. It is more efficient not to recompile the main program
-- 2. We are not entitled to assume the source is accessible
-- 3. We don't know what options to use to compile it
-- It is really reason 3 that is most critical (indeed we used
-- to generate the "with", but several regression tests failed).
WBI ("");
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" Result : Integer;");
WBI ("");
WBI (" function Ada_Main_Program return Integer;");
else
WBI (" procedure Ada_Main_Program;");
end if;
Set_String (" pragma Import (Ada, Ada_Main_Program, """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""");");
Write_Statement_Buffer;
WBI ("");
if Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" SEH : aliased array (1 .. 2) of Integer;");
WBI ("");
end if;
end if;
-- Generate a reference to Ada_Main_Program_Name. This symbol is
-- not referenced elsewhere in the generated program, but is needed
-- by the debugger (that's why it is generated in the first place).
-- The reference stops Ada_Main_Program_Name from being optimized
-- away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we make this variable "aliased"
-- with a pragma Volatile in order to tell the compiler to preserve
-- this variable at any level of optimization.
if Bind_Main_Program then
WBI
(" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
WBI (" pragma Volatile (Ensure_Reference);");
WBI ("");
end if;
WBI (" begin");
-- Acquire command line arguments if present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc := argc;");
WBI (" gnat_argv := argv;");
WBI (" gnat_envp := envp;");
WBI ("");
-- If configurable run time and no command line args, then nothing
-- needs to be done since the gnat_argc/argv/envp variables are
-- suppressed in this case.
elsif Configurable_Run_Time_On_Target then
null;
-- Otherwise set dummy values (to be filled in by some other unit?)
else
WBI (" gnat_argc := 0;");
WBI (" gnat_argv := System.Null_Address;");
WBI (" gnat_envp := System.Null_Address;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" Set_Exit_Status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
if Dynamic_Stack_Measurement then
Set_String (" Initialize_Stack_Analysis (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
if not Cumulative_Restrictions.Set (No_Finalization) then
if not No_Main_Subprogram
and then Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" Initialize (SEH'Address);");
else
WBI (" Initialize (System.Null_Address);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & ";");
if not No_Main_Subprogram then
WBI (" Break_Start;");
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" Ada_Main_Program;");
else
WBI (" Result := Ada_Main_Program;");
end if;
end if;
-- Adafinal call is skipped if no finalization
if not Cumulative_Restrictions.Set (No_Finalization) then
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
else
WBI (" Do_Finalize;");
end if;
end if;
-- Prints the result of static stack analysis
if Dynamic_Stack_Measurement then
WBI (" Output_Results;");
end if;
-- Finalize is only called if we have a run time
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" Finalize;");
end if;
-- Return result
if Exit_Status_Supported_On_Target then
if No_Main_Subprogram
or else ALIs.Table (ALIs.First).Main_Program = Proc
then
WBI (" return (gnat_exit_status);");
else
WBI (" return (Result);");
end if;
end if;
WBI (" end;");
end Gen_Main_Ada;
----------------
-- Gen_Main_C --
----------------
procedure Gen_Main_C is
begin
if Exit_Status_Supported_On_Target then
WBI ("#include <stdlib.h>");
Set_String ("int ");
else
Set_String ("void ");
end if;
Set_String (Get_Main_Name);
-- Generate command line args in prototype if present on target
if Command_Line_Args_On_Target then
Write_Statement_Buffer (" (int argc, char **argv, char **envp)");
-- Case of no command line arguments on target
else
Write_Statement_Buffer (" (void)");
end if;
WBI ("{");
-- Generate a reference to __gnat_ada_main_program_name. This symbol
-- is not referenced elsewhere in the generated program, but is
-- needed by the debugger (that's why it is generated in the first
-- place). The reference stops Ada_Main_Program_Name from being
-- optimized away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we declare this variable as
-- volatile in order to tell the compiler to preserve it at any
-- level of optimization.
if Bind_Main_Program then
WBI (" char * volatile ensure_reference " &
"__attribute__ ((__unused__)) = " &
"__gnat_ada_main_program_name;");
WBI ("");
if not Suppress_Standard_Library_On_Target
and then not No_Main_Subprogram
then
WBI (" int SEH [2];");
WBI ("");
end if;
end if;
-- If main program is a function, generate result variable
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" int result;");
end if;
-- Set command line argument values from parameters if command line
-- arguments are present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc = argc;");
WBI (" gnat_argv = argv;");
WBI (" gnat_envp = envp;");
WBI (" ");
-- If configurable run-time, then nothing to do, since in this case
-- the gnat_argc/argv/envp variables are entirely suppressed.
elsif Configurable_Run_Time_On_Target then
null;
-- if no command line arguments on target, set dummy values
else
WBI (" int result;");
WBI (" gnat_argc = 0;");
WBI (" gnat_argv = 0;");
WBI (" gnat_envp = 0;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" __gnat_set_exit_status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
-- Initializes dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
Set_String (" __gnat_stack_usage_initialize (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
-- The __gnat_initialize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
if not No_Main_Subprogram and then Bind_Main_Program then
WBI (" __gnat_initialize ((void *)SEH);");
else
WBI (" __gnat_initialize ((void *)0);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & " ();");
if not No_Main_Subprogram then
WBI (" __gnat_break_start ();");
WBI (" ");
-- Output main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Main program is procedure case
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String (" ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
-- Main program is function case
else -- ALIs.Table (ALIs_First).Main_Program = Func
Set_String (" result = ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
end if;
end if;
-- Call adafinal if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" ");
WBI (" system__standard_library__adafinal ();");
end if;
-- Outputs the dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
WBI (" __gnat_stack_usage_output_results ();");
end if;
-- The finalize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
WBI (" __gnat_finalize ();");
end if;
-- Case of main program is a function, so the value it returns
-- is the exit status in this case.
if ALIs.Table (ALIs.First).Main_Program = Func then
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (result);");
else
WBI (" exit (result);");
end if;
end if;
-- Case of main program is a procedure, in which case the exit
-- status is whatever was set by a Set_Exit call most recently
else
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (gnat_exit_status);");
else
WBI (" exit (gnat_exit_status);");
end if;
end if;
end if;
WBI ("}");
end Gen_Main_C;
------------------------------
-- Gen_Object_Files_Options --
------------------------------
procedure Gen_Object_Files_Options is
Lgnat : Natural;
-- This keeps track of the position in the sorted set of entries
-- in the Linker_Options table of where the first entry from an
-- internal file appears.
procedure Write_Linker_Option;
-- Write binder info linker option
-------------------------
-- Write_Linker_Option --
-------------------------
procedure Write_Linker_Option is
Start : Natural;
Stop : Natural;
begin
-- Loop through string, breaking at null's
Start := 1;
while Start < Name_Len loop
-- Find null ending this section
Stop := Start + 1;
while Name_Buffer (Stop) /= ASCII.NUL
and then Stop <= Name_Len loop
Stop := Stop + 1;
end loop;
-- Process section if non-null
if Stop > Start then
if Output_Linker_Option_List then
Write_Str (Name_Buffer (Start .. Stop - 1));
Write_Eol;
end if;
Write_Info_Ada_C
(" -- ", "", Name_Buffer (Start .. Stop - 1));
end if;
Start := Stop + 1;
end loop;
end Write_Linker_Option;
-- Start of processing for Gen_Object_Files_Options
begin
WBI ("");
Write_Info_Ada_C ("-- ", "/* ", " BEGIN Object file/option list");
for E in Elab_Order.First .. Elab_Order.Last loop
-- If not spec that has an associated body, then generate a
-- comment giving the name of the corresponding object file.
if (not Units.Table (Elab_Order.Table (E)).SAL_Interface)
and then Units.Table (Elab_Order.Table (E)).Utype /= Is_Spec
then
Get_Name_String
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Ofile_Full_Name);
-- If the presence of an object file is necessary or if it
-- exists, then use it.
if not Hostparm.Exclude_Missing_Objects
or else GNAT.OS_Lib.Is_Regular_File (Name_Buffer (1 .. Name_Len))
then
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if Output_Object_List then
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Eol;
end if;
-- Don't link with the shared library on VMS if an internal
-- filename object is seen. Multiply defined symbols will
-- result.
if OpenVMS_On_Target
and then Is_Internal_File_Name
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile)
then
-- Special case for g-trasym.obj, which is not included
-- in libgnat.
Get_Name_String (ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile);
if Name_Buffer (1 .. 8) /= "g-trasym" then
Opt.Shared_Libgnat := False;
end if;
end if;
end if;
end if;
end loop;
-- Add a "-Ldir" for each directory in the object path
for J in 1 .. Nb_Dir_In_Obj_Search_Path loop
declare
Dir : constant String_Ptr := Dir_In_Obj_Search_Path (J);
begin
Name_Len := 0;
Add_Str_To_Name_Buffer ("-L");
Add_Str_To_Name_Buffer (Dir.all);
Write_Linker_Option;
end;
end loop;
-- Sort linker options
-- This sort accomplishes two important purposes:
-- a) All application files are sorted to the front, and all
-- GNAT internal files are sorted to the end. This results
-- in a well defined dividing line between the two sets of
-- files, for the purpose of inserting certain standard
-- library references into the linker arguments list.
-- b) Given two different units, we sort the linker options so
-- that those from a unit earlier in the elaboration order
-- comes later in the list. This is a heuristic designed
-- to create a more friendly order of linker options when
-- the operations appear in separate units. The idea is that
-- if unit A must be elaborated before unit B, then it is
-- more likely that B references libraries included by A,
-- than vice versa, so we want the libraries included by
-- A to come after the libraries included by B.
-- These two criteria are implemented by function Lt_Linker_Option.
-- Note that a special case of b) is that specs are elaborated before
-- bodies, so linker options from specs come after linker options
-- for bodies, and again, the assumption is that libraries used by
-- the body are more likely to reference libraries used by the spec,
-- than vice versa.
Sort
(Linker_Options.Last,
Move_Linker_Option'Access,
Lt_Linker_Option'Access);
-- Write user linker options, i.e. the set of linker options that
-- come from all files other than GNAT internal files, Lgnat is
-- left set to point to the first entry from a GNAT internal file,
-- or past the end of the entriers if there are no internal files.
Lgnat := Linker_Options.Last + 1;
for J in 1 .. Linker_Options.Last loop
if not Linker_Options.Table (J).Internal_File then
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
else
Lgnat := J;
exit;
end if;
end loop;
-- Now we insert standard linker options that must appear after the
-- entries from user files, and before the entries from GNAT run-time
-- files. The reason for this decision is that libraries referenced
-- by internal routines may reference these standard library entries.
if not Opt.No_Stdlib then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer ("-shared");
else
Add_Str_To_Name_Buffer ("-static");
end if;
-- Write directly to avoid -K output (why???)
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if With_DECGNAT then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("decgnat"));
else
Add_Str_To_Name_Buffer ("-ldecgnat");
end if;
Write_Linker_Option;
end if;
if With_GNARL then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnarl"));
else
Add_Str_To_Name_Buffer ("-lgnarl");
end if;
Write_Linker_Option;
end if;
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnat"));
else
Add_Str_To_Name_Buffer ("-lgnat");
end if;
Write_Linker_Option;
end if;
-- Write linker options from all internal files
for J in Lgnat .. Linker_Options.Last loop
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
end loop;
if Ada_Bind_File then
WBI ("-- END Object file/option list ");
else
WBI (" END Object file/option list */");
end if;
end Gen_Object_Files_Options;
---------------------
-- Gen_Output_File --
---------------------
procedure Gen_Output_File (Filename : String) is
Is_Public_Version : constant Boolean := Get_Gnat_Build_Type = Public;
Is_GAP_Version : constant Boolean := Get_Gnat_Build_Type = GAP;
begin
-- Acquire settings for Interrupt_State pragmas
Set_IS_Pragma_Table;
-- Override Ada_Bind_File and Bind_Main_Program for Java since
-- JGNAT only supports Ada code, and the main program is already
-- generated by the compiler.
if Hostparm.Java_VM then
Ada_Bind_File := True;
Bind_Main_Program := False;
end if;
-- Override time slice value if -T switch is set
if Time_Slice_Set then
ALIs.Table (ALIs.First).Time_Slice_Value := Opt.Time_Slice_Value;
end if;
-- Count number of elaboration calls
for E in Elab_Order.First .. Elab_Order.Last loop
if Units.Table (Elab_Order.Table (E)).No_Elab then
null;
else
Num_Elab_Calls := Num_Elab_Calls + 1;
end if;
end loop;
-- Get the time stamp of the former bind for public version warning
if Is_Public_Version or Is_GAP_Version then
Record_Time_From_Last_Bind;
end if;
-- Generate output file in appropriate language
if Ada_Bind_File then
Gen_Output_File_Ada (Filename);
else
Gen_Output_File_C (Filename);
end if;
-- Periodically issue a warning when the public version is used on
-- big projects
if Is_Public_Version then
Public_Version_Warning;
end if;
end Gen_Output_File;
-------------------------
-- Gen_Output_File_Ada --
-------------------------
procedure Gen_Output_File_Ada (Filename : String) is
Bfiles : Name_Id;
-- Name of generated bind file (spec)
Bfileb : Name_Id;
-- Name of generated bind file (body)
Ada_Main : constant String := Get_Ada_Main_Name;
-- Name to be used for generated Ada main program. See the body of
-- function Get_Ada_Main_Name for details on the form of the name.
begin
-- Create spec first
Create_Binder_Output (Filename, 's', Bfiles);
-- If we are operating in Restrictions (No_Exception_Handlers) mode,
-- then we need to make sure that the binder program is compiled with
-- the same restriction, so that no exception tables are generated.
if Cumulative_Restrictions.Set (No_Exception_Handlers) then
WBI ("pragma Restrictions (No_Exception_Handlers);");
end if;
-- Generate with of System so we can reference System.Address
WBI ("with System;");
-- Generate with of System.Initialize_Scalars if active
if Initialize_Scalars_Used then
WBI ("with System.Scalar_Values;");
end if;
-- Generate with of System.Secondary_Stack if active
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("with System.Secondary_Stack;");
end if;
Resolve_Binder_Options;
if not Suppress_Standard_Library_On_Target then
-- Usually, adafinal is called using a pragma Import C. Since
-- Import C doesn't have the same semantics for JGNAT, we use
-- standard Ada.
if Hostparm.Java_VM then
WBI ("with System.Standard_Library;");
end if;
end if;
WBI ("package " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Main program case
if Bind_Main_Program then
-- Generate argc/argv stuff unless suppressed
if Command_Line_Args_On_Target
or not Configurable_Run_Time_On_Target
then
WBI ("");
WBI (" gnat_argc : Integer;");
WBI (" gnat_argv : System.Address;");
WBI (" gnat_envp : System.Address;");
-- If the standard library is not suppressed, these variables are
-- in the runtime data area for easy access from the runtime
if not Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" pragma Import (C, gnat_argc);");
WBI (" pragma Import (C, gnat_argv);");
WBI (" pragma Import (C, gnat_envp);");
end if;
end if;
-- Define exit status. Again in normal mode, this is in the
-- run-time library, and is initialized there, but in the
-- configurable runtime case, the variable is declared and
-- initialized in this file.
WBI ("");
if Configurable_Run_Time_Mode then
if Exit_Status_Supported_On_Target then
WBI (" gnat_exit_status : Integer := 0;");
end if;
else
WBI (" gnat_exit_status : Integer;");
WBI (" pragma Import (C, gnat_exit_status);");
end if;
end if;
-- Generate the GNAT_Version and Ada_Main_Program_Name info only for
-- the main program. Otherwise, it can lead under some circumstances
-- to a symbol duplication during the link (for instance when a
-- C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI (" GNAT_Version : constant String :=");
WBI (" ""GNAT Version: " &
Gnat_Version_String & """;");
WBI (" pragma Export (C, GNAT_Version, ""__gnat_version"");");
WBI ("");
Set_String (" Ada_Main_Program_Name : constant String := """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""" & Ascii.NUL;");
Write_Statement_Buffer;
WBI
(" pragma Export (C, Ada_Main_Program_Name, " &
"""__gnat_ada_main_program_name"");");
end if;
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Final_Name.all & ", """ &
Ada_Final_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Destructor (" & Ada_Final_Name.all & ");");
end if;
WBI ("");
WBI (" procedure " & Ada_Init_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Init_Name.all & ", """ &
Ada_Init_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Constructor (" & Ada_Init_Name.all & ");");
end if;
if Bind_Main_Program then
-- If we have the standard library, then Break_Start is defined
-- there, but when the standard library is suppressed, Break_Start
-- is defined here.
WBI ("");
WBI (" procedure Break_Start;");
if Suppress_Standard_Library_On_Target then
WBI (" pragma Export (C, Break_Start, ""__gnat_break_start"");");
else
WBI (" pragma Import (C, Break_Start, ""__gnat_break_start"");");
end if;
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
-- Generate argument list if present
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
Set_String
(" envp : System.Address)");
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer;
WBI (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
else
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
end if;
WBI (" pragma Export (C, " & Get_Main_Name & ", """ &
Get_Main_Name & """);");
end if;
Gen_Versions_Ada;
Gen_Elab_Order_Ada;
-- Spec is complete
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
-- Prepare to write body
Create_Binder_Output (Filename, 'b', Bfileb);
-- Output Source_File_Name pragmas which look like
-- pragma Source_File_Name (Ada_Main, Spec_File_Name => "sss");
-- pragma Source_File_Name (Ada_Main, Body_File_Name => "bbb");
-- where sss/bbb are the spec/body file names respectively
Get_Name_String (Bfiles);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Spec_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
Get_Name_String (Bfileb);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Body_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
WBI ("");
WBI ("package body " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Import the finalization procedure only if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
-- In the Java case, pragma Import C cannot be used, so the
-- standard Ada constructs will be used instead.
if not Hostparm.Java_VM then
WBI ("");
WBI (" procedure Do_Finalize;");
WBI
(" pragma Import (C, Do_Finalize, " &
"""system__standard_library__adafinal"");");
WBI ("");
end if;
end if;
Gen_Adainit_Ada;
Gen_Adafinal_Ada;
if Bind_Main_Program then
-- When suppressing the standard library then generate dummy body
-- for Break_Start
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" procedure Break_Start is");
WBI (" begin");
WBI (" null;");
WBI (" end;");
end if;
Gen_Main_Ada;
end if;
-- Output object file list and the Ada body is complete
Gen_Object_Files_Options;
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
end Gen_Output_File_Ada;
-----------------------
-- Gen_Output_File_C --
-----------------------
procedure Gen_Output_File_C (Filename : String) is
Bfile : Name_Id;
-- Name of generated bind file
begin
Create_Binder_Output (Filename, 'c', Bfile);
Resolve_Binder_Options;
WBI ("extern void __gnat_set_globals");
WBI (" (int, int, char, char, char, char,");
WBI (" const char *, const char *,");
WBI (" int, int, int, int, int, int);");
if Use_Pragma_Linker_Constructor then
WBI ("extern void " & Ada_Final_Name.all &
" (void) __attribute__((destructor));");
WBI ("extern void " & Ada_Init_Name.all &
" (void) __attribute__((constructor));");
else
WBI ("extern void " & Ada_Final_Name.all & " (void);");
WBI ("extern void " & Ada_Init_Name.all & " (void);");
end if;
WBI ("extern void system__standard_library__adafinal (void);");
if not No_Main_Subprogram then
Set_String ("extern ");
if Exit_Status_Supported_On_Target then
Set_String ("int");
else
Set_String ("void");
end if;
Set_String (" main ");
if Command_Line_Args_On_Target then
Write_Statement_Buffer ("(int, char **, char **);");
else
Write_Statement_Buffer ("(void);");
end if;
if OpenVMS_On_Target then
WBI ("extern void decc$__posix_exit (int);");
else
WBI ("extern void exit (int);");
end if;
WBI ("extern void __gnat_break_start (void);");
Set_String ("extern ");
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String ("void ");
else
Set_String ("int ");
end if;
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (" (void);");
Write_Statement_Buffer;
end if;
if not Suppress_Standard_Library_On_Target then
WBI ("extern void __gnat_initialize (void *);");
WBI ("extern void __gnat_finalize (void);");
WBI ("extern void __gnat_install_handler (void);");
end if;
if Dynamic_Stack_Measurement then
WBI ("");
WBI ("extern void __gnat_stack_usage_output_results (void);");
WBI ("extern void __gnat_stack_usage_initialize (int size);");
end if;
WBI ("");
Gen_Elab_Defs_C;
-- Imported variable used to track elaboration/finalization phase.
-- Used only when we have a runtime.
if not Suppress_Standard_Library_On_Target then
WBI ("extern int __gnat_handler_installed;");
WBI ("");
end if;
-- Write argv/argc exit status stuff if main program case
if Bind_Main_Program then
-- First deal with argc/argv/envp. In the normal case they
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_argc;");
WBI ("extern char **gnat_argv;");
WBI ("extern char **gnat_envp;");
-- If configurable run time and no command line args, then the
-- generation of these variables is entirely suppressed.
elsif not Command_Line_Args_On_Target then
null;
-- Otherwise, in the configurable run-time case they are right in
-- the binder file.
else
WBI ("int gnat_argc;");
WBI ("char **gnat_argv;");
WBI ("char **gnat_envp;");
end if;
-- Similarly deal with exit status
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_exit_status;");
-- If configurable run time and no exit status on target, then
-- the generation of this variables is entirely suppressed.
elsif not Exit_Status_Supported_On_Target then
null;
-- Otherwise, in the configurable run-time case this variable is
-- right in the binder file, and initialized to zero there.
else
WBI ("int gnat_exit_status = 0;");
end if;
WBI ("");
end if;
-- When suppressing the standard library, the __gnat_break_start
-- routine (for the debugger to get initial control) is defined in
-- this file.
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI ("void __gnat_break_start (void) {}");
end if;
-- Generate the __gnat_version and __gnat_ada_main_program_name info
-- only for the main program. Otherwise, it can lead under some
-- circumstances to a symbol duplication during the link (for instance
-- when a C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI ("char __gnat_version[] = ""GNAT Version: " &
Gnat_Version_String & """;");
Set_String ("char __gnat_ada_main_program_name[] = """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""";");
Write_Statement_Buffer;
end if;
-- Generate the adafinal routine. In no runtime mode, this is
-- not needed, since there is no finalization to do.
if not Cumulative_Restrictions.Set (No_Finalization) then
Gen_Adafinal_C;
end if;
Gen_Adainit_C;
-- Main is only present for Ada main case
if Bind_Main_Program then
Gen_Main_C;
end if;
-- Generate versions, elaboration order, list of object files
Gen_Versions_C;
Gen_Elab_Order_C;
Gen_Object_Files_Options;
-- C binder output is complete
Close_Binder_Output;
end Gen_Output_File_C;
-------------------------------
-- Gen_Restrictions_String_1 --
-------------------------------
procedure Gen_Restrictions_String_1 is
begin
for R in All_Boolean_Restrictions loop
if Cumulative_Restrictions.Set (R) then
Set_Char ('r');
elsif Cumulative_Restrictions.Violated (R) then
Set_Char ('v');
else
Set_Char ('n');
end if;
end loop;
end Gen_Restrictions_String_1;
-------------------------------
-- Gen_Restrictions_String_2 --
-------------------------------
procedure Gen_Restrictions_String_2 is
begin
for RP in All_Parameter_Restrictions loop
if Cumulative_Restrictions.Set (RP) then
Set_Char ('r');
Set_Int (Int (Cumulative_Restrictions.Value (RP)));
else
Set_Char ('n');
end if;
if not Cumulative_Restrictions.Violated (RP)
or else RP not in Checked_Parameter_Restrictions
then
Set_Char ('n');
else
Set_Char ('v');
Set_Int (Int (Cumulative_Restrictions.Count (RP)));
if Cumulative_Restrictions.Unknown (RP) then
Set_Char ('+');
end if;
end if;
end loop;
end Gen_Restrictions_String_2;
----------------------
-- Gen_Versions_Ada --
----------------------
-- This routine generates two sets of lines. The first set has the form:
-- unnnnn : constant Integer := 16#hhhhhhhh#;
-- The second set has the form
-- pragma Export (C, unnnnn, unam);
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores, and
-- hhhhhhhh is the version number, and nnnnn is a 5-digits serial number.
procedure Gen_Versions_Ada is
Ubuf : String (1 .. 6) := "u00000";
procedure Increment_Ubuf;
-- Little procedure to increment the serial number
procedure Increment_Ubuf is
begin
for J in reverse Ubuf'Range loop
Ubuf (J) := Character'Succ (Ubuf (J));
exit when Ubuf (J) <= '9';
Ubuf (J) := '0';
end loop;
end Increment_Ubuf;
-- Start of processing for Gen_Versions_Ada
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported in this case.
return;
end if;
WBI ("");
WBI (" type Version_32 is mod 2 ** 32;");
for U in Units.First .. Units.Last loop
Increment_Ubuf;
WBI (" " & Ubuf & " : constant Version_32 := 16#" &
Units.Table (U).Version & "#;");
end loop;
WBI ("");
Ubuf := "u00000";
for U in Units.First .. Units.Last loop
Increment_Ubuf;
Set_String (" pragma Export (C, ");
Set_String (Ubuf);
Set_String (", """);
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_Char ('_');
Set_Char ('_');
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (""");");
Write_Statement_Buffer;
end loop;
end Gen_Versions_Ada;
--------------------
-- Gen_Versions_C --
--------------------
-- This routine generates a line of the form:
-- unsigned unam = 0xhhhhhhhh;
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores.
procedure Gen_Versions_C is
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported.
return;
end if;
for U in Units.First .. Units.Last loop
Set_String ("unsigned ");
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_String ("__");
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (" = 0x");
Set_String (Units.Table (U).Version);
Set_Char (';');
Write_Statement_Buffer;
end loop;
end Gen_Versions_C;
-----------------------
-- Get_Ada_Main_Name --
-----------------------
function Get_Ada_Main_Name return String is
Suffix : constant String := "_00";
Name : String (1 .. Opt.Ada_Main_Name.all'Length + Suffix'Length) :=
Opt.Ada_Main_Name.all & Suffix;
Nlen : Natural;
begin
-- The main program generated by JGNAT expects a package called
-- ada_<main procedure>.
if Hostparm.Java_VM then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Remove the %b
return "ada_" & Name_Buffer (1 .. Name_Len - 2);
end if;
-- This loop tries the following possibilities in order
-- <Ada_Main>
-- <Ada_Main>_01
-- <Ada_Main>_02
-- ..
-- <Ada_Main>_99
-- where <Ada_Main> is equal to Opt.Ada_Main_Name. By default,
-- it is set to 'ada_main'.
for J in 0 .. 99 loop
if J = 0 then
Nlen := Name'Length - Suffix'Length;
else
Nlen := Name'Length;
Name (Name'Last) := Character'Val (J mod 10 + Character'Pos ('0'));
Name (Name'Last - 1) :=
Character'Val (J / 10 + Character'Pos ('0'));
end if;
for K in ALIs.First .. ALIs.Last loop
for L in ALIs.Table (K).First_Unit .. ALIs.Table (K).Last_Unit loop
-- Get unit name, removing %b or %e at end
Get_Name_String (Units.Table (L).Uname);
Name_Len := Name_Len - 2;
if Name_Buffer (1 .. Name_Len) = Name (1 .. Nlen) then
goto Continue;
end if;
end loop;
end loop;
return Name (1 .. Nlen);
<<Continue>>
null;
end loop;
-- If we fall through, just use a peculiar unlikely name
return ("Qwertyuiop");
end Get_Ada_Main_Name;
-------------------
-- Get_Main_Name --
-------------------
function Get_Main_Name return String is
begin
-- Explicit name given with -M switch
if Bind_Alternate_Main_Name then
return Alternate_Main_Name.all;
-- Case of main program name to be used directly
elsif Use_Ada_Main_Program_Name_On_Target then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- If this is a child name, return only the name of the child,
-- since we can't have dots in a nested program name. Note that
-- we do not include the %b at the end of the unit name.
for J in reverse 1 .. Name_Len - 2 loop
if J = 1 or else Name_Buffer (J - 1) = '.' then
return Name_Buffer (J .. Name_Len - 2);
end if;
end loop;
raise Program_Error; -- impossible exit
-- Case where "main" is to be used as default
else
return "main";
end if;
end Get_Main_Name;
----------------------
-- Lt_Linker_Option --
----------------------
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean is
begin
-- Sort internal files last
if Linker_Options.Table (Op1).Internal_File
/=
Linker_Options.Table (Op2).Internal_File
then
-- Note: following test uses False < True
return Linker_Options.Table (Op1).Internal_File
<
Linker_Options.Table (Op2).Internal_File;
-- If both internal or both non-internal, sort according to the
-- elaboration position. A unit that is elaborated later should
-- come earlier in the linker options list.
else
return Units.Table (Linker_Options.Table (Op1).Unit).Elab_Position
>
Units.Table (Linker_Options.Table (Op2).Unit).Elab_Position;
end if;
end Lt_Linker_Option;
------------------------
-- Move_Linker_Option --
------------------------
procedure Move_Linker_Option (From : Natural; To : Natural) is
begin
Linker_Options.Table (To) := Linker_Options.Table (From);
end Move_Linker_Option;
----------------------------
-- Public_Version_Warning --
----------------------------
procedure Public_Version_Warning is
Time : constant Int := Time_From_Last_Bind;
-- Constants to help defining periods
Hour : constant := 60;
Day : constant := 24 * Hour;
Never : constant := Integer'Last;
-- Special value indicating no warnings should be given
-- Constants defining when the warning is issued. Programs with more
-- than Large Units will issue a warning every Period_Large amount of
-- time. Smaller programs will generate a warning every Period_Small
-- amount of time.
Large : constant := 20;
-- Threshold for considering a program small or large
Period_Large : constant := Day;
-- Periodic warning time for large programs
Period_Small : constant := Never;
-- Periodic warning time for small programs
Nb_Unit : Int;
begin
-- Compute the number of units that are not GNAT internal files
Nb_Unit := 0;
for A in ALIs.First .. ALIs.Last loop
if not Is_Internal_File_Name (ALIs.Table (A).Sfile) then
Nb_Unit := Nb_Unit + 1;
end if;
end loop;
-- Do not emit the message if the last message was emitted in the
-- specified period taking into account the number of units.
pragma Warnings (Off);
-- Turn off warning of constant condition, which may happen here
-- depending on the choice of constants in the above declarations.
if Nb_Unit < Large and then Time <= Period_Small then
return;
elsif Time <= Period_Large then
return;
end if;
pragma Warnings (On);
Write_Eol;
Write_Str ("IMPORTANT NOTICE:");
Write_Eol;
Write_Str (" This version of GNAT is unsupported"
& " and comes with absolutely no warranty.");
Write_Eol;
Write_Str (" If you intend to evaluate or use GNAT for building "
& "commercial applications,");
Write_Eol;
Write_Str (" please consult http://www.gnat.com/ for information");
Write_Eol;
Write_Str (" on the GNAT Professional product line.");
Write_Eol;
Write_Eol;
end Public_Version_Warning;
----------------------------
-- Resolve_Binder_Options --
----------------------------
procedure Resolve_Binder_Options is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
-- The procedure of looking for specific packages and setting
-- flags is somewhat dubious, but there isn't a good alternative
-- at the current time ???
if Name_Buffer (1 .. 19) = "system.os_interface" then
With_GNARL := True;
end if;
if OpenVMS_On_Target and then Name_Buffer (1 .. 5) = "dec%s" then
With_DECGNAT := True;
end if;
end loop;
end Resolve_Binder_Options;
--------------
-- Set_Char --
--------------
procedure Set_Char (C : Character) is
begin
Last := Last + 1;
Statement_Buffer (Last) := C;
end Set_Char;
-------------
-- Set_Int --
-------------
procedure Set_Int (N : Int) is
begin
if N < 0 then
Set_String ("-");
Set_Int (-N);
else
if N > 9 then
Set_Int (N / 10);
end if;
Last := Last + 1;
Statement_Buffer (Last) :=
Character'Val (N mod 10 + Character'Pos ('0'));
end if;
end Set_Int;
-------------------------
-- Set_IS_Pragma_Table --
-------------------------
procedure Set_IS_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Interrupt_State ..
ALIs.Table (F).Last_Interrupt_State
loop
declare
Inum : constant Int :=
Interrupt_States.Table (K).Interrupt_Id;
Stat : constant Character :=
Interrupt_States.Table (K).Interrupt_State;
begin
while IS_Pragma_Settings.Last < Inum loop
IS_Pragma_Settings.Append ('n');
end loop;
IS_Pragma_Settings.Table (Inum) := Stat;
end;
end loop;
end loop;
end Set_IS_Pragma_Table;
---------------------------
-- Set_Main_Program_Name --
---------------------------
procedure Set_Main_Program_Name is
begin
-- Note that name has %b on the end which we ignore
-- First we output the initial _ada_ since we know that the main
-- program is a library level subprogram.
Set_String ("_ada_");
-- Copy name, changing dots to double underscores
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Main_Program_Name;
---------------------
-- Set_Name_Buffer --
---------------------
procedure Set_Name_Buffer is
begin
for J in 1 .. Name_Len loop
Set_Char (Name_Buffer (J));
end loop;
end Set_Name_Buffer;
----------------
-- Set_String --
----------------
procedure Set_String (S : String) is
begin
Statement_Buffer (Last + 1 .. Last + S'Length) := S;
Last := Last + S'Length;
end Set_String;
-------------------
-- Set_Unit_Name --
-------------------
procedure Set_Unit_Name is
begin
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("__");
end if;
end loop;
end Set_Unit_Name;
---------------------
-- Set_Unit_Number --
---------------------
procedure Set_Unit_Number (U : Unit_Id) is
Num_Units : constant Nat := Nat (Units.Last) - Nat (Unit_Id'First);
Unum : constant Nat := Nat (U) - Nat (Unit_Id'First);
begin
if Num_Units >= 10 and then Unum < 10 then
Set_Char ('0');
end if;
if Num_Units >= 100 and then Unum < 100 then
Set_Char ('0');
end if;
Set_Int (Unum);
end Set_Unit_Number;
------------
-- Tab_To --
------------
procedure Tab_To (N : Natural) is
begin
while Last < N loop
Set_Char (' ');
end loop;
end Tab_To;
----------------------
-- Write_Info_Ada_C --
----------------------
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String) is
begin
if Ada_Bind_File then
declare
S : String (1 .. Ada'Length + Common'Length);
begin
S (1 .. Ada'Length) := Ada;
S (Ada'Length + 1 .. S'Length) := Common;
WBI (S);
end;
else
declare
S : String (1 .. C'Length + Common'Length);
begin
S (1 .. C'Length) := C;
S (C'Length + 1 .. S'Length) := Common;
WBI (S);
end;
end if;
end Write_Info_Ada_C;
----------------------------
-- Write_Statement_Buffer --
----------------------------
procedure Write_Statement_Buffer is
begin
WBI (Statement_Buffer (1 .. Last));
Last := 0;
end Write_Statement_Buffer;
procedure Write_Statement_Buffer (S : String) is
begin
Set_String (S);
Write_Statement_Buffer;
end Write_Statement_Buffer;
end Bindgen;
| 32.195297 | 79 | 0.555893 |
58330c2b5e1989f16cbf38e2dd25194e8bdf619e | 58 | ads | Ada | Ada/inc/Problem_27.ads | Tim-Tom/project-euler | 177e0043ee93409742ec596c4379251f681b4275 | [
"Unlicense"
] | null | null | null | Ada/inc/Problem_27.ads | Tim-Tom/project-euler | 177e0043ee93409742ec596c4379251f681b4275 | [
"Unlicense"
] | null | null | null | Ada/inc/Problem_27.ads | Tim-Tom/project-euler | 177e0043ee93409742ec596c4379251f681b4275 | [
"Unlicense"
] | null | null | null | package Problem_27 is
procedure Solve;
end Problem_27;
| 14.5 | 21 | 0.793103 |
3d94b2e46d0c9f9f19b9dca5593009edb03981a1 | 16,114 | ada | Ada | aflex/src/alsys_dos/miscb.ada | irion7/aflex-ayacc-mirror | 6c8e444ca735a1e2149beb14c5a85759d05403fe | [
"Unlicense"
] | 1 | 2015-01-18T23:09:29.000Z | 2015-01-18T23:09:29.000Z | aflex/src/alsys_dos/miscb.ada | irion7/aflex-ayacc-mirror | 6c8e444ca735a1e2149beb14c5a85759d05403fe | [
"Unlicense"
] | null | null | null | aflex/src/alsys_dos/miscb.ada | irion7/aflex-ayacc-mirror | 6c8e444ca735a1e2149beb14c5a85759d05403fe | [
"Unlicense"
] | null | null | null |
-- TITLE miscellaneous aflex routines
-- AUTHOR: John Self (UCI)
-- DESCRIPTION
-- NOTES contains functions used in various places throughout aflex.
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/miscB.a,v 1.21 90/05/14 17:09:26 self Exp Locker: self $
--***************************************************************************
-- This file is subject to the Arcadia License Agreement.
--
-- (see notice in aflex.a)
--
--***************************************************************************
with MISC_DEFS, TSTRING, TEXT_IO, MISC, MAIN_BODY;
with INT_IO, CALENDAR, EXTERNAL_FILE_MANAGER; use MISC, MISC_DEFS, TEXT_IO,
EXTERNAL_FILE_MANAGER;
package body MISC is
use TSTRING;
-- action_out - write the actions from the temporary file to lex.yy.c
procedure ACTION_OUT is
BUF : VSTRING;
begin
while (not TEXT_IO.END_OF_FILE(TEMP_ACTION_FILE)) loop
TSTRING.GET_LINE(TEMP_ACTION_FILE, BUF);
if ((TSTRING.LEN(BUF) >= 2) and then ((CHAR(BUF, 1) = '%') and (CHAR(BUF,
2) = '%'))) then
exit;
else
TSTRING.PUT_LINE(BUF);
end if;
end loop;
end ACTION_OUT;
-- bubble - bubble sort an integer array in increasing order
--
-- description
-- sorts the first n elements of array v and replaces them in
-- increasing order.
--
-- passed
-- v - the array to be sorted
-- n - the number of elements of 'v' to be sorted
procedure BUBBLE(V : in INT_PTR;
N : in INTEGER) is
K : INTEGER;
begin
for I in reverse 2 .. N loop
for J in 1 .. I - 1 loop
if (V(J) > V(J + 1)) then
-- compare
K := V(J);
-- exchange
V(J) := V(J + 1);
V(J + 1) := K;
end if;
end loop;
end loop;
end BUBBLE;
-- clower - replace upper-case letter to lower-case
function CLOWER(C : in INTEGER) return INTEGER is
begin
if (ISUPPER(CHARACTER'VAL(C))) then
return TOLOWER(C);
else
return C;
end if;
end CLOWER;
-- cshell - shell sort a character array in increasing order
--
-- description
-- does a shell sort of the first n elements of array v.
--
-- passed
-- v - array to be sorted
-- n - number of elements of v to be sorted
procedure CSHELL(V : in out CHAR_ARRAY;
N : in INTEGER) is
GAP, J, JG : INTEGER;
K : CHARACTER;
LOWER_BOUND : INTEGER := V'FIRST;
begin
GAP := N/2;
while GAP > 0 loop
for I in GAP .. N - 1 loop
J := I - GAP;
while (J >= 0) loop
JG := J + GAP;
if (V(J + LOWER_BOUND) <= V(JG + LOWER_BOUND)) then
exit;
end if;
K := V(J + LOWER_BOUND);
V(J + LOWER_BOUND) := V(JG + LOWER_BOUND);
V(JG + LOWER_BOUND) := K;
J := J - GAP;
end loop;
end loop;
GAP := GAP/2;
end loop;
end CSHELL;
-- dataend - finish up a block of data declarations
procedure DATAEND is
begin
if (DATAPOS > 0) then
DATAFLUSH;
-- add terminator for initialization
TEXT_IO.PUT_LINE(" ) ;");
TEXT_IO.NEW_LINE;
DATALINE := 0;
end if;
end DATAEND;
-- dataflush - flush generated data statements
procedure DATAFLUSH(FILE : in FILE_TYPE) is
begin
TEXT_IO.NEW_LINE(FILE);
DATALINE := DATALINE + 1;
if (DATALINE >= NUMDATALINES) then
-- put out a blank line so that the table is grouped into
-- large blocks that enable the user to find elements easily
TEXT_IO.NEW_LINE(FILE);
DATALINE := 0;
end if;
-- reset the number of characters written on the current line
DATAPOS := 0;
end DATAFLUSH;
procedure DATAFLUSH is
begin
DATAFLUSH(CURRENT_OUTPUT);
end DATAFLUSH;
-- aflex_gettime - return current time
function AFLEX_GETTIME return VSTRING is
use TSTRING, CALENDAR;
CURRENT_TIME : TIME;
CURRENT_YEAR : YEAR_NUMBER;
CURRENT_MONTH : MONTH_NUMBER;
CURRENT_DAY : DAY_NUMBER;
CURRENT_SECONDS : DAY_DURATION;
MONTH_STRING, HOUR_STRING, MINUTE_STRING, SECOND_STRING : VSTRING;
HOUR, MINUTE, SECOND : INTEGER;
SECONDS_PER_HOUR : constant
DAY_DURATION := 3600.0;
begin
CURRENT_TIME := CLOCK;
SPLIT(CURRENT_TIME, CURRENT_YEAR, CURRENT_MONTH, CURRENT_DAY,
CURRENT_SECONDS);
case CURRENT_MONTH is
when 1 =>
MONTH_STRING := VSTR("Jan");
when 2 =>
MONTH_STRING := VSTR("Feb");
when 3 =>
MONTH_STRING := VSTR("Mar");
when 4 =>
MONTH_STRING := VSTR("Apr");
when 5 =>
MONTH_STRING := VSTR("May");
when 6 =>
MONTH_STRING := VSTR("Jun");
when 7 =>
MONTH_STRING := VSTR("Jul");
when 8 =>
MONTH_STRING := VSTR("Aug");
when 9 =>
MONTH_STRING := VSTR("Sep");
when 10 =>
MONTH_STRING := VSTR("Oct");
when 11 =>
MONTH_STRING := VSTR("Nov");
when 12 =>
MONTH_STRING := VSTR("Dec");
end case;
HOUR := INTEGER(CURRENT_SECONDS)/INTEGER(SECONDS_PER_HOUR);
MINUTE := INTEGER((CURRENT_SECONDS - (HOUR*SECONDS_PER_HOUR))/60);
SECOND := INTEGER(CURRENT_SECONDS - HOUR*SECONDS_PER_HOUR - MINUTE*60.0);
if (HOUR >= 10) then
HOUR_STRING := VSTR(INTEGER'IMAGE(HOUR));
else
HOUR_STRING := VSTR("0" & INTEGER'IMAGE(HOUR));
end if;
if (MINUTE >= 10) then
MINUTE_STRING := VSTR(INTEGER'IMAGE(MINUTE)(2 .. INTEGER'IMAGE(MINUTE)'
LENGTH));
else
MINUTE_STRING := VSTR("0" & INTEGER'IMAGE(MINUTE)(2 .. INTEGER'IMAGE(
MINUTE)'LENGTH));
end if;
if (SECOND >= 10) then
SECOND_STRING := VSTR(INTEGER'IMAGE(SECOND)(2 .. INTEGER'IMAGE(SECOND)'
LENGTH));
else
SECOND_STRING := VSTR("0" & INTEGER'IMAGE(SECOND)(2 .. INTEGER'IMAGE(
SECOND)'LENGTH));
end if;
return MONTH_STRING & VSTR(INTEGER'IMAGE(CURRENT_DAY)) & HOUR_STRING & ":"
& MINUTE_STRING & ":" & SECOND_STRING & INTEGER'IMAGE(CURRENT_YEAR);
end AFLEX_GETTIME;
-- aflexerror - report an error message and terminate
-- overloaded function, one for vstring, one for string.
procedure AFLEXERROR(MSG : in VSTRING) is
use TEXT_IO;
begin
TSTRING.PUT(STANDARD_ERROR, "aflex: " & MSG);
TEXT_IO.NEW_LINE(STANDARD_ERROR);
MAIN_BODY.AFLEXEND(1);
end AFLEXERROR;
procedure AFLEXERROR(MSG : in STRING) is
use TEXT_IO;
begin
TEXT_IO.PUT(STANDARD_ERROR, "aflex: " & MSG);
TEXT_IO.NEW_LINE(STANDARD_ERROR);
MAIN_BODY.AFLEXEND(1);
end AFLEXERROR;
-- aflexfatal - report a fatal error message and terminate
-- overloaded function, one for vstring, one for string.
procedure AFLEXFATAL(MSG : in VSTRING) is
use TEXT_IO;
begin
TSTRING.PUT(STANDARD_ERROR, "aflex: fatal internal error " & MSG);
TEXT_IO.NEW_LINE(STANDARD_ERROR);
MAIN_BODY.AFLEXEND(1);
end AFLEXFATAL;
procedure AFLEXFATAL(MSG : in STRING) is
use TEXT_IO;
begin
TEXT_IO.PUT(STANDARD_ERROR, "aflex: fatal internal error " & MSG);
TEXT_IO.NEW_LINE(STANDARD_ERROR);
MAIN_BODY.AFLEXEND(1);
end AFLEXFATAL;
-- basename - find the basename of a file
function BASENAME return VSTRING is
I : INTEGER := LEN(INFILENAME);
begin
if (I = 0) then
-- if reading standard input give everything this name
return VSTR("aflex_yy");
end if;
while ((I >= 1) and then (CHAR(INFILENAME, I) /= '.')) loop
I := I - 1;
end loop;
if (I >= 1) then
return SLICE(INFILENAME, 1, I - 1);
else
return INFILENAME;
end if;
end BASENAME;
-- line_directive_out - spit out a "# line" statement
procedure LINE_DIRECTIVE_OUT(OUTPUT_FILE_NAME : in FILE_TYPE) is
begin
if (GEN_LINE_DIRS) then
TEXT_IO.PUT(OUTPUT_FILE_NAME, "--# line ");
INT_IO.PUT(OUTPUT_FILE_NAME, LINENUM, 1);
TEXT_IO.PUT(OUTPUT_FILE_NAME, " """);
TSTRING.PUT(OUTPUT_FILE_NAME, INFILENAME);
TEXT_IO.PUT_LINE(OUTPUT_FILE_NAME, """");
end if;
end LINE_DIRECTIVE_OUT;
procedure LINE_DIRECTIVE_OUT is
begin
if (GEN_LINE_DIRS) then
TEXT_IO.PUT("--# line ");
INT_IO.PUT(LINENUM, 1);
TEXT_IO.PUT(" """);
TSTRING.PUT(INFILENAME);
TEXT_IO.PUT_LINE("""");
end if;
end LINE_DIRECTIVE_OUT;
-- all_upper - returns true if a string is all upper-case
function ALL_UPPER(STR : in VSTRING) return BOOLEAN is
begin
for I in 1 .. LEN(STR) loop
if (not ((CHAR(STR, I) >= 'A') and (CHAR(STR, I) <= 'Z'))) then
return FALSE;
end if;
end loop;
return TRUE;
end ALL_UPPER;
-- all_lower - returns true if a string is all lower-case
function ALL_LOWER(STR : in VSTRING) return BOOLEAN is
begin
for I in 1 .. LEN(STR) loop
if (not ((CHAR(STR, I) >= 'a') and (CHAR(STR, I) <= 'z'))) then
return FALSE;
end if;
end loop;
return TRUE;
end ALL_LOWER;
-- mk2data - generate a data statement for a two-dimensional array
--
-- generates a data statement initializing the current 2-D array to "value"
procedure MK2DATA(FILE : in FILE_TYPE;
VALUE : in INTEGER) is
begin
if (DATAPOS >= NUMDATAITEMS) then
TEXT_IO.PUT(FILE, ',');
DATAFLUSH(FILE);
end if;
if (DATAPOS = 0) then
-- indent
TEXT_IO.PUT(FILE, " ");
else
TEXT_IO.PUT(FILE, ',');
end if;
DATAPOS := DATAPOS + 1;
INT_IO.PUT(FILE, VALUE, 5);
end MK2DATA;
procedure MK2DATA(VALUE : in INTEGER) is
begin
MK2DATA(CURRENT_OUTPUT, VALUE);
end MK2DATA;
--
-- generates a data statement initializing the current array element to
-- "value"
procedure MKDATA(VALUE : in INTEGER) is
begin
if (DATAPOS >= NUMDATAITEMS) then
TEXT_IO.PUT(',');
DATAFLUSH;
end if;
if (DATAPOS = 0) then
-- indent
TEXT_IO.PUT(" ");
else
TEXT_IO.PUT(',');
end if;
DATAPOS := DATAPOS + 1;
INT_IO.PUT(VALUE, 5);
end MKDATA;
-- myctoi - return the integer represented by a string of digits
function MYCTOI(NUM_ARRAY : in VSTRING) return INTEGER is
TOTAL : INTEGER := 0;
CNT : INTEGER := TSTRING.FIRST;
begin
while (CNT <= TSTRING.LEN(NUM_ARRAY)) loop
TOTAL := TOTAL*10;
TOTAL := TOTAL + CHARACTER'POS(CHAR(NUM_ARRAY, CNT)) - CHARACTER'POS('0')
;
CNT := CNT + 1;
end loop;
return TOTAL;
end MYCTOI;
-- myesc - return character corresponding to escape sequence
function MYESC(ARR : in VSTRING) return CHARACTER is
use TEXT_IO;
begin
case (CHAR(ARR, TSTRING.FIRST + 1)) is
when 'a' =>
return ASCII.BEL;
when 'b' =>
return ASCII.BS;
when 'f' =>
return ASCII.FF;
when 'n' =>
return ASCII.LF;
when 'r' =>
return ASCII.CR;
when 't' =>
return ASCII.HT;
when 'v' =>
return ASCII.VT;
when '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' =>
-- \<octal>
declare
C, ESC_CHAR : CHARACTER;
SPTR : INTEGER := TSTRING.FIRST + 1;
begin
ESC_CHAR := OTOI(TSTRING.SLICE(ARR, TSTRING.FIRST + 1, TSTRING.LEN(ARR
)));
if (ESC_CHAR = ASCII.NUL) then
MISC.SYNERR("escape sequence for null not allowed");
return ASCII.SOH;
end if;
return ESC_CHAR;
end;
when others =>
return CHAR(ARR, TSTRING.FIRST + 1);
end case;
end MYESC;
-- otoi - convert an octal digit string to an integer value
function OTOI(STR : in VSTRING) return CHARACTER is
TOTAL : INTEGER := 0;
CNT : INTEGER := TSTRING.FIRST;
begin
while (CNT <= TSTRING.LEN(STR)) loop
TOTAL := TOTAL*8;
TOTAL := TOTAL + CHARACTER'POS(CHAR(STR, CNT)) - CHARACTER'POS('0');
CNT := CNT + 1;
end loop;
return CHARACTER'VAL(TOTAL);
end OTOI;
-- readable_form - return the the human-readable form of a character
--
-- The returned string is in static storage.
function READABLE_FORM(C : in CHARACTER) return VSTRING is
begin
if ((CHARACTER'POS(C) >= 0 and CHARACTER'POS(C) < 32) or (C = ASCII.DEL))
then
case C is
when ASCII.LF =>
return (VSTR("\n"));
-- Newline
when ASCII.HT =>
return (VSTR("\t"));
-- Horizontal Tab
when ASCII.FF =>
return (VSTR("\f"));
-- Form Feed
when ASCII.CR =>
return (VSTR("\r"));
-- Carriage Return
when ASCII.BS =>
return (VSTR("\b"));
-- Backspace
when others =>
return VSTR("\" & INTEGER'IMAGE(CHARACTER'POS(C)));
end case;
elsif (C = ' ') then
return VSTR("' '");
else
return VSTR(C);
end if;
end READABLE_FORM;
-- transition_struct_out - output a yy_trans_info structure
--
-- outputs the yy_trans_info structure with the two elements, element_v and
-- element_n. Formats the output with spaces and carriage returns.
procedure TRANSITION_STRUCT_OUT(ELEMENT_V, ELEMENT_N : in INTEGER) is
begin
INT_IO.PUT(ELEMENT_V, 7);
TEXT_IO.PUT(", ");
INT_IO.PUT(ELEMENT_N, 5);
TEXT_IO.PUT(",");
DATAPOS := DATAPOS + TRANS_STRUCT_PRINT_LENGTH;
if (DATAPOS >= 75) then
TEXT_IO.NEW_LINE;
DATALINE := DATALINE + 1;
if (DATALINE mod 10 = 0) then
TEXT_IO.NEW_LINE;
end if;
DATAPOS := 0;
end if;
end TRANSITION_STRUCT_OUT;
function SET_YY_TRAILING_HEAD_MASK(SRC : in INTEGER) return INTEGER is
begin
if (CHECK_YY_TRAILING_HEAD_MASK(SRC) = 0) then
return SRC + YY_TRAILING_HEAD_MASK;
else
return SRC;
end if;
end SET_YY_TRAILING_HEAD_MASK;
function CHECK_YY_TRAILING_HEAD_MASK(SRC : in INTEGER) return INTEGER is
begin
if (SRC >= YY_TRAILING_HEAD_MASK) then
return YY_TRAILING_HEAD_MASK;
else
return 0;
end if;
end CHECK_YY_TRAILING_HEAD_MASK;
function SET_YY_TRAILING_MASK(SRC : in INTEGER) return INTEGER is
begin
if (CHECK_YY_TRAILING_MASK(SRC) = 0) then
return SRC + YY_TRAILING_MASK;
else
return SRC;
end if;
end SET_YY_TRAILING_MASK;
function CHECK_YY_TRAILING_MASK(SRC : in INTEGER) return INTEGER is
begin
-- this test is whether both bits are on, or whether onlyy TRAIL_MASK is set
if ((SRC >= YY_TRAILING_HEAD_MASK + YY_TRAILING_MASK) or ((
CHECK_YY_TRAILING_HEAD_MASK(SRC) = 0) and (SRC >= YY_TRAILING_MASK)))
then
return YY_TRAILING_MASK;
else
return 0;
end if;
end CHECK_YY_TRAILING_MASK;
function ISLOWER(C : in CHARACTER) return BOOLEAN is
begin
return (C in 'a' .. 'z');
end ISLOWER;
function ISUPPER(C : in CHARACTER) return BOOLEAN is
begin
return (C in 'A' .. 'Z');
end ISUPPER;
function ISDIGIT(C : in CHARACTER) return BOOLEAN is
begin
return (C in '0' .. '9');
end ISDIGIT;
function TOLOWER(C : in INTEGER) return INTEGER is
begin
return C - CHARACTER'POS('A') + CHARACTER'POS('a');
end TOLOWER;
procedure SYNERR(STR : in STRING) is
use TEXT_IO;
begin
SYNTAXERROR := TRUE;
TEXT_IO.PUT(STANDARD_ERROR, "Syntax error at line ");
INT_IO.PUT(STANDARD_ERROR, LINENUM);
TEXT_IO.PUT(STANDARD_ERROR, STR);
TEXT_IO.NEW_LINE(STANDARD_ERROR);
end SYNERR;
end MISC;
| 26.991625 | 107 | 0.574842 |
3daed08d9badadedc7c7d0a9760f4380267ff071 | 1,067 | adb | Ada | drivers/forward_ad-jacobian.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | drivers/forward_ad-jacobian.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | drivers/forward_ad-jacobian.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | with Numerics, Ada.Text_IO;
use Numerics, Ada.Text_IO;
procedure Forward_AD.Jacobian is
use Real_IO, Int_IO;
function Func (X : in Real_Array) return AD_Vector is
Y : constant AD_Vector := Var (X);
Zero : constant Real_Array (X'Range) := (others => 0.0);
Result : AD_Vector := Var (Zero);
begin
Result (1) := Y (1) * Y (2);
Result (2) := Y (1) * Y (3);
Result (3) := Y (2) * Y (3);
-- Result (4) := Y (2) * Y (3);
return Result;
end Func;
procedure Print_AD_Type (X : in AD_Type) is
G : Real_Array := Grad (X);
begin
Put (Val (X), Aft => 4, Exp => 0);
for I in G'Range loop
Put (", "); Put (G (I), Aft => 4, Exp => 0);
end loop;
New_Line;
end Print_AD_Type;
X : Real_Array := (1.0, 2.0, 3.0);
Y : AD_Vector (1 .. 3);
J : Sparse_Matrix;
begin
Y := Func (X);
J := Jacobian_Matrix (Y);
for I in 1 .. Nat (3) loop
Print_AD_Type (Y (I));
end loop;
New_Line; New_Line;
Print (J);
null;
end Forward_AD.Jacobian;
| 23.711111 | 62 | 0.530459 |
57114698e7aab77de7f0c233e380fad480a09c6b | 57,295 | ads | Ada | SVD2ada/svd/stm32_svd-dmamux.ads | JCGobbi/Nucleo-STM32H743ZI | bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c | [
"BSD-3-Clause"
] | null | null | null | SVD2ada/svd/stm32_svd-dmamux.ads | JCGobbi/Nucleo-STM32H743ZI | bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c | [
"BSD-3-Clause"
] | null | null | null | SVD2ada/svd/stm32_svd-dmamux.ads | JCGobbi/Nucleo-STM32H743ZI | bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c | [
"BSD-3-Clause"
] | null | null | null | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.DMAMUX is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype C0CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C0CR_SPOL_Field is HAL.UInt2;
subtype C0CR_NBREQ_Field is HAL.UInt5;
subtype C0CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C0CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C0CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C0CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C0CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C0CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C0CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C1CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C1CR_SPOL_Field is HAL.UInt2;
subtype C1CR_NBREQ_Field is HAL.UInt5;
subtype C1CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C1CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C1CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C1CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C1CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C1CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C1CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C2CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C2CR_SPOL_Field is HAL.UInt2;
subtype C2CR_NBREQ_Field is HAL.UInt5;
subtype C2CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C2CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C2CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C2CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C2CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C2CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C2CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C3CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C3CR_SPOL_Field is HAL.UInt2;
subtype C3CR_NBREQ_Field is HAL.UInt5;
subtype C3CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C3CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C3CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C3CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C3CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C3CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C3CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C4CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C4CR_SPOL_Field is HAL.UInt2;
subtype C4CR_NBREQ_Field is HAL.UInt5;
subtype C4CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C4CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C4CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C4CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C4CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C4CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C4CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C5CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C5CR_SPOL_Field is HAL.UInt2;
subtype C5CR_NBREQ_Field is HAL.UInt5;
subtype C5CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C5CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C5CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C5CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C5CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C5CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C5CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C6CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C6CR_SPOL_Field is HAL.UInt2;
subtype C6CR_NBREQ_Field is HAL.UInt5;
subtype C6CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C6CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C6CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C6CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C6CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C6CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C6CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C7CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C7CR_SPOL_Field is HAL.UInt2;
subtype C7CR_NBREQ_Field is HAL.UInt5;
subtype C7CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C7CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C7CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C7CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C7CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C7CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C7CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C8CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C8CR_SPOL_Field is HAL.UInt2;
subtype C8CR_NBREQ_Field is HAL.UInt5;
subtype C8CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C8CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C8CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C8CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C8CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C8CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C8CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C9CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C9CR_SPOL_Field is HAL.UInt2;
subtype C9CR_NBREQ_Field is HAL.UInt5;
subtype C9CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C9CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C9CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C9CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C9CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C9CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C9CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C10CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C10CR_SPOL_Field is HAL.UInt2;
subtype C10CR_NBREQ_Field is HAL.UInt5;
subtype C10CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C10CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C10CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C10CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C10CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C10CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C10CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C11CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C11CR_SPOL_Field is HAL.UInt2;
subtype C11CR_NBREQ_Field is HAL.UInt5;
subtype C11CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C11CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C11CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C11CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C11CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C11CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C11CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C12CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C12CR_SPOL_Field is HAL.UInt2;
subtype C12CR_NBREQ_Field is HAL.UInt5;
subtype C12CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C12CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C12CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C12CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C12CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C12CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C12CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C13CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C13CR_SPOL_Field is HAL.UInt2;
subtype C13CR_NBREQ_Field is HAL.UInt5;
subtype C13CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C13CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C13CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C13CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C13CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C13CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C13CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C14CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C14CR_SPOL_Field is HAL.UInt2;
subtype C14CR_NBREQ_Field is HAL.UInt5;
subtype C14CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C14CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C14CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C14CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C14CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C14CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C14CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype C15CR_DMAREQ_ID_Field is HAL.UInt8;
subtype C15CR_SPOL_Field is HAL.UInt2;
subtype C15CR_NBREQ_Field is HAL.UInt5;
subtype C15CR_SYNC_ID_Field is HAL.UInt5;
-- DMAMux - DMA request line multiplexer channel x control register
type C15CR_Register is record
-- Input DMA request line selected
DMAREQ_ID : C15CR_DMAREQ_ID_Field := 16#0#;
-- Interrupt enable at synchronization event overrun
SOIE : Boolean := False;
-- Event generation enable/disable
EGE : Boolean := False;
-- unspecified
Reserved_10_15 : HAL.UInt6 := 16#0#;
-- Synchronous operating mode enable/disable
SE : Boolean := False;
-- Synchronization event type selector Defines the synchronization event
-- on the selected synchronization input:
SPOL : C15CR_SPOL_Field := 16#0#;
-- Number of DMA requests to forward Defines the number of DMA requests
-- forwarded before output event is generated. In synchronous mode, it
-- also defines the number of DMA requests to forward after a
-- synchronization event, then stop forwarding. The actual number of DMA
-- requests forwarded is NBREQ+1. Note: This field can only be written
-- when both SE and EGE bits are reset.
NBREQ : C15CR_NBREQ_Field := 16#0#;
-- Synchronization input selected
SYNC_ID : C15CR_SYNC_ID_Field := 16#0#;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for C15CR_Register use record
DMAREQ_ID at 0 range 0 .. 7;
SOIE at 0 range 8 .. 8;
EGE at 0 range 9 .. 9;
Reserved_10_15 at 0 range 10 .. 15;
SE at 0 range 16 .. 16;
SPOL at 0 range 17 .. 18;
NBREQ at 0 range 19 .. 23;
SYNC_ID at 0 range 24 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype CSR_SOF_Field is HAL.UInt16;
-- DMAMUX request line multiplexer interrupt channel status register
type CSR_Register is record
-- Read-only. Synchronization overrun event flag
SOF : CSR_SOF_Field;
-- unspecified
Reserved_16_31 : HAL.UInt16;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CSR_Register use record
SOF at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype CFR_CSOF_Field is HAL.UInt16;
-- DMAMUX request line multiplexer interrupt clear flag register
type CFR_Register is record
-- Write-only. Clear synchronization overrun event flag
CSOF : CFR_CSOF_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 CFR_Register use record
CSOF at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype RG0CR_SIG_ID_Field is HAL.UInt5;
subtype RG0CR_GPOL_Field is HAL.UInt2;
subtype RG0CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG0CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG0CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG0CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG0CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG0CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG1CR_SIG_ID_Field is HAL.UInt5;
subtype RG1CR_GPOL_Field is HAL.UInt2;
subtype RG1CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG1CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG1CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG1CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG1CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG1CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG2CR_SIG_ID_Field is HAL.UInt5;
subtype RG2CR_GPOL_Field is HAL.UInt2;
subtype RG2CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG2CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG2CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG2CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG2CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG2CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG3CR_SIG_ID_Field is HAL.UInt5;
subtype RG3CR_GPOL_Field is HAL.UInt2;
subtype RG3CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG3CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG3CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG3CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG3CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG3CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG4CR_SIG_ID_Field is HAL.UInt5;
subtype RG4CR_GPOL_Field is HAL.UInt2;
subtype RG4CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG4CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG4CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG4CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG4CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG4CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG5CR_SIG_ID_Field is HAL.UInt5;
subtype RG5CR_GPOL_Field is HAL.UInt2;
subtype RG5CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG5CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG5CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG5CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG5CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG5CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG6CR_SIG_ID_Field is HAL.UInt5;
subtype RG6CR_GPOL_Field is HAL.UInt2;
subtype RG6CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG6CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG6CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG6CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG6CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG6CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RG7CR_SIG_ID_Field is HAL.UInt5;
subtype RG7CR_GPOL_Field is HAL.UInt2;
subtype RG7CR_GNBREQ_Field is HAL.UInt5;
-- DMAMux - DMA request generator channel x control register
type RG7CR_Register is record
-- DMA request trigger input selected
SIG_ID : RG7CR_SIG_ID_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Interrupt enable at trigger event overrun
OIE : Boolean := False;
-- unspecified
Reserved_9_15 : HAL.UInt7 := 16#0#;
-- DMA request generator channel enable/disable
GE : Boolean := False;
-- DMA request generator trigger event type selection Defines the
-- trigger event on the selected DMA request trigger input
GPOL : RG7CR_GPOL_Field := 16#0#;
-- Number of DMA requests to generate Defines the number of DMA requests
-- generated after a trigger event, then stop generating. The actual
-- number of generated DMA requests is GNBREQ+1. Note: This field can
-- only be written when GE bit is reset.
GNBREQ : RG7CR_GNBREQ_Field := 16#0#;
-- unspecified
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RG7CR_Register use record
SIG_ID at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
OIE at 0 range 8 .. 8;
Reserved_9_15 at 0 range 9 .. 15;
GE at 0 range 16 .. 16;
GPOL at 0 range 17 .. 18;
GNBREQ at 0 range 19 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype RGSR_OF_Field is HAL.UInt8;
-- DMAMux - DMA request generator status register
type RGSR_Register is record
-- Read-only. Trigger event overrun flag The flag is set when a trigger
-- event occurs on DMA request generator channel x, while the DMA
-- request generator counter value is lower than GNBREQ. The flag is
-- cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR
-- register.
OF_k : RGSR_OF_Field;
-- unspecified
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for RGSR_Register use record
OF_k at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype RGCFR_COF_Field is HAL.UInt8;
-- DMAMux - DMA request generator clear flag register
type RGCFR_Register is record
-- Write-only. Clear trigger event overrun flag Upon setting, this bit
-- clears the corresponding overrun flag OFx in the DMAMUX_RGCSR
-- register.
COF : RGCFR_COF_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 RGCFR_Register use record
COF at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- DMAMUX
type DMAMUX1_Peripheral is record
-- DMAMux - DMA request line multiplexer channel x control register
C0CR : aliased C0CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C1CR : aliased C1CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C2CR : aliased C2CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C3CR : aliased C3CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C4CR : aliased C4CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C5CR : aliased C5CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C6CR : aliased C6CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C7CR : aliased C7CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C8CR : aliased C8CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C9CR : aliased C9CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C10CR : aliased C10CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C11CR : aliased C11CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C12CR : aliased C12CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C13CR : aliased C13CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C14CR : aliased C14CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C15CR : aliased C15CR_Register;
-- DMAMUX request line multiplexer interrupt channel status register
CSR : aliased CSR_Register;
-- DMAMUX request line multiplexer interrupt clear flag register
CFR : aliased CFR_Register;
-- DMAMux - DMA request generator channel x control register
RG0CR : aliased RG0CR_Register;
-- DMAMux - DMA request generator channel x control register
RG1CR : aliased RG1CR_Register;
-- DMAMux - DMA request generator channel x control register
RG2CR : aliased RG2CR_Register;
-- DMAMux - DMA request generator channel x control register
RG3CR : aliased RG3CR_Register;
-- DMAMux - DMA request generator channel x control register
RG4CR : aliased RG4CR_Register;
-- DMAMux - DMA request generator channel x control register
RG5CR : aliased RG5CR_Register;
-- DMAMux - DMA request generator channel x control register
RG6CR : aliased RG6CR_Register;
-- DMAMux - DMA request generator channel x control register
RG7CR : aliased RG7CR_Register;
-- DMAMux - DMA request generator status register
RGSR : aliased RGSR_Register;
-- DMAMux - DMA request generator clear flag register
RGCFR : aliased RGCFR_Register;
end record
with Volatile;
for DMAMUX1_Peripheral use record
C0CR at 16#0# range 0 .. 31;
C1CR at 16#4# range 0 .. 31;
C2CR at 16#8# range 0 .. 31;
C3CR at 16#C# range 0 .. 31;
C4CR at 16#10# range 0 .. 31;
C5CR at 16#14# range 0 .. 31;
C6CR at 16#18# range 0 .. 31;
C7CR at 16#1C# range 0 .. 31;
C8CR at 16#20# range 0 .. 31;
C9CR at 16#24# range 0 .. 31;
C10CR at 16#28# range 0 .. 31;
C11CR at 16#2C# range 0 .. 31;
C12CR at 16#30# range 0 .. 31;
C13CR at 16#34# range 0 .. 31;
C14CR at 16#38# range 0 .. 31;
C15CR at 16#3C# range 0 .. 31;
CSR at 16#80# range 0 .. 31;
CFR at 16#84# range 0 .. 31;
RG0CR at 16#100# range 0 .. 31;
RG1CR at 16#104# range 0 .. 31;
RG2CR at 16#108# range 0 .. 31;
RG3CR at 16#10C# range 0 .. 31;
RG4CR at 16#110# range 0 .. 31;
RG5CR at 16#114# range 0 .. 31;
RG6CR at 16#118# range 0 .. 31;
RG7CR at 16#11C# range 0 .. 31;
RGSR at 16#140# range 0 .. 31;
RGCFR at 16#144# range 0 .. 31;
end record;
-- DMAMUX
DMAMUX1_Periph : aliased DMAMUX1_Peripheral
with Import, Address => DMAMUX1_Base;
-- DMAMUX
type DMAMUX2_Peripheral is record
-- DMAMux - DMA request line multiplexer channel x control register
C0CR : aliased C0CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C1CR : aliased C1CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C2CR : aliased C2CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C3CR : aliased C3CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C4CR : aliased C4CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C5CR : aliased C5CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C6CR : aliased C6CR_Register;
-- DMAMux - DMA request line multiplexer channel x control register
C7CR : aliased C7CR_Register;
-- DMAMUX request line multiplexer interrupt channel status register
CSR : aliased CSR_Register;
-- DMAMUX request line multiplexer interrupt clear flag register
CFR : aliased CFR_Register;
-- DMAMux - DMA request generator channel x control register
RG0CR : aliased RG0CR_Register;
-- DMAMux - DMA request generator channel x control register
RG1CR : aliased RG1CR_Register;
-- DMAMux - DMA request generator channel x control register
RG2CR : aliased RG2CR_Register;
-- DMAMux - DMA request generator channel x control register
RG3CR : aliased RG3CR_Register;
-- DMAMux - DMA request generator channel x control register
RG4CR : aliased RG4CR_Register;
-- DMAMux - DMA request generator channel x control register
RG5CR : aliased RG5CR_Register;
-- DMAMux - DMA request generator channel x control register
RG6CR : aliased RG6CR_Register;
-- DMAMux - DMA request generator channel x control register
RG7CR : aliased RG7CR_Register;
-- DMAMux - DMA request generator status register
RGSR : aliased RGSR_Register;
-- DMAMux - DMA request generator clear flag register
RGCFR : aliased RGCFR_Register;
end record
with Volatile;
for DMAMUX2_Peripheral use record
C0CR at 16#0# range 0 .. 31;
C1CR at 16#4# range 0 .. 31;
C2CR at 16#8# range 0 .. 31;
C3CR at 16#C# range 0 .. 31;
C4CR at 16#10# range 0 .. 31;
C5CR at 16#14# range 0 .. 31;
C6CR at 16#18# range 0 .. 31;
C7CR at 16#1C# range 0 .. 31;
CSR at 16#80# range 0 .. 31;
CFR at 16#84# range 0 .. 31;
RG0CR at 16#100# range 0 .. 31;
RG1CR at 16#104# range 0 .. 31;
RG2CR at 16#108# range 0 .. 31;
RG3CR at 16#10C# range 0 .. 31;
RG4CR at 16#110# range 0 .. 31;
RG5CR at 16#114# range 0 .. 31;
RG6CR at 16#118# range 0 .. 31;
RG7CR at 16#11C# range 0 .. 31;
RGSR at 16#140# range 0 .. 31;
RGCFR at 16#144# range 0 .. 31;
end record;
-- DMAMUX
DMAMUX2_Periph : aliased DMAMUX2_Peripheral
with Import, Address => DMAMUX2_Base;
end STM32_SVD.DMAMUX;
| 42.630208 | 79 | 0.620473 |
29665f4ac64b7695258052d7231d4f13e932a37d | 895 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt59.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/opt59.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt59.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do run }
-- { dg-options "-O" }
with Opt59_Pkg; use Opt59_Pkg;
procedure Opt59 is
type Enum is (Zero, One, Two);
function Has_True (V : Boolean_Vector) return Boolean is
begin
for I in V'Range loop
if V (I) then
return True;
end if;
end loop;
return False;
end;
Data1 : constant Boolean_Vector := Get_BV1;
Data2 : constant Boolean_Vector := Get_BV2;
Result : Boolean_Vector;
function F return Enum is
Res : Enum := Zero;
Set1 : constant Boolean := Has_True (Data1);
Set2 : constant Boolean := Has_True (Data2);
begin
if Set1 then
Res := Two;
elsif Set2 then
Res := One;
end if;
return Res;
end;
Val : constant Enum := F;
begin
for I in Result'Range loop
Result (I) := Data1 (I) or Data2 (I);
end loop;
if Val /= Zero then
Test (Val = Two);
end if;
end;
| 17.9 | 58 | 0.593296 |
3da2473ad156a1b39bfdf35c4a4ea7a8be152068 | 1,346 | adb | Ada | src/gen/gprslaves-server.adb | persan/gprTools | 0a67ea3179a1a5802ca45014ed00c044a945e5a1 | [
"BSD-3-Clause"
] | 2 | 2015-05-15T16:03:26.000Z | 2018-12-26T19:32:41.000Z | src/gen/gprslaves-server.adb | persan/gprTools | 0a67ea3179a1a5802ca45014ed00c044a945e5a1 | [
"BSD-3-Clause"
] | null | null | null | src/gen/gprslaves-server.adb | persan/gprTools | 0a67ea3179a1a5802ca45014ed00c044a945e5a1 | [
"BSD-3-Clause"
] | null | null | null | -- wsdl2aws SOAP Generator v2.4.0
--
-- AWS 3.3.0w - SOAP 1.5.0
-- This file was generated on Friday 15 May 2015 at 14:44:08
--
-- $ wsdl2aws gprslaves-nameserver.ads.wsdl -f -main gprslaves-server
-- -timeouts 1 -cb -spec gprslaves.nameserver
with AWS.Config.Set;
pragma Elaborate_All (AWS.Config.Set);
with AWS.Server;
pragma Elaborate_All (AWS.Server);
with AWS.Status;
pragma Elaborate_All (AWS.Status);
with AWS.Response;
pragma Elaborate_All (AWS.Response);
with SOAP.Dispatchers.Callback;
pragma Elaborate_All (SOAP.Dispatchers.Callback);
with Gprslaves.Nameserver_Service.CB;
pragma Elaborate_All (Gprslaves.Nameserver_Service.CB);
with Gprslaves.Nameserver_Service.Server;
pragma Elaborate_All (Gprslaves.Nameserver_Service.Server);
procedure Gprslaves.server is
use AWS;
function CB (Request : Status.Data) return Response.Data is
R : Response.Data;
begin
return R;
end CB;
WS : AWS.Server.HTTP;
Conf : Config.Object;
Disp : Gprslaves.Nameserver_Service.CB.Handler;
begin
Config.Set.Server_Port (Conf, Gprslaves.Nameserver_Service.Server.Port);
Disp :=
SOAP.Dispatchers.Callback.Create
(CB'Unrestricted_Access,
Gprslaves.Nameserver_Service.CB.SOAP_CB'Access);
AWS.Server.Start (WS, Disp, Conf);
AWS.Server.Wait (AWS.Server.Forever);
end Gprslaves.server;
| 26.92 | 75 | 0.741456 |
5873bae215dd04468f08a2535ca85f92d4c0f1f1 | 1,761 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_glx_get_query_objectuiv_arb_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_glx_get_query_objectuiv_arb_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_glx_get_query_objectuiv_arb_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_glx_get_query_objectuiv_arb_request_t is
-- Item
--
type Item is record
major_opcode : aliased Interfaces.Unsigned_8;
minor_opcode : aliased Interfaces.Unsigned_8;
length : aliased Interfaces.Unsigned_16;
context_tag : aliased xcb.xcb_glx_context_tag_t;
id : aliased Interfaces.Unsigned_32;
pname : aliased Interfaces.Unsigned_32;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb
.xcb_glx_get_query_objectuiv_arb_request_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_query_objectuiv_arb_request_t.Item,
Element_Array =>
xcb.xcb_glx_get_query_objectuiv_arb_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_glx_get_query_objectuiv_arb_request_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_query_objectuiv_arb_request_t.Pointer,
Element_Array =>
xcb.xcb_glx_get_query_objectuiv_arb_request_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_get_query_objectuiv_arb_request_t;
| 28.403226 | 77 | 0.686542 |
2fca2e69d3e0636dc69f6e971e3d9a09ca0a5f4a | 4,269 | ads | Ada | source/nodes/program-nodes-exit_statements.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-exit_statements.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-exit_statements.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Exit_Statements;
with Program.Element_Visitors;
package Program.Nodes.Exit_Statements is
pragma Preelaborate;
type Exit_Statement is
new Program.Nodes.Node and Program.Elements.Exit_Statements.Exit_Statement
and Program.Elements.Exit_Statements.Exit_Statement_Text
with private;
function Create
(Exit_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Exit_Loop_Name : Program.Elements.Expressions.Expression_Access;
When_Token : Program.Lexical_Elements.Lexical_Element_Access;
Condition : Program.Elements.Expressions.Expression_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Exit_Statement;
type Implicit_Exit_Statement is
new Program.Nodes.Node and Program.Elements.Exit_Statements.Exit_Statement
with private;
function Create
(Exit_Loop_Name : Program.Elements.Expressions.Expression_Access;
Condition : Program.Elements.Expressions.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Exit_Statement
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Exit_Statement is
abstract new Program.Nodes.Node
and Program.Elements.Exit_Statements.Exit_Statement
with record
Exit_Loop_Name : Program.Elements.Expressions.Expression_Access;
Condition : Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Exit_Statement'Class);
overriding procedure Visit
(Self : not null access Base_Exit_Statement;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Exit_Loop_Name
(Self : Base_Exit_Statement)
return Program.Elements.Expressions.Expression_Access;
overriding function Condition
(Self : Base_Exit_Statement)
return Program.Elements.Expressions.Expression_Access;
overriding function Is_Exit_Statement
(Self : Base_Exit_Statement)
return Boolean;
overriding function Is_Statement
(Self : Base_Exit_Statement)
return Boolean;
type Exit_Statement is
new Base_Exit_Statement
and Program.Elements.Exit_Statements.Exit_Statement_Text
with record
Exit_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
When_Token : Program.Lexical_Elements.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Exit_Statement_Text
(Self : in out Exit_Statement)
return Program.Elements.Exit_Statements.Exit_Statement_Text_Access;
overriding function Exit_Token
(Self : Exit_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function When_Token
(Self : Exit_Statement)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Exit_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Exit_Statement is
new Base_Exit_Statement
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Exit_Statement_Text
(Self : in out Implicit_Exit_Statement)
return Program.Elements.Exit_Statements.Exit_Statement_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Exit_Statement)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Exit_Statement)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Exit_Statement)
return Boolean;
end Program.Nodes.Exit_Statements;
| 33.614173 | 79 | 0.740454 |
1c553e4047fa43fc98d7773ea55eeb1ed1db4c9a | 1,348 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_glx_get_error_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_get_error_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_get_error_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_get_error_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_get_error_cookie_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_error_cookie_t.Item,
Element_Array => xcb.xcb_glx_get_error_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_get_error_cookie_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_get_error_cookie_t.Pointer,
Element_Array => xcb.xcb_glx_get_error_cookie_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_get_error_cookie_t;
| 26.431373 | 79 | 0.672849 |
3d6f3de5d0acefafaccdfbedaeb1e36385be9cad | 3,634 | adb | Ada | source/web/fastcgi/matreshka-fastcgi-server-fcgi_listen_socket__posix.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/web/fastcgi/matreshka-fastcgi-server-fcgi_listen_socket__posix.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/web/fastcgi/matreshka-fastcgi-server-fcgi_listen_socket__posix.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
separate (Matreshka.FastCGI.Server)
function FCGI_Listen_Socket return GNAT.Sockets.Socket_Type is
function To_Socket_Type is
new Ada.Unchecked_Conversion (Integer, GNAT.Sockets.Socket_Type);
begin
return To_Socket_Type (0);
end FCGI_Listen_Socket;
| 66.072727 | 78 | 0.419923 |
5888891f6d20f5035b790ddacef395140e0b9f03 | 4,372 | ads | Ada | tools/scitools/conf/understand/ada/ada05/s-valuns.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/ada05/s-valuns.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/s-valuns.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ U N S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2006, 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. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains routines for scanning modular Unsigned
-- values for use in Text_IO.Modular_IO, and the Value attribute.
with System.Unsigned_Types;
package System.Val_Uns is
pragma Pure;
function Scan_Raw_Unsigned
(Str : String;
Ptr : access Integer;
Max : Integer) return System.Unsigned_Types.Unsigned;
-- This function scans the string starting at Str (Ptr.all) for a valid
-- integer according to the syntax described in (RM 3.5(43)). The substring
-- scanned extends no further than Str (Max). Note: this does not scan
-- leading or trailing blanks, nor leading sign.
--
-- There are three cases for the return:
--
-- If a valid integer is found, then Ptr.all is updated past the last
-- character of the integer.
--
-- If no valid integer is found, then Ptr.all points either to an initial
-- non-digit character, or to Max + 1 if the field is all spaces and the
-- exception Constraint_Error is raised.
--
-- If a syntactically valid integer is scanned, but the value is out of
-- range, or, in the based case, the base value is out of range or there
-- is an out of range digit, then Ptr.all points past the integer, and
-- Constraint_Error is raised.
--
-- Note: these rules correspond to the requirements for leaving the pointer
-- positioned in Text_IO.Get
--
-- Note: if Str is empty, i.e. if Max is less than Ptr, then this is a
-- special case of an all-blank string, and Ptr is unchanged, and hence
-- is greater than Max as required in this case.
function Scan_Unsigned
(Str : String;
Ptr : access Integer;
Max : Integer) return System.Unsigned_Types.Unsigned;
-- Same as Scan_Raw_Unsigned, except scans optional leading
-- blanks, and an optional leading plus sign.
-- Note: if a minus sign is present, Constraint_Error will be raised.
-- Note: trailing blanks are not scanned.
function Value_Unsigned
(Str : String) return System.Unsigned_Types.Unsigned;
-- Used in computing X'Value (Str) where X is a modular integer type whose
-- modulus does not exceed the range of System.Unsigned_Types.Unsigned. Str
-- is the string argument of the attribute. Constraint_Error is raised if
-- the string is malformed, or if the value is out of range.
end System.Val_Uns;
| 49.123596 | 79 | 0.544373 |
41dc37874b46f64b820e28a9f7e7d44e9095dd2c | 6,893 | adb | Ada | tests/trades-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 80 | 2017-04-08T23:14:07.000Z | 2022-02-10T22:30:51.000Z | tests/trades-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 89 | 2017-06-24T08:18:26.000Z | 2021-11-12T04:37:36.000Z | tests/trades-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 9 | 2018-04-14T16:37:25.000Z | 2020-03-21T14:33:49.000Z | -- 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 Trades.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.Containers; use Ada.Containers;
with Maps; use Maps;
-- begin read only
-- end read only
package body Trades.Test_Data.Tests is
-- begin read only
-- id:2.2/01/
--
-- This section can be used to add global variables and other elements.
--
-- end read only
-- begin read only
-- end read only
-- begin read only
procedure Wrap_Test_BuyItems_295d66_e10e97
(BaseItemIndex: BaseCargo_Container.Extended_Index; Amount: String) is
begin
begin
pragma Assert(Amount'Length > 0);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(trades.ads:0):Test_BuyItems test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Trades.BuyItems
(BaseItemIndex, Amount);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(trades.ads:0:):Test_BuyItems test commitment violated");
end;
end Wrap_Test_BuyItems_295d66_e10e97;
-- end read only
-- begin read only
procedure Test_BuyItems_test_buyitems(Gnattest_T: in out Test);
procedure Test_BuyItems_295d66_e10e97(Gnattest_T: in out Test) renames
Test_BuyItems_test_buyitems;
-- id:2.2/295d66b8c191f255/BuyItems/1/0/test_buyitems/
procedure Test_BuyItems_test_buyitems(Gnattest_T: in out Test) is
procedure BuyItems
(BaseItemIndex: BaseCargo_Container.Extended_Index;
Amount: String) renames
Wrap_Test_BuyItems_295d66_e10e97;
-- end read only
pragma Unreferenced(Gnattest_T);
BaseIndex: constant Natural :=
SkyMap(Player_Ship.Sky_X, Player_Ship.Sky_Y).BaseIndex;
OldAmount: constant Natural := Sky_Bases(BaseIndex).Cargo(2).Amount;
begin
if OldAmount = 0 then
Sky_Bases(BaseIndex).Cargo(2).Amount := 2;
end if;
BuyItems(2, "1");
Sky_Bases(BaseIndex).Cargo(2).Amount := OldAmount;
Assert(True, "This test can only crash.");
-- begin read only
end Test_BuyItems_test_buyitems;
-- end read only
-- begin read only
procedure Wrap_Test_SellItems_079195_4009e6
(ItemIndex: Inventory_Container.Extended_Index; Amount: String) is
begin
begin
pragma Assert
(ItemIndex in
Player_Ship.Cargo.First_Index .. Player_Ship.Cargo.Last_Index and
Amount'Length > 0);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(trades.ads:0):Test_SellItems test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Trades.SellItems(ItemIndex, Amount);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(trades.ads:0:):Test_SellItems test commitment violated");
end;
end Wrap_Test_SellItems_079195_4009e6;
-- end read only
-- begin read only
procedure Test_SellItems_test_sellitems(Gnattest_T: in out Test);
procedure Test_SellItems_079195_4009e6(Gnattest_T: in out Test) renames
Test_SellItems_test_sellitems;
-- id:2.2/0791958f8fd18173/SellItems/1/0/test_sellitems/
procedure Test_SellItems_test_sellitems(Gnattest_T: in out Test) is
procedure SellItems
(ItemIndex: Inventory_Container.Extended_Index; Amount: String) renames
Wrap_Test_SellItems_079195_4009e6;
-- end read only
pragma Unreferenced(Gnattest_T);
OldAmount: constant Positive := Player_Ship.Cargo(2).Amount;
begin
SellItems(2, "1");
Player_Ship.Cargo(2).Amount := OldAmount;
Player_Ship.Crew(2).Payment(2) := 1;
Player_Ship.Crew(3).Payment(2) := 4;
Player_Ship.Crew(4).Payment(2) := 1;
SellItems(2, "1");
Player_Ship.Cargo(2).Amount := OldAmount;
Player_Ship.Crew(2).Payment(2) := 0;
Player_Ship.Crew(3).Payment(2) := 0;
Player_Ship.Crew(4).Payment(2) := 0;
Assert(True, "This tests can only crash.");
-- begin read only
end Test_SellItems_test_sellitems;
-- end read only
-- begin read only
procedure Wrap_Test_GenerateTraderCargo_9d8e19_e2d9dd
(ProtoIndex: Unbounded_String) is
begin
begin
pragma Assert
(Proto_Ships_Container.Contains(Proto_Ships_List, ProtoIndex));
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(trades.ads:0):Test_GenerateTraderCargo test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Trades.GenerateTraderCargo
(ProtoIndex);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(trades.ads:0:):Test_GenerateTraderCargo test commitment violated");
end;
end Wrap_Test_GenerateTraderCargo_9d8e19_e2d9dd;
-- end read only
-- begin read only
procedure Test_GenerateTraderCargo_test_generatetradercargo
(Gnattest_T: in out Test);
procedure Test_GenerateTraderCargo_9d8e19_e2d9dd
(Gnattest_T: in out Test) renames
Test_GenerateTraderCargo_test_generatetradercargo;
-- id:2.2/9d8e192e181a5de1/GenerateTraderCargo/1/0/test_generatetradercargo/
procedure Test_GenerateTraderCargo_test_generatetradercargo
(Gnattest_T: in out Test) is
procedure GenerateTraderCargo(ProtoIndex: Unbounded_String) renames
Wrap_Test_GenerateTraderCargo_9d8e19_e2d9dd;
-- end read only
pragma Unreferenced(Gnattest_T);
begin
GenerateTraderCargo(To_Unbounded_String("96"));
Assert(TraderCargo.Length > 0, "Failed to generate cargo for trade.");
-- begin read only
end Test_GenerateTraderCargo_test_generatetradercargo;
-- 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 Trades.Test_Data.Tests;
| 32.060465 | 92 | 0.685043 |
2f83c98da1c3b0eaf27b02d41162bfa2bb537d28 | 10,548 | ads | Ada | src/asis/asis-iterator.ads | jquorning/dynamo | 10d68571476c270b8e45a9c5ef585fa9139b0d05 | [
"Apache-2.0"
] | 15 | 2015-01-18T23:04:19.000Z | 2022-03-01T20:27:08.000Z | src/asis/asis-iterator.ads | jquorning/dynamo | 10d68571476c270b8e45a9c5ef585fa9139b0d05 | [
"Apache-2.0"
] | 16 | 2018-06-10T07:09:30.000Z | 2022-03-26T18:28:40.000Z | src/asis/asis-iterator.ads | jquorning/dynamo | 10d68571476c270b8e45a9c5ef585fa9139b0d05 | [
"Apache-2.0"
] | 3 | 2015-11-11T18:00:14.000Z | 2022-01-30T23:08:45.000Z | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- A S I S . I T E R A T O R --
-- --
-- S p e c --
-- --
-- Copyright (c) 2006, Free Software Foundation, Inc. --
-- --
-- This specification is adapted from the Ada Semantic Interface --
-- Specification Standard (ISO/IEC 15291) 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. The copyright notice --
-- above, and the license provisions that follow apply solely to the --
-- contents of the part following the private keyword. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.adacore.com). --
-- --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- 14 package Asis.Iterator
------------------------------------------------------------------------------
------------------------------------------------------------------------------
package Asis.Iterator is
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Asis.Iterator encapsulates the generic procedure Traverse_Element which
-- allows an ASIS application to perform an iterative traversal of a
-- logical syntax tree. It requires the use of two generic procedures,
-- Pre_Operation, which identifies processing for the traversal, and
-- Post_Operation, which identifies processing after the traversal.
-- The State_Information allows processing state to be passed during the
-- iteration of Traverse_Element.
--
-- Package Asis.Iterator is established as a child package to highlight the
-- iteration capability and to facilitate the translation of ASIS to IDL.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- 14.1 procedure Traverse_Element
------------------------------------------------------------------------------
generic
type State_Information is limited private;
with procedure Pre_Operation
(Element : Asis.Element;
Control : in out Traverse_Control;
State : in out State_Information) is <>;
with procedure Post_Operation
(Element : Asis.Element;
Control : in out Traverse_Control;
State : in out State_Information) is <>;
procedure Traverse_Element
(Element : Asis.Element;
Control : in out Traverse_Control;
State : in out State_Information);
------------------------------------------------------------------------------
-- Element - Specifies the initial element in the traversal
-- Control - Specifies what next to do with the traversal
-- State_Information - Specifies other information for the traversal
--
-- Traverses the element and all its component elements, if any.
-- Component elements are all elements that can be obtained by a combination
-- of the ASIS structural queries appropriate for the given element.
--
-- If an element has one or more component elements, each is called a child
-- element. An element's parent element is its Enclosing_Element. Children
-- with the same parent are sibling elements. The type Traverse_Control uses
-- the terms children and siblings to control the traverse.
--
-- For each element, the formal procedure Pre_Operation is called when first
-- visiting the element. Each of that element's children are then visited
-- and finally the formal procedure Post_Operation is called for the element.
--
-- The order of Element traversal is in terms of the textual representation of
-- the Elements. Elements are traversed in left-to-right and top-to-bottom
-- order.
--
-- Traversal of Implicit Elements:
--
-- Implicit elements are not traversed by default. However, they may be
-- explicitly queried and then passed to the traversal instance. Implicit
-- elements include implicit predefined operator declarations, implicit
-- inherited subprogram declarations, implicit expanded generic specifications
-- and bodies, default expressions supplied to procedure, function, and entry
-- calls, etc.
--
-- Applications that wish to traverse these implicit Elements shall query for
-- them at the appropriate places in a traversal and then recursively call
-- their instantiation of the traversal generic. (Implicit elements provided
-- by ASIS do not cover all possible Ada implicit constructs. For example,
-- implicit initializations for variables of an access type are not provided
-- by ASIS.)
--
-- Traversal of Association lists:
--
-- Argument and association lists for procedure calls, function calls, entry
-- calls, generic instantiations, and aggregates are traversed in their
-- unnormalized forms, as if the Normalized parameter was False for those
-- queries. Implementations that always normalize certain associations may
-- return Is_Normalized associations. See the Implementation Permissions
-- for the queries Discriminant_Associations, Generic_Actual_Part,
-- Call_Statement_Parameters, Record_Component_Associations, or
-- Function_Call_Parameters.
--
-- Applications that wish to explicitly traverse normalized associations can
-- do so by querying the appropriate locations in order to obtain the
-- normalized list. The list can then be traversed by recursively calling
-- the traverse instance. Once that sub-traversal is finished, the Control
-- parameter can be set to Abandon_Children to skip processing of the
-- unnormalized argument list.
--
-- Traversal can be controlled with the Control parameter.
--
-- A call to an instance of Traverse_Element will not result in calls to
-- Pre_Operation or Post_Operation unless Control is set to Continue.
--
-- The subprograms matching Pre_Operation and Post_Operation can set
-- their Control parameter to affect the traverse:
--
-- Continue -- Continues the normal depth-first traversal.
--
-- Abandon_Children -- Prevents traversal of the current element's
-- -- children.
-- -- If set in a Pre_Operation, traversal picks up
-- -- with the next sibling element of the current
-- -- element.
-- -- If set in a Post_Operation, this is the
-- -- same as Continue, all children will already
-- -- have been traversed. Traversal picks up with
-- -- the Post_Operation of the parent.
--
-- Abandon_Siblings -- Prevents traversal of the current element's
-- -- children and remaining siblings.
-- -- If set in a Pre_Operation, this abandons the
-- -- associated Post_Operation for the current
-- -- element. Traversal picks up with the
-- -- Post_Operation of the parent.
-- -- If set in a Post_Operation, traversal picks
-- -- up with the Post_Operation of the parent.
--
-- Terminate_Immediately -- Does exactly that.
--
-- Raises ASIS_Inappropriate_Element if the element is a Nil_Element
------------------------------------------------------------------------------
end Asis.Iterator;
| 58.6 | 79 | 0.529863 |
29dc72e9edf7f4a49737c9ff431c71e34f08588f | 6,431 | adb | Ada | src/arch/socs/stm32f439/soc-dma.adb | PThierry/ewok-kernel | e9c23cb3fd0afd8378bc27418778e1117d5e16cc | [
"Apache-2.0"
] | null | null | null | src/arch/socs/stm32f439/soc-dma.adb | PThierry/ewok-kernel | e9c23cb3fd0afd8378bc27418778e1117d5e16cc | [
"Apache-2.0"
] | null | null | null | src/arch/socs/stm32f439/soc-dma.adb | PThierry/ewok-kernel | e9c23cb3fd0afd8378bc27418778e1117d5e16cc | [
"Apache-2.0"
] | null | null | null | --
-- Copyright 2018 The wookey project team <[email protected]>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with soc.interrupts; use soc.interrupts;
with soc.rcc;
package body soc.dma
with spark_mode => off
is
procedure enable_clocks
is
begin
soc.rcc.RCC.AHB1ENR.DMA1EN := true;
soc.rcc.RCC.AHB1ENR.DMA2EN := true;
end enable_clocks;
procedure enable
(controller : in out t_dma_periph;
stream : in t_stream_index)
is begin
controller.streams(stream).CR.EN := true;
end enable;
procedure disable
(controller : in out t_dma_periph;
stream : in t_stream_index)
is begin
controller.streams(stream).CR.EN := false;
end disable;
procedure get_dma_stream_from_interrupt
(intr : in soc.interrupts.t_interrupt;
dma_id : out t_dma_periph_index;
stream : out t_stream_index;
success : out boolean)
is
begin
case intr is
when INT_DMA1_STREAM0 => dma_id := ID_DMA1; stream := 0; success := true;
when INT_DMA1_STREAM1 => dma_id := ID_DMA1; stream := 1; success := true;
when INT_DMA1_STREAM2 => dma_id := ID_DMA1; stream := 2; success := true;
when INT_DMA1_STREAM3 => dma_id := ID_DMA1; stream := 3; success := true;
when INT_DMA1_STREAM4 => dma_id := ID_DMA1; stream := 4; success := true;
when INT_DMA1_STREAM5 => dma_id := ID_DMA1; stream := 5; success := true;
when INT_DMA1_STREAM6 => dma_id := ID_DMA1; stream := 6; success := true;
when INT_DMA1_STREAM7 => dma_id := ID_DMA1; stream := 7; success := true;
when INT_DMA2_STREAM0 => dma_id := ID_DMA2; stream := 0; success := true;
when INT_DMA2_STREAM1 => dma_id := ID_DMA2; stream := 1; success := true;
when INT_DMA2_STREAM2 => dma_id := ID_DMA2; stream := 2; success := true;
when INT_DMA2_STREAM3 => dma_id := ID_DMA2; stream := 3; success := true;
when INT_DMA2_STREAM4 => dma_id := ID_DMA2; stream := 4; success := true;
when INT_DMA2_STREAM5 => dma_id := ID_DMA2; stream := 5; success := true;
when INT_DMA2_STREAM6 => dma_id := ID_DMA2; stream := 6; success := true;
when INT_DMA2_STREAM7 => dma_id := ID_DMA2; stream := 7; success := true;
when others => success := false;
end case;
end get_dma_stream_from_interrupt;
function soc_is_dma_irq
(intr : soc.interrupts.t_interrupt)
return boolean
is
begin
case intr is
when INT_DMA1_STREAM0 |
INT_DMA1_STREAM1 |
INT_DMA1_STREAM2 |
INT_DMA1_STREAM3 |
INT_DMA1_STREAM4 |
INT_DMA1_STREAM5 |
INT_DMA1_STREAM6 |
INT_DMA1_STREAM7 |
INT_DMA2_STREAM0 |
INT_DMA2_STREAM1 |
INT_DMA2_STREAM2 |
INT_DMA2_STREAM3 |
INT_DMA2_STREAM4 |
INT_DMA2_STREAM5 |
INT_DMA2_STREAM6 |
INT_DMA2_STREAM7 =>
return true;
when others =>
return false;
end case;
end soc_is_dma_irq;
function get_interrupt_status
(controller : t_dma_periph;
stream : t_stream_index) return t_dma_stream_int_status
is
status : t_dma_stream_int_status;
begin
case stream is
when 0 => status := controller.LISR.stream_0;
when 1 => status := controller.LISR.stream_1;
when 2 => status := controller.LISR.stream_2;
when 3 => status := controller.LISR.stream_3;
when 4 => status := controller.HISR.stream_4;
when 5 => status := controller.HISR.stream_5;
when 6 => status := controller.HISR.stream_6;
when 7 => status := controller.HISR.stream_7;
end case;
return status;
end get_interrupt_status;
procedure set_IFCR
(controller : in out t_dma_periph;
stream : in t_stream_index;
IFCR : in t_dma_stream_clear_interrupts)
is
begin
case stream is
when 0 => controller.LIFCR.stream_0 := IFCR;
when 1 => controller.LIFCR.stream_1 := IFCR;
when 2 => controller.LIFCR.stream_2 := IFCR;
when 3 => controller.LIFCR.stream_3 := IFCR;
when 4 => controller.HIFCR.stream_4 := IFCR;
when 5 => controller.HIFCR.stream_5 := IFCR;
when 6 => controller.HIFCR.stream_6 := IFCR;
when 7 => controller.HIFCR.stream_7 := IFCR;
end case;
end set_IFCR;
procedure clear_all_interrupts
(controller : in out t_dma_periph;
stream : in t_stream_index)
is
IFCR : constant t_dma_stream_clear_interrupts := (others => true);
begin
set_IFCR (controller, stream, IFCR);
end clear_all_interrupts;
procedure reset_stream
(controller : in out t_dma_periph;
stream : in t_stream_index)
is
begin
controller.streams(stream).CR.EN := false;
clear_all_interrupts (controller, stream);
-- Setting default values to CR register
controller.streams(stream).CR := (others => <>);
controller.streams(stream).NDTR.NDT := 0;
controller.streams(stream).PAR := 0;
controller.streams(stream).M0AR := 0;
controller.streams(stream).M1AR := 0;
-- Setting default values to FCR register
controller.streams(stream).FCR := (others => <>);
end reset_stream;
procedure reset_streams
is
begin
for stream in t_stream_index'range loop
reset_stream (DMA1, stream);
end loop;
for stream in t_stream_index'range loop
reset_stream (DMA2, stream);
end loop;
end reset_streams;
end soc.dma;
| 31.995025 | 82 | 0.618877 |
5954062fcdc90bf5ba9313c25299d9d8eb7b4ce8 | 9,514 | adb | Ada | source/mpc-root_c.adb | ytomino/gmp-ada | 72b08a0e8dae5c8576c4d48ef580eb95a5c5455b | [
"Unlicense"
] | 4 | 2017-12-20T00:16:36.000Z | 2020-09-08T09:35:25.000Z | source/mpc-root_c.adb | ytomino/gmp-ada | 72b08a0e8dae5c8576c4d48ef580eb95a5c5455b | [
"Unlicense"
] | null | null | null | source/mpc-root_c.adb | ytomino/gmp-ada | 72b08a0e8dae5c8576c4d48ef580eb95a5c5455b | [
"Unlicense"
] | null | null | null | with MPFR.Root_FR.Inside;
with System;
with C.mpfr;
with C.string;
package body MPC.Root_C is
use type C.signed_int;
procedure memcpy (dst, src : System.Address; n : C.size_t)
with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy";
-- implementation
function Re (X : MP_Complex) return MPFR.Root_FR.MP_Float is
Source : C.mpfr.mpfr_t renames Controlled.Constant_Reference (X).re;
Dummy : C.signed_int;
begin
return Result :
MPFR.Root_FR.MP_Float (
MPFR.Precision (C.mpfr.mpfr_get_prec (Source (0)'Access)))
do
Dummy :=
C.mpfr.mpfr_set4 (
MPFR.Root_FR.Inside.Reference (Result),
Source (0)'Access,
C.mpfr.MPFR_RNDN,
C.mpfr.mpfr_sgn (Source (0)'Access));
end return;
end Re;
function Im (X : MP_Complex) return MPFR.Root_FR.MP_Float is
Source : C.mpfr.mpfr_t renames Controlled.Constant_Reference (X).im;
Dummy : C.signed_int;
begin
return Result :
MPFR.Root_FR.MP_Float (
MPFR.Precision (C.mpfr.mpfr_get_prec (Source (0)'Access)))
do
Dummy :=
C.mpfr.mpfr_set4 (
MPFR.Root_FR.Inside.Reference (Result),
Source (0)'Access,
C.mpfr.MPFR_RNDN,
C.mpfr.mpfr_sgn (Source (0)'Access));
end return;
end Im;
function Compose (Re, Im : MPFR.Root_FR.MP_Float) return MP_Complex is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Re.Precision, Im.Precision) do
Dummy :=
C.mpc.mpc_set_fr_fr (
Controlled.Reference (Result),
MPFR.Root_FR.Inside.Constant_Reference (Re),
MPFR.Root_FR.Inside.Constant_Reference (Im),
C.mpc.MPC_RNDNN);
end return;
end Compose;
function Compose (
Re : Long_Long_Float;
Real_Precision : MPFR.Precision;
Im : MPFR.Root_FR.MP_Float)
return MP_Complex
is
Im_Source : constant not null access constant C.mpfr.mpfr_struct :=
MPFR.Root_FR.Inside.Constant_Reference (Im);
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Im.Precision) do
declare
Raw_Result : constant not null access C.mpc.mpc_struct :=
Controlled.Reference (Result);
begin
Dummy :=
C.mpfr.mpfr_set_ld (
Raw_Result.re (0)'Access,
C.long_double (Re),
C.mpfr.MPFR_RNDN);
Dummy :=
C.mpfr.mpfr_set4 (
Raw_Result.im (0)'Access,
Im_Source,
C.mpfr.MPFR_RNDN,
C.mpfr.mpfr_sgn (Im_Source));
end;
end return;
end Compose;
function Image (
Value : MP_Complex;
Base : Number_Base := 10;
Rounding : MPC.Rounding)
return String
is
Image : constant C.char_ptr :=
C.mpc.mpc_get_str (
C.signed_int (Base),
0,
Controlled.Constant_Reference (Value),
C.mpc.mpc_rnd_t (Rounding));
Length : constant Natural := Integer (C.string.strlen (Image));
Ada_Image : String (1 .. Length);
for Ada_Image'Address use Image.all'Address;
begin
return Result : String (1 .. Length) do
Result := Ada_Image;
C.mpc.mpc_free_str (Image);
end return;
end Image;
function Value (
Image : String;
Base : Number_Base := 10;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Image_Length : constant C.size_t := Image'Length;
C_Image : C.char_array (0 .. Image_Length); -- NUL
begin
memcpy (C_Image'Address, Image'Address, Image_Length);
C_Image (Image_Length) := C.char'Val (0);
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
if C.mpc.mpc_set_str (
Controlled.Reference (Result),
C_Image (C_Image'First)'Access,
C.signed_int (Base),
C.mpc.mpc_rnd_t (Rounding)) < 0
then
raise Constraint_Error;
end if;
end return;
end Value;
function "=" (Left, Right : MP_Complex) return Boolean is
begin
return C.mpc.mpc_cmp (
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right)) = 0;
end "=";
function "<" (Left, Right : MP_Complex) return Boolean is
begin
return C.mpc.mpc_cmp (
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right)) < 0;
end "<";
function ">" (Left, Right : MP_Complex) return Boolean is
begin
return C.mpc.mpc_cmp (
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right)) > 0;
end ">";
function "<=" (Left, Right : MP_Complex) return Boolean is
begin
return C.mpc.mpc_cmp (
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right)) <= 0;
end "<=";
function ">=" (Left, Right : MP_Complex) return Boolean is
begin
return C.mpc.mpc_cmp (
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right)) >= 0;
end ">=";
function Copy (
Right : MP_Complex;
Real_Precision : MPFR.Precision := MPFR.Default_Precision;
Imaginary_Precision : MPFR.Precision := MPFR.Default_Precision;
Rounding : MPC.Rounding := Default_Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_set (
Controlled.Reference (Result),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Copy;
function Negative (
Right : MP_Complex;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_neg (
Controlled.Reference (Result),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Negative;
function Add (
Left, Right : MP_Complex;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_add (
Controlled.Reference (Result),
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Add;
function Subtract (
Left, Right : MP_Complex;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_sub (
Controlled.Reference (Result),
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Subtract;
function Multiply (
Left, Right : MP_Complex;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_mul (
Controlled.Reference (Result),
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Multiply;
function Divide (
Left, Right : MP_Complex;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_div (
Controlled.Reference (Result),
Controlled.Constant_Reference (Left),
Controlled.Constant_Reference (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Divide;
function Power (
Left : MP_Complex;
Right : Integer;
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision;
Rounding : MPC.Rounding)
return MP_Complex
is
Dummy : C.signed_int;
begin
return Result : MP_Complex (Real_Precision, Imaginary_Precision) do
Dummy :=
C.mpc.mpc_pow_si (
Controlled.Reference (Result),
Controlled.Constant_Reference (Left),
C.signed_long (Right),
C.mpc.mpc_rnd_t (Rounding));
end return;
end Power;
package body Controlled is
function Create (
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision)
return MP_Complex is
begin
return Result : MP_Complex := (Ada.Finalization.Controlled with Raw => <>) do
C.mpc.mpc_init3 (
Result.Raw (0)'Access,
C.mpfr.mpfr_prec_t (Real_Precision),
C.mpfr.mpfr_prec_t (Imaginary_Precision));
end return;
end Create;
function Reference (Item : in out Root_C.MP_Complex)
return not null access C.mpc.mpc_struct is
begin
return Item.Data.Raw (0)'Unchecked_Access;
end Reference;
function Constant_Reference (Item : Root_C.MP_Complex)
return not null access constant C.mpc.mpc_struct is
begin
return Item.Data.Raw (0)'Unchecked_Access;
end Constant_Reference;
overriding procedure Initialize (Object : in out MP_Complex) is
begin
raise Program_Error;
end Initialize;
overriding procedure Adjust (Object : in out MP_Complex) is
Source : constant C.mpc.mpc_t := Object.Raw; -- move
Dummy : C.signed_int;
begin
C.mpc.mpc_init3 (
Object.Raw (0)'Access,
C.mpfr.mpfr_get_prec (Source (0).re (0)'Access),
C.mpfr.mpfr_get_prec (Source (0).im (0)'Access));
Dummy :=
C.mpc.mpc_set (Object.Raw (0)'Access, Source (0)'Access, C.mpc.MPC_RNDNN);
end Adjust;
overriding procedure Finalize (Object : in out MP_Complex) is
begin
C.mpc.mpc_clear (Object.Raw (0)'Access);
end Finalize;
end Controlled;
end MPC.Root_C;
| 26.724719 | 80 | 0.69918 |
41c08a75180f9f05b6f4d9588ac906b9f4c38bc9 | 5,458 | adb | Ada | tools/xml2ayacc/encoding/encodings-maps-utf_8.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | 4 | 2016-02-05T15:51:56.000Z | 2022-03-25T20:38:32.000Z | tools/xml2ayacc/encoding/encodings-maps-utf_8.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | tools/xml2ayacc/encoding/encodings-maps-utf_8.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | --------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - - --
-- Read copyright and license at the end of this file --
--------------------------------------------------------
package body Encodings.Maps.UTF_8 is
------------
-- Decode --
------------
procedure Decode
(Text : in Raw_String;
Text_Last : out Natural;
Result : out Wide_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.UTF_8)
is
Index : Positive := Text'First;
Value : Natural;
T_Last : Natural := Text'First - 1;
R_Last : Natural := Result'First - 1;
begin
for I in Result'Range loop
exit when Index > Text'Last;
Value := Character'Pos (Text (Index));
case Value is
when 16#E0# .. 16#ff# =>
exit when Index > Text'Last - 2;
Value := (Value - 16#E0#) * 2 ** 6;
Index := Index + 1;
Value := Value + Character'Pos (Text (Index)) - 16#80#;
Value := Value * 2 ** 6;
Index := Index + 1;
Value := Value + Character'Pos (Text (Index)) - 16#80#;
when 16#C0# .. 16#DF# =>
exit when Index > Text'Last - 1;
Value := (Value - 16#C0#) * 2 ** 6;
Index := Index + 1;
Value := Value + Character'Pos (Text (Index)) - 16#80#;
when others =>
null;
end case;
Result (I) := Wide_Character'Val (Value);
T_Last := Index;
R_Last := I;
Index := Index + 1;
end loop;
Text_Last := T_Last;
Result_Last := R_Last;
end Decode;
------------
-- Encode --
------------
procedure Encode
(Text : in Wide_String;
Text_Last : out Natural;
Result : out Raw_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.UTF_8)
is
Index : Positive := Result'First;
Value : Natural;
T_Last : Natural := Text'First - 1;
R_Last : Natural := Result'First - 1;
begin
for I in Text'Range loop
exit when Index > Result'Last;
Value := Wide_Character'Pos (Text (I));
case Value is
when 16#0000# .. 16#007f# =>
Result (Index) := Character'Val (Value);
when 16#0080# .. 16#07ff# =>
exit when Index > Result'Last - 1;
Result (Index) := Character'Val (16#C0# + Value / 2 ** 6);
Index := Index + 1;
Result (Index) := Character'Val (16#80# + Value mod 2 ** 6);
when others =>
exit when Index > Result'Last - 2;
Result (Index) := Character'Val (16#E0# + Value / 2 ** 12);
Index := Index + 1;
Result (Index) :=
Character'Val (16#80# + Value mod 2 ** 12 / 2 ** 6);
Index := Index + 1;
Result (Index) := Character'Val (16#80# + Value mod 2 ** 6);
end case;
T_Last := I;
R_Last := Index;
Index := Index + 1;
end loop;
Text_Last := T_Last;
Result_Last := R_Last;
end Encode;
begin
Encoder_List (Encodings.UTF_8) := Encode'Access;
Decoder_List (Encodings.UTF_8) := Decode'Access;
end Encodings.Maps.UTF_8;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * Neither the name of the Maxim Reznik, IE nor the names of its
-- contributors may be used to endorse or promote products derived from
-- this software without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
| 36.630872 | 79 | 0.52107 |
41fb956e1a2fdc5bb3e3abe8d62fc263443f8039 | 6,356 | adb | Ada | arch/ARM/STM32/driver_demos/demo_adc_dma/src/demo_adc_vbat_dma.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | arch/ARM/STM32/driver_demos/demo_adc_dma/src/demo_adc_vbat_dma.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | arch/ARM/STM32/driver_demos/demo_adc_dma/src/demo_adc_vbat_dma.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-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. --
-- --
------------------------------------------------------------------------------
-- This program demonstrates reading the VBat (battery voltage) value from
-- an ADC unit, using DMA.
-- The programs displays the battery voltage value so it assumes a display of
-- some sort.
with Ada.Real_Time; use Ada.Real_Time;
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with STM32.Board; use STM32.Board;
with STM32.Device; use STM32.Device;
with HAL; use HAL;
with STM32.ADC; use STM32.ADC;
with STM32.DMA; use STM32.DMA;
with STM32.GPIO; use STM32.GPIO;
with LCD_Std_Out;
procedure Demo_ADC_VBat_DMA is
Controller : DMA_Controller renames DMA_2;
Stream : constant DMA_Stream_Selector := Stream_0;
Counts : UInt16 with Volatile;
-- The raw sample from the ADC conversion of the VBat input
Voltage : UInt32; -- in millivolts
-- the converted voltage representing the VBat level, in millivolts
procedure Print (X, Y : Natural; Value : UInt32; Suffix : String := "");
procedure Initialize_DMA;
procedure Initialize_ADC;
-----------
-- Print --
-----------
procedure Print (X, Y : Natural; Value : UInt32; Suffix : String := "") is
Value_Image : constant String := Value'Img;
begin
LCD_Std_Out.Put (X, Y, Value_Image (2 .. Value_Image'Last) & Suffix & " ");
end Print;
--------------------
-- Initialize_DMA --
--------------------
procedure Initialize_DMA is
Config : DMA_Stream_Configuration;
begin
Enable_Clock (Controller);
Reset (Controller, Stream);
Config.Channel := Channel_0;
Config.Direction := Peripheral_To_Memory;
Config.Memory_Data_Format := HalfWords;
Config.Peripheral_Data_Format := HalfWords;
Config.Increment_Peripheral_Address := False;
Config.Increment_Memory_Address := False;
Config.Operation_Mode := Circular_Mode;
Config.Priority := Priority_Very_High;
Config.FIFO_Enabled := False;
Config.Memory_Burst_Size := Memory_Burst_Single;
Config.Peripheral_Burst_Size := Peripheral_Burst_Single;
Configure (Controller, Stream, Config);
Clear_All_Status (Controller, Stream);
end Initialize_DMA;
--------------------
-- Initialize_ADC --
--------------------
procedure Initialize_ADC is
All_Regular_Conversions : constant Regular_Channel_Conversions :=
(1 => (Channel => VBat.Channel, Sample_Time => Sample_480_Cycles));
begin
Enable_Clock (VBat.ADC.all);
Reset_All_ADC_Units;
Configure_Common_Properties
(Mode => Independent,
Prescalar => PCLK2_Div_2,
DMA_Mode => Disabled,
Sampling_Delay => Sampling_Delay_5_Cycles);
Configure_Unit
(VBat.ADC.all,
Resolution => ADC_Resolution_12_Bits,
Alignment => Right_Aligned);
Configure_Regular_Conversions
(VBat.ADC.all,
Continuous => True,
Trigger => Software_Triggered,
Enable_EOC => False,
Conversions => All_Regular_Conversions);
Enable_DMA (VBat.ADC.all);
Enable_DMA_After_Last_Transfer (VBat.ADC.all);
end Initialize_ADC;
begin
Initialize_LEDs;
delay until Clock + Milliseconds (500);
LCD_Std_Out.Clear_Screen;
Initialize_DMA;
Initialize_ADC;
Enable (VBat.ADC.all);
Start_Transfer
(Controller,
Stream,
Source => Data_Register_Address (VBat.ADC.all),
Destination => Counts'Address,
Data_Count => 1); -- ie, 1 halfword
Start_Conversion (VBat.ADC.all);
loop
Voltage := ((UInt32 (Counts) * VBat_Bridge_Divisor) * ADC_Supply_Voltage) / 16#FFF#;
-- 16#FFF# because we are using 12-bit conversion resolution
Print (0, 24, Voltage, "mv");
Green_LED.Toggle;
delay until Clock + Milliseconds (100);
end loop;
end Demo_ADC_VBat_DMA;
| 36.739884 | 90 | 0.582914 |
414fd35ec2df9a52bdb44d3665e4c5768f7a2b5e | 1,370 | ads | Ada | src/syscalls/ewok-syscalls-init.ads | vdh-anssi/ewok-kernel | 9a88dcae16659c212c4123b7a9272c9dfa51f85a | [
"Apache-2.0"
] | 65 | 2018-09-26T09:10:11.000Z | 2022-01-30T21:17:37.000Z | src/syscalls/ewok-syscalls-init.ads | vdh-anssi/ewok-kernel | 9a88dcae16659c212c4123b7a9272c9dfa51f85a | [
"Apache-2.0"
] | 22 | 2019-04-07T15:15:54.000Z | 2020-10-15T12:45:54.000Z | src/syscalls/ewok-syscalls-init.ads | vdh-anssi/ewok-kernel | 9a88dcae16659c212c4123b7a9272c9dfa51f85a | [
"Apache-2.0"
] | 10 | 2018-09-27T09:43:08.000Z | 2021-01-29T22:50:17.000Z | --
-- Copyright 2018 The wookey project team <[email protected]>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with ewok.tasks_shared;
package ewok.syscalls.init
with spark_mode => on
is
procedure svc_register_device
(caller_id : in ewok.tasks_shared.t_task_id;
params : in t_parameters;
mode : in ewok.tasks_shared.t_task_mode);
procedure svc_init_done
(caller_id : in ewok.tasks_shared.t_task_id;
mode : in ewok.tasks_shared.t_task_mode);
procedure svc_get_taskid
(caller_id : in ewok.tasks_shared.t_task_id;
params : in t_parameters;
mode : in ewok.tasks_shared.t_task_mode);
end ewok.syscalls.init;
| 31.136364 | 79 | 0.685401 |
58759599f580f83ea9fc3b4ab0201641339cdf61 | 5,753 | adb | Ada | boards/stm32f429_discovery/src/framebuffer_ili9341.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | boards/stm32f429_discovery/src/framebuffer_ili9341.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | boards/stm32f429_discovery/src/framebuffer_ili9341.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with STM32.Board; use STM32.Board;
with STM32.Device; use STM32.Device;
with STM32.GPIO; use STM32.GPIO;
with STM32.SPI; use STM32.SPI;
with HAL.SPI;
package body Framebuffer_ILI9341 is
LCD_SPI : SPI_Port renames SPI_5;
LCD_WIDTH : constant := 240;
LCD_HEIGHT : constant := 320;
procedure LCD_SPI_Init;
procedure LCD_Pins_Init;
------------------
-- LCD_SPI_Init --
------------------
procedure LCD_SPI_Init
is
Conf : GPIO_Port_Configuration;
SPI_Conf : SPI_Configuration;
SPI_Pins : constant GPIO_Points :=
(SPI5_SCK, SPI5_MOSI, SPI5_MISO);
begin
Enable_Clock (SPI_Pins);
Enable_Clock (LCD_SPI);
Conf.Speed := Speed_100MHz;
Conf.Mode := Mode_AF;
Conf.Output_Type := Push_Pull;
Conf.Resistors := Floating;
Configure_Alternate_Function (SPI_Pins, GPIO_AF_SPI5_5);
Configure_IO (SPI_Pins, Conf);
Reset (LCD_SPI);
if not Enabled (LCD_SPI) then
SPI_Conf :=
(Direction => D2Lines_FullDuplex,
Mode => Master,
Data_Size => HAL.SPI.Data_Size_8b,
Clock_Polarity => Low,
Clock_Phase => P1Edge,
Slave_Management => Software_Managed,
Baud_Rate_Prescaler => BRP_32,
First_Bit => MSB,
CRC_Poly => 7);
Configure (LCD_SPI, SPI_Conf);
STM32.SPI.Enable (LCD_SPI);
end if;
end LCD_SPI_Init;
-------------------
-- LCD_Pins_Init --
-------------------
procedure LCD_Pins_Init is
begin
Enable_Clock (GPIO_Points'(LCD_RESET, LCD_CSX, LCD_WRX_DCX));
Enable_Clock (LCD_PINS);
Configure_IO
(Points => (LCD_RESET, LCD_CSX, LCD_WRX_DCX),
Config => (Speed => Speed_50MHz,
Mode => Mode_Out,
Output_Type => Push_Pull,
Resistors => Floating));
Configure_Alternate_Function (LCD_PINS, GPIO_AF_LTDC_14);
Configure_Alternate_Function (LCD_RGB_AF9, GPIO_AF_LTDC_9);
Configure_IO
(Points => LCD_PINS,
Config => (Speed => Speed_50MHz,
Mode => Mode_AF,
Output_Type => Push_Pull,
Resistors => Floating));
-- Set LCD_CSX: Chip Unselect
Set (LCD_CSX);
end LCD_Pins_Init;
----------------
-- Initialize --
----------------
procedure Initialize
(Display : in out Frame_Buffer;
Orientation : HAL.Framebuffer.Display_Orientation := Default;
Mode : HAL.Framebuffer.Wait_Mode := Interrupt)
is
begin
LCD_Pins_Init;
LCD_SPI_Init;
Display.Device.Initialize (ILI9341.RGB_Mode);
Display.Initialize
(Width => LCD_WIDTH,
Height => LCD_HEIGHT,
H_Sync => 10,
H_Back_Porch => 20,
H_Front_Porch => 10,
V_Sync => 2,
V_Back_Porch => 2,
V_Front_Porch => 4,
PLLSAI_N => 192,
PLLSAI_R => 4,
DivR => 8,
Orientation => Orientation,
Mode => Mode);
end Initialize;
end Framebuffer_ILI9341;
| 38.099338 | 78 | 0.520772 |
3147eab081dc4aa84803fb5cffc1e0612da06ac7 | 1,951 | ads | Ada | tools/scitools/conf/understand/ada/ada95/a-intnam.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-intnam.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada95/a-intnam.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- A D A . I N T E R R U P T S _ N A M E S --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved --
-- --
-- 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, 675 Mass Ave, Cambridge, MA 02139, USA. --
-- --
------------------------------------------------------------------------------
package Ada.Interrupts.Names is
-- This is a place holder, no interrupt names are defined for GNAT yet
end Ada.Interrupts.Names;
| 65.033333 | 78 | 0.360841 |
0bd0a54024c4e1c80ea555dcd4bcb02bfe2f0530 | 1,908 | ads | Ada | src/asf-beans-params.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 12 | 2015-01-18T23:02:20.000Z | 2022-03-25T15:30:30.000Z | src/asf-beans-params.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 3 | 2021-01-06T09:44:02.000Z | 2022-02-04T20:20:53.000Z | src/asf-beans-params.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 4 | 2016-04-12T05:29:00.000Z | 2022-01-24T23:53:59.000Z | -----------------------------------------------------------------------
-- asf-beans-params -- Bean giving access to the request parameters
-- Copyright (C) 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Beans.Basic;
with Util.Beans.Objects;
package ASF.Beans.Params is
-- Context variable giving access to the request parameters.
PARAM_ATTRIBUTE_NAME : constant String := "param";
-- ------------------------------
-- Request Parameter Bean
-- ------------------------------
-- The <b>Param_Bean</b> gives access to the request parameter.
-- The bean instance is global to the application.
type Param_Bean is new Util.Beans.Basic.Readonly_Bean with private;
-- Get the request parameter identified by the given name.
-- Returns Null_Object if the request does not define such parameter.
overriding
function Get_Value (Bean : in Param_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Return the Param_Bean instance.
function Instance return Util.Beans.Objects.Object;
private
type Param_Bean is new Util.Beans.Basic.Readonly_Bean with null record;
end ASF.Beans.Params;
| 39.75 | 77 | 0.627358 |
5715fe4627cfa2549604859b44ca536a695edc19 | 2,237 | ads | Ada | src/spat-proof_attempt-list.ads | yannickmoy/spat | 9974849c8086f0b8297727d37a1707b417a8f1ed | [
"WTFPL"
] | 20 | 2020-05-17T18:55:16.000Z | 2021-05-26T14:53:53.000Z | src/spat-proof_attempt-list.ads | yannickmoy/spat | 9974849c8086f0b8297727d37a1707b417a8f1ed | [
"WTFPL"
] | 33 | 2020-04-03T13:08:50.000Z | 2020-10-17T04:26:34.000Z | src/spat-proof_attempt-list.ads | yannickmoy/spat | 9974849c8086f0b8297727d37a1707b417a8f1ed | [
"WTFPL"
] | 4 | 2020-06-12T12:17:27.000Z | 2021-09-09T14:19:31.000Z | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
------------------------------------------------------------------------------
pragma License (Unrestricted);
------------------------------------------------------------------------------
--
-- SPARK Proof Analysis Tool
--
-- S.P.A.T. - Object representing a list of JSON "proof attempt" objects.
--
------------------------------------------------------------------------------
limited with Ada.Containers.Vectors;
package SPAT.Proof_Attempt.List is
package Implementation is
package Vectors is new
Ada.Containers.Vectors (Index_Type => Ada.Containers.Count_Type,
Element_Type => T);
end Implementation;
type T is new Implementation.Vectors.Vector with private;
---------------------------------------------------------------------------
-- "<"
---------------------------------------------------------------------------
not overriding
function "<" (Left : in T;
Right : in T) return Boolean;
---------------------------------------------------------------------------
-- Has_Failed_Attempts
---------------------------------------------------------------------------
not overriding
function Has_Failed_Attempts (This : in T) return Boolean;
---------------------------------------------------------------------------
-- Is_Unproved
---------------------------------------------------------------------------
not overriding
function Is_Unproved (This : in T) return Boolean;
---------------------------------------------------------------------------
-- Sort_By_Duration
---------------------------------------------------------------------------
not overriding
procedure Sort_By_Duration (Container : in out T);
private
type T is new Implementation.Vectors.Vector with null record;
end SPAT.Proof_Attempt.List;
| 36.080645 | 78 | 0.394278 |
579f02222b5ca4bf2a4af0fad000f1467bf00def | 3,197 | adb | Ada | PIM/TP5_Tableaux/tri_selection.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | 1 | 2021-06-26T21:51:11.000Z | 2021-06-26T21:51:11.000Z | PIM/TP5_Tableaux/tri_selection.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | null | null | null | PIM/TP5_Tableaux/tri_selection.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | null | null | null | -- Score PIXAL le 07/10/2020 à 15:00 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
--Tri par sélection
procedure Tri_Selection is
Capacite: constant Integer := 10; -- Cette taille est arbitraire
type T_TableauBrut is array (1..Capacite) of Integer;
type T_Tableau is
record
Elements: T_TableauBrut;
Taille: Integer;
-- Invariant: 0 <= Taille and Taille <= Capacite;
end record;
-- Initialiser un tableau Tab à partir d'éléments lus au clavier.
-- La nombre d'éléments est d'abord demandée, suivi des éléments.
-- Les éléments en surnombre par rapport à la capacité du tableau
-- sont ignorés et le message "Données tronquées" est affiché.
procedure Lire (Tab: out T_Tableau) is
Taille_Souhaitee: Integer;
Nb_Elements: Integer; -- Nombre d'éléments à lire
begin
-- Demander la taille
Put ("Nombre d'éléments ? ");
Get (Taille_Souhaitee);
if Taille_Souhaitee > Capacite then
Nb_Elements := Capacite;
elsif Taille_Souhaitee < 0 then
Nb_Elements := 0;
else
Nb_Elements := Taille_Souhaitee;
end if;
-- Demander les éléments du tableau
for N in 1..Nb_Elements loop
Put ("Element ");
Put (N, 1);
Put (" ? ");
Get (Tab.Elements (N));
end loop;
Tab.Taille := Nb_Elements;
if Nb_Elements < Taille_Souhaitee then
Put_Line ("Données tronquées");
else
null;
end if;
end Lire;
-- Afficher le tableau. Les éléments sont affichés entre crochets, séparés
-- par des virgules.
procedure Ecrire(Tab: in T_Tableau) is
begin
Put ('[');
if Tab.Taille > 0 then
-- Écrire le premier élément
Put (Tab.Elements (1), 1);
-- Écrire les autres éléments précédés d'une virgule
for I in 2..Tab.Taille loop
Put (", ");
Put (Tab.Elements (I), 1);
end loop;
else
null;
end if;
Put (']');
end Ecrire;
--------------------[ Ne pas changer le code qui précède ]---------------------
procedure Swap (Tableau: in out T_Tableau; Indice1: in Integer; Indice2: in Integer) is
Temp: Integer;
begin
Temp := Tableau.Elements(Indice1);
Tableau.Elements(Indice1) := Tableau.Elements(Indice2);
Tableau.Elements(Indice2) := Temp;
end Swap;
procedure Selection_Etape (Tableau: in out T_Tableau; Etape: in Integer) is
Min_Indice: Integer;
begin
Min_Indice := Etape;
for J in (Etape+1)..Tableau.Taille loop
if Tableau.Elements(Min_Indice) > Tableau.Elements(J) then
Min_Indice := J;
end if;
end loop;
Swap(Tableau, Min_Indice, Etape);
Ecrire(Tableau);
New_Line;
end Selection_Etape;
procedure Trier (Tableau: in out T_Tableau) is
begin
for J in 1..(Tableau.Taille-1) loop
Selection_Etape(Tableau, J);
end loop;
end Trier;
----[ Ne pas changer le code qui suit, sauf pour la question optionnelle ]----
Tab1: T_Tableau; -- Un tableau
begin
Lire (Tab1);
-- Afficher le tableau lu
Put ("Tableau lu : ");
Ecrire (Tab1);
New_Line;
Trier (Tab1);
-- Afficher le tableau trié
Put ("Tableau trié : ");
Ecrire (Tab1);
New_Line;
end Tri_Selection;
| 24.037594 | 91 | 0.645292 |
a199c367618307499faf97b01fa48cacd497f862 | 176,723 | adb | Ada | Vivado_HLS_Tutorial/Interface_Synthesis/lab4/axi_interfaces_prj/solution2/.autopilot/db/axi_interfaces.bind.adb | williambong/Vivado | 68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb | [
"MIT"
] | null | null | null | Vivado_HLS_Tutorial/Interface_Synthesis/lab4/axi_interfaces_prj/solution2/.autopilot/db/axi_interfaces.bind.adb | williambong/Vivado | 68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb | [
"MIT"
] | null | null | null | Vivado_HLS_Tutorial/Interface_Synthesis/lab4/axi_interfaces_prj/solution2/.autopilot/db/axi_interfaces.bind.adb | williambong/Vivado | 68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb | [
"MIT"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="11">
<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>axi_interfaces</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>d_o_0</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>d_o[0]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>d_o_1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[1]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</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>d_o_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[2]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</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>d_o_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[3]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</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>d_o_4</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[4]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>d_o_5</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[5]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>d_o_6</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[6]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>d_o_7</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_o[7]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_9">
<Value>
<Obj>
<type>1</type>
<id>9</id>
<name>d_i_0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[0]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_10">
<Value>
<Obj>
<type>1</type>
<id>10</id>
<name>d_i_1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[1]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_11">
<Value>
<Obj>
<type>1</type>
<id>11</id>
<name>d_i_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[2]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_12">
<Value>
<Obj>
<type>1</type>
<id>12</id>
<name>d_i_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[3]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_13">
<Value>
<Obj>
<type>1</type>
<id>13</id>
<name>d_i_4</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[4]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_14">
<Value>
<Obj>
<type>1</type>
<id>14</id>
<name>d_i_5</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[5]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_15">
<Value>
<Obj>
<type>1</type>
<id>15</id>
<name>d_i_6</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[6]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_16">
<Value>
<Obj>
<type>1</type>
<id>16</id>
<name>d_i_7</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>d_i[7]</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</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>68</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</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>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</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>137</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>do_init</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>6</count>
<item_version>0</item_version>
<item>252</item>
<item>253</item>
<item>255</item>
<item>256</item>
<item>257</item>
<item>258</item>
</oprand_edges>
<opcode>phi</opcode>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>i1</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>6</count>
<item_version>0</item_version>
<item>260</item>
<item>261</item>
<item>262</item>
<item>263</item>
<item>264</item>
<item>265</item>
</oprand_edges>
<opcode>phi</opcode>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>46</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>266</item>
<item>267</item>
<item>268</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</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>250</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>i1_cast</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>138</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>acc_0_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>139</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name>d_i_0_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>141</item>
<item>142</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name>tmp_2</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>143</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name>tmp_3</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>144</item>
<item>145</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>146</item>
<item>147</item>
<item>520</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>77</id>
<name>tmp_1</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>148</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>150</item>
<item>151</item>
<item>152</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>80</id>
<name>acc_1_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>153</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>81</id>
<name>d_i_1_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>154</item>
<item>155</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>82</id>
<name>tmp_2_1</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>156</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>83</id>
<name>tmp_3_1</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>157</item>
<item>158</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>84</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>159</item>
<item>160</item>
<item>519</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>85</id>
<name>tmp_4</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>161</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>86</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>162</item>
<item>163</item>
<item>164</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>87</id>
<name>acc_2_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>165</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>88</id>
<name>d_i_2_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>166</item>
<item>167</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>89</id>
<name>tmp_2_2</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>168</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>90</id>
<name>tmp_3_2</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>169</item>
<item>170</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>91</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>171</item>
<item>172</item>
<item>518</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>92</id>
<name>tmp_5</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>173</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>93</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>174</item>
<item>175</item>
<item>176</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>94</id>
<name>acc_3_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>177</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>95</id>
<name>d_i_3_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>178</item>
<item>179</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>96</id>
<name>tmp_2_3</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>180</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>97</id>
<name>tmp_3_3</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>181</item>
<item>182</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>98</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>183</item>
<item>184</item>
<item>517</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>99</id>
<name>tmp_6</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>185</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>100</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>186</item>
<item>187</item>
<item>188</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>101</id>
<name>acc_4_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>189</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>102</id>
<name>d_i_4_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>190</item>
<item>191</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>103</id>
<name>tmp_2_4</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>192</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>104</id>
<name>tmp_3_4</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>193</item>
<item>194</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_55">
<Value>
<Obj>
<type>0</type>
<id>105</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>195</item>
<item>196</item>
<item>516</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_56">
<Value>
<Obj>
<type>0</type>
<id>106</id>
<name>tmp_7</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>197</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_57">
<Value>
<Obj>
<type>0</type>
<id>107</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>198</item>
<item>199</item>
<item>200</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_58">
<Value>
<Obj>
<type>0</type>
<id>108</id>
<name>acc_5_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>201</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_59">
<Value>
<Obj>
<type>0</type>
<id>109</id>
<name>d_i_5_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>202</item>
<item>203</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_60">
<Value>
<Obj>
<type>0</type>
<id>110</id>
<name>tmp_2_5</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>204</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_61">
<Value>
<Obj>
<type>0</type>
<id>111</id>
<name>tmp_3_5</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>205</item>
<item>206</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_62">
<Value>
<Obj>
<type>0</type>
<id>112</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>207</item>
<item>208</item>
<item>515</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_63">
<Value>
<Obj>
<type>0</type>
<id>113</id>
<name>tmp_8</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>209</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_64">
<Value>
<Obj>
<type>0</type>
<id>114</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>210</item>
<item>211</item>
<item>212</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_65">
<Value>
<Obj>
<type>0</type>
<id>115</id>
<name>acc_6_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>213</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_66">
<Value>
<Obj>
<type>0</type>
<id>116</id>
<name>d_i_6_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>214</item>
<item>215</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_67">
<Value>
<Obj>
<type>0</type>
<id>117</id>
<name>tmp_2_6</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>216</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_68">
<Value>
<Obj>
<type>0</type>
<id>118</id>
<name>tmp_3_6</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>217</item>
<item>218</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_69">
<Value>
<Obj>
<type>0</type>
<id>119</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>219</item>
<item>220</item>
<item>514</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_70">
<Value>
<Obj>
<type>0</type>
<id>120</id>
<name>tmp_9</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>221</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_71">
<Value>
<Obj>
<type>0</type>
<id>121</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>222</item>
<item>223</item>
<item>224</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_72">
<Value>
<Obj>
<type>0</type>
<id>122</id>
<name>acc_7_load</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>225</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_73">
<Value>
<Obj>
<type>0</type>
<id>123</id>
<name>d_i_7_read</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>226</item>
<item>227</item>
</oprand_edges>
<opcode>read</opcode>
</item>
<item class_id_reference="9" object_id="_74">
<Value>
<Obj>
<type>0</type>
<id>124</id>
<name>tmp_2_7</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>228</item>
</oprand_edges>
<opcode>sext</opcode>
</item>
<item class_id_reference="9" object_id="_75">
<Value>
<Obj>
<type>0</type>
<id>125</id>
<name>tmp_3_7</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>229</item>
<item>230</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_76">
<Value>
<Obj>
<type>0</type>
<id>126</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>66</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>231</item>
<item>232</item>
<item>513</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_77">
<Value>
<Obj>
<type>0</type>
<id>127</id>
<name>tmp_10</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>233</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_78">
<Value>
<Obj>
<type>0</type>
<id>128</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>67</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>234</item>
<item>235</item>
<item>236</item>
</oprand_edges>
<opcode>write</opcode>
</item>
<item class_id_reference="9" object_id="_79">
<Value>
<Obj>
<type>0</type>
<id>129</id>
<name>i_1_7</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>238</item>
<item>239</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_80">
<Value>
<Obj>
<type>0</type>
<id>130</id>
<name>tmp_11</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>240</item>
</oprand_edges>
<opcode>trunc</opcode>
</item>
<item class_id_reference="9" object_id="_81">
<Value>
<Obj>
<type>0</type>
<id>131</id>
<name>exitcond</name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>241</item>
<item>243</item>
</oprand_edges>
<opcode>icmp</opcode>
</item>
<item class_id_reference="9" object_id="_82">
<Value>
<Obj>
<type>0</type>
<id>132</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>64</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>244</item>
<item>245</item>
<item>246</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_83">
<Value>
<Obj>
<type>0</type>
<id>134</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>69</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>248</item>
</oprand_edges>
<opcode>return</opcode>
</item>
<item class_id_reference="9" object_id="_84">
<Value>
<Obj>
<type>0</type>
<id>135</id>
<name></name>
<fileName>axi_interfaces.c</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>axi_interfaces</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Interface_Synthesis/lab4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>axi_interfaces.c</first>
<second>axi_interfaces</second>
</first>
<second>69</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>249</item>
</oprand_edges>
<opcode>br</opcode>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_85">
<Value>
<Obj>
<type>2</type>
<id>237</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>6</bitwidth>
</Value>
<const_type>0</const_type>
<content>8</content>
</item>
<item class_id_reference="16" object_id="_86">
<Value>
<Obj>
<type>2</type>
<id>242</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>6</bitwidth>
</Value>
<const_type>0</const_type>
<content>32</content>
</item>
<item class_id_reference="16" object_id="_87">
<Value>
<Obj>
<type>2</type>
<id>251</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_88">
<Value>
<Obj>
<type>2</type>
<id>254</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="_89">
<Value>
<Obj>
<type>2</type>
<id>259</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_90">
<Obj>
<type>3</type>
<id>43</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>42</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_91">
<Obj>
<type>3</type>
<id>47</id>
<name>rewind_header</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>44</item>
<item>45</item>
<item>46</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_92">
<Obj>
<type>3</type>
<id>66</id>
<name>rewind_init</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>65</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_93">
<Obj>
<type>3</type>
<id>133</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>61</count>
<item_version>0</item_version>
<item>67</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
<item>78</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>92</item>
<item>93</item>
<item>94</item>
<item>95</item>
<item>96</item>
<item>97</item>
<item>98</item>
<item>99</item>
<item>100</item>
<item>101</item>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
<item>108</item>
<item>109</item>
<item>110</item>
<item>111</item>
<item>112</item>
<item>113</item>
<item>114</item>
<item>115</item>
<item>116</item>
<item>117</item>
<item>118</item>
<item>119</item>
<item>120</item>
<item>121</item>
<item>122</item>
<item>123</item>
<item>124</item>
<item>125</item>
<item>126</item>
<item>127</item>
<item>128</item>
<item>129</item>
<item>130</item>
<item>131</item>
<item>132</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_94">
<Obj>
<type>3</type>
<id>136</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>134</item>
<item>135</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>122</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_95">
<id>137</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>138</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>142</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>73</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>143</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>144</id>
<edge_type>1</edge_type>
<source_obj>74</source_obj>
<sink_obj>75</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>75</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>146</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_103">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_104">
<id>148</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>77</sink_obj>
</item>
<item class_id_reference="20" object_id="_105">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_106">
<id>152</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_107">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_108">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_109">
<id>156</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_110">
<id>157</id>
<edge_type>1</edge_type>
<source_obj>82</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_111">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>80</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_112">
<id>159</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_113">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_114">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>85</sink_obj>
</item>
<item class_id_reference="20" object_id="_115">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_116">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_117">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>87</sink_obj>
</item>
<item class_id_reference="20" object_id="_118">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_119">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_120">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_121">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_122">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>91</sink_obj>
</item>
<item class_id_reference="20" object_id="_123">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>91</sink_obj>
</item>
<item class_id_reference="20" object_id="_124">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_125">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_126">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_127">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>94</sink_obj>
</item>
<item class_id_reference="20" object_id="_128">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>95</sink_obj>
</item>
<item class_id_reference="20" object_id="_129">
<id>180</id>
<edge_type>1</edge_type>
<source_obj>95</source_obj>
<sink_obj>96</sink_obj>
</item>
<item class_id_reference="20" object_id="_130">
<id>181</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>97</sink_obj>
</item>
<item class_id_reference="20" object_id="_131">
<id>182</id>
<edge_type>1</edge_type>
<source_obj>94</source_obj>
<sink_obj>97</sink_obj>
</item>
<item class_id_reference="20" object_id="_132">
<id>183</id>
<edge_type>1</edge_type>
<source_obj>97</source_obj>
<sink_obj>98</sink_obj>
</item>
<item class_id_reference="20" object_id="_133">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>98</sink_obj>
</item>
<item class_id_reference="20" object_id="_134">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>97</source_obj>
<sink_obj>99</sink_obj>
</item>
<item class_id_reference="20" object_id="_135">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>100</sink_obj>
</item>
<item class_id_reference="20" object_id="_136">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>100</sink_obj>
</item>
<item class_id_reference="20" object_id="_137">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>101</sink_obj>
</item>
<item class_id_reference="20" object_id="_138">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>102</sink_obj>
</item>
<item class_id_reference="20" object_id="_139">
<id>192</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>103</sink_obj>
</item>
<item class_id_reference="20" object_id="_140">
<id>193</id>
<edge_type>1</edge_type>
<source_obj>103</source_obj>
<sink_obj>104</sink_obj>
</item>
<item class_id_reference="20" object_id="_141">
<id>194</id>
<edge_type>1</edge_type>
<source_obj>101</source_obj>
<sink_obj>104</sink_obj>
</item>
<item class_id_reference="20" object_id="_142">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>105</sink_obj>
</item>
<item class_id_reference="20" object_id="_143">
<id>196</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>105</sink_obj>
</item>
<item class_id_reference="20" object_id="_144">
<id>197</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>106</sink_obj>
</item>
<item class_id_reference="20" object_id="_145">
<id>199</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>107</sink_obj>
</item>
<item class_id_reference="20" object_id="_146">
<id>200</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>107</sink_obj>
</item>
<item class_id_reference="20" object_id="_147">
<id>201</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>108</sink_obj>
</item>
<item class_id_reference="20" object_id="_148">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>109</sink_obj>
</item>
<item class_id_reference="20" object_id="_149">
<id>204</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>110</sink_obj>
</item>
<item class_id_reference="20" object_id="_150">
<id>205</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>111</sink_obj>
</item>
<item class_id_reference="20" object_id="_151">
<id>206</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>111</sink_obj>
</item>
<item class_id_reference="20" object_id="_152">
<id>207</id>
<edge_type>1</edge_type>
<source_obj>111</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_153">
<id>208</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_154">
<id>209</id>
<edge_type>1</edge_type>
<source_obj>111</source_obj>
<sink_obj>113</sink_obj>
</item>
<item class_id_reference="20" object_id="_155">
<id>211</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>114</sink_obj>
</item>
<item class_id_reference="20" object_id="_156">
<id>212</id>
<edge_type>1</edge_type>
<source_obj>113</source_obj>
<sink_obj>114</sink_obj>
</item>
<item class_id_reference="20" object_id="_157">
<id>213</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>115</sink_obj>
</item>
<item class_id_reference="20" object_id="_158">
<id>215</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>116</sink_obj>
</item>
<item class_id_reference="20" object_id="_159">
<id>216</id>
<edge_type>1</edge_type>
<source_obj>116</source_obj>
<sink_obj>117</sink_obj>
</item>
<item class_id_reference="20" object_id="_160">
<id>217</id>
<edge_type>1</edge_type>
<source_obj>117</source_obj>
<sink_obj>118</sink_obj>
</item>
<item class_id_reference="20" object_id="_161">
<id>218</id>
<edge_type>1</edge_type>
<source_obj>115</source_obj>
<sink_obj>118</sink_obj>
</item>
<item class_id_reference="20" object_id="_162">
<id>219</id>
<edge_type>1</edge_type>
<source_obj>118</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_163">
<id>220</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_164">
<id>221</id>
<edge_type>1</edge_type>
<source_obj>118</source_obj>
<sink_obj>120</sink_obj>
</item>
<item class_id_reference="20" object_id="_165">
<id>223</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>121</sink_obj>
</item>
<item class_id_reference="20" object_id="_166">
<id>224</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>121</sink_obj>
</item>
<item class_id_reference="20" object_id="_167">
<id>225</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>122</sink_obj>
</item>
<item class_id_reference="20" object_id="_168">
<id>227</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>123</sink_obj>
</item>
<item class_id_reference="20" object_id="_169">
<id>228</id>
<edge_type>1</edge_type>
<source_obj>123</source_obj>
<sink_obj>124</sink_obj>
</item>
<item class_id_reference="20" object_id="_170">
<id>229</id>
<edge_type>1</edge_type>
<source_obj>124</source_obj>
<sink_obj>125</sink_obj>
</item>
<item class_id_reference="20" object_id="_171">
<id>230</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>125</sink_obj>
</item>
<item class_id_reference="20" object_id="_172">
<id>231</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>126</sink_obj>
</item>
<item class_id_reference="20" object_id="_173">
<id>232</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>126</sink_obj>
</item>
<item class_id_reference="20" object_id="_174">
<id>233</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>127</sink_obj>
</item>
<item class_id_reference="20" object_id="_175">
<id>235</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>128</sink_obj>
</item>
<item class_id_reference="20" object_id="_176">
<id>236</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>128</sink_obj>
</item>
<item class_id_reference="20" object_id="_177">
<id>238</id>
<edge_type>1</edge_type>
<source_obj>237</source_obj>
<sink_obj>129</sink_obj>
</item>
<item class_id_reference="20" object_id="_178">
<id>239</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>129</sink_obj>
</item>
<item class_id_reference="20" object_id="_179">
<id>240</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>130</sink_obj>
</item>
<item class_id_reference="20" object_id="_180">
<id>241</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>131</sink_obj>
</item>
<item class_id_reference="20" object_id="_181">
<id>243</id>
<edge_type>1</edge_type>
<source_obj>242</source_obj>
<sink_obj>131</sink_obj>
</item>
<item class_id_reference="20" object_id="_182">
<id>244</id>
<edge_type>1</edge_type>
<source_obj>131</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_183">
<id>245</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_184">
<id>246</id>
<edge_type>2</edge_type>
<source_obj>136</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_185">
<id>249</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>135</sink_obj>
</item>
<item class_id_reference="20" object_id="_186">
<id>250</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_187">
<id>252</id>
<edge_type>1</edge_type>
<source_obj>251</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_188">
<id>253</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_189">
<id>255</id>
<edge_type>1</edge_type>
<source_obj>254</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_190">
<id>256</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_191">
<id>257</id>
<edge_type>1</edge_type>
<source_obj>251</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_192">
<id>258</id>
<edge_type>2</edge_type>
<source_obj>136</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_193">
<id>260</id>
<edge_type>1</edge_type>
<source_obj>259</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_194">
<id>261</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_195">
<id>262</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_196">
<id>263</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_197">
<id>264</id>
<edge_type>1</edge_type>
<source_obj>259</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_198">
<id>265</id>
<edge_type>2</edge_type>
<source_obj>136</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_199">
<id>266</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_200">
<id>267</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_201">
<id>268</id>
<edge_type>2</edge_type>
<source_obj>66</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_202">
<id>506</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_203">
<id>507</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_204">
<id>508</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>133</sink_obj>
</item>
<item class_id_reference="20" object_id="_205">
<id>509</id>
<edge_type>2</edge_type>
<source_obj>66</source_obj>
<sink_obj>133</sink_obj>
</item>
<item class_id_reference="20" object_id="_206">
<id>510</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>136</sink_obj>
</item>
<item class_id_reference="20" object_id="_207">
<id>511</id>
<edge_type>2</edge_type>
<source_obj>133</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_208">
<id>512</id>
<edge_type>2</edge_type>
<source_obj>136</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_209">
<id>513</id>
<edge_type>4</edge_type>
<source_obj>122</source_obj>
<sink_obj>126</sink_obj>
</item>
<item class_id_reference="20" object_id="_210">
<id>514</id>
<edge_type>4</edge_type>
<source_obj>115</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_211">
<id>515</id>
<edge_type>4</edge_type>
<source_obj>108</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_212">
<id>516</id>
<edge_type>4</edge_type>
<source_obj>101</source_obj>
<sink_obj>105</sink_obj>
</item>
<item class_id_reference="20" object_id="_213">
<id>517</id>
<edge_type>4</edge_type>
<source_obj>94</source_obj>
<sink_obj>98</sink_obj>
</item>
<item class_id_reference="20" object_id="_214">
<id>518</id>
<edge_type>4</edge_type>
<source_obj>87</source_obj>
<sink_obj>91</sink_obj>
</item>
<item class_id_reference="20" object_id="_215">
<id>519</id>
<edge_type>4</edge_type>
<source_obj>80</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_216">
<id>520</id>
<edge_type>4</edge_type>
<source_obj>72</source_obj>
<sink_obj>76</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_217">
<mId>1</mId>
<mTag>axi_interfaces</mTag>
<mType>0</mType>
<sub_regions>
<count>2</count>
<item_version>0</item_version>
<item>2</item>
<item>3</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>4</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_218">
<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>43</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="_219">
<mId>3</mId>
<mTag>For_Loop</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>4</count>
<item_version>0</item_version>
<item>47</item>
<item>66</item>
<item>133</item>
<item>136</item>
</basic_blocks>
<mII>1</mII>
<mDepth>1</mDepth>
<mMinTripCount>4</mMinTripCount>
<mMaxTripCount>4</mMaxTripCount>
<mMinLatency>3</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="_220">
<states class_id="25" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_221">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>18</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_222">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_223">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_224">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_225">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_226">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_227">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_228">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_229">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_230">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_231">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_232">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_233">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_234">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_235">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_236">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_237">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_238">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_239">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_240">
<id>2</id>
<operations>
<count>89</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_241">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_242">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_243">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_244">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_245">
<id>49</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_246">
<id>50</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_247">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_248">
<id>52</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_249">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_250">
<id>54</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_251">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_252">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_253">
<id>57</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_254">
<id>58</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_255">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_256">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_257">
<id>61</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_258">
<id>62</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_259">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_260">
<id>64</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_261">
<id>65</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_262">
<id>67</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_263">
<id>68</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_264">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_265">
<id>70</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_266">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_267">
<id>72</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_268">
<id>73</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_269">
<id>74</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_270">
<id>75</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_271">
<id>76</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_272">
<id>77</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_273">
<id>78</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_274">
<id>79</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_275">
<id>80</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_276">
<id>81</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_277">
<id>82</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_278">
<id>83</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_279">
<id>84</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_280">
<id>85</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_281">
<id>86</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_282">
<id>87</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_283">
<id>88</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_284">
<id>89</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_285">
<id>90</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_286">
<id>91</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_287">
<id>92</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_288">
<id>93</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_289">
<id>94</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_290">
<id>95</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_291">
<id>96</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_292">
<id>97</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_293">
<id>98</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_294">
<id>99</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_295">
<id>100</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_296">
<id>101</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_297">
<id>102</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_298">
<id>103</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_299">
<id>104</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_300">
<id>105</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_301">
<id>106</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_302">
<id>107</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_303">
<id>108</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_304">
<id>109</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_305">
<id>110</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_306">
<id>111</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_307">
<id>112</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_308">
<id>113</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_309">
<id>114</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_310">
<id>115</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_311">
<id>116</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_312">
<id>117</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_313">
<id>118</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_314">
<id>119</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_315">
<id>120</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_316">
<id>121</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_317">
<id>122</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_318">
<id>123</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_319">
<id>124</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_320">
<id>125</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_321">
<id>126</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_322">
<id>127</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_323">
<id>128</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_324">
<id>129</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_325">
<id>130</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_326">
<id>131</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_327">
<id>132</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_328">
<id>134</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_329">
<id>135</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_330">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>36</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="_331">
<inState>2</inState>
<outState>2</outState>
<condition>
<id>41</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="34" tracking_level="1" version="0" object_id="_332">
<dp_component_resource class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_resource>
<dp_expression_resource>
<count>0</count>
<item_version>0</item_version>
</dp_expression_resource>
<dp_fifo_resource>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_resource>
<dp_memory_resource>
<count>0</count>
<item_version>0</item_version>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>0</count>
<item_version>0</item_version>
</dp_multiplexer_resource>
<dp_register_resource>
<count>0</count>
<item_version>0</item_version>
</dp_register_resource>
<dp_component_map class_id="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_map>
<dp_memory_map>
<count>0</count>
<item_version>0</item_version>
</dp_memory_map>
</res>
<node_label_latency class_id="37" tracking_level="0" version="0">
<count>68</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>42</first>
<second class_id="39" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>80</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>82</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>83</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>84</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>85</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>86</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>87</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>88</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>89</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>90</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>91</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>92</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>93</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>94</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>95</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>96</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>97</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>98</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>99</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>100</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>101</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>102</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>103</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>104</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>105</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>106</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>107</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>108</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>109</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>110</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>111</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>112</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>113</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>114</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>115</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>116</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>117</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>118</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>119</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>120</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>121</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>122</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>123</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>124</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>125</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>126</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>127</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>128</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>129</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>130</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>131</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>132</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>134</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>135</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="40" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="41" tracking_level="0" version="0">
<first>43</first>
<second class_id="42" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>133</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>136</first>
<second>
<first>1</first>
<second>1</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="_333">
<region_name>For_Loop</region_name>
<basic_blocks>
<count>4</count>
<item_version>0</item_version>
<item>47</item>
<item>66</item>
<item>133</item>
<item>136</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>1</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="45" tracking_level="0" version="0">
<count>63</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>94</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>73</item>
</second>
</item>
<item>
<first>100</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>107</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>86</item>
</second>
</item>
<item>
<first>120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>88</item>
</second>
</item>
<item>
<first>126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>95</item>
</second>
</item>
<item>
<first>139</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>100</item>
</second>
</item>
<item>
<first>146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>102</item>
</second>
</item>
<item>
<first>152</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>107</item>
</second>
</item>
<item>
<first>159</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>109</item>
</second>
</item>
<item>
<first>165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>172</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</second>
</item>
<item>
<first>178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>121</item>
</second>
</item>
<item>
<first>185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>123</item>
</second>
</item>
<item>
<first>191</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>128</item>
</second>
</item>
<item>
<first>202</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>217</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
<item>
<first>231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>235</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>74</item>
</second>
</item>
<item>
<first>239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>76</item>
</second>
</item>
<item>
<first>251</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>77</item>
</second>
</item>
<item>
<first>256</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>80</item>
</second>
</item>
<item>
<first>260</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>82</item>
</second>
</item>
<item>
<first>264</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>83</item>
</second>
</item>
<item>
<first>270</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>276</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>85</item>
</second>
</item>
<item>
<first>281</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>285</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>89</item>
</second>
</item>
<item>
<first>289</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>295</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>91</item>
</second>
</item>
<item>
<first>301</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>92</item>
</second>
</item>
<item>
<first>306</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>94</item>
</second>
</item>
<item>
<first>310</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>314</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>97</item>
</second>
</item>
<item>
<first>320</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>98</item>
</second>
</item>
<item>
<first>326</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>99</item>
</second>
</item>
<item>
<first>331</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>101</item>
</second>
</item>
<item>
<first>335</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>103</item>
</second>
</item>
<item>
<first>339</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>104</item>
</second>
</item>
<item>
<first>345</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>105</item>
</second>
</item>
<item>
<first>351</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>106</item>
</second>
</item>
<item>
<first>356</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>108</item>
</second>
</item>
<item>
<first>360</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>110</item>
</second>
</item>
<item>
<first>364</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>111</item>
</second>
</item>
<item>
<first>370</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>112</item>
</second>
</item>
<item>
<first>376</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>113</item>
</second>
</item>
<item>
<first>381</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</second>
</item>
<item>
<first>385</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>117</item>
</second>
</item>
<item>
<first>389</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>395</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>119</item>
</second>
</item>
<item>
<first>401</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>120</item>
</second>
</item>
<item>
<first>406</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</second>
</item>
<item>
<first>410</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>124</item>
</second>
</item>
<item>
<first>414</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>125</item>
</second>
</item>
<item>
<first>420</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>126</item>
</second>
</item>
<item>
<first>426</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>127</item>
</second>
</item>
<item>
<first>431</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>129</item>
</second>
</item>
<item>
<first>437</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>130</item>
</second>
</item>
<item>
<first>441</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>131</item>
</second>
</item>
<item>
<first>447</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>134</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="48" tracking_level="0" version="0">
<count>31</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>do_init_phi_fu_202</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>exitcond_fu_441</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>131</item>
</second>
</item>
<item>
<first>i1_cast_fu_227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
<item>
<first>i1_phi_fu_217</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>i_1_7_fu_431</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>129</item>
</second>
</item>
<item>
<first>stg_108_fu_447</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>134</item>
</second>
</item>
<item>
<first>tmp_10_fu_426</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>127</item>
</second>
</item>
<item>
<first>tmp_11_fu_437</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>130</item>
</second>
</item>
<item>
<first>tmp_1_fu_251</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>77</item>
</second>
</item>
<item>
<first>tmp_2_1_fu_260</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>82</item>
</second>
</item>
<item>
<first>tmp_2_2_fu_285</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>89</item>
</second>
</item>
<item>
<first>tmp_2_3_fu_310</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</second>
</item>
<item>
<first>tmp_2_4_fu_335</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>103</item>
</second>
</item>
<item>
<first>tmp_2_5_fu_360</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>110</item>
</second>
</item>
<item>
<first>tmp_2_6_fu_385</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>117</item>
</second>
</item>
<item>
<first>tmp_2_7_fu_410</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>124</item>
</second>
</item>
<item>
<first>tmp_2_fu_235</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>74</item>
</second>
</item>
<item>
<first>tmp_3_1_fu_264</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>83</item>
</second>
</item>
<item>
<first>tmp_3_2_fu_289</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>90</item>
</second>
</item>
<item>
<first>tmp_3_3_fu_314</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>97</item>
</second>
</item>
<item>
<first>tmp_3_4_fu_339</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>104</item>
</second>
</item>
<item>
<first>tmp_3_5_fu_364</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>111</item>
</second>
</item>
<item>
<first>tmp_3_6_fu_389</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>118</item>
</second>
</item>
<item>
<first>tmp_3_7_fu_414</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>125</item>
</second>
</item>
<item>
<first>tmp_3_fu_239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</second>
</item>
<item>
<first>tmp_4_fu_276</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>85</item>
</second>
</item>
<item>
<first>tmp_5_fu_301</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>92</item>
</second>
</item>
<item>
<first>tmp_6_fu_326</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>99</item>
</second>
</item>
<item>
<first>tmp_7_fu_351</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>106</item>
</second>
</item>
<item>
<first>tmp_8_fu_376</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>113</item>
</second>
</item>
<item>
<first>tmp_9_fu_401</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>120</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>32</count>
<item_version>0</item_version>
<item>
<first>acc_0_load_load_fu_231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>acc_1_load_load_fu_256</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>80</item>
</second>
</item>
<item>
<first>acc_2_load_load_fu_281</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>87</item>
</second>
</item>
<item>
<first>acc_3_load_load_fu_306</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>94</item>
</second>
</item>
<item>
<first>acc_4_load_load_fu_331</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>101</item>
</second>
</item>
<item>
<first>acc_5_load_load_fu_356</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>108</item>
</second>
</item>
<item>
<first>acc_6_load_load_fu_381</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</second>
</item>
<item>
<first>acc_7_load_load_fu_406</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</second>
</item>
<item>
<first>d_i_0_read_read_fu_94</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>73</item>
</second>
</item>
<item>
<first>d_i_1_read_read_fu_107</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
<item>
<first>d_i_2_read_read_fu_120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>88</item>
</second>
</item>
<item>
<first>d_i_3_read_read_fu_133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>95</item>
</second>
</item>
<item>
<first>d_i_4_read_read_fu_146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>102</item>
</second>
</item>
<item>
<first>d_i_5_read_read_fu_159</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>109</item>
</second>
</item>
<item>
<first>d_i_6_read_read_fu_172</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</second>
</item>
<item>
<first>d_i_7_read_read_fu_185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>123</item>
</second>
</item>
<item>
<first>stg_101_store_fu_420</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>126</item>
</second>
</item>
<item>
<first>stg_103_write_fu_191</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>128</item>
</second>
</item>
<item>
<first>stg_51_store_fu_245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>76</item>
</second>
</item>
<item>
<first>stg_53_write_fu_100</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
<item>
<first>stg_59_store_fu_270</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</second>
</item>
<item>
<first>stg_61_write_fu_113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>86</item>
</second>
</item>
<item>
<first>stg_66_store_fu_295</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>91</item>
</second>
</item>
<item>
<first>stg_68_write_fu_126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
<item>
<first>stg_73_store_fu_320</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>98</item>
</second>
</item>
<item>
<first>stg_75_write_fu_139</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>100</item>
</second>
</item>
<item>
<first>stg_80_store_fu_345</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>105</item>
</second>
</item>
<item>
<first>stg_82_write_fu_152</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>107</item>
</second>
</item>
<item>
<first>stg_87_store_fu_370</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>112</item>
</second>
</item>
<item>
<first>stg_89_write_fu_165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
<item>
<first>stg_94_store_fu_395</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>119</item>
</second>
</item>
<item>
<first>stg_96_write_fu_178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>121</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>198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>213</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>449</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>130</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>3</count>
<item_version>0</item_version>
<item>
<first>do_init_reg_198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>i1_reg_213</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>tmp_11_reg_449</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>130</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>2</count>
<item_version>0</item_version>
<item>
<first>198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>213</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>2</count>
<item_version>0</item_version>
<item>
<first>do_init_reg_198</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>i1_reg_213</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="51" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>d_i_0</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>73</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_1</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_2</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>88</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>95</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>102</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_5</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>109</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_6</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</second>
</item>
</second>
</item>
<item>
<first>d_i_7</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>123</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_0</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_1</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>86</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_2</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>93</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>100</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_4</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>107</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_5</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_6</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>121</item>
</second>
</item>
</second>
</item>
<item>
<first>d_o_7</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>128</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="53" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
| 25.398534 | 102 | 0.586438 |
fbd297d3e651ee74a8a540b35d2e45fc035f6b43 | 116 | adb | Ada | HelloWorld.adb | LinXueyuanStdio/HelloWorld | c73bdd28ffd58007fb0dd4df62cc049ceb450770 | [
"Apache-2.0"
] | null | null | null | HelloWorld.adb | LinXueyuanStdio/HelloWorld | c73bdd28ffd58007fb0dd4df62cc049ceb450770 | [
"Apache-2.0"
] | 1 | 2018-12-12T03:12:42.000Z | 2018-12-26T14:51:39.000Z | HelloWorld.adb | LinXueyuanStdio/HelloWorld | c73bdd28ffd58007fb0dd4df62cc049ceb450770 | [
"Apache-2.0"
] | null | null | null | with Ada.Text_IO; use Ada.Text_IO;
procedure Program is
begin
Ada.Text_IO.Put("HelloWorld");
end Program; | 19.333333 | 37 | 0.715517 |
1d51083fcc247c8dc4d3ad4dc65a0fb721129bc4 | 3,567 | adb | Ada | generated/ada-server/src/server/-skeletons.adb | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | 4 | 2018-08-24T10:45:15.000Z | 2022-03-05T04:22:54.000Z | generated/ada-server/src/server/-skeletons.adb | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | 8 | 2021-12-09T20:06:39.000Z | 2022-03-07T08:25:48.000Z | generated/ada-server/src/server/-skeletons.adb | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | null | null | null | -- openapi_ipify
-- OpenAPI client for ipify, a simple public IP address API
--
-- OpenAPI spec version: 0.9.0
-- Contact: [email protected]
--
-- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT.
-- https://openapi-generator.tech
-- Do not edit the class manually.
with Swagger.Streams;
with Swagger.Servers.Operation;
package body .Skeletons is
package body Skeleton is
package API_Get_Ip is
new Swagger.Servers.Operation (Handler => Get_Ip,
Method => Swagger.Servers.GET,
URI => "/");
-- Get your public IP address
procedure Get_Ip
(Req : in out Swagger.Servers.Request'Class;
Reply : in out Swagger.Servers.Response'Class;
Stream : in out Swagger.Servers.Output_Stream'Class;
Context : in out Swagger.Servers.Context_Type) is
Impl : Implementation_Type;
Format : Swagger.Nullable_UString;
Callback : Swagger.Nullable_UString;
Result : Swagger.Object;
begin
Swagger.Servers.Get_Query_Parameter (Req, "format", Format);
Swagger.Servers.Get_Query_Parameter (Req, "callback", Callback);
Impl.Get_Ip
(Format,
Callback, Result, Context);
if Context.Get_Status = 200 then
Stream.Start_Document;
.Models.Serialize (Stream, "", Result);
Stream.End_Document;
end if;
end Get_Ip;
procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is
begin
Swagger.Servers.Register (Server, API_Get_Ip.Definition);
end Register;
end Skeleton;
package body Shared_Instance is
-- Get your public IP address
procedure Get_Ip
(Req : in out Swagger.Servers.Request'Class;
Reply : in out Swagger.Servers.Response'Class;
Stream : in out Swagger.Servers.Output_Stream'Class;
Context : in out Swagger.Servers.Context_Type) is
Format : Swagger.Nullable_UString;
Callback : Swagger.Nullable_UString;
Result : Swagger.Object;
begin
Swagger.Servers.Get_Query_Parameter (Req, "format", Format);
Swagger.Servers.Get_Query_Parameter (Req, "callback", Callback);
Server.Get_Ip
(Format,
Callback, Result, Context);
if Context.Get_Status = 200 then
Stream.Start_Document;
.Models.Serialize (Stream, "", Result);
Stream.End_Document;
end if;
end Get_Ip;
package API_Get_Ip is
new Swagger.Servers.Operation (Handler => Get_Ip,
Method => Swagger.Servers.GET,
URI => "/");
procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is
begin
Swagger.Servers.Register (Server, API_Get_Ip.Definition);
end Register;
protected body Server is
-- Get your public IP address
procedure Get_Ip
(Format : in Swagger.Nullable_UString;
Callback : in Swagger.Nullable_UString;
Result : out Swagger.Object;
Context : in out Swagger.Servers.Context_Type) is
begin
Impl.Get_Ip
(Format,
Callback,
Result,
Context);
end Get_Ip;
end Server;
end Shared_Instance;
end .Skeletons;
| 33.336449 | 86 | 0.589851 |
2f75b7c3842845fbb5f5f7e0f0704c8aade8a416 | 627 | ads | Ada | adm/code/src/metric-kasner.ads | leo-brewin/adm-bssn-numerical | 9e32c201272e9a41e7535475fe381e450b99b058 | [
"MIT"
] | 1 | 2022-01-25T11:36:06.000Z | 2022-01-25T11:36:06.000Z | adm/code/src/metric-kasner.ads | leo-brewin/adm-bssn-numerical | 9e32c201272e9a41e7535475fe381e450b99b058 | [
"MIT"
] | null | null | null | adm/code/src/metric-kasner.ads | leo-brewin/adm-bssn-numerical | 9e32c201272e9a41e7535475fe381e450b99b058 | [
"MIT"
] | null | null | null | with Support; use Support;
with ADMBase; use ADMBase;
package Metric.Kasner is
function set_3d_lapse (t, x, y, z : Real) return Real;
function set_3d_metric (t, x, y, z : Real) return MetricPointArray;
function set_3d_extcurv (t, x, y, z : Real) return ExtcurvPointArray;
function set_3d_lapse (t : Real; point : GridPoint) return Real;
function set_3d_metric (t : Real; point : GridPoint) return MetricPointArray;
function set_3d_extcurv (t : Real; point : GridPoint) return ExtcurvPointArray;
procedure get_pi (p1, p2, p3 : out Real);
procedure report_kasner_params;
end Metric.Kasner;
| 34.833333 | 82 | 0.720893 |
59792fdcb1ebc65c39c6d1d4ccbf8a97415abce3 | 463 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr25_pkg.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/discr25_pkg.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr25_pkg.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | package body Discr25_Pkg is
type Arr1 is array (Natural range <>) of Integer;
B : constant Boolean := N > 0;
type Arr2 is array (True .. B) of Integer;
type Obj_T (Size_Max : Natural) is record
A2 : Arr2;
A1 : Arr1 (0 .. Size_Max);
end record;
procedure Proc1 (Set : in out T) is
begin
Set := new Obj_T'(Set.all);
end;
procedure Proc2 (Obj : in out T; L : Natural) is
begin
Obj := new Obj_T (L);
end;
end Discr25_Pkg;
| 18.52 | 51 | 0.617711 |
a1bfb8d6d5876dd117cd4f8062a2527fef05ba40 | 4,322 | ads | Ada | resources/scripts/api/onyphe.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 7,053 | 2018-07-13T09:40:12.000Z | 2022-03-31T15:26:10.000Z | resources/scripts/api/onyphe.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 624 | 2018-07-17T12:01:23.000Z | 2022-03-28T13:59:17.000Z | resources/scripts/api/onyphe.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 1,470 | 2018-07-17T06:01:21.000Z | 2022-03-31T18:02:17.000Z | -- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "ONYPHE"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
for page=1,1000 do
local resp, err = request(ctx, {
['url']=vert_url(domain, page),
headers={
['Content-Type']="application/json",
['Authorization']="apikey " .. c.key,
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical request to service failed: " .. err)
return
end
d = json.decode(resp)
if (d == nil or d.count == 0) then
return
end
for _, r in pairs(d.results) do
if (r['@category'] == "resolver") then
new_name(ctx, r['hostname'])
new_addr(ctx, r['ip'], r['hostname'])
else
for _, name in pairs(r['hostname']) do
if in_scope(ctx, name) then
new_name(ctx, name)
end
end
if (r['subject'] ~= nil) then
for _, name in pairs(r['subject']['altname']) do
if in_scope(ctx, name) then
new_name(ctx, name)
end
end
end
if (r['subdomains'] ~= nil) then
for _, name in pairs(r['subdomains']) do
if in_scope(ctx, name) then
new_name(ctx, name)
end
end
end
end
if (r['reverse'] ~= nil and in_scope(ctx, r['reverse'])) then
new_name(ctx, r['reverse'])
end
if (r['forward'] ~= nil and in_scope(ctx, r['forward'])) then
new_name(ctx, r['forward'])
end
end
if page == d.max_page then
break
end
end
end
function vert_url(domain, pagenum)
return "https://www.onyphe.io/api/v2/summary/domain/" .. domain .. "?page=" .. pagenum
end
function horizontal(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local ips, err = resolve(ctx, domain, "A")
if (err ~= nil and err ~= "") then
log(ctx, "horizontal resolve request to service failed: " .. err)
return
end
for _, ip in pairs(ips) do
for page=1,1000 do
local resp, err = request(ctx, {
['url']=horizon_url(ip, page),
headers={
['Content-Type']="application/json",
['Authorization']="apikey " .. c.key,
},
})
if (err ~= nil and err ~= "") then
log(ctx, "horizontal request to service failed: " .. err)
return
end
d = json.decode(resp)
if (d == nil or d.count == 0) then
return
end
for _, r in pairs(d.results) do
if (r['@category'] == "resolver") then
associated(ctx, domain, r['domain'])
elseif (r['@category'] == "datascan" and r['domain'] ~= nil) then
for _, name in pairs(r['domain']) do
associated(ctx, domain, name)
end
end
end
if page == r.max_page then
break
end
end
end
end
function horizon_url(ip, pagenum)
return "https://www.onyphe.io/api/v2/summary/ip/" .. ip .. "?page=" .. pagenum
end
| 27.705128 | 97 | 0.460204 |
581dff79d1374abef59942a098fc4f501e06631a | 1,743 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_glx_copy_context_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_glx_copy_context_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_glx_copy_context_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_glx_copy_context_request_t is
-- Item
--
type Item is record
major_opcode : aliased Interfaces.Unsigned_8;
minor_opcode : aliased Interfaces.Unsigned_8;
length : aliased Interfaces.Unsigned_16;
src : aliased xcb.xcb_glx_context_t;
dest : aliased xcb.xcb_glx_context_t;
mask : aliased Interfaces.Unsigned_32;
src_context_tag : aliased xcb.xcb_glx_context_tag_t;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_glx_copy_context_request_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_copy_context_request_t.Item,
Element_Array => xcb.xcb_glx_copy_context_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_glx_copy_context_request_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_copy_context_request_t.Pointer,
Element_Array => xcb.xcb_glx_copy_context_request_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_copy_context_request_t;
| 29.542373 | 77 | 0.662651 |
06de4342e2b897028067d4f70476ec49a96a056f | 2,234 | ads | Ada | src/gen/cups-cups_dir_h.ads | persan/a-cups | f011dc18384de9afd07a53b67295974d8005cf21 | [
"Apache-2.0"
] | null | null | null | src/gen/cups-cups_dir_h.ads | persan/a-cups | f011dc18384de9afd07a53b67295974d8005cf21 | [
"Apache-2.0"
] | null | null | null | src/gen/cups-cups_dir_h.ads | persan/a-cups | f011dc18384de9afd07a53b67295974d8005cf21 | [
"Apache-2.0"
] | null | null | null | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.bits_stat_h;
with System;
with Interfaces.C.Strings;
private package CUPS.cups_dir_h is
-- * "$Id: dir.h 10996 2013-05-29 11:51:34Z msweet $"
-- *
-- * Public directory definitions for CUPS.
-- *
-- * This set of APIs abstracts enumeration of directory entries.
-- *
-- * Copyright 2007-2011 by Apple Inc.
-- * Copyright 1997-2006 by Easy Software Products, all rights reserved.
-- *
-- * These coded instructions, statements, and computer programs are the
-- * property of Apple Inc. and are protected by Federal copyright
-- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
-- * which should have been included with this file. If this file is
-- * file is missing or damaged, see the license at "http://www.cups.org/".
--
-- * Include necessary headers...
--
-- * C++ magic...
--
-- * Data types...
--
--*** Directory type ***
-- skipped empty struct u_cups_dir_s
-- skipped empty struct cups_dir_t
--*** Directory entry type ***
-- File name
subtype cups_dentry_s_filename_array is Interfaces.C.char_array (0 .. 259);
type cups_dentry_s is record
filename : aliased cups_dentry_s_filename_array; -- cups/dir.h:47
fileinfo : aliased CUPS.bits_stat_h.stat; -- cups/dir.h:48
end record;
pragma Convention (C_Pass_By_Copy, cups_dentry_s); -- cups/dir.h:45
-- File information
subtype cups_dentry_t is cups_dentry_s;
-- * Prototypes...
--
procedure cupsDirClose (dp : System.Address); -- cups/dir.h:56
pragma Import (C, cupsDirClose, "cupsDirClose");
function cupsDirOpen (directory : Interfaces.C.Strings.chars_ptr) return System.Address; -- cups/dir.h:57
pragma Import (C, cupsDirOpen, "cupsDirOpen");
function cupsDirRead (dp : System.Address) return access cups_dentry_t; -- cups/dir.h:58
pragma Import (C, cupsDirRead, "cupsDirRead");
procedure cupsDirRewind (dp : System.Address); -- cups/dir.h:59
pragma Import (C, cupsDirRewind, "cupsDirRewind");
-- * End of "$Id: dir.h 10996 2013-05-29 11:51:34Z msweet $".
--
end CUPS.cups_dir_h;
| 31.027778 | 109 | 0.670546 |
fbefbb37fb9339deda16667d8d7a5acd37737ee8 | 2,866 | ads | Ada | src/tests/ahven/ahven-listeners.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 60 | 2015-01-18T23:05:34.000Z | 2022-03-20T18:56:30.000Z | src/tests/ahven/ahven-listeners.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 20 | 2016-09-15T16:41:30.000Z | 2022-03-29T22:02:32.000Z | src/tests/ahven/ahven-listeners.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 10 | 2015-02-13T04:00:45.000Z | 2022-03-20T18:57:54.000Z | --
-- Copyright (c) 2007, 2008 Tero Koskinen <[email protected]>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
with Ada.Finalization;
with Ahven.AStrings;
with Ahven.Long_AStrings;
package Ahven.Listeners is
type Test_Phase is (TEST_BEGIN, TEST_RUN, TEST_END);
-- What is test doing right now?
type Test_Type is (CONTAINER, ROUTINE);
type Context (Phase : Test_Phase) is record
Test_Name : AStrings.Bounded_String;
Test_Kind : Test_Type;
case Phase is
when TEST_BEGIN | TEST_END =>
null;
when TEST_RUN =>
Routine_Name : AStrings.Bounded_String;
Message : AStrings.Bounded_String;
Long_Message : Long_AStrings.Bounded_String;
end case;
end record;
type Result_Listener is
abstract new Ada.Finalization.Limited_Controlled with null record;
-- Result_Listener is a listener for test results.
-- Whenever a test is run, the framework calls
-- registered listeners and tells them the result of the test.
type Result_Listener_Class_Access is access all Result_Listener'Class;
procedure Add_Pass (Listener : in out Result_Listener;
Info : Context) is abstract;
-- Called after test passes.
procedure Add_Failure (Listener : in out Result_Listener;
Info : Context) is abstract;
-- Called after test fails.
procedure Add_Skipped (Listener : in out Result_Listener;
Info : Context);
-- Called when user wants to skip the test.
procedure Add_Error (Listener : in out Result_Listener;
Info : Context) is abstract;
-- Called after there is an error in the test.
procedure Start_Test (Listener : in out Result_Listener;
Info : Context) is abstract;
-- Called before the test begins. This is called before Add_* procedures.
procedure End_Test (Listener : in out Result_Listener;
Info : Context) is abstract;
-- Called after the test ends. Add_* procedures are called before this.
end Ahven.Listeners;
| 39.805556 | 76 | 0.675855 |
2f4094d55afa85df4733f901b2a2544ad994f7cc | 3,509 | adb | Ada | src/glfw/v3/glfw-windows-hints.adb | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | null | null | null | src/glfw/v3/glfw-windows-hints.adb | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | null | null | null | src/glfw/v3/glfw-windows-hints.adb | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | null | null | null | -- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
with Glfw.Enums;
package body Glfw.Windows.Hints is
procedure Reset_To_Defaults renames API.Default_Window_Hints;
procedure Set_Resizable (Value : Boolean) is
begin
API.Window_Hint (Enums.Resizable, Bool (Value));
end Set_Resizable;
procedure Set_Visible (Value : Boolean) is
begin
API.Window_Hint (Enums.Visible, Bool (Value));
end Set_Visible;
procedure Set_Decorated (Value : Boolean) is
begin
API.Window_Hint (Enums.Decorated, Bool (Value));
end Set_Decorated;
procedure Set_Color_Bits (Red, Green, Blue, Alpha : Natural) is
begin
API.Window_Hint (Enums.Red_Bits, Interfaces.C.int (Red));
API.Window_Hint (Enums.Green_Bits, Interfaces.C.int (Green));
API.Window_Hint (Enums.Blue_Bits, Interfaces.C.int (Blue));
API.Window_Hint (Enums.Alpha_Bits, Interfaces.C.int (Alpha));
end Set_Color_Bits;
procedure Set_Depth_Bits (Value : Natural) is
begin
API.Window_Hint (Enums.Depth_Bits, Interfaces.C.int (Value));
end Set_Depth_Bits;
procedure Set_Stencil_Bits (Value : Natural) is
begin
API.Window_Hint (Enums.Stencil_Bits, Interfaces.C.int (Value));
end Set_Stencil_Bits;
procedure Set_Accumulation_Bits (Red, Green, Blue, Alpha : Natural) is
begin
API.Window_Hint (Enums.Accum_Red_Bits, Interfaces.C.int (Red));
API.Window_Hint (Enums.Accum_Green_Bits, Interfaces.C.int (Green));
API.Window_Hint (Enums.Accum_Blue_Bits, Interfaces.C.int (Blue));
API.Window_Hint (Enums.Accum_Alpha_Bits, Interfaces.C.int (Alpha));
end Set_Accumulation_Bits;
procedure Set_Aux_Buffers (Value : Natural) is
begin
API.Window_Hint (Enums.Aux_Buffers, Interfaces.C.int (Value));
end Set_Aux_Buffers;
procedure Set_Stereo (Value : Boolean) is
begin
API.Window_Hint (Enums.Stereo, Bool (Value));
end Set_Stereo;
procedure Set_Samples (Value : Natural) is
begin
API.Window_Hint (Enums.Samples, Interfaces.C.int (Value));
end Set_Samples;
procedure Set_SRGB_Capable (Value : Boolean) is
begin
API.Window_Hint (Enums.SRGB_Capable, Bool (Value));
end Set_SRGB_Capable;
procedure Set_Refresh_Rate (Value : Natural) is
begin
API.Window_Hint (Enums.Refresh_Rate, Interfaces.C.int (Value));
end Set_Refresh_Rate;
procedure Set_Client_API (Value : Context.API_Kind) is
begin
API.Window_Hint (Enums.Client_API, Value);
end Set_Client_API;
procedure Set_Minimum_OpenGL_Version (Major : Positive; Minor : Natural) is
begin
API.Window_Hint (Enums.Context_Version_Major, Interfaces.C.int (Major));
API.Window_Hint (Enums.Context_Version_Minor, Interfaces.C.int (Minor));
end Set_Minimum_OpenGL_Version;
procedure Set_Robustness (Value : Context.Robustness_Kind) is
begin
API.Window_Hint (Enums.Context_Robustness, Value);
end Set_Robustness;
procedure Set_Forward_Compat (Value : Boolean) is
begin
API.Window_Hint (Enums.OpenGL_Forward_Compat, Bool (Value));
end Set_Forward_Compat;
procedure Set_Debug_Context (Value : Boolean) is
begin
API.Window_Hint (Enums.OpenGL_Debug_Context, Bool (Value));
end Set_Debug_Context;
procedure Set_Profile (Value : Context.OpenGL_Profile_Kind) is
begin
API.Window_Hint (Enums.OpenGL_Profile, Value);
end Set_Profile;
end Glfw.Windows.Hints;
| 32.192661 | 78 | 0.723568 |
3d416a7aed4f31f95ef3be1ad28f586775b664f9 | 998 | adb | Ada | gi_01/src/wa1.adb | gerr135/gnat_bugs | e2e1c085c96919924c13bef99409766525a76712 | [
"Unlicense"
] | null | null | null | gi_01/src/wa1.adb | gerr135/gnat_bugs | e2e1c085c96919924c13bef99409766525a76712 | [
"Unlicense"
] | null | null | null | gi_01/src/wa1.adb | gerr135/gnat_bugs | e2e1c085c96919924c13bef99409766525a76712 | [
"Unlicense"
] | null | null | null | pragma Ada_2012;
with Ada.Text_IO;
package body wa1 is
procedure Set_Smth (AB : in out Abstract_Base'Class; smth : Integer) is
use Ada.Text_IO;
begin
Put_Line(" Set_smth(" & smth'img & ")"); -- never gets here
declare
R : Repr := AB.ToRepr;
begin
R.smth := smth;
AB.FromRepr(R);
end;
end Set_Smth;
overriding
function ToRepr (B : Base) return Repr is
R : Repr(Natural(B.sv.Length));
use Ada.Text_IO;
begin
Put_Line(" ToRepr");
R.smth := B.smth;
for i in 1 .. Integer(B.sv.Length) loop
R.sa(i) := B.sv(i);
end loop;
return R;
end ToRepr;
overriding
procedure FromRepr (B : in out Base; R : Repr) is
use Ada.Text_IO;
begin
Put_Line(" FromRepr");
B.smth := R.smth;
for i in 1 .. R.sa'Length loop
B.sv(i) := R.sa(i);
end loop;
end FromRepr;
end wa1;
| 23.209302 | 75 | 0.51503 |
29d7a7e146cf92409a02fcff1008d869dd762fc5 | 120 | adb | Ada | tests/syntax/good/testfile-params-3.adb | xuedong/mini-ada | 59a8b966cf50ba22a3b5a7cb449f671e4da32e44 | [
"MIT"
] | null | null | null | tests/syntax/good/testfile-params-3.adb | xuedong/mini-ada | 59a8b966cf50ba22a3b5a7cb449f671e4da32e44 | [
"MIT"
] | 1 | 2019-03-10T19:13:21.000Z | 2019-03-10T19:19:46.000Z | tests/syntax/good/testfile-params-3.adb | xuedong/mini-ada | 59a8b966cf50ba22a3b5a7cb449f671e4da32e44 | [
"MIT"
] | null | null | null | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F return integer is begin return 0; end;
begin F; end;
| 20 | 51 | 0.75 |
29e177a45570fb88dc0858ccccd8b676fa933131 | 19,905 | adb | Ada | arch/ARM/STM32/driversL1/stm32-dac.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | arch/ARM/STM32/driversL1/stm32-dac.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/driversL1/stm32-dac.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"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_dac.c and stm32f4xx_hal_dac_ex.c --
-- @author MCD Application Team --
-- @version V1.3.1 --
-- @date 25-March-2015 --
-- @brief Header file of DAC HAL module. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with STM32_SVD.DAC; use STM32_SVD.DAC;
package body STM32.DAC is
------------
-- Enable --
------------
procedure Enable
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
-- This.MCR.MODE1 := 0; -- conn 2 pin, buff enabled
This.CR.EN1 := True;
when Channel_2 =>
-- This.MCR.MODE2 := 0; -- conn 2 pin, buff enabled
This.CR.EN2 := True;
end case;
end Enable;
-------------
-- Disable --
-------------
procedure Disable
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.EN1 := False;
when Channel_2 =>
This.CR.EN2 := False;
end case;
end Disable;
-------------
-- Enabled --
-------------
function Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean is
begin
case Channel is
when Channel_1 =>
return This.CR.EN1;
when Channel_2 =>
return This.CR.EN2;
end case;
end Enabled;
----------------
-- Set_Output --
----------------
procedure Set_Output
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Value : UInt32;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
is
begin
case Channel is
when Channel_1 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12L1.DACC1DHR :=
UInt12 (Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12R1.DACC1DHR :=
UInt12 (Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8R1.DACC1DHR := UInt8 (Value and Max_8bit_Resolution);
end case;
when Channel_2 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12L2.DACC2DHR :=
UInt12 (Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12R2.DACC2DHR :=
UInt12 (Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8R2.DACC2DHR := UInt8 (Value and Max_8bit_Resolution);
end case;
end case;
end Set_Output;
------------------------------------
-- Trigger_Conversion_By_Software --
------------------------------------
procedure Trigger_Conversion_By_Software
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.SWTRIGR.SWTRIG.Arr (1) := True; -- cleared by hardware
when Channel_2 =>
This.SWTRIGR.SWTRIG.Arr (2) := True; -- cleared by hardware
end case;
end Trigger_Conversion_By_Software;
------------------------------------
-- Trigger_Conversion_By_Software --
------------------------------------
procedure Trigger_Conversion_By_Software
(This : in out Digital_To_Analog_Converter)
is
begin
This.SWTRIGR.SWTRIG.Arr (1) := True; -- cleared by hardware
This.SWTRIGR.SWTRIG.Arr (2) := True; -- cleared by hardware
end Trigger_Conversion_By_Software;
----------------------------
-- Converted_Output_Value --
----------------------------
function Converted_Output_Value
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return UInt32
is
begin
case Channel is
when Channel_1 =>
return UInt32 (This.DOR1.DACC1DOR);
when Channel_2 =>
return UInt32 (This.DOR2.DACC2DOR);
end case;
end Converted_Output_Value;
------------------------------
-- Set_Dual_Output_Voltages --
------------------------------
procedure Set_Dual_Output_Voltages
(This : in out Digital_To_Analog_Converter;
Channel_1_Value : UInt32;
Channel_2_Value : UInt32;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
is
begin
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12LD.DACC1DHR :=
UInt12 (Channel_1_Value and Max_12bit_Resolution);
This.DHR12LD.DACC2DHR :=
UInt12 (Channel_2_Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12RD.DACC1DHR :=
UInt12 (Channel_1_Value and Max_12bit_Resolution);
This.DHR12RD.DACC2DHR :=
UInt12 (Channel_2_Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8RD.DACC1DHR :=
UInt8 (Channel_1_Value and Max_8bit_Resolution);
This.DHR8RD.DACC2DHR :=
UInt8 (Channel_2_Value and Max_8bit_Resolution);
end case;
end Set_Dual_Output_Voltages;
---------------------------------
-- Converted_Dual_Output_Value --
---------------------------------
function Converted_Dual_Output_Value (This : Digital_To_Analog_Converter)
return Dual_Channel_Output
is
Result : Dual_Channel_Output;
begin
Result.Channel_1_Data := UInt16 (This.DOR1.DACC1DOR);
Result.Channel_2_Data := UInt16 (This.DOR2.DACC2DOR);
return Result;
end Converted_Dual_Output_Value;
--------------------
-- Select_Trigger --
--------------------
procedure Select_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Trigger : External_Event_Trigger_Selection)
is
begin
case Channel is
when Channel_1 =>
This.CR.TSEL1 :=
External_Event_Trigger_Selection'Enum_Rep (Trigger);
when Channel_2 =>
This.CR.TSEL2 :=
External_Event_Trigger_Selection'Enum_Rep (Trigger);
end case;
end Select_Trigger;
-----------------------
-- Trigger_Selection --
-----------------------
function Trigger_Selection
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return External_Event_Trigger_Selection
is
begin
case Channel is
when Channel_1 =>
return External_Event_Trigger_Selection'Val (This.CR.TSEL1);
when Channel_2 =>
return External_Event_Trigger_Selection'Val (This.CR.TSEL2);
end case;
end Trigger_Selection;
--------------------
-- Enable_Trigger --
--------------------
procedure Enable_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.TEN1 := True;
when Channel_2 =>
This.CR.TEN2 := True;
end case;
end Enable_Trigger;
---------------------
-- Disable_Trigger --
---------------------
procedure Disable_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.TEN1 := False;
when Channel_2 =>
This.CR.TEN2 := False;
end case;
end Disable_Trigger;
---------------------
-- Trigger_Enabled --
---------------------
function Trigger_Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean
is
begin
case Channel is
when Channel_1 =>
return This.CR.TEN1;
when Channel_2 =>
return This.CR.TEN2;
end case;
end Trigger_Enabled;
----------------
-- Enable_DMA --
----------------
procedure Enable_DMA
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.DMAEN1 := True;
when Channel_2 =>
This.CR.DMAEN2 := True;
end case;
end Enable_DMA;
-----------------
-- Disable_DMA --
-----------------
procedure Disable_DMA
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.DMAEN1 := False;
when Channel_2 =>
This.CR.DMAEN2 := False;
end case;
end Disable_DMA;
-----------------
-- DMA_Enabled --
-----------------
function DMA_Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean
is
begin
case Channel is
when Channel_1 =>
return This.CR.DMAEN1;
when Channel_2 =>
return This.CR.DMAEN2;
end case;
end DMA_Enabled;
------------
-- Status --
------------
function Status
(This : Digital_To_Analog_Converter;
Flag : DAC_Status_Flag)
return Boolean
is
begin
case Flag is
when DMA_Underrun_Channel_1 =>
return This.SR.DMAUDR1;
when DMA_Underrun_Channel_2 =>
return This.SR.DMAUDR2;
end case;
end Status;
------------------
-- Clear_Status --
------------------
procedure Clear_Status
(This : in out Digital_To_Analog_Converter;
Flag : DAC_Status_Flag)
is
begin
case Flag is
when DMA_Underrun_Channel_1 =>
This.SR.DMAUDR1 := True; -- set to 1 to clear
when DMA_Underrun_Channel_2 =>
This.SR.DMAUDR2 := True; -- set to 1 to clear
end case;
end Clear_Status;
-----------------------
-- Enable_Interrupts --
-----------------------
procedure Enable_Interrupts
(This : in out Digital_To_Analog_Converter;
Source : DAC_Interrupts)
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
This.CR.DMAUDRIE1 := True;
when DMA_Underrun_Channel_2 =>
This.CR.DMAUDRIE2 := True;
end case;
end Enable_Interrupts;
------------------------
-- Disable_Interrupts --
------------------------
procedure Disable_Interrupts
(This : in out Digital_To_Analog_Converter;
Source : DAC_Interrupts)
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
This.CR.DMAUDRIE1 := False;
when DMA_Underrun_Channel_2 =>
This.CR.DMAUDRIE2 := False;
end case;
end Disable_Interrupts;
-----------------------
-- Interrupt_Enabled --
-----------------------
function Interrupt_Enabled
(This : Digital_To_Analog_Converter;
Source : DAC_Interrupts)
return Boolean
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
return This.CR.DMAUDRIE1;
when DMA_Underrun_Channel_2 =>
return This.CR.DMAUDRIE2;
end case;
end Interrupt_Enabled;
----------------------
-- Interrupt_Source --
----------------------
function Interrupt_Source
(This : Digital_To_Analog_Converter)
return DAC_Interrupts
is
begin
if This.CR.DMAUDRIE1 then
return DMA_Underrun_Channel_1;
else
return DMA_Underrun_Channel_2;
end if;
end Interrupt_Source;
-----------------------------
-- Clear_Interrupt_Pending --
-----------------------------
procedure Clear_Interrupt_Pending
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.SR.DMAUDR1 := False;
when Channel_2 =>
This.SR.DMAUDR2 := False;
end case;
end Clear_Interrupt_Pending;
----------------------------
-- Select_Wave_Generation --
----------------------------
procedure Select_Wave_Generation
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Selection : Wave_Generation)
is
function As_UInt4 is new Ada.Unchecked_Conversion
(Source => Noise_Wave_Mask_Selection, Target => UInt4);
function As_UInt4 is new Ada.Unchecked_Conversion
(Source => Triangle_Wave_Amplitude_Selection, Target => UInt4);
begin
case Channel is
when Channel_1 =>
This.CR.WAVE1 :=
Wave_Generation_Selection'Enum_Rep (Selection.Kind);
when Channel_2 =>
This.CR.WAVE2 :=
Wave_Generation_Selection'Enum_Rep (Selection.Kind);
end case;
case Selection.Kind is
when No_Wave_Generation =>
null;
when Noise_Wave =>
case Channel is
when Channel_1 =>
This.CR.MAMP1 := As_UInt4 (Selection.Mask);
when Channel_2 =>
This.CR.MAMP2 := As_UInt4 (Selection.Mask);
end case;
when Triangle_Wave =>
case Channel is
when Channel_1 =>
This.CR.MAMP1 := As_UInt4 (Selection.Amplitude);
when Channel_2 =>
This.CR.MAMP2 := As_UInt4 (Selection.Amplitude);
end case;
end case;
end Select_Wave_Generation;
------------------------------
-- Selected_Wave_Generation --
------------------------------
function Selected_Wave_Generation
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Wave_Generation
is
Kind : Wave_Generation_Selection;
function As_Mask is new Ada.Unchecked_Conversion
(Target => Noise_Wave_Mask_Selection, Source => UInt4);
function As_Amplitude is new Ada.Unchecked_Conversion
(Target => Triangle_Wave_Amplitude_Selection, Source => UInt4);
begin
case Channel is
when Channel_1 =>
Kind := Wave_Generation_Selection'Val (This.CR.WAVE1);
when Channel_2 =>
Kind := Wave_Generation_Selection'Val (This.CR.WAVE2);
end case;
declare
Result : Wave_Generation (Kind);
begin
case Kind is
when No_Wave_Generation =>
null;
when Noise_Wave =>
case Channel is
when Channel_1 =>
Result.Mask := As_Mask (This.CR.MAMP1);
when Channel_2 =>
Result.Mask := As_Mask (This.CR.MAMP2);
end case;
when Triangle_Wave =>
case Channel is
when Channel_1 =>
Result.Amplitude := As_Amplitude (This.CR.MAMP1);
when Channel_2 =>
Result.Amplitude := As_Amplitude (This.CR.MAMP2);
end case;
end case;
return Result;
end;
end Selected_Wave_Generation;
------------------
-- Data_Address --
------------------
function Data_Address
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
return Address
is
Result : Address;
begin
case Channel is
when Channel_1 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
Result := This.DHR12L1'Address;
when Right_Aligned =>
Result := This.DHR12R1'Address;
end case;
when DAC_Resolution_8_Bits =>
Result := This.DHR8R1'Address;
end case;
when Channel_2 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
Result := This.DHR12L2'Address;
when Right_Aligned =>
Result := This.DHR12R2'Address;
end case;
when DAC_Resolution_8_Bits =>
Result := This.DHR8R2'Address;
end case;
end case;
return Result;
end Data_Address;
end STM32.DAC;
| 30.43578 | 80 | 0.514092 |
3d5eb34cfe9b9319c424e0ba94190897d066952c | 12,316 | adb | Ada | example_relationships/src/generic_list.adb | cortlandstarrett/mcada | d1a7a818f91459d53bd5b9354bc7d78e2c5d4518 | [
"Apache-2.0"
] | null | null | null | example_relationships/src/generic_list.adb | cortlandstarrett/mcada | d1a7a818f91459d53bd5b9354bc7d78e2c5d4518 | [
"Apache-2.0"
] | null | null | null | example_relationships/src/generic_list.adb | cortlandstarrett/mcada | d1a7a818f91459d53bd5b9354bc7d78e2c5d4518 | [
"Apache-2.0"
] | 1 | 2021-06-08T19:44:04.000Z | 2021-06-08T19:44:04.000Z | -- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Government
-- purposes.
--
-- The copyright in this code is the property of BAE SYSTEMS Electronic Systems Limited.
-- The Code is supplied by BAE SYSTEMS on the express terms that it is to be treated in
-- confidence and that it may not be copied, used or disclosed to others for any
-- purpose except in accordance with DEFCON 91 (Edn 10/92).
--
-- File Name: Generic_List.adb
-- Version: As detailed by ClearCase
-- Version Date: As detailed by ClearCase
-- Creation Date: 03-11-99
-- Security Classification: Unclassified
-- Project: SRLE (Sting Ray Life Extension)
-- Author: J Mann
-- Section: Tactical Software/ Software Architecture
-- Division: Underwater Systems Division
-- Description: Implementation of application-wide list type
-- Comments:
--
-- MODIFICATION RECORD
-- --------------------
-- NAME DATE ECR No MODIFICATION
--
-- jmm 29/06/99 QAR beatd40
--
-- jmm 10/05/00 ecr 008996 Cosmetic changes to source code, but no change to code content.
-- Changes can be identified by comparison with previous version.
--
-- jmm 11/07/00 PILOT_0000_0452 Add additional operation to remove entries without destroying
-- list.
--
-- db 04/07/01 PILOT_0000_0262 Set Stepping_Pointer to null
-- PILOT_0000_0230 Remove use clause as per coding standards.
--
-- db 08/02/02 SRLE100001619 Prevent de-referencing an empty queue when clearing.
--
-- db 17/04/02 SRLE100003005 Removal of loitering legacy code.
--
-- **************************************************************************************
with Ada.Unchecked_Deallocation;
with Application_Types;
use type Application_Types.Base_Integer_Type;
package body Generic_List is
--
-- Provide two removal procedures
procedure Remove_Node is new Ada.Unchecked_Deallocation (Node_Type, Node_Access_Type);
procedure Remove_List is new Ada.Unchecked_Deallocation (List_Header_Type, List_Header_Access_Type);
---------------------------------------------------------------------
function Initialise return List_Header_Access_Type is
Temp_Entry: List_Header_Access_Type;
begin
--
-- allocate new memory for the header information
--
Temp_Entry := new List_Header_Type;
--
-- and set the fields up. These could be replaced by default values in the
-- record declaration.
--
Temp_Entry.First_Entry := null;
Temp_Entry.Count := 0;
Temp_Entry.Free_List := null;
Temp_Entry.Free_List_Count := 0;
-- DEFECT 262 set Stepping_Pointer to null.
Temp_Entry.Stepping_Pointer := null;
return Temp_Entry;
end Initialise;
---------------------------------------------------------------------
function Count_Of (Target_List : List_Header_Access_Type) return Application_Types.Base_Integer_Type is
begin
return Target_List.Count;
end Count_Of;
---------------------------------------------------------------------
function Count_Of_Free_List (Target_List : List_Header_Access_Type) return Application_Types.Base_Integer_Type is
begin
return Target_List.Free_List_Count;
end Count_Of_Free_List;
---------------------------------------------------------------------
function Max_Count_Of (Target_List : List_Header_Access_Type) return Application_Types.Base_Integer_Type is
begin
return Target_List.Max_Count;
end Max_Count_Of;
---------------------------------------------------------------------
function First_Entry_Of (Target_List : List_Header_Access_Type) return Node_Access_Type is
begin
Target_List.Stepping_Pointer := Target_List.First_Entry;
return Target_List.Stepping_Pointer;
end First_Entry_Of;
---------------------------------------------------------------------
function Next_Entry_Of (Target_List : List_Header_Access_Type) return Node_Access_Type is
begin
Target_List.Stepping_Pointer := Target_List.Stepping_Pointer.Next;
return Target_List.Stepping_Pointer;
end Next_Entry_Of;
---------------------------------------------------------------------
procedure Insert (New_Item : in Element_Type;
On_To : in List_Header_Access_Type) is
New_Cell: Node_Access_Type;
begin
if On_To.Free_List = null then
--
-- there are no 'old' entries available for reuse
--
begin
New_Cell:= new Node_Type;
exception
when Storage_Error => raise List_Storage_Error ;
end;
--
-- this has been placed in a block to limit the scope of the exception handler
--
else -- Free_List /= null
--
-- there is an 'old' entry available for reuse, so grab it
--
New_Cell := On_To.Free_List;
On_To.Free_List := On_To.Free_List.Next;
On_To.Free_List_Count := On_To.Free_List_Count - 1;
end if; -- Free_List = null
--
-- The new call has been identified, so set it up
--
New_Cell.all := (
Item => New_Item,
Next => On_To.First_Entry);
On_To.First_Entry := New_Cell;
--
-- and increment the list size
--
On_To.Count := On_To.Count + 1;
if On_To.Count > On_To.Max_Count then
On_To.Max_Count := On_To.Count;
end if;
end Insert;
---------------------------------------------------------------------
procedure Delete (Item : in Node_Access_Type;
From : in out List_Header_Access_Type) is
Temp_Node : Node_Type;
Temp_Node_Pointer : Node_Access_Type;
begin
-- If item to delete and list to delete from are both valid
if (From /= null) and then (Item /= null) then
Temp_Node_Pointer := From.First_Entry;
if (Temp_Node_Pointer /= null) then
--
-- a request to delete an item from an empty queue
--
--
-- queue is not empty, find the requested item
--
if Temp_Node_Pointer = Item then
--
-- it's the first in the list to be deleted
--
Temp_Node.Next := Temp_Node_Pointer.Next;
From.First_Entry.Next := From.Free_List;
From.Free_List := Temp_Node_Pointer;
From.First_Entry := Temp_Node.Next;
From.Count := From.Count - 1;
From.Free_List_Count := From.Free_List_Count + 1;
else -- Temp_Node_Pointer /= Item
--
-- step through the list and find it
--
loop
exit when Temp_Node_Pointer.next = null;
--
-- or if the end is reached without finding it
--
if Temp_Node_Pointer.next = Item then
--
-- Found it. So remove it to the free list and remake the queue links
--
Temp_Node.Next := Temp_Node_Pointer.Next.Next;
Temp_Node_Pointer.Next.Next := From.Free_List;
From.Free_List := Temp_Node_Pointer.Next;
Temp_Node_Pointer.Next := Temp_Node.Next;
From.Count := From.Count - 1;
From.Free_List_Count := From.Free_List_Count + 1;
exit;
end if; --Temp_Node_Pointer.next = Item
Temp_Node_Pointer := Temp_Node_Pointer.Next;
--
-- Or not found, so let's look at the next in the list
--
end loop;
end if; -- Temp_Node_Pointer = Item
end if; -- Temp_Node_Pointer /= null
end if; -- Item or list /= null
--
-- there is no indication here:
-- a) if an item was deleted
-- b) if the requested item was not found in the list
-- c) if the list was empty
-- However, there is not yet any facility to act on this error information, so watch this space.
--
end Delete;
---------------------------------------------------------------------
--
-- PILOT_0000_0452 Add additional operation to remove entries without destroying list.
---------------------------------------------------------------------
procedure Clear (From : in out List_Header_Access_Type) is
Old_Cell : Node_Access_Type;
begin
-- SRLE100001619 Prevent de-referencing an empty queue
if From /= null then
while From.First_Entry /= null loop
--
-- don't try to clear an already-empty queue
--
Old_Cell := From.First_Entry;
From.First_Entry := From.First_Entry.Next;
--
-- Got one. So remove it to the free list
--
Old_Cell.Next := From.Free_List;
From.Free_List := Old_Cell;
--
From.Count := From.Count - 1;
From.Free_List_Count := From.Free_List_Count + 1;
--
-- Try again.
--
end loop; -- while From.First_Entry /= null
end if;
end Clear;
---------------------------------------------------------------------
procedure Destroy_List (Target_List : in out List_Header_Access_Type) is
Temp_Node_Pointer : Node_Access_Type;
Counter : Natural;
begin
--
-- qar beatd40
-- incorporate a null test into Destroy_List as changes to other components can result in the
-- attempted destruction of non-initialised lists
--
if Target_List /= null then
--
-- iterate over the free list and remove each individual item
--
Counter := 0;
while Target_List.Free_List /= null loop
Temp_Node_Pointer := Target_List.Free_List;
Target_List.Free_List := Target_List.Free_List.Next;
Remove_Node (Temp_Node_Pointer);
Counter := Counter + 1;
end loop;
--
-- iterate over the active list and remove each individual item
--
Counter := 0;
while Target_List.First_Entry /= null loop
Temp_Node_Pointer := Target_List.First_Entry;
Target_List.First_Entry := Target_List.First_Entry.Next;
Remove_Node (Temp_Node_Pointer);
Counter := Counter + 1;
end loop;
--
-- and finally remove the header information
--
Remove_List (Target_List);
end if;
end Destroy_List;
---------------------------------------------------------------------
function First_Entry_Of_Free_List (Target_List : List_Header_Access_Type) return Node_Access_Type is
begin
Target_List.Stepping_Pointer := Target_List.Free_List;
return Target_List.Stepping_Pointer;
end First_Entry_Of_Free_List;
---------------------------------------------------------------------
function Next_Entry_Of_Free_List (Target_List : List_Header_Access_Type) return Node_Access_Type is
begin
Target_List.Stepping_Pointer := Target_List.Stepping_Pointer.Next;
return Target_List.Stepping_Pointer;
end Next_Entry_Of_Free_List;
---------------------------------------------------------------------
end Generic_List;
| 36.117302 | 116 | 0.529068 |
06c963029d2b18fa4b8705e7c1b8b78faf5ec865 | 17,760 | adb | Ada | src/asf-responses.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | src/asf-responses.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | src/asf-responses.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- asf.responses -- ASF Responses
-- Copyright (C) 2010, 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.Strings;
-- The <b>ASF.Responses</b> package is an Ada implementation of
-- the Java servlet response (JSR 315 5. The Response).
package body ASF.Responses is
-- Returns the name of the character encoding (MIME charset) used for the body
-- sent in this response. The character encoding may have been specified explicitly
-- using the setCharacterEncoding(String) or setContentType(String) methods,
-- or implicitly using the setLocale(java.util.Locale) method. Explicit
-- specifications take precedence over implicit specifications. Calls made
-- to these methods after getWriter has been called or after the response has
-- been committed have no effect on the character encoding. If no character
-- encoding has been specified, ISO-8859-1 is returned.
function Get_Character_Encoding (Resp : in Response) return String is
pragma Unreferenced (Resp);
begin
return "";
end Get_Character_Encoding;
-- ------------------------------
-- Returns the content type used for the MIME body sent in this response.
-- The content type proper must have been specified using
-- setContentType(String) before the response is committed. If no content type
-- has been specified, this method returns null. If a content type has been
-- specified, and a character encoding has been explicitly or implicitly specified
-- as described in getCharacterEncoding() or getWriter() has been called,
-- the charset parameter is included in the string returned. If no character
-- encoding has been specified, the charset parameter is omitted.
-- ------------------------------
function Get_Content_Type (Resp : in Response) return String is
begin
return Ada.Strings.Unbounded.To_String (Resp.Content_Type);
end Get_Content_Type;
-- Sets the character encoding (MIME charset) of the response being sent to the
-- client, for example, to UTF-8. If the character encoding has already been
-- set by setContentType(java.lang.String) or setLocale(java.util.Locale),
-- this method overrides it. Calling setContentType(java.lang.String) with the
-- String of text/html and calling this method with the String of UTF-8 is
-- equivalent with calling setContentType with the String of text/html; charset=UTF-8.
--
-- This method can be called repeatedly to change the character encoding.
-- This method has no effect if it is called after getWriter has been called or
-- after the response has been committed.
--
-- Containers must communicate the character encoding used for the servlet
-- response's writer to the client if the protocol provides a way for doing so.
-- In the case of HTTP, the character encoding is communicated as part of the
-- Content-Type header for text media types. Note that the character encoding
-- cannot be communicated via HTTP headers if the servlet does not specify
-- a content type; however, it is still used to encode text written via the servlet
-- response's writer.
procedure Set_Character_Encoding (Resp : in out Response;
Encoding : in String) is
pragma Unreferenced (Encoding, Resp);
begin
null;
end Set_Character_Encoding;
-- ------------------------------
-- Sets the length of the content body in the response In HTTP servlets,
-- this method sets the HTTP Content-Length header.
-- ------------------------------
procedure Set_Content_Length (Resp : in out Response;
Length : in Integer) is
begin
Response'Class (Resp).Set_Header ("Content-Length", Util.Strings.Image (Length));
end Set_Content_Length;
-- ------------------------------
-- Sets the content type of the response being sent to the client, if the response
-- has not been committed yet. The given content type may include a character
-- encoding specification, for example, text/html;charset=UTF-8. The response's
-- character encoding is only set from the given content type if this method is
-- called before getWriter is called.
--
-- This method may be called repeatedly to change content type and character
-- encoding. This method has no effect if called after the response has been
-- committed. It does not set the response's character encoding if it is called
-- after getWriter has been called or after the response has been committed.
--
-- Containers must communicate the content type and the character encoding used
-- for the servlet response's writer to the client if the protocol provides a way
-- for doing so. In the case of HTTP, the Content-Type header is used.
-- ------------------------------
procedure Set_Content_Type (Resp : in out Response;
Content : in String) is
begin
Resp.Content_Type := Ada.Strings.Unbounded.To_Unbounded_String (Content);
end Set_Content_Type;
-- ------------------------------
-- Returns a boolean indicating if the response has been committed.
-- A committed response has already had its status code and headers written.
-- ------------------------------
function Is_Committed (Resp : in Response) return Boolean is
pragma Unreferenced (Resp);
begin
return False;
end Is_Committed;
-- ------------------------------
-- Sets the locale of the response, if the response has not been committed yet.
-- It also sets the response's character encoding appropriately for the locale,
-- if the character encoding has not been explicitly set using
-- setContentType(java.lang.String) or setCharacterEncoding(java.lang.String),
-- getWriter hasn't been called yet, and the response hasn't been committed yet.
-- If the deployment descriptor contains a locale-encoding-mapping-list element,
-- and that element provides a mapping for the given locale, that mapping is used.
-- Otherwise, the mapping from locale to character encoding is container dependent.
--
-- This method may be called repeatedly to change locale and character encoding.
-- The method has no effect if called after the response has been committed.
-- It does not set the response's character encoding if it is called after
-- setContentType(java.lang.String) has been called with a charset specification,
-- after setCharacterEncoding(java.lang.String) has been called,
-- after getWriter has been called, or after the response has been committed.
--
-- Containers must communicate the locale and the character encoding used for
-- the servlet response's writer to the client if the protocol provides a way
-- for doing so. In the case of HTTP, the locale is communicated via the
-- Content-Language header, the character encoding as part of the Content-Type
-- header for text media types. Note that the character encoding cannot be
-- communicated via HTTP headers if the servlet does not specify a content type;
-- however, it is still used to encode text written via the servlet response's writer.
-- ------------------------------
procedure Set_Locale (Resp : in out Response;
Loc : in Util.Locales.Locale) is
begin
Resp.Locale := Loc;
end Set_Locale;
-- ------------------------------
-- Returns the locale specified for this response using the
-- setLocale(java.util.Locale) method. Calls made to setLocale after the
-- response is committed have no effect. If no locale has been specified,
-- the container's default locale is returned.
-- ------------------------------
function Get_Locale (Resp : in Response) return Util.Locales.Locale is
begin
return Resp.Locale;
end Get_Locale;
-- ------------------------------
-- Adds the specified cookie to the response. This method can be called multiple
-- times to set more than one cookie.
-- ------------------------------
procedure Add_Cookie (Resp : in out Response;
Cookie : in ASF.Cookies.Cookie) is
begin
Response'Class (Resp).Add_Header (Name => "Set-Cookie",
Value => ASF.Cookies.To_Http_Header (Cookie));
end Add_Cookie;
-- Encodes the specified URL by including the session ID in it, or, if encoding
-- is not needed, returns the URL unchanged. The implementation of this method
-- includes the logic to determine whether the session ID needs to be encoded
-- in the URL. For example, if the browser supports cookies, or session tracking
-- is turned off, URL encoding is unnecessary.
--
-- For robust session tracking, all URLs emitted by a servlet should be run through
-- this method. Otherwise, URL rewriting cannot be used with browsers which do not
-- support cookies.
function Encode_URL (Resp : in Response;
URL : in String) return String is
pragma Unreferenced (Resp);
begin
return URL;
end Encode_URL;
-- Encodes the specified URL for use in the sendRedirect method or, if encoding
-- is not needed, returns the URL unchanged. The implementation of this method
-- includes the logic to determine whether the session ID needs to be encoded
-- in the URL. Because the rules for making this determination can differ from
-- those used to decide whether to encode a normal link, this method is separated
-- from the encodeURL method.
--
-- All URLs sent to the HttpServletResponse.sendRedirect method should be run
-- through this method. Otherwise, URL rewriting cannot be used with browsers
-- which do not support cookies.
function Encode_Redirect_URL (Resp : in Response;
URL : in String) return String is
pragma Unreferenced (Resp);
begin
return URL;
end Encode_Redirect_URL;
-- ------------------------------
-- Sends an error response to the client using the specified status. The server
-- defaults to creating the response to look like an HTML-formatted server error
-- page containing the specified message, setting the content type to "text/html",
-- leaving cookies and other headers unmodified. If an error-page declaration
-- has been made for the web application corresponding to the status code passed
-- in, it will be served back in preference to the suggested msg parameter.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
-- ------------------------------
procedure Send_Error (Resp : in out Response;
Error : in Integer;
Message : in String) is
pragma Unreferenced (Message);
begin
Resp.Status := Error;
end Send_Error;
-- Sends an error response to the client using the specified status code
-- and clearing the buffer.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
procedure Send_Error (Resp : in out Response;
Error : in Integer) is
begin
Resp.Status := Error;
end Send_Error;
-- ------------------------------
-- Sends a temporary redirect response to the client using the specified redirect
-- location URL. This method can accept relative URLs; the servlet container must
-- convert the relative URL to an absolute URL before sending the response to the
-- client. If the location is relative without a leading '/' the container
-- interprets it as relative to the current request URI. If the location is relative
-- with a leading '/' the container interprets it as relative to the servlet
-- container root.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
-- ------------------------------
procedure Send_Redirect (Resp : in out Response;
Location : in String) is
begin
Response'Class (Resp).Set_Status (SC_FOUND);
Response'Class (Resp).Set_Header (Name => "Location",
Value => Location);
end Send_Redirect;
-- Sets a response header with the given name and date-value.
-- The date is specified in terms of milliseconds since the epoch.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
procedure Set_Date_Header (Resp : in out Response;
Name : in String;
Date : in Ada.Calendar.Time) is
begin
null;
end Set_Date_Header;
-- Adds a response header with the given name and date-value. The date is specified
-- in terms of milliseconds since the epoch. This method allows response headers
-- to have multiple values.
procedure Add_Date_Header (Resp : in out Response;
Name : in String;
Date : in Ada.Calendar.Time) is
begin
null;
end Add_Date_Header;
-- Sets a response header with the given name and value. If the header had already
-- been set, the new value overwrites the previous one. The containsHeader
-- method can be used to test for the presence of a header before setting its value.
procedure Set_Header (Resp : in out Response;
Name : in String;
Value : in String) is
begin
null;
end Set_Header;
-- Adds a response header with the given name and value.
-- This method allows response headers to have multiple values.
procedure Add_Header (Resp : in out Response;
Name : in String;
Value : in String) is
begin
null;
end Add_Header;
-- ------------------------------
-- Sets a response header with the given name and integer value.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
-- ------------------------------
procedure Set_Int_Header (Resp : in out Response;
Name : in String;
Value : in Integer) is
begin
Response'Class (Resp).Set_Header (Name => Name,
Value => Util.Strings.Image (Value));
end Set_Int_Header;
-- ------------------------------
-- Adds a response header with the given name and integer value. This method
-- allows response headers to have multiple values.
-- ------------------------------
procedure Add_Int_Header (Resp : in out Response;
Name : in String;
Value : in Integer) is
begin
Response'Class (Resp).Add_Header (Name => Name,
Value => Util.Strings.Image (Value));
end Add_Int_Header;
-- ------------------------------
-- Sets the status code for this response. This method is used to set the
-- return status code when there is no error (for example, for the status
-- codes SC_OK or SC_MOVED_TEMPORARILY). If there is an error, and the caller
-- wishes to invoke an error-page defined in the web application, the sendError
-- method should be used instead.
--
-- The container clears the buffer and sets the Location header,
-- preserving cookies and other headers.
-- ------------------------------
procedure Set_Status (Resp : in out Response;
Status : in Natural) is
begin
Resp.Status := Status;
end Set_Status;
-- ------------------------------
-- Get the status code that will be returned by this response.
-- ------------------------------
function Get_Status (Resp : in Response) return Natural is
begin
return Resp.Status;
end Get_Status;
-- ------------------------------
-- Get the output stream
-- ------------------------------
function Get_Output_Stream (Resp : in Response) return ASF.Streams.Print_Stream is
begin
return Result : ASF.Streams.Print_Stream do
Result.Initialize (Resp.Stream.all'Access);
end return;
end Get_Output_Stream;
end ASF.Responses;
| 48.92562 | 90 | 0.638964 |
29f9371bebacca64b6724603dcba98e6aeafb3a7 | 1,444 | ads | Ada | specs/ada/common/tkmrpc-request-ike-dh_create.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | specs/ada/common/tkmrpc-request-ike-dh_create.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | specs/ada/common/tkmrpc-request-ike-dh_create.ads | DrenfongWong/tkm-rpc | 075d22871cf81d497aac656c7f03a513278b641c | [
"BSD-3-Clause"
] | null | null | null | with Tkmrpc.Types;
with Tkmrpc.Operations.Ike;
package Tkmrpc.Request.Ike.Dh_Create is
Data_Size : constant := 16;
type Data_Type is record
Dh_Id : Types.Dh_Id_Type;
Dha_Id : Types.Dha_Id_Type;
end record;
for Data_Type use record
Dh_Id at 0 range 0 .. (8 * 8) - 1;
Dha_Id at 8 range 0 .. (8 * 8) - 1;
end record;
for Data_Type'Size use Data_Size * 8;
Padding_Size : constant := Request.Body_Size - Data_Size;
subtype Padding_Range is Natural range 1 .. Padding_Size;
subtype Padding_Type is Types.Byte_Sequence (Padding_Range);
type Request_Type is record
Header : Request.Header_Type;
Data : Data_Type;
Padding : Padding_Type;
end record;
for Request_Type use record
Header at 0 range 0 .. (Request.Header_Size * 8) - 1;
Data at Request.Header_Size range 0 .. (Data_Size * 8) - 1;
Padding at Request.Header_Size + Data_Size range
0 .. (Padding_Size * 8) - 1;
end record;
for Request_Type'Size use Request.Request_Size * 8;
Null_Request : constant Request_Type :=
Request_Type'
(Header =>
Request.Header_Type'(Operation => Operations.Ike.Dh_Create,
Request_Id => 0),
Data =>
Data_Type'(Dh_Id => Types.Dh_Id_Type'First,
Dha_Id => Types.Dha_Id_Type'First),
Padding => Padding_Type'(others => 0));
end Tkmrpc.Request.Ike.Dh_Create;
| 30.083333 | 68 | 0.641274 |
3d47ba5be8a544549ecf755bdbe2de34aa6a8c0f | 892 | adb | Ada | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-expression-function.d/input.adb | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 1 | 2020-03-24T16:08:43.000Z | 2020-03-24T16:08:43.000Z | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-expression-function.d/input.adb | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | null | null | null | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-expression-function.d/input.adb | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | null | null | null | with Ada.Text_IO;
procedure Test is
My_Type : Boolean := True;
procedure Tagged_Procedure is
function Boolean_As_String return String is
(case My_Type is
when True => "True Value",
when False => "False Value");
function Another_Boolean_As_String return String is
(case My_Type is when True => "; function dummy0 return String is (",
when False => "; function dummy1 return String is (");
procedure p0 is
begin
Ada.Text_IO.put ("-0");
end p0;
function Yet_Boolean_As_String return String is
(case My_Type is
when True => "1",
when False => "0");
procedure p1 is
begin
Ada.Text_IO.put ("-1");
end p1;
begin
null;
end Tagged_Procedure;
procedure Not_Tagged_Procedure is
begin
null;
end Not_Tagged_Procedure;
begin
null;
end Test;
| 22.871795 | 76 | 0.617713 |
Subsets and Splits