CombinedText stringlengths 4 3.42M |
|---|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Call_Statements;
with Program.Interpretations;
package Program.Complete_Contexts.Call_Statements is
pragma Preelaborate;
procedure Call_Statement
(Sets : not null Program.Interpretations.Context_Access;
Setter : not null Program.Cross_Reference_Updaters
.Cross_Reference_Updater_Access;
Element : Program.Elements.Call_Statements.Call_Statement_Access);
end Program.Complete_Contexts.Call_Statements;
|
package I_Am_Ada is
procedure Ada_Procedure;
pragma Export (C, Ada_Procedure, "ada_proc");
end I_Am_Ada;
|
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Text_IO;
with Direct_IO;
with Latin_Utils.Strings_Package; use Latin_Utils.Strings_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
procedure Sorter is
-- This program sorts a file of lines (Strings) on 4 subStrings Mx .. Nx
-- Sort by Stringwise (different cases), numeric, or POS enumeration
package Boolean_Io is new Text_IO.Enumeration_IO (Boolean);
use Boolean_Io;
package Integer_IO is new Text_IO.Integer_IO (Integer);
use Integer_IO;
package Float_IO is new Text_IO.Float_IO (Float);
use Float_IO;
use Text_IO;
Name_Length : constant := 80;
Enter_Line : String (1 .. Name_Length) := (others => ' ');
Ls, Last : Integer := 0;
Input_Name : String (1 .. 80) := (others => ' ');
Line_Length : constant := 300;
-- ##################################
-- Max line length on input file
-- Shorter => less disk space to sort
Current_Length : Integer := 0;
subtype Text_Type is String (1 .. Line_Length);
--type LINE_TYPE is
-- record
-- CURRENT_LENGTH : CURRENT_LINE_LENGTH_TYPE := 0;
-- TEXT : TEXT_TYPE;
-- end record;
package Line_Io is new Direct_IO (Text_Type);
use Line_Io;
Blank_Text : constant Text_Type := (others => ' ');
Line_Text : Text_Type := Blank_Text;
Old_Line : Text_Type := Blank_Text;
P_Line : Text_Type := Blank_Text;
type Sort_Type is (A, C, G, U, N, F, P, S);
package Sort_Type_Io is new Text_IO.Enumeration_IO (Sort_Type);
use Sort_Type_Io;
type Way_Type is (I, D);
package Way_Type_Io is new Text_IO.Enumeration_IO (Way_Type);
use Way_Type_Io;
Input : Text_IO.File_Type;
Output : Text_IO.File_Type;
Work : Line_Io.File_Type;
M1, M2, M3, M4 : Natural := 1;
N1, N2, N3, N4 : Natural := Line_Length;
S1, S2, S3, S4 : Sort_Type := A;
W1, W2, W3, W4 : Way_Type := I;
Entry_Finished : exception;
-- For section numbering of large documents and standards
type Section_Type is
record
First_Level : Integer := 0;
Second_Level : Integer := 0;
Third_Level : Integer := 0;
Fourth_Level : Integer := 0;
Fifth_Level : Integer := 0;
end record;
No_Section : constant Section_Type := (0, 0, 0, 0, 0);
type Appendix_Type is (None, A, B, C, D, E, F, G, H, I, J, K, L, M,
N, O, P, Q, R, S, T, U, V, W, X, Y, Z);
package Appendix_Io is new Text_IO.Enumeration_IO (Appendix_Type);
type Appendix_Section_Type is record
Appendix : Appendix_Type := None;
Section : Section_Type := No_Section;
end record;
No_Appendix_Section : constant Appendix_Section_Type :=
(None, (0, 0, 0, 0, 0));
-- procedure PUT (OUTPUT : TEXT_IO.FILE_TYPE; S : SECTION_TYPE);
-- procedure PUT (S : SECTION_TYPE);
-- procedure GET (FROM : in STRING;
-- S : out SECTION_TYPE; LAST : out POSITIVE);
-- function "<"(A, B : SECTION_TYPE) return BOOLEAN;
--
-- procedure PUT (OUTPUT : TEXT_IO.FILE_TYPE; S : APPENDIX_SECTION_TYPE);
-- procedure PUT (S : APPENDIX_SECTION_TYPE);
-- procedure GET (FROM : in STRING;
-- S : out APPENDIX_SECTION_TYPE; LAST : out POSITIVE);
-- function "<"(A, B : APPENDIX_SECTION_TYPE) return BOOLEAN;
--
procedure Get (From : in String;
S : out Section_Type; Last : out Integer) is
L : Integer := 0;
Lt : constant Integer := From'Last;
begin
S := No_Section;
if Trim (From)'Last < From'First then
Last := From'First - 1; -- Nothing got processed
return; -- Empty String, no data -- Return default
end if;
Get (From, S.First_Level, L);
if L + 1 >= Lt then
Last := L;
return;
end if;
Get (From (L + 2 .. Lt), S.Second_Level, L);
if L + 1 >= Lt then
Last := L;
return;
end if;
Get (From (L + 2 .. Lt), S.Third_Level, L);
if L + 1 >= Lt then
Last := L;
return;
end if;
Get (From (L + 2 .. Lt), S.Fourth_Level, L);
if L + 1 >= Lt then
Last := L;
return;
end if;
Get (From (L + 2 .. Lt), S.Fifth_Level, L);
Last := L;
return;
exception
when Text_IO.End_Error =>
Last := L;
return;
when Text_IO.Data_Error =>
Last := L;
return;
when others =>
Put (" Unexpected exception in GET (FROM; SECTION_TYPE)" &
" with input =>");
Put (From);
New_Line;
Last := L;
raise;
end Get;
procedure Get (From : in String;
S : out Appendix_Section_Type; Last : out Integer) is
use Appendix_Io;
L : Integer := 0;
Ft : constant Integer := From'First;
Lt : constant Integer := From'Last;
begin
S := No_Appendix_Section;
if (Ft = Lt) or else
(Trim (From)'Length = 0)
then -- Empty/blank String, no data
Put ("@");
Last := From'First - 1; -- Nothing got processed
return; -- Return default
end if;
--PUT_LINE ("In GET =>" & FROM & '|');
begin
Get (From, S.Appendix, L);
--PUT ("A");
if L + 1 >= Lt then
Last := L;
return;
end if;
exception
when others =>
S.Appendix := None;
L := Ft - 2;
end;
-- PUT ("B");
-- GET (FROM (L+2 .. LT), S.SECTION.FIRST_LEVEL, L);
-- if L+1 >= LT then
-- LAST := L;
-- return;
-- end if;
--PUT ("C");
-- GET (FROM (L+2 .. LT), S.SECTION.SECOND_LEVEL, L);
-- if L+1 >= LT then
-- LAST := L;
-- return;
-- end if;
--PUT ("D");
-- GET (FROM (L+2 .. LT), S.SECTION.THIRD_LEVEL, L);
-- if L+1 >= LT then
-- LAST := L;
-- return;
-- end if;
--PUT ("E");
-- GET (FROM (L+2 .. LT), S.SECTION.FOURTH_LEVEL, L);
-- if L+1 >= LT then
-- LAST := L;
-- return;
-- end if;
--PUT ("F");
-- GET (FROM (L+2 .. LT), S.SECTION.FIFTH_LEVEL, L);
-- LAST := L;
--PUT ("G");
Get (From (L + 2 .. Lt), S.Section, L);
--PUT ("F");
return;
exception
when Text_IO.End_Error =>
Last := L;
return;
when Text_IO.Data_Error =>
Last := L;
return;
when others =>
Put
(" Unexpected exception in GET (FROM; APPENDIX_SECTION_TYPE)" &
" with input =>");
Put (From);
New_Line;
Last := L;
return;
end Get;
function "<"(A, B : Appendix_Section_Type) return Boolean is
begin
if A.Appendix > B.Appendix then
return False;
elsif A.Appendix < B.Appendix then
return True;
else
if A.Section.First_Level > B.Section.First_Level then
return False;
elsif A.Section.First_Level < B.Section.First_Level then
return True;
else
if A.Section.Second_Level > B.Section.Second_Level then
return False;
elsif A.Section.Second_Level < B.Section.Second_Level then
return True;
else
if A.Section.Third_Level > B.Section.Third_Level then
return False;
elsif A.Section.Third_Level < B.Section.Third_Level then
return True;
else
if A.Section.Fourth_Level > B.Section.Fourth_Level then
return False;
elsif A.Section.Fourth_Level < B.Section.Fourth_Level then
return True;
else
if A.Section.Fifth_Level > B.Section.Fifth_Level then
return False;
elsif A.Section.Fifth_Level < B.Section.Fifth_Level then
return True;
else
return False;
end if;
end if;
end if;
end if;
end if;
end if;
end "<";
procedure Prompt_For_Entry (Entry_Number : String) is
begin
Put ("Give starting column and size of ");
Put (Entry_Number);
Put_Line (" significant sort field ");
Put (" with optional sort type and way => ");
end Prompt_For_Entry;
procedure Get_Entry (Mx, Nx : out Natural;
Sx : out Sort_Type;
Wx : out Way_Type) is
M : Natural := 1;
N : Natural := Line_Length;
S : Sort_Type := A;
W : Way_Type := I;
Z : Natural := 0;
procedure Echo_Entry is
begin
Put (" Sorting on LINE ("); Put (M, 3);
Put (" .. "); Put (N, 3); Put (")");
Put (" with S = "); Put (S); Put (" and W = "); Put (W);
New_Line (2);
end Echo_Entry;
begin
M := 0;
N := Line_Length;
S := A;
W := I;
Get_Line (Enter_Line, Ls);
if Ls = 0 then
raise Entry_Finished;
end if;
Integer_IO.Get (Enter_Line (1 .. Ls), M, Last);
begin
Integer_IO.Get (Enter_Line (Last + 1 .. Ls), Z, Last);
if M = 0 or Z = 0 then
Put_Line ("Start or size of zero, you must be kidding, aborting");
raise Program_Error;
elsif M + Z > Line_Length then
Put_Line ("Size too large, going to end of line");
N := Line_Length;
else
N := M + Z - 1;
end if;
Sort_Type_Io.Get (Enter_Line (Last + 1 .. Ls), S, Last);
Way_Type_Io.Get (Enter_Line (Last + 1 .. Ls), W, Last);
Mx := M; Nx := N; Sx := S; Wx := W;
Echo_Entry;
return;
exception
when Program_Error =>
Put_Line ("PROGRAM_ERROR raised in GET_ENTRY");
raise;
when others =>
Mx := M; Nx := N; Sx := S; Wx := W;
Echo_Entry;
return;
end;
end Get_Entry;
function Ignore_Separators (S : String) return String is
T : String (S'First .. S'Last) := Lower_Case (S);
begin
for I in S'First + 1 .. S'Last - 1 loop
if (S (I - 1) /= '-' and then S (I - 1) /= '_') and then
(S (I) = '-' or else S (I) = '_') and then
(S (I + 1) /= '-' and then S (I + 1) /= '_')
then
T (I) := ' ';
end if;
end loop;
return T;
end Ignore_Separators;
function Ltu (C, D : Character) return Boolean is
begin
if D = 'v' then
if C < 'u' then
return True;
else
return False;
end if;
elsif D = 'j' then
if C < 'i' then
return True;
else
return False;
end if;
elsif D = 'V' then
if C < 'U' then
return True;
else
return False;
end if;
elsif D = 'J' then
if C < 'I' then
return True;
else
return False;
end if;
else
return C < D;
end if;
end Ltu;
function Equ (C, D : Character) return Boolean is
begin
if (D = 'u') or (D = 'v') then
if (C = 'u') or (C = 'v') then
return True;
else
return False;
end if;
elsif (D = 'i') or (D = 'j') then
if (C = 'i') or (C = 'j') then
return True;
else
return False;
end if;
elsif (D = 'U') or (D = 'V') then
if (C = 'U') or (C = 'V') then
return True;
else
return False;
end if;
elsif (D = 'I') or (D = 'J') then
if (C = 'I') or (C = 'J') then
return True;
else
return False;
end if;
else
return C = D;
end if;
end Equ;
function Gtu (C, D : Character) return Boolean is
begin
if D = 'u' then
if C > 'v' then
return True;
else
return False;
end if;
elsif D = 'i' then
if C > 'j' then
return True;
else
return False;
end if;
elsif D = 'U' then
if C > 'V' then
return True;
else
return False;
end if;
elsif D = 'I' then
if C > 'J' then
return True;
else
return False;
end if;
else
return C > D;
end if;
end Gtu;
function Ltu (S, T : String) return Boolean is
begin
for I in 1 .. S'Length loop -- Not TRIMed, so same length
if Equ (S (S'First + I - 1), T (T'First + I - 1)) then
null;
elsif Gtu (S (S'First + I - 1), T (T'First + I - 1)) then
return False;
elsif Ltu (S (S'First + I - 1), T (T'First + I - 1)) then
return True;
end if;
end loop;
return False;
end Ltu;
function Gtu (S, T : String) return Boolean is
begin
for I in 1 .. S'Length loop
if Equ (S (S'First + I - 1), T (T'First + I - 1)) then
null;
elsif Ltu (S (S'First + I - 1), T (T'First + I - 1)) then
return False;
elsif Gtu (S (S'First + I - 1), T (T'First + I - 1)) then
return True;
end if;
end loop;
return False;
end Gtu;
function Equ (S, T : String) return Boolean is
begin
if S'Length /= T'Length then
return False;
end if;
for I in 1 .. S'Length loop
if not Equ (S (S'First + I - 1), T (T'First + I - 1)) then
return False;
end if;
end loop;
return True;
end Equ;
function Slt (X, Y : String; -- Make LEFT and RIGHT
St : Sort_Type := A;
Wt : Way_Type := I) return Boolean is
As : String (X'Range) := X;
Bs : String (Y'Range) := Y;
Mn, Nn : Integer := 0;
Fn, Gn : Float := 0.0;
--FS, GS : SECTION_TYPE := NO_SECTION;
Fs, Gs : Appendix_Section_Type := No_Appendix_Section;
Px, Py : Part_Entry; -- So I can X here
begin
if St = A then
As := Lower_Case (As);
Bs := Lower_Case (Bs);
if Wt = I then
return As < Bs;
else
return As > Bs;
end if;
elsif St = C then
if Wt = I then
return As < Bs;
else
return As > Bs;
end if;
elsif St = G then
As := Ignore_Separators (As);
Bs := Ignore_Separators (Bs);
if Wt = I then
return As < Bs;
else
return As > Bs;
end if;
elsif St = U then
As := Lower_Case (As);
Bs := Lower_Case (Bs);
if Wt = I then
return Ltu (As, Bs);
else
return Gtu (As, Bs);
end if;
elsif St = N then
Integer_IO.Get (As, Mn, Last);
Integer_IO.Get (Bs, Nn, Last);
if Wt = I then
return Mn < Nn;
else
return Mn > Nn;
end if;
elsif St = F then
Float_IO.Get (As, Fn, Last);
Float_IO.Get (Bs, Gn, Last);
if Wt = I then
return Fn < Gn;
else
return Fn > Gn;
end if;
elsif St = P then
Part_Entry_IO.Get (As, Px, Last);
Part_Entry_IO.Get (Bs, Py, Last);
if Wt = I then
return Px < Py;
else
return (not (Px < Py)) and (not (Px = Py));
end if;
elsif St = S then
--PUT_LINE ("AS =>" & AS & '|');
Get (As, Fs, Last);
--PUT_LINE ("BS =>" & BS & '|');
Get (Bs, Gs, Last);
--PUT_LINE ("GOT AS & BS");
if Wt = I then
return Fs < Gs;
else
return (not (Fs < Gs)) and (not (Fs = Gs));
end if;
else
return False;
end if;
exception
when others =>
Text_IO.Put_Line ("exception in SLT showing LEFT and RIGHT");
Text_IO.Put_Line (X & "&");
Text_IO.Put_Line (Y & "|");
raise;
end Slt;
function Sort_Equal (X, Y : String;
St : Sort_Type := A;
Wt : Way_Type := I) return Boolean
is
pragma Unreferenced (Wt);
As : String (X'Range) := X;
Bs : String (Y'Range) := Y;
Mn, Nn : Integer := 0;
Fn, Gn : Float := 0.0;
Fs, Gs : Appendix_Section_Type := No_Appendix_Section;
Px, Py : Part_Entry;
begin
if St = A then
As := Lower_Case (As);
Bs := Lower_Case (Bs);
return As = Bs;
elsif St = C then
return As = Bs;
elsif St = G then
As := Ignore_Separators (As);
Bs := Ignore_Separators (Bs);
return As = Bs;
elsif St = U then
As := Lower_Case (As);
Bs := Lower_Case (Bs);
return Equ (As, Bs);
elsif St = N then
Integer_IO.Get (As, Mn, Last);
Integer_IO.Get (Bs, Nn, Last);
return Mn = Nn;
elsif St = F then
Float_IO.Get (As, Fn, Last);
Float_IO.Get (Bs, Gn, Last);
return Fn = Gn;
elsif St = P then
Part_Entry_IO.Get (As, Px, Last);
Part_Entry_IO.Get (Bs, Py, Last);
return Px = Py;
elsif St = S then
Get (As, Fs, Last);
Get (Bs, Gs, Last);
return Fs = Gs;
else
return False;
end if;
exception
when others =>
Text_IO.Put_Line ("exception in LT showing LEFT and RIGHT");
Text_IO.Put_Line (X & "|");
Text_IO.Put_Line (Y & "|");
raise;
end Sort_Equal;
function Lt (Left, Right : Text_Type) return Boolean is
begin
if Slt (Left (M1 .. N1), Right (M1 .. N1), S1, W1) then
return True;
elsif Sort_Equal (Left (M1 .. N1), Right (M1 .. N1), S1, W1) then
if (N2 > 0) and then
Slt (Left (M2 .. N2), Right (M2 .. N2), S2, W2)
then
return True;
elsif (N2 > 0) and then
Sort_Equal (Left (M2 .. N2), Right (M2 .. N2), S2, W2)
then
if (N3 > 0) and then
Slt (Left (M3 .. N3), Right (M3 .. N3), S3, W3)
then
return True;
elsif (N3 > 0) and then
Sort_Equal (Left (M3 .. N3), Right (M3 .. N3), S3, W3)
then
if (N4 > 0) and then
Slt (Left (M4 .. N4), Right (M4 .. N4), S4, W4)
then
return True;
end if;
end if;
end if;
end if;
return False;
exception
when others =>
Text_IO.Put_Line ("exception in LT showing LEFT and RIGHT");
Text_IO.Put_Line (Left & "|");
Text_IO.Put_Line (Right & "|");
raise;
end Lt;
procedure Open_File_For_Input (Input : in out Text_IO.File_Type;
Prompt : String := "File for input => ") is
Last : Natural := 0;
begin
Get_Input_File :
loop
Check_Input :
begin
New_Line;
Put (Prompt);
Get_Line (Input_Name, Last);
Open (Input, In_File, Input_Name (1 .. Last));
exit Get_Input_File;
exception
when others =>
Put_Line (" !!!!!!!!! Try Again !!!!!!!!");
end Check_Input;
end loop Get_Input_File;
end Open_File_For_Input;
procedure Create_File_For_Output (Output : in out Text_IO.File_Type;
Prompt : String := "File for output => ")
is
Name : String (1 .. 80) := (others => ' ');
Last : Natural := 0;
begin
Get_Output_File :
loop
Check_Output :
begin
New_Line;
Put (Prompt);
Get_Line (Name, Last);
if Trim (Name (1 .. Last))'Length /= 0 then
Create (Output, Out_File, Name (1 .. Last));
else
Create (Output, Out_File, Trim (Input_Name));
end if;
exit Get_Output_File;
exception
when others =>
Put_Line (" !!!!!!!!! Try Again !!!!!!!!");
end Check_Output;
end loop Get_Output_File;
end Create_File_For_Output;
function Graphic (S : String) return String is
T : String (1 .. S'Length) := S;
begin
for I in S'Range loop
if Character'Pos (S (I)) < 32 then
T (I) := ' ';
end if;
end loop;
return T;
end Graphic;
begin
New_Line;
Put_Line ("Sorts a text file of lines four times on subStrings M .. N");
Put_Line (
"A)lphabetic (all case) C)ase sensitive, iG)nore separators, U)i_is_vj,");
Put_Line (" iN)teger, F)loating point, S)ection, or P)art entry");
Put_Line (" I)ncreasing or D)ecreasing");
New_Line;
Open_File_For_Input (Input, "What file to sort from => ");
New_Line;
Prompt_For_Entry ("first");
begin
Get_Entry (M1, N1, S1, W1);
exception
when Program_Error =>
raise;
when others =>
null;
end;
begin
Prompt_For_Entry ("second");
Get_Entry (M2, N2, S2, W2);
Prompt_For_Entry ("third");
Get_Entry (M3, N3, S3, W3);
Prompt_For_Entry ("fourth");
Get_Entry (M4, N4, S4, W4);
exception
--when Program_Error =>
-- raise;
when Entry_Finished =>
null;
when Text_IO.Data_Error | Text_IO.End_Error =>
null;
end;
--PUT_LINE ("CREATING WORK FILE");
New_Line;
Create (Work, Inout_File, "WORK.");
Put_Line ("CREATED WORK FILE");
while not End_Of_File (Input) loop
--begin
Get_Line (Input, Line_Text, Current_Length);
--exception when others =>
--TEXT_IO.PUT_LINE ("INPUT GET exception");
--TEXT_IO.PUT_LINE (LINE_TEXT (1 .. CURRENT_LENGTH) & "|");
--end;
--PUT_LINE (LINE_TEXT (1 .. CURRENT_LENGTH));
if Trim (Line_Text (1 .. Current_Length)) /= "" then
--begin
Write (Work, Head (Line_Text (1 .. Current_Length), Line_Length));
--exception when others =>
--TEXT_IO.PUT_LINE ("WORK WRITE exception");
--TEXT_IO.PUT_LINE (LINE_TEXT (1 .. CURRENT_LENGTH) & "|");
--end;
end if;
end loop;
Close (Input);
Put_Line ("Begin sorting");
Line_Heapsort :
declare
L : Line_Io.Positive_Count := Size (Work) / 2 + 1;
Ir : Line_Io.Positive_Count := Size (Work);
I, J : Line_Io.Positive_Count;
begin
Text_IO.Put_Line ("SIZE OF WORK = " &
Integer'Image (Integer (Size (Work))));
Main :
loop
if L > 1 then
L := L - 1;
Read (Work, Line_Text, L);
Old_Line := Line_Text;
else
Read (Work, Line_Text, Ir);
Old_Line := Line_Text;
Read (Work, Line_Text, 1);
Write (Work, Line_Text, Ir);
Ir := Ir - 1;
if Ir = 1 then
Write (Work, Old_Line, 1);
exit Main;
end if;
end if;
I := L;
J := L + L;
while J <= Ir loop
if J < Ir then
Read (Work, Line_Text, J);
Read (Work, P_Line, J + 1);
--if LT (LINE.TEXT, P_LINE.TEXT) then
if Lt (Line_Text, P_Line) then
J := J + 1;
end if;
end if;
Read (Work, Line_Text, J);
--if OLD_LINE.TEXT < LINE.TEXT then
if Lt (Old_Line, Line_Text) then
Write (Work, Line_Text, I);
I := J;
J := J + J;
else
J := Ir + 1;
end if;
end loop;
Write (Work, Old_Line, I);
end loop Main;
exception
when Constraint_Error => Put_Line ("HEAP CONSTRAINT_ERROR");
when others => Put_Line ("HEAP other_ERROR");
end Line_Heapsort;
Put_Line ("Finished sorting in WORK");
Create_File_For_Output (Output, "Where to put the output => ");
--RESET (WORK);
Set_Index (Work, 1);
while not End_Of_File (Work) loop
Read (Work, Line_Text);
if Trim (Graphic (Line_Text))'Length > 0 then
--PUT_LINE (TRIM (LINE_TEXT, RIGHT));
Put_Line (Output, Trim (Line_Text, Right));
end if;
end loop;
Close (Work);
Close (Output);
Put_Line ("Done!");
New_Line;
exception
when Program_Error =>
Put_Line ("SORT terminated on a PROGRAM_ERROR");
Close (Output);
when Text_IO.Data_Error => --Terminate on primary start or size = 0
Put_Line ("SORT terminated on a DATA_ERROR");
Put_Line (Line_Text);
Close (Output);
when Constraint_Error => --Terminate on blank line for file name
Put_Line ("SORT terminated on a CONSTRAINT_ERROR");
Close (Output);
when Text_IO.Device_Error => --Ran out of space to write output file
Put_Line ("SORT terminated on a DEVICE_ERROR");
Delete (Output);
Create_File_For_Output (Output, "Wherelse to put the output => ");
Reset (Work);
while not End_Of_File (Work) loop
Read (Work, Line_Text);
Put_Line (Output, Line_Text); --(1 .. LINE.CURRENT_LENGTH));
end loop;
Close (Output);
end Sorter;
|
-- Copyright 2014 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with System;
package Pck is
type Packed_Array is array (Natural range <>) of Boolean;
pragma Pack (Packed_Array);
function Make (H, L : Natural) return Packed_Array;
procedure Do_Nothing (A : System.Address);
end Pck;
|
with
gel.Window.lumen,
gel.Applet.gui_world,
gel.Forge,
gel.Sprite,
gel.Joint,
physics.Forge,
opengl.Palette,
float_math.Algebra.linear.d3;
pragma Unreferenced (gel.Window.lumen);
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
procedure launch_add_rid
--
-- Creates a chain of balls in a 2d space.
--
is
package Math renames float_Math;
use GEL,
gel.Forge,
gel.Applet,
opengl.Palette,
gel.Math,
gel.linear_Algebra_2D;
use type openGL.Real;
type Tests is (None,
add_rid_Joint,
add_rid_Object,
destroy_Object);
-- my_Test : Tests := None;
my_Test : Tests := add_rid_Joint;
-- my_Test : Tests := add_rid_Object;
-- my_Test : Tests := destroy_Object;
the_Applet : gel.Applet.gui_World.view := new_gui_Applet ("Chains 2D",
1536, 864,
space_Kind => physics.Box2D);
the_Ground : gel.Sprite .view := new_rectangle_Sprite (the_Applet.gui_World,
mass => 0.0,
width => 100.0,
height => 1.0,
color => apple_Green);
begin
the_Applet.gui_World .Gravity_is ((0.0, -10.0, 0.0));
the_Applet.gui_Camera.Site_is ((0.0, -30.0, 100.0));
the_Applet.Renderer .Background_is (Grey);
the_Applet.enable_simple_Dolly (in_world => gui_world.gui_world_Id);
the_Ground.Site_is ((0.0, -40.0, 0.0));
the_Applet.gui_World.add (the_Ground, and_Children => False);
-- Add joints.
--
declare
use Math, math.Algebra.linear.d3, math.Vectors;
ball_Count : constant := 39; -- 256;
the_root_Ball : constant gel.Sprite.view := new_circle_Sprite (the_Applet.gui_World, mass => 0.0);
the_Balls : constant gel.Sprite.views := (1 .. ball_Count - 1 => new_circle_Sprite (the_Applet.gui_World, mass => 1.0),
ball_Count => new_circle_Sprite (the_Applet.gui_World, mass => 10.0));
mid_Ball_Id : constant Index := Index (the_Balls'First + the_Balls'Last) / 2;
mid_Ball : gel.Sprite.view renames the_Balls (mid_Ball_Id);
mid_Ball_initial_Offset
: Vector_3;
begin
-- the_root_Ball.Site_is ((0.0, 0.0, 0.0));
declare
Frame_A : constant math.Matrix_4x4 := math.Identity_4x4;
Frame_B : constant math.Matrix_4x4 := math.Identity_4x4;
Parent : gel.Sprite.view := the_root_Ball;
new_Joint : gel.Joint .view;
begin
for i in the_Balls'Range
loop
the_Balls (i).Site_is ((Real (-i), 0.0, 0.0));
-- Parent.attach_via_Hinge (the_Child => the_Balls (i),
-- Frame_in_parent => Frame_A,
-- Frame_in_child => Frame_B,
-- Limits => (to_Radians (-180.0),
-- to_Radians ( 180.0)),
-- collide_Connected => False,
-- new_joint => new_Joint);
Parent.attach_via_Hinge (the_Child => the_Balls (i),
pivot_Axis => (0.0, 0.0, 1.0),
low_Limit => to_Radians (-180.0),
high_Limit => to_Radians ( 180.0),
new_joint => new_Joint);
if i = mid_Ball_Id then
mid_Ball_initial_Offset := the_Balls (i).Site - Parent.Site;
end if;
Parent := the_Balls (i);
end loop;
end;
the_Applet.gui_World.add (the_root_Ball, and_Children => True);
declare
Counter : Natural := 0;
Added : Boolean := True;
begin
while the_Applet.is_open
loop
Counter := Counter + 1;
if false -- Counter mod (2 * 60) = 0
then
if Added then
case my_Test
is
when None =>
null;
when add_rid_Joint =>
the_Applet.gui_World.rid (mid_Ball.parent_Joint);
when add_rid_Object =>
-- the_Applet.gui_World.rid (mid_Ball.parent_Joint);
the_Applet.gui_World.rid (mid_Ball, and_children => False);
when destroy_Object =>
the_Applet.gui_World.rid (mid_Ball, and_children => False);
the_Applet.gui_World.destroy (mid_Ball);
my_Test := None;
end case;
Added := False;
else
case my_Test
is
when None =>
null;
when add_rid_Joint =>
mid_Ball.move (to_site => mid_Ball.parent_Joint.Sprite_A.Site
+ mid_Ball_initial_Offset);
the_Applet.gui_World.add (mid_Ball.parent_Joint);
when add_rid_Object =>
-- mid_Ball.move (to_site => mid_Ball.parent_Joint.Sprite_A.Site
-- + mid_Ball_initial_Offset);
the_Applet.gui_World.add (mid_Ball, and_children => False);
-- the_Applet.gui_World.add (mid_Ball.parent_Joint);
when destroy_Object =>
null;
end case;
Added := True;
end if;
end if;
the_Applet.freshen; -- Handle any new events and update the screen.
end loop;
end;
end;
gel.Applet.gui_world.free (the_Applet);
exception
when E : others =>
new_Line;
put_Line ("Unhandled exception in main thread !");
put_Line (Ada.Exceptions.Exception_Information (E));
new_Line;
end launch_add_rid;
|
with
-- AdaM.Source,
AdaM.Entity,
gtk.Widget;
package aIDE.Editor
is
type Item is abstract tagged private;
type View is access all Item'Class;
-- function to_Editor (Target : in AdaM.Source.Entity_view) return Editor.view;
function to_Editor (Target : in AdaM.Entity.view) return Editor.view;
function top_Widget (Self : in Item) return gtk.Widget.Gtk_Widget;
procedure freshen (Self : in out Item) is null;
private
type Item is abstract tagged
record
null;
end record;
end aIDE.Editor;
|
-----------------------------------------------------------------------
-- ado-utils-serialize -- Utility operations for JSON/XML serialization
-- Copyright (C) 2016, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Serialize.IO;
with ADO.Objects;
with ADO.Statements;
package ADO.Utils.Serialize is
-- Write the entity to the serialization stream (JSON/XML).
procedure Write_Entity (Stream : in out Util.Serialize.IO.Output_Stream'Class;
Name : in String;
Value : in ADO.Identifier);
-- Write the entity to the serialization stream (JSON/XML).
procedure Write_Entity (Stream : in out Util.Serialize.IO.Output_Stream'Class;
Name : in String;
Value : in ADO.Objects.Object_Key);
-- Write the SQL query results to the serialization stream (JSON/XML).
procedure Write_Query (Stream : in out Util.Serialize.IO.Output_Stream'Class;
Name : in String;
Query : in out ADO.Statements.Query_Statement);
end ADO.Utils.Serialize;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . S T R I N G S . W I D E _ B O U N D E D . W I D E _ H A S H --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System.String_Hash;
function Ada.Strings.Wide_Bounded.Wide_Hash
(Key : Bounded.Bounded_Wide_String)
return Containers.Hash_Type
is
use Ada.Containers;
function Hash is new System.String_Hash.Hash
(Wide_Character, Wide_String, Hash_Type);
begin
return Hash (Bounded.To_Wide_String (Key));
end Ada.Strings.Wide_Bounded.Wide_Hash;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . M A N T I S S A --
-- --
-- S p e c --
-- --
-- Copyright (C) 1996-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the routine used for typ'Mantissa where typ is a
-- fixed-point type with non-static bounds.
package System.Mantissa is
pragma Pure;
function Mantissa_Value (First, Last : Integer) return Natural;
-- Compute Mantissa value from the given arguments, which are the First
-- and Last value of the fixed-point type, in Integer'Integer_Value form.
end System.Mantissa;
|
------------------------------------------------------------------------------
-- Ada Web Server --
-- --
-- Copyright (C) 2005-2017, 2020, AdaCore --
-- --
-- This library is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the --
-- Free Software Foundation; either version 3, or (at your option) any --
-- later version. This library is distributed in the hope that it will be --
-- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- 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/>. --
-- --
-- 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. --
------------------------------------------------------------------------------
pragma Ada_2012;
with AWS.Client;
with AWS.Response;
-- This is the AWS.Client.HTTP_Utils package revisited
-- and simplified to add support for HTTP Options and Patch.
package AWS.Client.Ext is
No_Data : constant String := "";
No_Content : constant Stream_Element_Array := (1 .. 0 => 0);
procedure Do_Options
(Connection : in out HTTP_Connection;
Result : out Response.Data;
URI : String := No_Data;
Headers : Header_List := Empty_Header_List);
function Do_Options
(URL : String;
User : String := No_Data;
Pwd : String := No_Data;
Proxy : String := No_Data;
Proxy_User : String := No_Data;
Proxy_Pwd : String := No_Data;
Timeouts : Timeouts_Values := No_Timeout;
Headers : Header_List := Empty_Header_List;
User_Agent : String := Default.User_Agent) return Response.Data;
-- Send to the server URL a OPTIONS request with Data
procedure Do_Patch
(Connection : in out HTTP_Connection;
Result : out Response.Data;
URI : String := No_Data;
Data : String;
Headers : Header_List := Empty_Header_List);
function Do_Patch
(URL : String;
Data : String;
User : String := No_Data;
Pwd : String := No_Data;
Proxy : String := No_Data;
Proxy_User : String := No_Data;
Proxy_Pwd : String := No_Data;
Timeouts : Timeouts_Values := No_Timeout;
Headers : Header_List := Empty_Header_List;
User_Agent : String := Default.User_Agent) return Response.Data;
-- Send to the server URL a PATCH request with Data
procedure Do_Delete
(Connection : in out HTTP_Connection;
Result : out Response.Data;
Data : String;
URI : String := No_Data;
Headers : Header_List := Empty_Header_List);
function Do_Delete
(URL : String;
Data : String;
User : String := No_Data;
Pwd : String := No_Data;
Proxy : String := No_Data;
Proxy_User : String := No_Data;
Proxy_Pwd : String := No_Data;
Timeouts : Timeouts_Values := No_Timeout;
Headers : Header_List := Empty_Header_List;
User_Agent : String := Default.User_Agent) return Response.Data;
-- Send to the server URL a DELETE request with Data
-- Delete will retry one time if it fails.
type Method_Kind is (GET, HEAD, POST, PUT, DELETE, OPTIONS, PATCH);
procedure Send_Request
(Connection : in out HTTP_Connection;
Kind : Method_Kind;
Result : out Response.Data;
URI : String;
Data : Stream_Element_Array := No_Content;
Headers : Header_List := Empty_Header_List);
-- Send to the server only a POST request with Data
-- and common headers, using a Connection.
end AWS.Client.Ext;
|
with Ada.Text_IO;
procedure Integers_In_English is
type Spellable is range -999_999_999_999_999_999..999_999_999_999_999_999;
function Spell (N : Spellable) return String is
function Twenty (N : Spellable) return String is
begin
case N mod 20 is
when 0 => return "zero";
when 1 => return "one";
when 2 => return "two";
when 3 => return "three";
when 4 => return "four";
when 5 => return "five";
when 6 => return "six";
when 7 => return "seven";
when 8 => return "eight";
when 9 => return "nine";
when 10 => return "ten";
when 11 => return "eleven";
when 12 => return "twelve";
when 13 => return "thirteen";
when 14 => return "fourteen";
when 15 => return "fifteen";
when 16 => return "sixteen";
when 17 => return "seventeen";
when 18 => return "eighteen";
when others => return "nineteen";
end case;
end Twenty;
function Decade (N : Spellable) return String is
begin
case N mod 10 is
when 2 => return "twenty";
when 3 => return "thirty";
when 4 => return "forty";
when 5 => return "fifty";
when 6 => return "sixty";
when 7 => return "seventy";
when 8 => return "eighty";
when others => return "ninety";
end case;
end Decade;
function Hundred (N : Spellable) return String is
begin
if N < 20 then
return Twenty (N);
elsif 0 = N mod 10 then
return Decade (N / 10 mod 10);
else
return Decade (N / 10) & '-' & Twenty (N mod 10);
end if;
end Hundred;
function Thousand (N : Spellable) return String is
begin
if N < 100 then
return Hundred (N);
elsif 0 = N mod 100 then
return Twenty (N / 100) & " hundred";
else
return Twenty (N / 100) & " hundred and " & Hundred (N mod 100);
end if;
end Thousand;
function Triplet
( N : Spellable;
Order : Spellable;
Name : String;
Rest : not null access function (N : Spellable) return String
) return String is
High : Spellable := N / Order;
Low : Spellable := N mod Order;
begin
if High = 0 then
return Rest (Low);
elsif Low = 0 then
return Thousand (High) & ' ' & Name;
else
return Thousand (High) & ' ' & Name & ", " & Rest (Low);
end if;
end Triplet;
function Million (N : Spellable) return String is
begin
return Triplet (N, 10**3, "thousand", Thousand'Access);
end Million;
function Milliard (N : Spellable) return String is
begin
return Triplet (N, 10**6, "million", Million'Access);
end Milliard;
function Billion (N : Spellable) return String is
begin
return Triplet (N, 10**9, "milliard", Milliard'Access);
end Billion;
function Billiard (N : Spellable) return String is
begin
return Triplet (N, 10**12, "billion", Billion'Access);
end Billiard;
begin
if N < 0 then
return "negative " & Spell(-N);
else
return Triplet (N, 10**15, "billiard", Billiard'Access);
end if;
end Spell;
procedure Spell_And_Print(N: Spellable) is
Number: constant String := Spellable'Image(N);
Spaces: constant String(1 .. 20) := (others => ' '); -- 20 * ' '
begin
Ada.Text_IO.Put_Line(Spaces(Spaces'First .. Spaces'Last-Number'Length)
& Number & ' ' & Spell(N));
end Spell_And_Print;
Samples: constant array (Natural range <>) of Spellable
:= (99, 300, 310, 1_501, 12_609, 512_609, 43_112_609, 77_000_112_609,
2_000_000_000_100, 999_999_999_999_999_999,
0, -99, -1501, -77_000_112_609, -123_456_789_987_654_321);
begin
for I in Samples'Range loop
Spell_And_Print(Samples(I));
end loop;
end Integers_In_English;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . T E X T _ I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Interfaces;
with System.BB.Board_Parameters;
package body System.Text_IO is
use type Interfaces.Unsigned_8;
Base_Address : constant System.Address :=
System.BB.Board_Parameters.UART_Base_Address;
Data : Interfaces.Unsigned_8 with Address => Base_Address + 16#00#;
LSR : Interfaces.Unsigned_8 with Address => Base_Address + 16#14#;
LSR_THRE : constant Interfaces.Unsigned_8 := 2#0010_0000#;
LSR_DR : constant Interfaces.Unsigned_8 := 2#0000_0001#;
---------
-- Get --
---------
function Get return Character is
begin
return Character'Val (Data);
end Get;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Initialized := True;
end Initialize;
-----------------
-- Is_Rx_Ready --
-----------------
function Is_Rx_Ready return Boolean is
begin
return (LSR and LSR_DR) /= 0;
end Is_Rx_Ready;
-----------------
-- Is_Tx_Ready --
-----------------
function Is_Tx_Ready return Boolean is
begin
return (LSR and LSR_THRE) /= 0;
end Is_Tx_Ready;
---------
-- Put --
---------
procedure Put (C : Character) is
begin
Data := Character'Pos (C);
end Put;
----------------------------
-- Use_Cr_Lf_For_New_Line --
----------------------------
function Use_Cr_Lf_For_New_Line return Boolean is
begin
return True;
end Use_Cr_Lf_For_New_Line;
end System.Text_IO;
|
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Stream;
with Ada.Text_IO; use Ada.Text_IO;
with System.Assertions; use System.Assertions;
procedure Secretbox3
is
Firstkey : constant Core.Salsa20_Key :=
Construct ((16#1b#, 16#27#, 16#55#, 16#64#,
16#73#, 16#e9#, 16#85#, 16#d4#,
16#62#, 16#cd#, 16#51#, 16#19#,
16#7a#, 16#9a#, 16#46#, 16#c7#,
16#60#, 16#09#, 16#54#, 16#9e#,
16#ac#, 16#64#, 16#74#, 16#f2#,
16#06#, 16#c4#, 16#ee#, 16#08#,
16#44#, 16#f6#, 16#83#, 16#89#));
Nonce : constant Stream.HSalsa20_Nonce :=
(16#69#, 16#69#, 16#6e#, 16#e9#, 16#55#, 16#b6#, 16#2b#, 16#73#,
16#cd#, 16#62#, 16#bd#, 16#a8#, 16#75#, 16#fc#, 16#73#, 16#d6#,
16#82#, 16#19#, 16#e0#, 16#03#, 16#6b#, 16#7a#, 16#0b#, 16#37#);
-- C too short
C : constant Byte_Seq (0 .. 15) :=
(16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#);
M : Byte_Seq (0 .. 15);
S : Boolean;
begin
S := False;
Open (M, S, C, Nonce, Firstkey);
if S then
Put_Line ("Status is " & Img (S));
DH ("M is", M);
else
Put_Line ("Precondition failure expected OK");
end if;
exception
when Assert_Failure =>
Put_Line ("Precondition failure expected OK");
end Secretbox3;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with ada.unchecked_conversion;
with soc.devmap; use soc.devmap;
with soc.pwr;
with soc.flash;
with soc.rcc.default;
package body soc.rcc
with spark_mode => off
is
procedure reset
is
function to_rcc_cfgr is new ada.unchecked_conversion
(unsigned_32, t_RCC_CFGR);
function to_rcc_pllcfgr is new ada.unchecked_conversion
(unsigned_32, t_RCC_PLLCFGR);
begin
RCC.CR.HSION := true;
RCC.CFGR := to_rcc_cfgr (0);
RCC.CR.HSEON := false;
RCC.CR.CSSON := false;
RCC.CR.PLLON := false;
-- Magic number. Cf. STM32F4 datasheet
RCC.PLLCFGR := to_rcc_pllcfgr (16#2400_3010#);
RCC.CR.HSEBYP := false;
RCC.CIR := 0; -- Reset all interrupts
end reset;
procedure init
is
begin
-- Power interface clock enable
RCC.APB1ENR.PWREN := true;
-- Regulator voltage scaling output selection
-- This bit controls the main internal voltage regulator output voltage
-- to achieve a trade-off between performance and power consumption when
-- the device does not operate at the maximum frequency.
soc.pwr.PWR.CR.VOS := soc.pwr.VOS_SCALE1;
if default.enable_hse then
RCC.CR.HSEON := true;
loop
exit when RCC.CR.HSERDY;
end loop;
else -- Enable HSI
RCC.CR.HSION := true;
loop
exit when RCC.CR.HSIRDY;
end loop;
end if;
if default.enable_pll then
RCC.CR.PLLON := false;
RCC.PLLCFGR :=
(PLLM => default.PLL_M, -- Division factor for the main PLL
PLLN => default.PLL_N, -- Main PLL multiplication factor for VCO
PLLP => default.PLL_P, -- Main PLL division factor for main system clock
PLLSRC => (if default.enable_hse then 1 else 0),
-- HSE or HSI oscillator clock selected as PLL
PLLQ => default.PLL_Q);
-- Main PLL division factor for USB OTG FS, SDIO and random
-- number generator
-- Enable the main PLL
RCC.CR.PLLON := true;
loop
exit when RCC.CR.PLLRDY;
end loop;
end if;
-- Configuring flash (prefetch, instruction cache, data cache, wait state)
soc.flash.FLASH.ACR.ICEN := true; -- Instruction cache enable
soc.flash.FLASH.ACR.DCEN := true; -- Data cache is enabled
soc.flash.FLASH.ACR.PRFTEN := false; -- Prefetch is disabled to avoid
-- SPA or DPA side channel attacks
soc.flash.FLASH.ACR.LATENCY := 5; -- Latency = 5 wait states
-- Set clock dividers
RCC.CFGR.HPRE := default.AHB_DIV; -- AHB prescaler
RCC.CFGR.PPRE1 := default.APB1_DIV; -- APB1 low speed prescaler
RCC.CFGR.PPRE2 := default.APB2_DIV; -- APB2 high speed prescaler
if default.enable_pll then
RCC.CFGR.SW := 2#10#; -- PLL selected as system clock
loop
exit when RCC.CFGR.SWS = 2#10#;
end loop;
end if;
end init;
procedure enable_clock (periph : in soc.devmap.t_periph_id)
is
begin
case periph is
when NO_PERIPH => return;
when DMA1_INFO .. DMA1_STR7 => soc.rcc.RCC.AHB1ENR.DMA1EN := true;
when DMA2_INFO .. DMA2_STR7 => soc.rcc.RCC.AHB1ENR.DMA2EN := true;
when CRYP_CFG .. CRYP => soc.rcc.RCC.AHB2ENR.CRYPEN := true;
when HASH => soc.rcc.RCC.AHB2ENR.HASHEN := true;
when RNG => soc.rcc.RCC.AHB2ENR.RNGEN := true;
when USB_OTG_FS => soc.rcc.RCC.AHB2ENR.OTGFSEN := true;
when USB_OTG_HS =>
soc.rcc.RCC.AHB1ENR.OTGHSEN := true;
soc.rcc.RCC.AHB1ENR.OTGHSULPIEN := true;
when SDIO => soc.rcc.RCC.APB2ENR.SDIOEN := true;
when ETH_MAC => soc.rcc.RCC.AHB1ENR.ETHMACEN := true;
when CRC => soc.rcc.RCC.AHB1ENR.CRCEN := true;
when SPI1 => soc.rcc.RCC.APB2ENR.SPI1EN := true;
when SPI2 => soc.rcc.RCC.APB1ENR.SPI2EN := true;
when SPI3 => soc.rcc.RCC.APB1ENR.SPI3EN := true;
when I2C1 => soc.rcc.RCC.APB1ENR.I2C1EN := true;
when I2C2 => soc.rcc.RCC.APB1ENR.I2C2EN := true;
when I2C3 => soc.rcc.RCC.APB1ENR.I2C3EN := true;
when CAN1 => soc.rcc.RCC.APB1ENR.CAN1EN := true;
when CAN2 => soc.rcc.RCC.APB1ENR.CAN2EN := true;
when USART1 => soc.rcc.RCC.APB2ENR.USART1EN := true;
when USART6 => soc.rcc.RCC.APB2ENR.USART6EN := true;
when USART2 => soc.rcc.RCC.APB1ENR.USART2EN := true;
when USART3 => soc.rcc.RCC.APB1ENR.USART3EN := true;
when UART4 => soc.rcc.RCC.APB1ENR.UART4EN := true;
when UART5 => soc.rcc.RCC.APB1ENR.UART5EN := true;
when TIM1 => soc.rcc.RCC.APB2ENR.TIM1EN := true;
when TIM8 => soc.rcc.RCC.APB2ENR.TIM8EN := true;
when TIM9 => soc.rcc.RCC.APB2ENR.TIM9EN := true;
when TIM10 => soc.rcc.RCC.APB2ENR.TIM10EN := true;
when TIM11 => soc.rcc.RCC.APB2ENR.TIM11EN := true;
when TIM2 => soc.rcc.RCC.APB1ENR.TIM2EN := true;
when TIM3 => soc.rcc.RCC.APB1ENR.TIM3EN := true;
when TIM4 => soc.rcc.RCC.APB1ENR.TIM4EN := true;
when TIM5 => soc.rcc.RCC.APB1ENR.TIM5EN := true;
when TIM6 => soc.rcc.RCC.APB1ENR.TIM6EN := true;
when TIM7 => soc.rcc.RCC.APB1ENR.TIM7EN := true;
when TIM12 => soc.rcc.RCC.APB1ENR.TIM12EN := true;
when TIM13 => soc.rcc.RCC.APB1ENR.TIM13EN := true;
when TIM14 => soc.rcc.RCC.APB1ENR.TIM14EN := true;
when FLASH_CTRL .. FLASH_FLOP => null;
end case;
end enable_clock;
end soc.rcc;
|
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Wid_Char;
package System.WWd_Char is
pragma Pure;
-- required for Character'Wide_Width by compiler (s-wwwdcha.ads)
function Wide_Width_Character (Lo, Hi : Character) return Natural
renames Wid_Char.Width_Character;
-- required for Character'Wide_Wide_Width by compiler (s-wwwdcha.ads)
function Wide_Wide_Width_Character (Lo, Hi : Character) return Natural
renames Wid_Char.Width_Character;
end System.WWd_Char;
|
<?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>dct_Loop_Xpose_Col_Outer_Loop_proc</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>col_outbuf_i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>1</if_type>
<array_size>64</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>buf_2d_out</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>64</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>28</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></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>indvar_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
</oprand_edges>
<opcode>phi</opcode>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>j_1_i</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second class_id="12" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>91</item>
<item>92</item>
<item>93</item>
<item>94</item>
</oprand_edges>
<opcode>phi</opcode>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>7</id>
<name>i_3_i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>95</item>
<item>96</item>
<item>97</item>
<item>98</item>
</oprand_edges>
<opcode>phi</opcode>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>exitcond_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>99</item>
<item>101</item>
</oprand_edges>
<opcode>icmp</opcode>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>indvar_flatten_next</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>102</item>
<item>104</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>10</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>105</item>
<item>106</item>
<item>107</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>exitcond_i8</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</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>42</item>
<item>44</item>
</oprand_edges>
<opcode>icmp</opcode>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>i_3_i_mid2</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</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>47</item>
<item>48</item>
</oprand_edges>
<opcode>select</opcode>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>j6</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>92</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>92</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>49</item>
<item>51</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>j_1_i_mid2</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</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>52</item>
<item>53</item>
<item>54</item>
</oprand_edges>
<opcode>select</opcode>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>tmp_trn_cast</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</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>55</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>tmp_9_trn_cast</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</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>56</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>tmp</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>58</item>
<item>59</item>
<item>61</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>p_addr_cast</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</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>62</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>p_addr1</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>tmp_s</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>65</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>col_outbuf_i_addr</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>66</item>
<item>68</item>
<item>69</item>
</oprand_edges>
<opcode>getelementptr</opcode>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>col_outbuf_i_load</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</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>70</item>
</oprand_edges>
<opcode>load</opcode>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>tmp_1</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>71</item>
<item>72</item>
<item>73</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>p_addr4_cast</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</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>74</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>p_addr5</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>75</item>
<item>76</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>tmp_2</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>77</item>
</oprand_edges>
<opcode>zext</opcode>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>buf_2d_out_addr</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>78</item>
<item>79</item>
<item>80</item>
</oprand_edges>
<opcode>getelementptr</opcode>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name></name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>95</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>95</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>81</item>
<item>82</item>
</oprand_edges>
<opcode>store</opcode>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>i</name>
<fileName>dct.cpp</fileName>
<fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory>
<lineNumber>94</lineNumber>
<contextFuncName>dct_2d</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.cpp</first>
<second>dct</second>
</first>
<second>130</second>
</item>
<item>
<first>
<first>dct.cpp</first>
<second>dct_2d</second>
</first>
<second>94</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>83</item>
<item>84</item>
</oprand_edges>
<opcode>add</opcode>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>85</item>
</oprand_edges>
<opcode>br</opcode>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_31">
<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>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>8</content>
</item>
<item class_id_reference="16" object_id="_32">
<Value>
<Obj>
<type>2</type>
<id>46</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_33">
<Value>
<Obj>
<type>2</type>
<id>50</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>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_34">
<Value>
<Obj>
<type>2</type>
<id>60</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_35">
<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>0</content>
</item>
<item class_id_reference="16" object_id="_36">
<Value>
<Obj>
<type>2</type>
<id>86</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_37">
<Value>
<Obj>
<type>2</type>
<id>100</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>64</content>
</item>
<item class_id_reference="16" object_id="_38">
<Value>
<Obj>
<type>2</type>
<id>103</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>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_39">
<Obj>
<type>3</type>
<id>4</id>
<name>newFuncRoot</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>3</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_40">
<Obj>
<type>3</type>
<id>11</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>6</count>
<item_version>0</item_version>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_41">
<Obj>
<type>3</type>
<id>38</id>
<name>.preheader.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>20</count>
<item_version>0</item_version>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</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>36</item>
<item>37</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_42">
<Obj>
<type>3</type>
<id>40</id>
<name>dct_2d.exit.exitStub</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>60</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_43">
<id>41</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>3</sink_obj>
</item>
<item class_id_reference="20" object_id="_44">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_45">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_46">
<id>45</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_47">
<id>47</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_48">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>51</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_55">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_56">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_57">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_58">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_59">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_60">
<id>64</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_61">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_62">
<id>66</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_63">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_64">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_65">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_66">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_67">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_68">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_69">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_70">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_71">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_72">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_73">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_74">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_75">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_76">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_77">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_78">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_79">
<id>85</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_80">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_81">
<id>88</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_82">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_83">
<id>90</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_84">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_85">
<id>92</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_86">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_87">
<id>94</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_88">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_89">
<id>96</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_90">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_91">
<id>98</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_92">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_93">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>100</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_94">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_95">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>103</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>106</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>107</id>
<edge_type>2</edge_type>
<source_obj>40</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>138</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>139</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>140</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>141</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>11</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_103">
<mId>1</mId>
<mTag>dct_Loop_Xpose_Col_Outer_Loop_proc</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>66</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_104">
<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>4</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="_105">
<mId>3</mId>
<mTag>Xpose_Col_Outer_Loop_Xpose_Col_Inner_Loop</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>11</item>
<item>38</item>
</basic_blocks>
<mII>1</mII>
<mDepth>2</mDepth>
<mMinTripCount>64</mMinTripCount>
<mMaxTripCount>64</mMaxTripCount>
<mMinLatency>64</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_106">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_107">
<states class_id="25" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_108">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_109">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_110">
<id>2</id>
<operations>
<count>18</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_111">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_112">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_113">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_114">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_115">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_116">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_117">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_118">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_119">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_120">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_121">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_122">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_123">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_124">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_125">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_126">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_127">
<id>28</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_128">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_129">
<id>3</id>
<operations>
<count>15</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_130">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_131">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_132">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_133">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_134">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_135">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_136">
<id>28</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_137">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_138">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_139">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_140">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_141">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_142">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_143">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_144">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_145">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_146">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_147">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>23</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="_148">
<inState>3</inState>
<outState>2</outState>
<condition>
<id>31</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_149">
<inState>2</inState>
<outState>4</outState>
<condition>
<id>30</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first class_id="35" tracking_level="0" version="0">
<first>8</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_150">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>32</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>8</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="36" tracking_level="1" version="0" object_id="_151">
<dp_component_resource class_id="37" 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="38" 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="39" tracking_level="0" version="0">
<count>28</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>3</first>
<second class_id="41" tracking_level="0" version="0">
<first>0</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>1</first>
<second>0</second>
</second>
</item>
<item>
<first>7</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="42" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<first>4</first>
<second class_id="44" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>1</first>
<second>2</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="45" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="1" version="0" object_id="_152">
<region_name>Xpose_Col_Outer_Loop_Xpose_Col_Inner_Loop</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>11</item>
<item>38</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>2</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="47" tracking_level="0" version="0">
<count>24</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>44</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>51</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>28</item>
<item>28</item>
</second>
</item>
<item>
<first>56</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>63</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>73</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>95</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>114</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>128</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>134</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>142</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>158</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>164</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>169</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>29</item>
</second>
</item>
<item>
<first>185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</second>
</item>
<item>
<first>195</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>32</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="50" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="51" tracking_level="0" version="0">
<first>buf_2d_out_addr_gep_fu_56</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>col_outbuf_i_addr_gep_fu_44</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>exitcond_flatten_fu_102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>exitcond_i8_fu_114</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>i_3_i_mid2_fu_120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>i_3_i_phi_fu_95</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>i_fu_169</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>indvar_flatten_next_fu_108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>indvar_flatten_phi_fu_73</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>j6_fu_128</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>j_1_i_mid2_fu_134</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>j_1_i_phi_fu_84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>p_addr1_fu_158</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>p_addr4_cast_fu_185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>p_addr5_fu_189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</second>
</item>
<item>
<first>p_addr_cast_fu_154</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>tmp_1_fu_178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>29</item>
</second>
</item>
<item>
<first>tmp_2_fu_195</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>32</item>
</second>
</item>
<item>
<first>tmp_9_trn_cast_fu_142</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>tmp_fu_146</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>tmp_s_fu_164</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>tmp_trn_cast_fu_175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</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>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="52" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="53" tracking_level="0" version="0">
<first class_id="54" tracking_level="0" version="0">
<first>buf_2d_out</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>
<first>col_outbuf_i</first>
<second>0</second>
</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>28</item>
<item>28</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>9</count>
<item_version>0</item_version>
<item>
<first>69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>80</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>91</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>204</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>209</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>225</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>9</count>
<item_version>0</item_version>
<item>
<first>col_outbuf_i_addr_reg_220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>exitcond_flatten_reg_200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>i_3_i_mid2_reg_209</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>i_3_i_reg_91</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>i_reg_225</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>indvar_flatten_next_reg_204</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>indvar_flatten_reg_69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>j_1_i_mid2_reg_214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>j_1_i_reg_80</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>3</count>
<item_version>0</item_version>
<item>
<first>69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>80</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>91</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>3</count>
<item_version>0</item_version>
<item>
<first>i_3_i_reg_91</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>indvar_flatten_reg_69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>j_1_i_reg_80</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="55" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="56" tracking_level="0" version="0">
<first>buf_2d_out(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</second>
</item>
<item>
<first>col_outbuf_i(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>load</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>28</item>
<item>28</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="57" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="58" tracking_level="0" version="0">
<first>1</first>
<second>RAM</second>
</item>
<item>
<first>2</first>
<second>RAM</second>
</item>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
with Ada.Text_IO;
with Ada.Text_IO.Complex_IO;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada_Lapack;
use Ada.Text_IO;
procedure tzgetri is
type Real is digits 18;
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
package Complex_Types is new Ada.Numerics.Generic_Complex_Types (Real);
package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays (Real_Arrays, Complex_Types);
package Real_Maths is new Ada.Numerics.Generic_Elementary_Functions (Real);
package Complex_Maths is new Ada.Numerics.Generic_Complex_Elementary_Functions (Complex_Types);
package Real_IO is new Ada.Text_IO.Float_IO (Real);
package Integer_IO is new Ada.Text_IO.Integer_IO (Integer);
package Complex_IO is new Ada.Text_IO.Complex_IO (Complex_Types);
package Lapack is new Ada_Lapack(Real, Complex_Types, Real_Arrays, Complex_Arrays);
use Lapack;
use Real_Arrays;
use Complex_Types;
use Complex_Arrays;
use Real_IO;
use Integer_IO;
use Complex_IO;
use Real_Maths;
use Complex_Maths;
matrix : Complex_Matrix (1..4,1..4);
matrix_copy : Complex_Matrix (1..4,1..4);
matrix_rows : Integer := Matrix'Length (1);
matrix_cols : Integer := Matrix'Length (2);
pivots : Integer_Vector (1..matrix_rows);
short_vector : Complex_Vector (1..1);
return_code : Integer;
begin
matrix :=( (( 1.23, -5.50), ( 7.91, -5.38), ( -9.80, -4.86), ( -7.32, 7.57)),
(( -2.14, -1.12), ( -9.92, -0.79), ( -9.18, -1.12), ( 1.37, 0.43)),
(( -4.30, -7.10), ( -6.47, 2.52), ( -6.51, -2.67), ( -5.86, 7.38)),
(( 1.27, 7.29), ( 8.90, 6.92), ( -8.82, 1.25), ( 5.41, 5.37)) );
matrix_copy := matrix;
GETRF ( A => matrix,
M => matrix_rows,
N => matrix_rows,
LDA => matrix_rows,
IPIV => pivots,
INFO => return_code );
GETRI ( A => matrix,
N => matrix_rows,
LDA => matrix_rows,
IPIV => pivots,
WORK => short_vector,
LWORK => -1,
INFO => return_code);
declare
work_vector_rows : Integer := Integer( short_vector(1).Re );
work_vector : Complex_Vector (1 .. work_vector_rows);
begin
GETRI ( A => matrix,
N => matrix_rows,
LDA => matrix_rows,
IPIV => pivots,
WORK => work_vector,
LWORK => work_vector_rows,
INFO => return_code);
end;
if (return_code /= 0) then
Put_line ("The matrix is probably singular.");
else
Put_line ("Matrix");
for i in matrix_copy'range(1) loop
for j in matrix_copy'range(2) loop
put(matrix_copy(i,j),3,3,0);
put(" ");
end loop;
new_line;
end loop;
new_line;
Put_line ("Inverse");
for i in matrix'range(1) loop
for j in matrix'range(2) loop
put(matrix(i,j),3,3,0);
put(" ");
end loop;
new_line;
end loop;
end if;
end tzgetri;
|
-----------------------------------------------------------------------
-- util-http-clients-mockups -- HTTP Clients
-- Copyright (C) 2011, 2012, 2017, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Files;
with Util.Http.Mockups;
package body Util.Http.Clients.Mockups is
use Ada.Strings.Unbounded;
Manager : aliased File_Http_Manager;
-- ------------------------------
-- Register the Http manager.
-- ------------------------------
procedure Register is
begin
Default_Http_Manager := Manager'Access;
end Register;
-- ------------------------------
-- Set the path of the file that contains the response for the next
-- <b>Do_Get</b> and <b>Do_Post</b> calls.
-- ------------------------------
procedure Set_File (Path : in String) is
begin
Manager.File := To_Unbounded_String (Path);
end Set_File;
procedure Create (Manager : in File_Http_Manager;
Http : in out Client'Class) is
pragma Unreferenced (Manager);
begin
Http.Delegate := new Util.Http.Mockups.Mockup_Request;
end Create;
overriding
procedure Do_Get (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Reply : out Response'Class) is
pragma Unreferenced (Http, URI);
Rep : constant Util.Http.Mockups.Mockup_Response_Access
:= new Util.Http.Mockups.Mockup_Response;
Content : Ada.Strings.Unbounded.Unbounded_String;
begin
Reply.Delegate := Rep.all'Access;
Util.Files.Read_File (Path => To_String (Manager.File),
Into => Content,
Max_Size => 100000);
Rep.Set_Body (To_String (Content));
Rep.Set_Status (SC_OK);
end Do_Get;
overriding
procedure Do_Head (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Reply : out Response'Class) is
pragma Unreferenced (Http, URI);
Rep : constant Util.Http.Mockups.Mockup_Response_Access
:= new Util.Http.Mockups.Mockup_Response;
begin
Reply.Delegate := Rep.all'Access;
Rep.Set_Body ("");
Rep.Set_Status (SC_OK);
end Do_Head;
overriding
procedure Do_Post (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Data : in String;
Reply : out Response'Class) is
pragma Unreferenced (Data);
begin
Manager.Do_Get (Http, URI, Reply);
end Do_Post;
overriding
procedure Do_Put (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Data : in String;
Reply : out Response'Class) is
pragma Unreferenced (Data);
begin
Manager.Do_Get (Http, URI, Reply);
end Do_Put;
overriding
procedure Do_Patch (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Data : in String;
Reply : out Response'Class) is
pragma Unreferenced (Data);
begin
Manager.Do_Get (Http, URI, Reply);
end Do_Patch;
overriding
procedure Do_Delete (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Reply : out Response'Class) is
begin
Manager.Do_Get (Http, URI, Reply);
end Do_Delete;
overriding
procedure Do_Options (Manager : in File_Http_Manager;
Http : in Client'Class;
URI : in String;
Reply : out Response'Class) is
begin
Manager.Do_Get (Http, URI, Reply);
end Do_Options;
-- ------------------------------
-- Set the timeout for the connection.
-- ------------------------------
overriding
procedure Set_Timeout (Manager : in File_Http_Manager;
Http : in Client'Class;
Timeout : in Duration) is
pragma Unreferenced (Manager, Http, Timeout);
begin
null;
end Set_Timeout;
end Util.Http.Clients.Mockups;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- A named element is an element in a model that may have a name.
------------------------------------------------------------------------------
with AMF.CMOF.Elements;
limited with AMF.CMOF.Namespaces.Collections;
with League.Strings;
package AMF.CMOF.Named_Elements is
pragma Preelaborate;
type CMOF_Named_Element is limited interface
and AMF.CMOF.Elements.CMOF_Element;
type CMOF_Named_Element_Access is
access all CMOF_Named_Element'Class;
for CMOF_Named_Element_Access'Storage_Size use 0;
not overriding function Get_Name
(Self : not null access constant CMOF_Named_Element)
return AMF.Optional_String is abstract;
-- Getter of NamedElement::name.
--
-- The name of the NamedElement.
not overriding procedure Set_Name
(Self : not null access CMOF_Named_Element;
To : AMF.Optional_String) is abstract;
-- Setter of NamedElement::name.
--
-- The name of the NamedElement.
not overriding function Get_Visibility
(Self : not null access constant CMOF_Named_Element)
return AMF.CMOF.Optional_CMOF_Visibility_Kind is abstract;
-- Getter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
not overriding procedure Set_Visibility
(Self : not null access CMOF_Named_Element;
To : AMF.CMOF.Optional_CMOF_Visibility_Kind) is abstract;
-- Setter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
not overriding function Get_Namespace
(Self : not null access constant CMOF_Named_Element)
return AMF.CMOF.Namespaces.CMOF_Namespace_Access is abstract;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
not overriding function Get_Qualified_Name
(Self : not null access constant CMOF_Named_Element)
return AMF.Optional_String is abstract;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
not overriding function All_Namespaces
(Self : not null access constant CMOF_Named_Element)
return AMF.CMOF.Namespaces.Collections.Ordered_Set_Of_CMOF_Namespace is abstract;
-- Operation NamedElement::allNamespaces.
--
-- The query allNamespaces() gives the sequence of namespaces in which the
-- NamedElement is nested, working outwards.
not overriding function Is_Distinguishable_From
(Self : not null access constant CMOF_Named_Element;
N : AMF.CMOF.Named_Elements.CMOF_Named_Element_Access;
Ns : AMF.CMOF.Namespaces.CMOF_Namespace_Access)
return Boolean is abstract;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
not overriding function Separator
(Self : not null access constant CMOF_Named_Element)
return League.Strings.Universal_String is abstract;
-- Operation NamedElement::separator.
--
-- The query separator() gives the string that is used to separate names
-- when constructing a qualified name.
not overriding function Qualified_Name
(Self : not null access constant CMOF_Named_Element)
return League.Strings.Universal_String is abstract;
-- Operation NamedElement::qualifiedName.
--
-- When there is a name, and all of the containing namespaces have a name,
-- the qualified name is constructed from the names of the containing
-- namespaces.
end AMF.CMOF.Named_Elements;
|
-- Copyright 2017-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.
name = "Wayback"
type = "archive"
function start()
set_rate_limit(5)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=build_url(domain)})
end
function build_url(domain)
return "https://web.archive.org/cdx/search/cdx?matchType=domain&fl=original&output=json&collapse=urlkey&url=" .. domain
end
|
with
Ada.Exceptions.Traceback, System.Address_Image,
Gnoga.Application.Multi_Connect,
Gnoga.Gui.Base,
Gnoga.Gui.Window,
Gnoga.Gui.View,
Gnoga.Gui.Element.Common,
Gnoga.Gui.Element.Form,
Gnoga.Types,
Gnoga.Gui.Document,
Gnoga.Gui.Element.Table,
NSO.JSON.Gnoga_Object,
NSO.Types,
INI.Parameters,
-- INI.Print, INI.Section_to_Map,
Config,
Report_Form,
Report_Table,
Send_Report,
Ada.Containers.Indefinite_Ordered_Maps,
Ada.Text_IO.Text_Streams,
Ada.Strings.Fixed
;
WITH Ada.Containers.Indefinite_Multiway_Trees, Ada.Strings.Equal_Case_Insensitive;
--WITH NSO.JSON.Parameters_to_JSON;
WITH Gnoga.Server.Connection;
with NSO.Types.Report_Objects;
with NSO.Types.Report_Objects.Observation_Report, NSO.Types.Report_Objects.Weather_Report;
with Ada.Strings.Unbounded;
with Ada.Strings;
procedure Main is
use Report_Form;
DEBUGGING : Constant Boolean := False;
ID_For_Email : Positive:= Positive'First;
-- Since this application will be used by multiple connections, we need to
-- track and access that connection's specific data. To do this we create
-- a derivative of Gnoga.Types.Connection_Data_Type that will be accessible
-- to any object on a connection.
type App_Data is new Gnoga.Types.Connection_Data_Type with
record
My_View : Gnoga.Gui.View.View_Type;
My_Widget : My_Widget_Type;
-- My_Done,
My_Exit : Gnoga.Gui.Element.Common.Button_Type;
end record;
type App_Access is access all App_Data;
procedure On_Exit (Object : in out Gnoga.Gui.Base.Base_Type'Class);
-- Application event handlers
procedure On_Connect
(Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
Connection : access
Gnoga.Application.Multi_Connect.Connection_Holder_Type);
-- Setup GUI for each connection.
procedure On_Result_Connect
(Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
Connection : access
Gnoga.Application.Multi_Connect.Connection_Holder_Type);
-- Setup another path in to the application for submitting results
-- /result, see On_Connect_Handler in body of this procedure.
procedure On_Exit (Object : in out Gnoga.Gui.Base.Base_Type'Class) is
App : constant App_Access := App_Access (Object.Connection_Data);
begin
App.My_View.New_Line;
App.My_View.Put_Line ("Closing application and every connection!");
App.My_Exit.Disabled;
Gnoga.Application.Multi_Connect.End_Application;
end On_Exit;
procedure On_Connect
(Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
Connection : access
Gnoga.Application.Multi_Connect.Connection_Holder_Type)
is
pragma Unreferenced (Connection);
App : constant App_Access := new App_Data;
begin
Main_Window.Connection_Data (App);
App.My_View.Create (Main_Window);
-- App.My_Done.Create(App.My_View);
-- App.My_Done.Text("DONE.");
-- App.My_Done.On_Click_Handler( On_Done'Unrestricted_Access );
App.My_Exit.Create (App.My_View, "Exit Application");
App.My_Exit.On_Click_Handler (On_Exit'Unrestricted_Access);
App.My_View.Horizontal_Rule;
App.My_Widget.Create (App.My_View);
App.My_Widget.Widget_Form.Action ("/result");
end On_Connect;
Last_Parameters : Gnoga.Types.Data_Map_Type;
procedure On_Post (URI : String;
Parameters : in out Gnoga.Types.Data_Map_Type) is
Package DM renames Gnoga.Types.Data_Maps;
begin
-- Last_Parameters.Assign( Parameters );
-- := Parameters;
for C in Parameters.Iterate loop
Declare
-- Creates a sequence of values, seperated by Unit_Seperator.
Function Replacement(Key, New_Part: String) return String is
Unit_Separator : Constant Character := Character'Val( 31 );
Current : Constant String := Last_Parameters(Key);
Begin
Return Result : Constant String :=
Current & Unit_Separator & New_Part;
End Replacement;
Function "="(Left, Right : String) return Boolean
renames Ada.Strings.Equal_Case_Insensitive;
Key : String renames DM.Key(C);
Element : String renames DM.Element(C);
Has_Key : Boolean renames Last_Parameters.Contains( Key );
Begin
if not Has_Key then
Last_Parameters.Include(Key, New_Item => Element);
else
Last_Parameters.Replace(
New_Item => Replacement(Key, Element),
Key => Key
);
end if;
Ada.Text_IO.Put_Line (":::" & Key & " = " & Element);
End;
end loop;
end On_Post;
procedure On_Post_Request
(URI : in String;
Accepted_Parameters : out Ada.Strings.Unbounded.Unbounded_String
) is
Function "+"(Right : String) return Ada.Strings.Unbounded.Unbounded_String
renames Ada.Strings.Unbounded.To_Unbounded_String;
begin
Accepted_Parameters:= --Ada.Strings.Unbounded.Null_Unbounded_String;
+"Message";
end On_Post_Request;
procedure On_Post_File
(URI : in String;
File_Name : in String;
Temp_Name : in String
) is null;
procedure On_Result_Connect
(Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
Connection : access
Gnoga.Application.Multi_Connect.Connection_Holder_Type)
is
Function "*"(Left : Character; Right : Natural) Return String is
( String'(1..Right => Left) );
--On_Post_Request_Handler
--Post_Request_Event
-- P_List : Gnoga.Types.Data_Map_Type renames Last_Parameters; --:= Gnoga.Types.Data_Maps.Empty_Map;
EMail_View : Gnoga.Gui.View.View_Access:= new Gnoga.Gui.View.View_Type;
-- WIN : Gnoga.Gui.Base.Pointer_To_Base_Class renames Main_Window.Get_View;
-- VIEW : Gnoga.Gui.View.View_Type renames
-- Gnoga.Gui.View.View_Access'(
-- if WIN in Null
-- then new Gnoga.Gui.View.View_Type
-- else Gnoga.Gui.View.View_Access(Main_Window.Get_View)
-- ).all;
-- Function Parameters_to_JSON( Input : in out Gnoga.Types.Data_Map_Type ) return NSO.JSON.Instance'Class
-- renames NSO.JSON.Parameters_to_JSON;
-- Function Parse_Text_Map( Input : in out Gnoga.Types.Data_Map_Type ) return NSO.JSON.Instance'Class is
-- Use NSO.JSON;
--
-- Function Handle_Value( Value: String ) return Instance'Class is
-- Unit_Separator : Constant Character := Character'Val( 31 );
-- US_STR : Constant String := (1 => Unit_Separator);
-- First_Index : Natural := Value'First;
-- Last_Index : Natural := Ada.Strings.Fixed.Index(
-- Pattern => US_STR,
-- Source => Value,
-- From => First_Index
-- );
-- Begin
-- if Last_Index not in Positive then
-- Return Make( Value );
-- else
-- Return Result : Array_Object := Array_Object(Make_Array) do
-- COLLECT_ELEMENTS:
-- loop
-- declare
-- Marker : Constant Natural:=
-- (if Last_Index in Positive
-- then Positive'Pred(Last_Index)
-- else Value'last
-- );
-- Subtype Slice is Positive range
-- First_Index..Marker;
-- Data : String renames Value(Slice);
-- begin
-- Array_Object(Result).Append( Make(Data) );
-- exit COLLECT_ELEMENTS when Slice'Last = Value'Last;
-- First_Index:= Last_Index + US_STR'Length;
-- end;
-- Last_Index := Ada.Strings.Fixed.Index(
-- Pattern => US_STR,
-- Source => Value,
-- From => First_Index
-- );
-- end loop COLLECT_ELEMENTS;
-- End return;
-- end if;
-- End Handle_Value;
--
-- Function New_Object return Object_Object is
-- ( Object_Object(Make_Object) ) with Inline;
-- Begin
-- Return Result : Object_Object := New_Object do
-- For Item in Input.Iterate loop
-- Declare
-- Function Parse_Key( Key, Value : String ) return NSO.JSON.Object_Object is
--
-- Function Last_Index(Bracket : Character) return Natural is
-- (Ada.Strings.Fixed.Index(
-- Source => Key,
-- Pattern => (1 => Bracket),
-- From => Key'Last,
-- Going => Ada.Strings.Backward
-- )
-- );
--
-- Function First_Index(Bracket : Character) return Natural is
-- (Ada.Strings.Fixed.Index(
-- Source => Key,
-- Pattern => (1 => Bracket),
-- From => Key'First,
-- Going => Ada.Strings.Forward
-- )
-- );
--
-- Last_Close : Natural renames First_Index(']');
-- Last_Open : Natural renames First_Index('[');
--
-- Begin
-- if Last_Open = Last_Close then -- only when both don't exist.
-- Return Result : Object_Object := New_Object do
-- Result.Value(
-- Name => Key,
-- Value => Handle_Value( Value )
-- );
-- Ada.Text_IO.Put_Line( "===> " & (Result.To_String) & Value );
-- end return;
-- elsif Last_Open < Last_Close then
-- Return Result : Object_Object := New_Object do
-- Result.Value(
-- Name => Key(Natural'Succ(Last_Open)..Natural'Pred(Last_Close)),
-- Value => Parse_Key(Key => Key(Key'First..Natural'Pred(Last_Open)), Value => Value)
-- );
-- End return;
-- else
-- raise NSO.JSON.Parse_Error with "Bad indexing: '"
-- & Key & "'.";
-- end if;
-- End Parse_Key;
--
-- K : String renames Gnoga.Types.Data_Maps.Key(Item);
-- V : String renames Gnoga.Types.Data_Maps.Element(Item);
-- O : Object_Object renames Parse_Key(K, V);
-- Begin
-- Result.Include( O );
-- End;
-- end loop;
--
-- -- Clear the parameters.
-- Last_Parameters.Clear;
-- End return;
-- End Parse_Text_Map;
Begin
-- View.Dynamic;
-- Result_View.Create(Main_Window);
EMail_View.Dynamic;
EMail_View.Create( Main_Window );
-- EMail_View.Put_Line( '-' * 80 );
-- EMail_View.Put_Line( "Message = " & Main_Window.Form_Parameter("Message") );
-- --On_Post( Main_Window.Location.URL, P_List );
-- --EMail_View.Put_Line( NSO.JSON.To_String( Parse_Text_Map(P_List) ));
-- for C in P_List.Iterate loop
-- EMail_View.Put_Line(
-- Gnoga.Types.Data_Maps.Key (C) & " = '" &
-- Gnoga.Types.Data_Maps.Element (C) & '''
-- );
-- end loop;
-- EMail_View.Put_Line( '-' * 80 );
-- --EMail_View.Put_Line( Parse_Text_Map(P_List).To_String );
-- EMail_View.Put_Line( '-' * 80 );
--
-- EMail_View.Put_Line(Parameters_to_JSON( P_List ).To_String);
EMAIL:
Declare
Table : Gnoga.Gui.Element.Table.Table_Type renames
Report_Table( EMail_View.all, Main_Window, Last_Parameters ).All;
Begin
--Get_CGI_Key
Send_report
(EMail_View.Outer_HTML
--EMail_Doc.Document_Element.Outer_HTML
-- EMail_Doc.Head_Element.HTML_Tag &
-- (ASCII.CR, ASCII.LF) &
-- EMail_Doc.Body_Element.HTML_Tag
);
End EMAIL;
-- Clear the parameters.
Last_Parameters.Clear;
End On_Result_Connect;
-- procedure On_Result_Connect
-- (Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
-- Connection : access
-- Gnoga.Application.Multi_Connect.Connection_Holder_Type)
-- is
-- -- pragma Unreferenced (Connection);
-- -- -- Since there will be no interactions with page once displayed there
-- -- -- is no need to setup any data to associate with the main window.
-- --
-- App : constant App_Access := App_Access(Main_Window.Connection_Data);
-- Result_View : constant Gnoga.Gui.View.View_Access :=
-- new Gnoga.Gui.View.View_Type;
-- begin
-- Result_View.Dynamic;
-- -- By marking the View dynamic it will be deallocated by Main_Window
-- -- when it finalizes.
-- Result_View.Create (Main_Window);
-- --App.My_Done.Place_Inside_Bottom_Of( Element.Class(Main_Window) );
--
-- FORM_DATA:
-- Declare
-- k : Constant String := "K!";
-- Name : String renames Main_Window.Form_Parameter ("Name");
-- Message : String renames Main_Window.Form_Parameter ("Message");
-- Conditions : String renames Main_Window.Form_Parameter ("Conditions");
-- Observer : String renames Main_Window.Form_Parameter ("Observer");
-- CRLF : Constant String := (ASCII.CR, ASCII.LF);
-- Begin
-- -- Ada.Text_IO.Put_Line( (1..20 => ':') &
-- -- Gnoga.Server.Connection.Execute_Script(
-- -- ID => Main_Window.Connection_ID,
-- -- Script => --"params"
-- -- "var alertText = ' '; " & --CRLF &
-- -- "for (property in params) {" & --CRLF &
-- -- " alertText += property + ':' " &
-- -- "+ params[property]+'; ';" & --CRLF &
-- -- "} " & --CRLF &
-- -- "params.toSource();" & --CRLF &
-- -- ""
-- --
-- -- --"''+params;"
-- -- -- "params['" & Name & "'];"
-- -- ));
--
-- --------------------------------------------------------------------------------
-- --------------------------------------------------------------------------------
-- --------------------------------------------------------------------------------
--
-- -- FORM_PARAMETER_TEST:
-- -- Declare
-- -- Use NSO.Types;
-- --
-- -- Package Parameter_List renames NSO.Types.String_Map;
-- -- -- is new Ada.Containers.Indefinite_Ordered_Maps(
-- -- -- -- "<" => ,
-- -- -- -- "=" => ,
-- -- -- Key_Type => String,
-- -- -- Element_Type => String
-- -- -- );
-- --
-- -- Function Get_Parameters(Object : NSO.JSON.Instance'Class) return Parameter_List.Map is
-- -- Use Parameter_List, NSO.JSON;
-- -- Temp : Instance'Class := Object;
-- -- Begin
-- -- Return Result : Map := Empty_Map do
-- -- Declare
-- -- Procedure Add_Item(Key : String; Value : NSO.JSON.Instance'Class) is
-- -- begin
-- -- Result.Include(New_Item => -Value, Key => Key);
-- -- end Add_Item;
-- --
-- -- Procedure Do_It is new NSO.JSON.Apply
-- -- ( On_Object => Add_Item );
-- -- Begin
-- -- Do_It( Temp );
-- -- End;
-- -- End return;
-- -- End Get_Parameters;
-- --
-- --
-- -- FP : String renames
-- -- Gnoga.Server.Connection.Execute_Script(
-- -- ID => Main_Window.Connection_ID,
-- -- Script => "JSON.stringify( params )"-- "params.toSource();"
-- -- );
-- -- Params : String renames FP;
-- -- -- FP( Positive'Succ(FP'First)..Positive'Pred(FP'Last) );
-- -- PS : Aliased String_Stream:= +(Params);
-- -- Begin
-- -- Ada.Text_IO.Put_Line((1..20 => ':') & Params & (1..20 => ':'));
-- -- DECLARE
-- -- Item : NSO.JSON.Instance'Class :=
-- -- NSO.JSON.Instance'Class'Input( PS'Access );
-- -- Data : NSO.Types.Report_Objects.Report_Map.Map
-- -- renames NSO.Types.Report_Objects.Report(Data => Item);
-- -- Procedure Print(Cursor : Parameter_List.Cursor) is
-- -- Value : String renames Parameter_List.Element( Cursor );
-- -- Key : String renames Parameter_List.Key( Cursor );
-- -- Begin
-- -- Ada.Text_IO.Put_Line(Key & (' ',':',ASCII.HT) & Value);
-- -- End Print;
-- -- Begin
-- -- Ada.Text_IO.Put_Line("JSON CREATED.");
-- -- Get_Parameters(Item).Iterate( Print'Access );
-- -- -- Report_Objects.Report
-- -- Ada.Text_IO.Put_Line( NSO.Types.Report_Objects.Report(Data) );
-- --
-- -- -- For X in Data.Iterate loop
-- -- -- Ada.Text_IO.Put_Line( NSO.Types.Report_Objects.Report(X) );
-- -- -- End loop;
-- --
-- -- End;
-- --
-- -- End FORM_PARAMETER_TEST;
--
--
-- Result_View.Put_Line ("Name : " & Name);
-- Result_View.Put_Line ("Message : " & Message);
-- Result_View.Put_Line ("Conditions : " & Conditions);
--
-- EMAIL:
-- Declare
-- ---------------------------------------------
-- -- GET PARAMETER-DATA AND GENERATE REPORTS --
-- ---------------------------------------------
-- Package GO renames NSO.JSON.Gnoga_Object;
-- Package RO renames NSO.Types.Report_Objects;
--
-- Function Shim_Parameters (O : NSO.JSON.Gnoga_Object.Form_Object)
-- return NSO.JSON.Gnoga_Object.JSON_Class is
-- (NSO.JSON.Gnoga_Object.Get_JSON(O));
--
-- -- Function JSON_TO_HTML_Report is new NSO.JSON.Gnoga_Object.Report_View(
-- -- Form => NSO.JSON.Gnoga_Object.Form_Object,
-- -- Params => NSO.JSON.Gnoga_Object.JSON_Class,
-- -- Report => NSO.Types.Report_Objects.Report_Map.Map,
-- -- View => String,
-- -- Submission => Shim_Parameters,
-- -- Parameters => NSO.Types.Report_Objects.Report,
-- -- Processing => NSO.Types.Report_Objects.Report
-- -- );
-- --
-- -- Function Observation_Report_TO_HTML is new NSO.JSON.Gnoga_Object.Report_View(
-- -- Form => NSO.JSON.Gnoga_Object.Form_Object,
-- -- Params => NSO.JSON.Gnoga_Object.JSON_Class,
-- -- Report => NSO.Types.Report_Objects.Observation_Report.Report_Map.Map,
-- -- View => String,
-- -- Submission => NSO.JSON.Gnoga_Object.Parameters,
-- -- Parameters => NSO.Types.Report_Objects.Observation_Report.Report,
-- -- Processing => NSO.Types.Report_Objects.Observation_Report.Report
-- -- );
--
-- Package Reports is new NSO.JSON.Gnoga_Object.Generic_Reporter(
-- Form => NSO.JSON.Gnoga_Object.Form_Object,
-- Params => NSO.JSON.Gnoga_Object.JSON_Class,
-- Parameters => NSO.JSON.Gnoga_Object.Parameters,
-- This => NSO.JSON.Gnoga_Object.As_Form(Main_Window)
-- );
--
-- Function Observation_Table is new Reports.Generate_Report(
-- Report => RO.Observation_Report.Report_Map.Map,
-- View => String,
-- Get_Report => RO.Observation_Report.Report,
-- Processing => RO.Observation_Report.Report
-- );
--
-- Function Weather_Table is new Reports.Generate_Report(
-- Report => RO.Weather_Report.Report_Map.Map,
-- View => String,
-- Get_Report => RO.Weather_Report.Report,
-- Processing => RO.Weather_Report.Report
-- );
--
-- Use NSO.Types;
-- -- Parameter_Data : String renames
-- -- Gnoga.Server.Connection.Execute_Script(
-- -- ID => Main_Window.Connection_ID,
-- -- Script => "JSON.stringify( params )"-- "params.toSource();"
-- -- );
-- -- Parameter_Stream: Aliased String_Stream:= +(Parameter_Data);
-- -- Parameter_JSON : NSO.JSON.Instance'Class :=
-- -- NSO.JSON.Instance'Class'Input( Parameter_Stream'Access );
-- -- Weather_Report : NSO.Types.Report_Objects.Weather_Report.Report_Map.Map
-- -- renames NSO.Types.Report_Objects.Weather_Report.Report(Parameter_JSON);
-- -- -- Weather_Table : String
-- -- -- renames --NSO.Types.Report_Objects.Report(Weather_Report);
-- -- -- JSON_TO_HTML_Report( NSO.JSON.Gnoga_Object.As_Form(Main_Window) );
-- -- --
-- -- -- Observation_Table : String
-- -- -- renames
-- -- -- Observation_Report_TO_HTML( NSO.JSON.Gnoga_Object.As_Form(Main_Window) );
-- --
-- -- Insturment_Table : String := "";
--
--
-- Procedure Create_Row(
-- Left, Right : in String;
-- Table : in out Gnoga.Gui.Element.Table.Table_Type'Class
-- ) is
-- use Gnoga.Gui.Element.Table;
-- row : constant Table_Row_Access := new Table_Row_Type;
-- col1 : constant Table_Column_Access := new Table_Column_Type;
-- col2 : constant Table_Column_Access := new Table_Column_Type;
-- Begin
-- row.Dynamic;
-- col1.Dynamic;
-- col2.Dynamic;
--
-- row.Create (Table);
-- col1.Create (row.all, Left );
-- col2.Create (row.all, Right);
-- End Create_Row;
--
-- procedure Create_Title(
-- Title : in String;
-- Table : in out Gnoga.Gui.Element.Table.Table_Type'Class
-- ) is
-- use Gnoga.Gui.Element.Table;
-- Head : constant Table_Header_Access := new Table_Header_Type;
-- Row : constant Table_Row_Access := new Table_Row_Type;
-- Col : constant Table_Heading_Access:= new Table_Heading_Type;
-- begin
-- head.Dynamic;
-- row.Dynamic;
-- col.Dynamic;
--
-- head.Create(Table);
-- row.Create (Head.all);
-- col.Create (row.all, Title, Column_Span => 2 );
-- end;
--
-- EMail_Window : Gnoga.Gui.Window.Window_Type;
-- EMail_View : Gnoga.Gui.View.View_Access:= new Gnoga.Gui.View.View_Type;
-- EMail_Doc : Gnoga.Gui.Document.Document_Access:= new Gnoga.Gui.Document.Document_Type;
-- Table : Gnoga.Gui.Element.Table.Table_Type;
-- Done_Button : Gnoga.Gui.Element.Common.Button_Type;
-- -- renames App_Access (Main_Window.Connection_Data).My_Done;
-- Begin
-- EMail_View.Dynamic;
-- Table.Dynamic;
-- -- Ada.Text_IO.Put_Line(
-- -- --NSO.JSON.Gnoga_Object.As_Form(Main_Window).Parameters.To_String
-- -- Observation_Report_TO_HTML( NSO.JSON.Gnoga_Object.As_Form(Main_Window) )
-- -- );
--
-- TRY_CATCHING_INTERMITTENT_ERROR:
-- Declare
-- Function Make_ID( Number : Positive ) return String is
-- Package IT is new Ada.Text_IO.Integer_IO( Positive );
-- Maximum : Constant := 8;
-- Temp : String(1..12);
-- Begin
-- IT.Put(To => Temp, Item => Number, Base => 16);
--
-- EXTRACT_HEX:
-- Declare
-- Use Ada.Strings, Ada.Strings.Fixed;
-- Start : Natural renames Natural'Succ(Index(Temp, "#", Forward));
-- Stop : Natural renames Natural'Pred(Index(Temp, "#", Backward));
-- Value : String renames Temp(Start..Stop);
-- Begin
-- Return Result : String (1..Maximum):=
-- (1..Maximum - Value'Length => '0') & Value do
-- ID_For_Email:= Integer'Succ(ID_For_Email);
-- End return;
-- End EXTRACT_HEX;
-- End Make_ID;
--
-- Raw_ID : Constant String := Make_ID( ID_For_Email );
-- Begin
-- -- Manually setting a run-time ID does not fix the intermittent errors.
-- -- I get STORAGE_ERROR, PROGRAM_ERROR (adjust/finalize raising),
-- -- GNOGA.SERVER.CONNECTION.SCRIPT_ERROR, GNOGA.SERVER.CONNECTION.CONNECTION_ERROR,
-- -- and "CONSTRAINT_ERROR : bad input for 'Value: "undefined""
-- -- Why?
-- EMail_View.Create( Main_Window, ID => "EMAIL" & Raw_ID );
-- Table.Create ( EMail_View.all, ID => "TABLE" & Raw_ID );
-- Exception
-- when E : Others =>
-- Ada.Text_IO.Put_Line( "EXCEPTION HAPPENED!!" );
-- Ada.Text_IO.Put_Line("Name: "& Ada.Exceptions.Exception_Name(E));
-- Ada.Text_IO.Put_Line("Info: "& Ada.Exceptions.Exception_Information(E));
-- PRINT_TRACE:
-- For K of Ada.Exceptions.Traceback.Tracebacks(E) loop
-- Ada.Text_IO.Put(' ' & System.Address_Image(
-- Ada.Exceptions.Traceback.STBE.PC_For(K)
-- )
-- );
-- End loop PRINT_TRACE;
-- End TRY_CATCHING_INTERMITTENT_ERROR;
--
--
-- Table.Style(Name => "width", Value => "50%");
-- Table.Style(Name => "margin", Value => "auto");
-- Table.Style(Name => "clear", Value => "both");
-- Table.Style(Name => "position", Value => "absolute");
-- Table.Style(Name => "top", Value => "53%");
-- Table.Style(Name => "left", Value => "50%");
-- Table.Style(Name => "margin-right", Value => "-50%");
-- Table.Style(Name => "transform", Value => "translate(-50%, -50%)");
-- Table.Border(Width => "thick");
--
-- Create_Title( "Observation Report", Table );
-- Create_Row( "Name", Name, Table );
-- Create_Row( "Observer", Observer, Table );
-- Create_Row( "Message", Message, Table );
-- Create_Row( "Conditions", Conditions, Table );
-- Create_Row( "Weather Report", Weather_Table, Table );
-- Create_Row( "Observation Report", Observation_Table, Table );
--
-- Send_report
-- (EMail_View.Outer_HTML
-- --EMail_Doc.Document_Element.Outer_HTML
-- -- EMail_Doc.Head_Element.HTML_Tag &
-- -- (ASCII.CR, ASCII.LF) &
-- -- EMail_Doc.Body_Element.HTML_Tag
-- );
-- End EMAIL;
-- end FORM_DATA;
--
--
-- end On_Result_Connect;
use all type Config.Pascal_String;
begin
-- INI.Print( INI.Parameters.Parameters );
-- for X in INI.Section_to_Map(INI.Parameters.Parameters, "ROSA").Iterate loop
-- Ada.Text_IO.Put_Line( NSO.Types.String_Map.Key(X) & ' '
-- & NSO.Types.String_Map.Element(X) );
-- end loop;
Gnoga.Application.Title ("NSO/SP Report Tool");
Gnoga.Application.HTML_On_Close ("Application ended.");
Gnoga.Application.Multi_Connect.Initialize;
Gnoga.Application.Multi_Connect.On_Connect_Handler
(Event => On_Connect'Unrestricted_Access,
Path => "default");
Gnoga.Application.Multi_Connect.On_Connect_Handler
(Event => On_Result_Connect'Unrestricted_Access,
Path => "result");
Gnoga.Server.Connection.On_Post_Handler (On_Post'Unrestricted_Access);
-- Gnoga.Server.Connection.On_Post_Request_Handler (On_Post_Request'Unrestricted_Access);
-- Gnoga.Server.Connection.On_Post_File_Handler
-- (On_Post_File'Unrestricted_Access);
Gnoga.Application.Multi_Connect.Message_Loop;
-- With a Multi_Connect application it is possible to have different
-- URL paths start different Connection Event Handlers. This allows
-- for the creation of Web Apps that appear as larger web sites or as
-- multiple applications to the user. Setting Path to "default" means
-- that any unmatched URL path will start that event handler. A URL path
-- is the path following the host and port. For example:
-- http://localhost:8080/test/me
-- The Path would be "/test/me". In Gnoga the path can even appear to be
-- a file name "/test/me.html". However if you have a file of the same
-- name in the html directory it will be served instead.
--Gnoga.Application.Multi_Connect.Message_Loop;
-- Ada.Text_IO.Put_Line ("Counter : " & Natural'Image (Config.DL));
-- Ada.Text_IO.Put_Line ("Message : " & (+Config.Host));
-- Config.DL := Config.DL + 1;
-- --Config.Host ( "HOST" );
--
-- Ada.Text_IO.Put_Line( "HOST:" & (+Config.Host) );
-- Ada.Text_IO.Put_Line( "USER:" & (+Config.User) );
-- Ada.Text_IO.Put_Line( "PASS:" & (+Config.Password) );
Ada.Text_IO.Put_Line("Done.");
end Main;
|
with Ada.Calendar;
with Fmt.Time_Argument;
with Fmt.String_Argument;
with Fmt.Integer_Argument;
with Fmt.Duration_Argument;
package Fmt.Stdtypes is
-- integer support
-- edit format (control_char=control_value;...)
-- "w=" width
-- "a=" align
-- "f=" fillchar
-- "b=" base (use lowercase extended digit)
-- "B=" base (use uppercase extended digit)
function "&" (Args : Arguments; X : Integer) return Arguments
renames Integer_Argument."&";
function To_Argument (X : Integer) return Argument_Type'Class
renames Integer_Argument.To_Argument;
function Format is new Generic_Format(Integer);
-- time support
-- edit format
-- "%y" : year (yy)
-- "%Y" : year (yyyy)
-- "%m" : month (mm)
-- "%d" : day (dd)
-- "%H" : hour (HH)
-- "%M" : min (MM)
-- "%S" : sec (SS)
function "&" (Args : Arguments; X : Ada.Calendar.Time) return Arguments
renames Time_Argument."&";
function To_Argument (X : Ada.Calendar.Time) return Argument_Type'Class
renames Time_Argument.To_Argument;
function Format is new Generic_Format(Ada.Calendar.Time);
function "&" (Args : Arguments; X : Duration) return Arguments
renames Duration_Argument."&";
function To_Argument (X : Duration) return Argument_Type'Class
renames Duration_Argument.To_Argument;
function Format is new Generic_Format(Duration);
-- utf8 string support
-- edit format :
-- "w=" width
-- "a=" align
-- "f=" fillchar
-- "A=" unmask align
-- "W=" unmask width
-- "F=" maskchar fill
-- "s=" style ("O|L|U|F")
-- for example
-- Format("hello, {:w=10,f= ,W=3,A=l,F=*}", "kylix")
-- output : "hello, **lix"
function "&" (Args : Arguments; X : String) return Arguments
renames String_Argument."&";
function To_Argument (X : String) return Argument_Type'Class
renames String_Argument.To_Argument;
function Format is new Generic_Format(String);
end Fmt.Stdtypes;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with MicroBit.IOs; use MicroBit.IOs;
package MicroBit.Servos is
-- Servo-motors control
subtype Servo_Pin_Id is Pin_Id
with Predicate => Supports (Servo_Pin_Id, Analog);
type Servo_Set_Point is range 0 .. 180;
procedure Stop (Pin : Servo_Pin_Id);
-- Disable PWM signal on pin
procedure Go (Pin : Servo_Pin_Id; Setpoint : Servo_Set_Point);
-- Configures this IO pin as an analog/pwm output (if necessary) and
-- configures the period to be 20ms, with a duty cycle between 500 us and
-- 2500 us. A value of 180 sets the duty cycle to be 2500us, and a value
-- of 0 sets the duty cycle to be 500us.
end MicroBit.Servos;
|
package Vect13 is
-- Constrained array types are vectorizable
type Sarray is array (1 .. 4) of Float;
for Sarray'Alignment use 16;
function "+" (X, Y : Sarray) return Sarray;
procedure Add (X, Y : Sarray; R : out Sarray);
end Vect13;
|
-- C87B31A.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 OVERLOADING RESOLUTION USES THE RULE THAT:
--
-- IF THE TYPE OF AN AGGREGATE IS A ONE-DIMENSIONAL ARRAY TYPE
-- THEN EACH CHOICE MUST SPECIFY VALUES OF THE INDEX TYPE, AND
-- THE EXPRESSION OF EACH COMPONENT ASSOCIATION MUST BE OF THE
-- COMPONENT TYPE.
-- TRH 8 AUG 82
-- DSJ 15 JUN 83
-- JRK 2 FEB 84
-- JBG 4/23/84
WITH REPORT; USE REPORT;
PROCEDURE C87B31A IS
TYPE LETTER IS NEW CHARACTER RANGE 'A' .. 'Z';
TYPE NOTE IS (A, B, C, D, E, F, G, H);
TYPE STR IS NEW STRING (1 .. 1);
TYPE BIT IS NEW BOOLEAN;
TYPE YES IS NEW BOOLEAN RANGE TRUE .. TRUE;
TYPE NO IS NEW BOOLEAN RANGE FALSE .. FALSE;
TYPE BOOLEAN IS (FALSE, TRUE);
TYPE LIST IS ARRAY (CHARACTER RANGE <>) OF BIT;
TYPE FLAG IS (PASS, FAIL);
SUBTYPE LIST_A IS LIST('A'..'A');
SUBTYPE LIST_E IS LIST('E'..'E');
SUBTYPE LIST_AE IS LIST('A'..'E');
GENERIC
TYPE T IS PRIVATE;
ARG : IN T;
STAT : IN FLAG;
FUNCTION F1 RETURN T;
FUNCTION F1 RETURN T IS
BEGIN
IF STAT = FAIL THEN
FAILED ("RESOLUTION INCORRECT FOR EXPRESSIONS " &
"IN ARRAY AGGREGATES");
END IF;
RETURN ARG;
END F1;
FUNCTION F IS NEW F1 (BOOLEAN, FALSE, FAIL);
FUNCTION F IS NEW F1 (YES, TRUE, FAIL);
FUNCTION F IS NEW F1 (NO, FALSE, FAIL);
FUNCTION F IS NEW F1 (BIT, TRUE, PASS);
FUNCTION G IS NEW F1 (CHARACTER, 'A', PASS);
FUNCTION G IS NEW F1 (LETTER, 'A', FAIL);
FUNCTION G IS NEW F1 (STR, "A", FAIL);
FUNCTION H IS NEW F1 (CHARACTER, 'E', PASS);
FUNCTION H IS NEW F1 (LETTER, 'E', FAIL);
FUNCTION H IS NEW F1 (STR, "E", FAIL);
BEGIN
TEST ("C87B31A", "OVERLOADED EXPRESSIONS IN ARRAY AGGREGATES");
DECLARE
L1, L2 : LIST_A := (OTHERS => FALSE);
L3, L4 : LIST_E := (OTHERS => FALSE);
L5, L6 : LIST_AE := (OTHERS => FALSE);
L7, L8 : LIST_AE := (OTHERS => FALSE);
BEGIN
L1 := ('A' => F);
L2 := ( G => F);
L3 := ('E' => F);
L4 := ( H => F);
L5 := ('A'..'E' => F);
L6 := (F,F,F,F,F);
L7 := (F,F,F, OTHERS => F);
L8 := LIST_AE'('E' => F, 'B' => F, OTHERS => F);
IF L1 /= LIST_A'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L1");
END IF;
IF L2 /= LIST_A'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L2");
END IF;
IF L3 /= LIST_E'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L3");
END IF;
IF L4 /= LIST_E'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L4");
END IF;
IF L5 /= LIST_AE'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L5");
END IF;
IF L6 /= LIST_AE'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L6");
END IF;
IF L7 /= LIST_AE'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L7");
END IF;
IF L8 /= LIST_AE'(OTHERS => TRUE) THEN
FAILED ("RESOLUTION INCORRECT FOR OVERLOADED" &
" EXPRESSIONS IN ARRAY AGGREGATES - L8");
END IF;
END;
RESULT;
END C87B31A;
|
pragma Ada_2012;
with Interfaces.C.Strings;
with Interfaces.C; use Interfaces.C;
package body taglib is
-- unsupported macro: TAGLIB_C_EXPORT __attribute__ ((visibility("default")))
-- unsupported macro: BOOL int
type TagLib_File is record
Dummy : aliased Int; -- /usr/include/taglib/tag_c.h:65
end record;
pragma Convention (C_Pass_By_Copy, TagLib_File); -- /usr/include/taglib/tag_c.h:65
-- skipped anonymous struct anon_0
type TagLib_Tag is record
Dummy : aliased Int; -- /usr/include/taglib/tag_c.h:66
end record;
pragma Convention (C_Pass_By_Copy, TagLib_Tag); -- /usr/include/taglib/tag_c.h:66
-- skipped anonymous struct anon_1
type TagLib_AudioProperties is record
Dummy : aliased Int; -- /usr/include/taglib/tag_c.h:67
end record;
pragma Convention (C_Pass_By_Copy, TagLib_AudioProperties); -- /usr/include/taglib/tag_c.h:67
-- skipped anonymous struct anon_2
procedure Taglib_Set_Strings_Unicode (Unicode : Int); -- /usr/include/taglib/tag_c.h:74
pragma Import (C, Taglib_Set_Strings_Unicode, "taglib_set_strings_unicode");
procedure Taglib_Set_String_Management_Enabled (Management : Int); -- /usr/include/taglib/tag_c.h:82
pragma Import (C, Taglib_Set_String_Management_Enabled, "taglib_set_string_management_enabled");
-- procedure Taglib_Free (Pointer : System.Address); -- /usr/include/taglib/tag_c.h:87
-- pragma Import (C, Taglib_Free, "taglib_free");
type TagLib_File_Type is
(TagLib_File_MPEG,
TagLib_File_OggVorbis,
TagLib_File_FLAC,
TagLib_File_MPC,
TagLib_File_OggFlac,
TagLib_File_WavPack,
TagLib_File_Speex,
TagLib_File_TrueAudio,
TagLib_File_MP4,
TagLib_File_ASF) with Warnings => off;
pragma Convention (C, TagLib_File_Type); -- /usr/include/taglib/tag_c.h:104
function Taglib_File_New (Filename : Interfaces.C.Strings.Chars_Ptr) return access TagLib_File; -- /usr/include/taglib/tag_c.h:113
pragma Import (C, Taglib_File_New, "taglib_file_new");
function Taglib_File_New_Type (Filename : Interfaces.C.Strings.Chars_Ptr; C_Type : TagLib_File_Type) return access TagLib_File; -- /usr/include/taglib/tag_c.h:119
pragma Import (C, Taglib_File_New_Type, "taglib_file_new_type");
procedure Taglib_File_Free (File : access TagLib_File); -- /usr/include/taglib/tag_c.h:124
pragma Import (C, Taglib_File_Free, "taglib_file_free");
function Taglib_File_Is_Valid (File : access TagLib_File) return Int; -- /usr/include/taglib/tag_c.h:131
pragma Import (C, Taglib_File_Is_Valid, "taglib_file_is_valid");
function Taglib_File_Tag (File : access TagLib_File) return access TagLib_Tag; -- /usr/include/taglib/tag_c.h:137
pragma Import (C, Taglib_File_Tag, "taglib_file_tag");
function Taglib_File_Audioproperties (File : access TagLib_File) return access TagLib_AudioProperties; -- /usr/include/taglib/tag_c.h:143
pragma Import (C, Taglib_File_Audioproperties, "taglib_file_audioproperties");
function Taglib_File_Save (File : access TagLib_File) return Int; -- /usr/include/taglib/tag_c.h:148
pragma Import (C, Taglib_File_Save, "taglib_file_save");
function Taglib_Tag_Title (Tag : access TagLib_Tag) return Interfaces.C.Strings.Chars_Ptr; -- /usr/include/taglib/tag_c.h:160
pragma Import (C, Taglib_Tag_Title, "taglib_tag_title");
function Taglib_Tag_Artist (Tag : access TagLib_Tag) return Interfaces.C.Strings.Chars_Ptr; -- /usr/include/taglib/tag_c.h:168
pragma Import (C, Taglib_Tag_Artist, "taglib_tag_artist");
function Taglib_Tag_Album (Tag : access TagLib_Tag) return Interfaces.C.Strings.Chars_Ptr; -- /usr/include/taglib/tag_c.h:176
pragma Import (C, Taglib_Tag_Album, "taglib_tag_album");
function Taglib_Tag_Comment (Tag : access TagLib_Tag) return Interfaces.C.Strings.Chars_Ptr; -- /usr/include/taglib/tag_c.h:184
pragma Import (C, Taglib_Tag_Comment, "taglib_tag_comment");
function Taglib_Tag_Genre (Tag : access TagLib_Tag) return Interfaces.C.Strings.Chars_Ptr; -- /usr/include/taglib/tag_c.h:192
pragma Import (C, Taglib_Tag_Genre, "taglib_tag_genre");
function Taglib_Tag_Year (Tag : access TagLib_Tag) return Unsigned; -- /usr/include/taglib/tag_c.h:197
pragma Import (C, Taglib_Tag_Year, "taglib_tag_year");
function Taglib_Tag_Track (Tag : access TagLib_Tag) return Unsigned; -- /usr/include/taglib/tag_c.h:202
pragma Import (C, Taglib_Tag_Track, "taglib_tag_track");
procedure Taglib_Tag_Set_Title (Tag : access TagLib_Tag; Title : Interfaces.C.Strings.Chars_Ptr); -- /usr/include/taglib/tag_c.h:209
pragma Import (C, Taglib_Tag_Set_Title, "taglib_tag_set_title");
procedure Taglib_Tag_Set_Artist (Tag : access TagLib_Tag; Artist : Interfaces.C.Strings.Chars_Ptr); -- /usr/include/taglib/tag_c.h:216
pragma Import (C, Taglib_Tag_Set_Artist, "taglib_tag_set_artist");
procedure Taglib_Tag_Set_Album (Tag : access TagLib_Tag; Album : Interfaces.C.Strings.Chars_Ptr); -- /usr/include/taglib/tag_c.h:223
pragma Import (C, Taglib_Tag_Set_Album, "taglib_tag_set_album");
procedure Taglib_Tag_Set_Comment (Tag : access TagLib_Tag; Comment : Interfaces.C.Strings.Chars_Ptr); -- /usr/include/taglib/tag_c.h:230
pragma Import (C, Taglib_Tag_Set_Comment, "taglib_tag_set_comment");
procedure Taglib_Tag_Set_Genre (Tag : access TagLib_Tag; Genre : Interfaces.C.Strings.Chars_Ptr); -- /usr/include/taglib/tag_c.h:237
pragma Import (C, Taglib_Tag_Set_Genre, "taglib_tag_set_genre");
procedure Taglib_Tag_Set_Year (Tag : access TagLib_Tag; Year : Unsigned); -- /usr/include/taglib/tag_c.h:242
pragma Import (C, Taglib_Tag_Set_Year, "taglib_tag_set_year");
procedure Taglib_Tag_Set_Track (Tag : access TagLib_Tag; Track : Unsigned); -- /usr/include/taglib/tag_c.h:247
pragma Import (C, Taglib_Tag_Set_Track, "taglib_tag_set_track");
procedure Taglib_Tag_Free_Strings; -- /usr/include/taglib/tag_c.h:252
pragma Import (C, Taglib_Tag_Free_Strings, "taglib_tag_free_strings");
function Taglib_Audioproperties_Length (AudioProperties : access TagLib_AudioProperties) return Int; -- /usr/include/taglib/tag_c.h:261
pragma Import (C, Taglib_Audioproperties_Length, "taglib_audioproperties_length");
function Taglib_Audioproperties_Bitrate (AudioProperties : access TagLib_AudioProperties) return Int; -- /usr/include/taglib/tag_c.h:266
pragma Import (C, Taglib_Audioproperties_Bitrate, "taglib_audioproperties_bitrate");
function Taglib_Audioproperties_Samplerate (AudioProperties : access TagLib_AudioProperties) return Int; -- /usr/include/taglib/tag_c.h:271
pragma Import (C, Taglib_Audioproperties_Samplerate, "taglib_audioproperties_samplerate");
function Taglib_Audioproperties_Channels (AudioProperties : access TagLib_AudioProperties) return Int; -- /usr/include/taglib/tag_c.h:276
pragma Import (C, Taglib_Audioproperties_Channels, "taglib_audioproperties_channels");
type TagLib_ID3v2_Encoding is
(TagLib_ID3v2_Latin1,
TagLib_ID3v2_UTF16,
TagLib_ID3v2_UTF16BE,
TagLib_ID3v2_UTF8) with Warnings => Off;
pragma Convention (C, TagLib_ID3v2_Encoding); -- /usr/include/taglib/tag_c.h:287
procedure Taglib_Id3v2_Set_Default_Text_Encoding (Encoding : TagLib_ID3v2_Encoding); -- /usr/include/taglib/tag_c.h:293
pragma Import (C, Taglib_Id3v2_Set_Default_Text_Encoding, "taglib_id3v2_set_default_text_encoding");
-------------------------
-- set_strings_unicode --
-------------------------
procedure Set_Strings_Unicode (unicode : Boolean) is
begin
Taglib_Set_Strings_Unicode (Boolean'Pos(Unicode));
end Set_Strings_Unicode;
-----------------------------------
-- set_string_management_enabled --
-----------------------------------
procedure Set_String_Management_Enabled (management : Boolean) is
begin
Taglib_Set_String_Management_Enabled (Boolean'Pos(Management));
end Set_String_Management_Enabled;
--------------
-- file_new --
--------------
function File_New (Filename : String) return File is
L_Filename : Interfaces.C.Strings.Chars_Ptr;
begin
L_Filename := Interfaces.C.Strings.New_String (Filename);
return Ret : File do
Ret.Dummy := Taglib_File_New (L_Filename);
Interfaces.C.Strings.Free (L_Filename);
end return;
end File_New;
--------------
-- file_new --
--------------
function File_New (Filename : String; C_Type : File_Type) return File is
L_Filename : Interfaces.C.Strings.Chars_Ptr;
begin
L_Filename := Interfaces.C.Strings.New_String (Filename);
return Ret : File do
Ret.Dummy := Taglib_File_New_Type (L_Filename,TagLib_File_Type'Val(File_Type'Pos(C_Type)));
Interfaces.C.Strings.Free (L_Filename);
end return;
end File_New;
-------------------
-- file_is_valid --
-------------------
function Is_Valid (F : File) return Boolean is
begin
return ( if F.Dummy = null
then
False
else
Taglib_File_Is_Valid(F.Dummy) /= 0);
end Is_Valid;
--------------
-- file_tag --
--------------
function Get_Tag (F : File'Class) return Tag is
begin
return Ret : Tag do
Ret.Dummy := Taglib_File_Tag (F.Dummy);
end return;
end Get_Tag;
--------------------------
-- file_audioproperties --
--------------------------
function Get_Audioproperties (F : File'Class) return AudioProperties is
begin
return Ret : AudioProperties do
Ret.Dummy := Taglib_File_Audioproperties (F.Dummy);
end return;
end Get_Audioproperties;
---------------
-- file_save --
---------------
procedure Save (F : File) is
begin
if Taglib_File_Save (F.Dummy) /= 0 then
raise Program_Error with "unable to save";
end if;
end Save;
use all type Interfaces.C.Strings.Chars_Ptr;
-----------
-- title --
-----------
function Title (T : Tag) return String is
Ret : Interfaces.C.Strings.Chars_Ptr := Taglib_Tag_Title (T.dummy);
begin
if Ret /= Interfaces.C.Strings.Null_Ptr then
return R : constant String := Interfaces.C.Strings.Value (Ret) do
Free (Ret);
end return;
else
return "";
end if;
end Title;
------------
-- artist --
------------
function Artist (T : Tag) return String is
Ret : Interfaces.C.Strings.Chars_Ptr := Taglib_Tag_Artist (T.dummy);
begin
if Ret /= Interfaces.C.Strings.Null_Ptr then
return R : constant String := Interfaces.C.Strings.Value (Ret) do
Free (Ret);
end return;
else
return "";
end if;
end Artist;
-----------
-- album --
-----------
function Album (T : Tag) return String is
Ret : Interfaces.C.Strings.Chars_Ptr := Taglib_Tag_Album (T.dummy);
begin
if Ret /= Interfaces.C.Strings.Null_Ptr then
return R : constant String := Interfaces.C.Strings.Value (Ret) do
Free (Ret);
end return;
else
return "";
end if;
end Album;
-------------
-- comment --
-------------
function Comment (T : Tag) return String is
Ret : Interfaces.C.Strings.Chars_Ptr := Taglib_Tag_Comment (T.dummy);
begin
if Ret /= Interfaces.C.Strings.Null_Ptr then
return R : constant String := Interfaces.C.Strings.Value (Ret) do
Free (Ret);
end return;
else
return "";
end if;
end Comment;
-----------
-- genre --
-----------
function Genre (T : Tag) return String is
Ret : Interfaces.C.Strings.Chars_Ptr := Taglib_Tag_Genre (T.dummy);
begin
if Ret /= Interfaces.C.Strings.Null_Ptr then
return R : constant String := Interfaces.C.Strings.Value (Ret) do
Free (Ret);
end return;
else
return "";
end if;
end Genre;
----------
-- year --
----------
function Year (T : Tag) return Ada.Calendar.Year_Number is
Ret : constant unsigned := Taglib_Tag_Year (T.Dummy);
begin
return (if (Unsigned (Ada.Calendar.Year_Number'First) < Ret) or else (Ret > Unsigned (Ada.Calendar.Year_Number'Last))
then
Ada.Calendar.Year_Number (Ret)
else
Ada.Calendar.Year_Number'First);
end Year;
-----------
-- track --
-----------
function Track (T : Tag) return Natural is
begin
return Natural (Taglib_Tag_Track (T.Dummy));
end Track;
-----------
-- title --
-----------
procedure Set_Title (T : in out Tag; Title : String) is
Data : Interfaces.C.Strings.Chars_Ptr := New_String (Title);
begin
Taglib_Tag_Set_Title (T.Dummy, Data);
Free (Data);
end Set_Title;
----------------
-- set_artist --
----------------
procedure Set_Artist (T : in out Tag; Artist : String) is
Data : Interfaces.C.Strings.Chars_Ptr := New_String (Artist);
begin
Taglib_Tag_Set_Artist (T.Dummy, Data);
Free (Data);
end Set_Artist;
---------------
-- set_album --
---------------
procedure Set_Album (T : in out Tag; Album : String) is
Data : Interfaces.C.Strings.Chars_Ptr := New_String (Album);
begin
Taglib_Tag_Set_Album (T.Dummy, Data);
Free (Data);
end Set_Album;
-----------------
-- set_comment --
-----------------
procedure Set_Comment (T : in out Tag; Comment : String) is
Data : Interfaces.C.Strings.Chars_Ptr := New_String (Comment);
begin
Taglib_Tag_Set_Comment (T.Dummy, Data);
Free (Data);
end Set_Comment;
-------------------
-- tag_set_genre --
-------------------
procedure Set_Genre (T : in out Tag; Genre : String) is
Data : Interfaces.C.Strings.Chars_Ptr := New_String (Genre);
begin
Taglib_Tag_Set_Genre (T.Dummy, Data);
Free (Data);
end Set_Genre;
------------------
-- tag_set_year --
------------------
procedure Set_Year (T : in out Tag; Year : Ada.Calendar.Year_Number) is
begin
Taglib_Tag_Set_Year (T.Dummy, Interfaces.C.unsigned (Year));
end Set_Year;
-------------------
-- tag_set_track --
-------------------
procedure Set_Track (T : in out Tag; Track : Positive) is
begin
Taglib_Tag_Set_Track (T.Dummy, Interfaces.C.unsigned (Track));
end Set_Track;
----------------------
-- tag_free_strings --
----------------------
procedure Tag_Free_Strings is
begin
Taglib_Tag_Free_Strings;
end Tag_Free_Strings;
------------
-- length --
------------
function Length (Properties : AudioProperties) return Natural is
begin
return Natural (Taglib_Audioproperties_Length (Properties.Dummy));
end Length;
-------------
-- bitrate --
-------------
function Bitrate (Properties : AudioProperties) return Natural is
begin
return Natural (Taglib_Audioproperties_Bitrate (Properties.Dummy));
end Bitrate;
----------------
-- samplerate --
----------------
function Samplerate (Properties : AudioProperties) return Natural is
begin
return Natural (Taglib_Audioproperties_Samplerate (Properties.Dummy));
end Samplerate;
--------------
-- channels --
--------------
function Channels (Properties : AudioProperties) return Natural is
begin
return Natural (Taglib_Audioproperties_Channels (Properties.Dummy));
end Channels;
-------------------------------------
-- id3v2_set_default_text_encoding --
-------------------------------------
procedure Set_Default_Text_Encoding (Encoding : ID3v2_Encoding) is
begin
Taglib_Id3v2_Set_Default_Text_Encoding (Taglib_ID3v2_Encoding'Val(ID3v2_Encoding'Pos(Encoding)));
end Set_Default_Text_Encoding;
--------------
-- Finalize --
--------------
procedure Finalize (Object : in out File) is
begin
Taglib_File_Free (Object.Dummy);
Object.Dummy := null;
end Finalize;
end taglib;
|
with Ada.Tags;
with Generic_Logging;
with Langkit_Support.Slocs;
with Langkit_Support.Text;
With System.Address_Image;
package body Lal_Adapter.Node is
package Slocs renames Langkit_Support.Slocs;
package Text renames Langkit_Support.Text;
-----------------------------------------------------------------------------
-- Element_ID support
-- Unlike ASIS Elements, libadalang Nodes have no unique ID as far as I can tell.
-- Until we can come up with something better, we will just use an incrementing
-- counter. THIS GIVES A DIFFERENT ANSWER EVERY TIME Get_Element_ID IS CALLED.
-- This is good to keep all nodes from having the same ID, but it is bad for
-- determinining if two nodes are the same.
-- TODO: Implement by storing and hashing Nodes?
Last_Node_ID : Natural := anhS.Empty_ID;
Node_Map : Node_ID_Map.Map := Node_ID_Map.Empty_Map;
------------
-- EXPORTED:
------------
function Get_Element_ID
(Node : in LAL.Ada_Node'Class)
return Element_ID is
-- Tried to use address for mapping but got nodes with same address.
-- Use Image for now till we have better option for the mapping.
Node_Image : String := LAL.Image(Node);
C : constant Node_ID_Map.Cursor := Node_Map.Find (Node_Image);
use type Node_ID_Map.Cursor;
Node_Id : Integer := 0;
begin
-- Put_Line("Node: " & Node_Image);
if LAL.Is_Null (Node) then
return No_Element_ID;
else
if C = Node_ID_Map.No_Element then
Last_Node_ID := Last_Node_ID + 1;
Node_Map.Insert (Node_Image, Last_Node_ID);
Node_Id := Last_Node_ID;
else
Node_Id := Node_ID_Map.Element (C);
end if;
return (Node_ID => Node_Id,
Kind => Node.Kind);
end if;
end Get_Element_ID;
------------
-- EXPORTED:
------------
function To_Element_ID
(This : in Element_ID)
return a_nodes_h.Element_ID
is
Result : Integer;
begin
Result := Integer (This.Node_ID) * 1000 +
LALCO.Ada_Node_Kind_Type'Pos(This.Kind);
return a_nodes_h.Element_ID (Result);
end To_Element_ID;
------------
-- EXPORTED:
------------
function Get_Element_ID
(Element : in LAL.Ada_Node'Class)
return a_nodes_h.Element_ID
is
(To_Element_ID (Get_Element_ID (Element)));
------------
-- EXPORTED:
------------
function To_String
(This : in a_nodes_h.Element_ID)
return String
is
(To_String (This, Element_ID_Kind));
-- END Element_ID support
-----------------------------------------------------------------------------
----------------------
-- EXPORTED (private):
----------------------
procedure Add_To_Dot_Label
(This : in out Class;
Value : in String) is
begin
Add_To_Dot_Label (Dot_Label => This.Dot_Label,
Outputs => This.Outputs,
Value => Value);
end Add_To_Dot_Label;
procedure Add_To_Dot_Label
(This : in out Class;
Name : in String;
Value : in String) is
begin
Add_To_Dot_Label (Dot_Label => This.Dot_Label,
Outputs => This.Outputs,
Name => Name,
Value => Value);
end Add_To_Dot_Label;
procedure Add_To_Dot_Label
(This : in out Class;
Name : in String;
Value : in a_nodes_h.Element_ID) is
begin
This.Add_To_Dot_Label (Name, To_String (Value));
end Add_To_Dot_Label;
procedure Add_To_Dot_Label
(This : in out Class;
Name : in String;
Value : in Boolean) is
begin
Add_To_Dot_Label (Dot_Label => This.Dot_Label,
Outputs => This.Outputs,
Name => Name,
Value => Value);
end Add_To_Dot_Label;
procedure Add_Dot_Edge
(This : in out Class;
From : in a_nodes_h.Element_ID;
To : in a_nodes_h.Element_ID;
Label : in String)
is
begin
Add_Dot_Edge (Outputs => This.Outputs,
From => From,
From_Kind => Element_ID_Kind,
To => To,
To_Kind => Element_ID_Kind,
Label => Label);
end Add_Dot_Edge;
procedure Add_To_Dot_Label_And_Edge
(This : in out Class;
Label : in String;
To : in a_nodes_h.Element_ID) is
begin
This.Add_To_Dot_Label (Label, To_String (To));
This.Add_Dot_Edge (From => This.Element_IDs.First_Element,
To => To,
Label => Label);
end Add_To_Dot_Label_And_Edge;
procedure Add_Not_Implemented
(This : in out Class;
Ada_Version : in Ada_Versions := Supported_Ada_Version) is
begin
if Ada_Version <= Supported_Ada_Version then
This.Add_To_Dot_Label
("LIBADALANG_PROCESSING", String'("NOT_IMPLEMENTED_COMPLETELY"));
This.Outputs.A_Nodes.Add_Not_Implemented;
else
This.Add_To_Dot_Label
("LIBADALANG_PROCESSING",
Ada_Version'Image & "_FEATURE_NOT_IMPLEMENTED_IN_" &
Supported_Ada_Version'Image);
end if;
end Add_Not_Implemented;
------------
-- Exported:
------------
procedure Process_Ada_Abort_Node
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Abort_Node";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Abort_Node := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Abort_Node
case Kind is
when Ada_Abort_Absent =>
declare
Abort_Absent_Node : constant LAL.Abort_Absent := LAL.As_Abort_Absent (Node);
begin
NULL;
end;
when Ada_Abort_Present =>
declare
Abort_Present_Node : constant LAL.Abort_Present := LAL.As_Abort_Present (Node);
begin
NULL;
end;
end case;
end Process_Ada_Abort_Node;
procedure Process_Ada_Abstract_Node
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Abstract_Node";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Abstract_Node := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Abstract_Node
case Kind is
when Ada_Abstract_Absent =>
declare
Abstract_Absent_Node : constant LAL.Abstract_Absent := LAL.As_Abstract_Absent (Node);
begin
NULL;
end;
when Ada_Abstract_Present =>
declare
Abstract_Present_Node : constant LAL.Abstract_Present := LAL.As_Abstract_Present (Node);
begin
NULL;
end;
end case;
end Process_Ada_Abstract_Node;
procedure Process_Ada_Ada_List
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Ada_List";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Ada_List := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Ada_List
case Kind is
when Ada_Ada_Node_List =>
declare
Ada_Node_List_Node : constant LAL.Ada_Node_List := LAL.As_Ada_Node_List (Node);
NodeListFirst : constant Positive := LAL.Ada_Node_List_First (Ada_Node_List_Node);
begin
Log ("NodeListFirst: " & NodeListFirst'Image);
end;
when Ada_Alternatives_List =>
declare
Alternatives_List_Node : constant LAL.Alternatives_List := LAL.As_Alternatives_List (Node);
begin
NULL;
end;
when Ada_Constraint_List =>
declare
Constraint_List_Node : constant LAL.Constraint_List := LAL.As_Constraint_List (Node);
begin
NULL;
end;
when Ada_Decl_List =>
declare
Decl_List_Node : constant LAL.Decl_List := LAL.As_Decl_List (Node);
begin
NULL;
end;
when Ada_Stmt_List =>
declare
Stmt_List_Node : constant LAL.Stmt_List := LAL.As_Stmt_List (Node);
begin
NULL;
end;
when Ada_Aspect_Assoc_List =>
declare
Aspect_Assoc_List_Node : constant LAL.Aspect_Assoc_List := LAL.As_Aspect_Assoc_List (Node);
AspectAsoocListFirst : constant Positive := LAL.Aspect_Assoc_List_First (Aspect_Assoc_List_Node);
begin
Log ("AspectAsoocListFirst: " & AspectAsoocListFirst'Image);
end;
when Ada_Base_Assoc_List =>
declare
Base_Assoc_List_Node : constant LAL.Base_Assoc_List := LAL.As_Base_Assoc_List (Node);
BaseAsoocListFirst : constant Positive := LAL.Base_Assoc_List_First (Base_Assoc_List_Node);
begin
Log ("BaseAsoocListFirst: " & BaseAsoocListFirst'Image);
end;
when Ada_Assoc_List =>
declare
Assoc_list_Node : constant LAL.Assoc_list := LAL.As_Assoc_list (Node);
begin
NULL;
end;
when Ada_Case_Expr_Alternative_List =>
declare
Case_Expr_Alternative_List_Node : constant LAL.Case_Expr_Alternative_List := LAL.As_Case_Expr_Alternative_List (Node);
CaseExprAlternativeListFirst : constant Positive := LAL.Case_Expr_Alternative_List_First (Case_Expr_Alternative_List_Node);
begin
Log ("CaseExprAlternativeListFirst: " & CaseExprAlternativeListFirst'Image);
end;
when Ada_Case_Stmt_Alternative_List =>
declare
Case_Stmt_Alternative_List_Node : constant LAL.Case_Stmt_Alternative_List := LAL.As_Case_Stmt_Alternative_List (Node);
CaseStmtAlernativeListFirst : constant Positive := LAL.Case_Stmt_Alternative_List_First (Case_Stmt_Alternative_List_Node);
begin
Log ("CaseStmtAlernativeListFirst: " & CaseStmtAlernativeListFirst'Image);
end;
when Ada_Compilation_Unit_List =>
declare
Compilation_Unit_List_Node : constant LAL.Compilation_Unit_List := LAL.As_Compilation_Unit_List (Node);
CompilationUnitListFirst : constant Positive := LAL.Compilation_Unit_List_First (Compilation_Unit_List_Node);
begin
Log ("CompilationUnitListFirst: " & CompilationUnitListFirst'Image);
end;
when Ada_Contract_Case_Assoc_List =>
declare
Contract_Case_Assoc_List_Node : constant LAL.Contract_Case_Assoc_List := LAL.As_Contract_Case_Assoc_List (Node);
ContractCastAssocListFirst : constant Positive := LAL.Contract_Case_Assoc_List_First (Contract_Case_Assoc_List_Node);
begin
Log ("ContractCastAssocListFirst: " & ContractCastAssocListFirst'Image);
end;
when Ada_Defining_Name_List =>
declare
Defining_Name_List_Node : constant LAL.Defining_Name_List := LAL.As_Defining_Name_List (Node);
DefiningNameListFirst : constant Positive := LAL.Defining_Name_List_First (Defining_Name_List_Node);
begin
Log ("DefiningNameListFirst: " & DefiningNameListFirst'Image);
end;
when Ada_Discriminant_Spec_List =>
declare
Discriminant_Spec_List_Node : constant LAL.Discriminant_Spec_List := LAL.As_Discriminant_Spec_List (Node);
DiscriminantSpecListNodeFirst : constant Positive := LAL.Discriminant_Spec_List_First (Discriminant_Spec_List_Node);
begin
Log ("DiscriminantSpecListNodeFirst: " & DiscriminantSpecListNodeFirst'Image);
end;
when Ada_Elsif_Expr_Part_List =>
declare
Elsif_Expr_Part_List_Node : constant LAL.Elsif_Expr_Part_List := LAL.As_Elsif_Expr_Part_List (Node);
ElsifExprPartListNodeFirst : constant Positive := LAL.Elsif_Expr_Part_List_First (Elsif_Expr_Part_List_Node);
begin
Log ("ElsifExprPartListNodeFirst: " & ElsifExprPartListNodeFirst'Image);
end;
when Ada_Elsif_Stmt_Part_List =>
declare
Elsif_Stmt_Part_List_Node : constant LAL.Elsif_Stmt_Part_List := LAL.As_Elsif_Stmt_Part_List (Node);
ElsifStmtPartListNodeFirst : constant Positive := LAL.Elsif_Stmt_Part_List_First (Elsif_Stmt_Part_List_Node);
begin
Log ("ElsifExprPartListNodeFirst: " & ElsifStmtPartListNodeFirst'Image);
end;
when Ada_Enum_Literal_Decl_List =>
declare
Enum_Literal_Decl_List_Node : constant LAL.Enum_Literal_Decl_List := LAL.As_Enum_Literal_Decl_List (Node);
EnumLiteralDeclListNodeFirst : constant Positive := LAL.Enum_Literal_Decl_List_First (Enum_Literal_Decl_List_Node);
begin
Log ("EnumLiteralDeclListNodeFirst: " & EnumLiteralDeclListNodeFirst'Image);
end;
when Ada_Expr_Alternatives_List =>
declare
Expr_Alternatives_List_Node : constant LAL.Expr_Alternatives_List := LAL.As_Expr_Alternatives_List (Node);
begin
NULL;
end;
when Ada_Discriminant_Choice_List =>
declare
Discriminant_Choice_List_Node : constant LAL.Discriminant_Choice_List := LAL.As_Discriminant_Choice_List (Node);
begin
NULL;
end;
when Ada_Name_List =>
declare
Name_List_Node : constant LAL.Name_List := LAL.As_Name_List (Node);
NameListFirst : constant Positive := LAL.Name_List_First (Name_List_Node);
begin
Log ("NameListFirst: " & NameListFirst'Image);
end;
when Ada_Parent_List =>
declare
Parent_List_Node : constant LAL.Parent_List := LAL.As_Parent_List (Node);
begin
NULL;
end;
when Ada_Param_Spec_List =>
declare
Param_Spec_List_Node : constant LAL.Param_Spec_List := LAL.As_Param_Spec_List (Node);
ParamSpecListFirst : constant Positive := LAL.Param_Spec_List_First (Param_Spec_List_Node);
begin
Log ("ParamSpecListFirst: " & ParamSpecListFirst'Image);
end;
when Ada_Pragma_Node_List =>
declare
Pragma_Node_List_Node : constant LAL.Pragma_Node_List := LAL.As_Pragma_Node_List (Node);
PragmaNodeListFirst : constant Positive := LAL.Pragma_Node_List_First (Pragma_Node_List_Node);
begin
Log ("PragmaNodeListFirst: " & PragmaNodeListFirst'Image);
end;
when Ada_Select_When_Part_List =>
declare
Select_When_Part_List_Node : constant LAL.Select_When_Part_List := LAL.As_Select_When_Part_List (Node);
SelectWhenPartListFirst : constant Positive := LAL.Select_When_Part_List_First (Select_When_Part_List_Node);
begin
Log ("SelectWhenPartListFirst: " & SelectWhenPartListFirst'Image);
end;
when Ada_Unconstrained_Array_Index_List =>
declare
Unconstrained_Array_Index_List_Node : constant LAL.Unconstrained_Array_Index_List := LAL.As_Unconstrained_Array_Index_List (Node);
UnconstrainedArrayIndexListFirst : constant Positive := LAL.Unconstrained_Array_Index_List_First (Unconstrained_Array_Index_List_Node);
begin
Log ("UnconstrainedArrayIndexListFirst: " & UnconstrainedArrayIndexListFirst'Image);
end;
when Ada_Variant_List =>
declare
Variant_List_Node : constant LAL.Variant_List := LAL.As_Variant_List (Node);
VariantListFirst : constant Positive := LAL.Variant_List_First (Variant_List_Node);
begin
Log ("VariantListFirst: " & VariantListFirst'Image);
end;
end case;
end Process_Ada_Ada_List;
procedure Process_Ada_Aliased_Node
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Aliased_Node";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Aliased_Node := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Aliased_Node
case Kind is
when Ada_Aliased_Absent =>
declare
Aliased_Absent_Node : constant LAL.Aliased_Absent := LAL.As_Aliased_Absent (Node);
begin
NULL;
end;
when Ada_Aliased_Present =>
declare
Aliased_Present_Node : constant LAL.Aliased_Present := LAL.As_Aliased_Present (Node);
begin
NULL;
end;
end case;
end Process_Ada_Aliased_Node;
procedure Process_Ada_All_Node
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_All_Node";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_All_Node := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_All_Node
case Kind is
when Ada_All_Absent =>
declare
All_Absent_Node : constant LAL.All_Absent := LAL.As_All_Absent (Node);
begin
NULL;
end;
when Ada_All_Present =>
declare
All_Present_Node : constant LAL.All_Present := LAL.As_All_Present (Node);
begin
NULL;
end;
end case;
end Process_Ada_All_Node;
procedure Process_Ada_Array_Indices
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Array_Indices";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Array_Indices := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Array_Indices
case Kind is
when Ada_Constrained_Array_Indices =>
declare
Constrained_Array_Indices_Node : constant LAL.Constrained_Array_Indices := LAL.As_Constrained_Array_Indices (Node);
ConstraintList : constant LAL.Constraint_List := LAL.F_List (Constrained_Array_Indices_Node);
begin
Log ("ConstraintList: " & ConstraintList.Debug_Text);
end;
when Ada_Unconstrained_Array_Indices =>
declare
Unconstrained_Array_Indices_Node : constant LAL.Unconstrained_Array_Indices := LAL.As_Unconstrained_Array_Indices (Node);
UnconstrainedArrayIndexList : constant LAL.Unconstrained_Array_Index_List := LAL.F_Types (Unconstrained_Array_Indices_Node);
begin
Log ("UnconstrainedArrayIndexList: " & UnconstrainedArrayIndexList.Debug_Text);
end;
end case;
end Process_Ada_Array_Indices;
procedure Process_Ada_Aspect_Assoc_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Aspect_Assoc_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Aspect_Assoc_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Aspect_Assoc_Range
case Kind is
when Ada_Aspect_Assoc =>
declare
Aspect_Assoc_Node : constant LAL.Aspect_Assoc := LAL.As_Aspect_Assoc (Node);
name : constant LAL.Name := LAL.F_Id (Aspect_Assoc_Node);
expr : constant LAL.Expr := LAL.F_Expr (Aspect_Assoc_Node);
begin
Log ("name: " & name.Debug_Text);
if not expr.Is_Null then
Log ("expr: " & expr.Debug_Text);
end if;
end;
end case;
end Process_Ada_Aspect_Assoc_Range;
procedure Process_Ada_Aspect_Clause
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Aspect_Clause";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Aspect_Clause := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Aspect_Clause
case Kind is
when Ada_At_Clause =>
declare
At_Clause_Node : constant LAL.At_Clause := LAL.As_At_Clause (Node);
baseID : constant LAL.Base_Id := LAL.F_Name (At_Clause_Node);
expr : constant LAL.Expr := LAL.F_Expr (At_Clause_Node);
begin
Log ("baseID: " & baseID.Debug_Text);
Log ("expr: " & expr.Debug_Text);
end;
when Ada_Attribute_Def_Clause =>
declare
Attribute_Def_Clause_Node : constant LAL.Attribute_Def_Clause := LAL.As_Attribute_Def_Clause (Node);
name : constant LAL.Name := LAL.F_Attribute_Expr (Attribute_Def_Clause_Node);
expr : constant LAL.Expr := LAL.F_Expr (Attribute_Def_Clause_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("expr: " & expr.Debug_Text);
end;
when Ada_Enum_Rep_Clause =>
declare
Enum_Rep_Clause_Node : constant LAL.Enum_Rep_Clause := LAL.As_Enum_Rep_Clause (Node);
name : constant LAL.Name := LAL.F_Type_Name (Enum_Rep_Clause_Node);
baseAggregate : constant LAL.Base_Aggregate := LAL.F_Aggregate (Enum_Rep_Clause_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("baseAggregate: " & baseAggregate.Debug_Text);
end;
when Ada_Record_Rep_Clause =>
declare
Record_Rep_Clause_Node : constant LAL.Record_Rep_Clause := LAL.As_Record_Rep_Clause (Node);
name : constant LAL.Name := LAL.F_Name (Record_Rep_Clause_Node);
expr : constant LAL.Expr := LAL.F_At_Expr (Record_Rep_Clause_Node);
nodeList : constant LAL.Ada_Node_List := LAL.F_Components (Record_Rep_Clause_Node);
begin
Log ("name: " & name.Debug_Text);
if not expr.Is_Null then
Log ("expr: " & expr.Debug_Text);
end if;
Log ("nodeList: " & nodeList.Debug_Text);
end;
end case;
end Process_Ada_Aspect_Clause;
procedure Process_Ada_Aspect_Spec_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Aspect_Spec_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Aspect_Spec_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Aspect_Spec_Range
case Kind is
when Ada_Aspect_Spec =>
declare
Aspect_Spec_Node : constant LAL.Aspect_Spec := LAL.As_Aspect_Spec (Node);
aspectAssocList : constant LAL.Aspect_Assoc_List := LAL.F_Aspect_Assocs (Aspect_Spec_Node);
begin
Log ("aspectAssocList: " & aspectAssocList.Debug_Text);
end;
end case;
end Process_Ada_Aspect_Spec_Range;
procedure Process_Ada_Base_Assoc
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Base_Assoc";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Base_Assoc := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Base_Assoc
case Kind is
when Ada_Contract_Case_Assoc =>
declare
Contract_Case_Assoc_Node : constant LAL.Contract_Case_Assoc := LAL.As_Contract_Case_Assoc (Node);
guard : constant LAL.Ada_Node := LAL.F_Guard (Contract_Case_Assoc_Node);
consequence : constant LAL.Expr := LAL.F_Consequence (Contract_Case_Assoc_Node);
begin
Log ("guard: " & guard.Debug_Text);
Log ("consequence: " & consequence.Debug_Text);
end;
when Ada_Pragma_Argument_Assoc =>
declare
Pragma_Argument_Assoc_Node : constant LAL.Pragma_Argument_Assoc := LAL.As_Pragma_Argument_Assoc (Node);
id : constant LAL.Identifier := LAL.F_Id (Pragma_Argument_Assoc_Node);
expr : constant LAL.Expr := LAL.F_Expr (Pragma_Argument_Assoc_Node);
begin
if not id.Is_Null then
Log ("id: " & id.Debug_Text);
end if;
if not expr.Is_Null then
Log ("expr: " & expr.Debug_Text);
end if;
end;
end case;
end Process_Ada_Base_Assoc;
procedure Process_Ada_Base_Formal_Param_Holder
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Base_Formal_Param_Holder";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Base_Formal_Param_Holder := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Base_Formal_Param_Holder
case Kind is
when Ada_Entry_Spec =>
declare
Entry_Spec_Node : constant LAL.Entry_Spec := LAL.As_Entry_Spec (Node);
entryName : constant LAL.Defining_Name := LAL.F_Entry_Name (Entry_Spec_Node);
familyType : constant LAL.Ada_Node := LAL.F_Family_Type (Entry_Spec_Node);
entryParams : constant LAL.Params := LAL.F_Entry_Params (Entry_Spec_Node);
begin
Log ("entryName: " & entryName.Debug_Text);
if not familyType.Is_Null then
Log ("familyType: " & familyType.Debug_Text);
end if;
if not entryParams.Is_Null then
Log ("entryParams: " & entryParams.Debug_Text);
end if;
end;
when Ada_Enum_Subp_Spec =>
declare
Enum_Subp_Spec_Node : constant LAL.Enum_Subp_Spec := LAL.As_Enum_Subp_Spec (Node);
begin
NULL;
end;
when Ada_Subp_Spec =>
declare
Subp_Spec_Node : constant LAL.Subp_Spec := LAL.As_Subp_Spec (Node);
subpKind : constant LAL.Subp_Kind := LAL.F_Subp_Kind (Subp_Spec_Node);
subpName : constant LAL.Defining_Name := LAL.F_Subp_Name (Subp_Spec_Node);
subpParams : constant LAL.Params := LAL.F_Subp_Params (Subp_Spec_Node);
subpReturn : constant LAL.Type_Expr := LAL.F_Subp_Returns (Subp_Spec_Node);
begin
Log ("subpKind: " & subpKind.Debug_Text);
if not subpName.Is_Null then
Log ("subpName: " & subpName.Debug_Text);
end if;
if not subpParams.Is_Null then
Log ("subpParams: " & subpParams.Debug_Text);
end if;
if not subpReturn.Is_Null then
Log ("subpReturn: " & subpReturn.Debug_Text);
end if;
end;
when Ada_Component_List =>
declare
Component_List_Node : constant LAL.Component_List := LAL.As_Component_List (Node);
components : constant LAL.Ada_Node_List := LAL.F_Components (Component_List_Node);
variantPart : constant LAL.Variant_Part := LAL.F_Variant_Part (Component_List_Node);
begin
Log ("components: " & components.Debug_Text);
if not variantPart.Is_Null then
Log ("variantPart: " & variantPart.Debug_Text);
end if;
end;
when Ada_Known_Discriminant_Part =>
declare
Known_Discriminant_Part_Node : constant LAL.Known_Discriminant_Part := LAL.As_Known_Discriminant_Part (Node);
discrSpecs : constant LAL.Discriminant_Spec_List := LAL.F_Discr_Specs (Known_Discriminant_Part_Node);
begin
Log ("discrSpecs: " & discrSpecs.Debug_Text);
end;
when Ada_Unknown_Discriminant_Part =>
declare
Unknown_Discriminant_Part_Node : constant LAL.Unknown_Discriminant_Part := LAL.As_Unknown_Discriminant_Part (Node);
begin
NULL;
end;
when Ada_Entry_Completion_Formal_Params =>
declare
Entry_Completion_Formal_Params_Node : constant LAL.Entry_Completion_Formal_Params := LAL.As_Entry_Completion_Formal_Params (Node);
params : constant LAL.Params := LAL.F_Params (Entry_Completion_Formal_Params_Node);
begin
if not params.Is_Null then
Log ("params: " & params.Debug_Text);
end if;
end;
when Ada_Generic_Formal_Part =>
declare
Generic_Formal_Part_Node : constant LAL.Generic_Formal_Part := LAL.As_Generic_Formal_Part (Node);
decls : constant LAL.Ada_Node_List := LAL.F_Decls (Generic_Formal_Part_Node);
begin
Log ("decls: " & decls.Debug_Text);
end;
end case;
end Process_Ada_Base_Formal_Param_Holder;
procedure Process_Ada_Base_Record_Def
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Base_Record_Def";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Base_Record_Def := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Base_Record_Def
case Kind is
when Ada_Null_Record_Def =>
declare
Null_Record_Def_Node : constant LAL.Null_Record_Def := LAL.As_Null_Record_Def (Node);
begin
NULL;
end;
when Ada_Record_Def =>
declare
Record_Def_Node : constant LAL.Record_Def := LAL.As_Record_Def (Node);
begin
NULL;
end;
end case;
end Process_Ada_Base_Record_Def;
procedure Process_Ada_Basic_Assoc
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Basic_Assoc";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Basic_Assoc := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Basic_Assoc
case Kind is
when Ada_Aggregate_Assoc =>
declare
Aggregate_Assoc_Node : constant LAL.Aggregate_Assoc := LAL.As_Aggregate_Assoc (Node);
designators : constant LAL.Alternatives_List := LAL.F_Designators (Aggregate_Assoc_Node);
rExpr : constant LAL.Expr := LAL.F_R_Expr (Aggregate_Assoc_Node);
begin
Log ("designators: " & designators.Debug_Text);
Log ("rExpr: " & rExpr.Debug_Text);
end;
when Ada_Multi_Dim_Array_Assoc =>
declare
Multi_Dim_Array_Assoc_Node : constant LAL.Multi_Dim_Array_Assoc := LAL.As_Multi_Dim_Array_Assoc (Node);
begin
NULL;
end;
when Ada_Discriminant_Assoc =>
declare
Discriminant_Assoc_Node : constant LAL.Discriminant_Assoc := LAL.As_Discriminant_Assoc (Node);
ids : constant LAL.Discriminant_Choice_List := LAL.F_Ids (Discriminant_Assoc_Node);
discrExpr : constant LAL.Expr := LAL.F_Discr_Expr (Discriminant_Assoc_Node);
begin
Log ("ids: " & ids.Debug_Text);
Log ("discrExpr: " & discrExpr.Debug_Text);
end;
when Ada_Param_Assoc =>
declare
Param_Assoc_Node : constant LAL.Param_Assoc := LAL.As_Param_Assoc (Node);
designators : constant LAL.Ada_Node := LAL.F_Designator (Param_Assoc_Node);
rExpr : constant LAL.Expr := LAL.F_R_Expr (Param_Assoc_Node);
begin
if not designators.Is_Null then
Log ("designators: " & designators.Debug_Text);
end if;
if not rExpr.Is_Null then
Log ("rExpr: " & rExpr.Debug_Text);
end if;
end;
end case;
end Process_Ada_Basic_Assoc;
procedure Process_Ada_Basic_Decl
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Ada_Basic_Decl";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Basic_Decl := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Basic_Decl
case Kind is
--when Ada_Base_Formal_Param_Decl =>
-- This.Add_Not_Implemented;
when Ada_Component_Decl =>
declare
Component_Decl_Node : constant LAL.Component_Decl := LAL.As_Component_Decl (Node);
NameList : constant LAL.Defining_Name_List := LAL.F_Ids (Component_Decl_Node);
Component_Def : constant LAL.Component_Def := LAL.F_Component_Def (Component_Decl_Node);
Expr : constant LAL.Expr := LAL.F_Default_Expr (Component_Decl_Node);
begin
Log ("NameList: " & NameList.Debug_Text);
Log ("Component_Def: " & Component_Def.Debug_Text);
if not Expr.Is_Null then
Log ("Expr: " & Expr.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Discriminant_Spec =>
declare
Discriminant_Spec_Node : constant LAL.Discriminant_Spec := LAL.As_Discriminant_Spec (Node);
NameList : constant LAL.Defining_Name_List := LAL.F_Ids (Discriminant_Spec_Node);
TypeExpr : constant LAL.Type_Expr := LAL.F_Type_Expr (Discriminant_Spec_Node);
DefaultExpr : constant LAL.Expr := LAL.F_Default_Expr (Discriminant_Spec_Node);
begin
Log ("NameList: " & NameList.Debug_Text);
Log ("TypeExpr: " & TypeExpr.Debug_Text);
if not DefaultExpr.Is_Null then
Log ("DefaultExpr: " & DefaultExpr.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
--when Ada_Generic_Formal =>
-- This.Add_Not_Implemented;
when Ada_Generic_Formal_Obj_Decl =>
declare
Generic_Formal_Obj_Decl_Node : constant LAL.Generic_Formal_Obj_Decl := LAL.As_Generic_Formal_Obj_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Generic_Formal_Package =>
declare
Generic_Formal_Package_Node : constant LAL.Generic_Formal_Package := LAL.As_Generic_Formal_Package (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Generic_Formal_Subp_Decl =>
declare
Generic_Formal_Subp_Decl_Node : constant LAL.Generic_Formal_Subp_Decl := LAL.As_Generic_Formal_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Generic_Formal_Type_Decl =>
declare
Generic_Formal_Type_Decl_Node : constant LAL.Generic_Formal_Type_Decl := LAL.As_Generic_Formal_Type_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Param_Spec =>
declare
Param_Spec_Node : constant LAL.Param_Spec := LAL.As_Param_Spec (Node);
NameList : constant LAL.Defining_Name_List := LAL.F_Ids (Param_Spec_Node);
Has_Aliased : constant Boolean := LAL.F_Has_Aliased (Param_Spec_Node);
Mode : constant LAL.Mode := LAL.F_Mode (Param_Spec_Node);
begin
Log ("NameList: " & NameList.Debug_Text);
Log ("Has_Alias: " & Boolean'Image (Has_Aliased));
Log ("Mode: " & Mode.Debug_Text);
end;
This.Add_Not_Implemented;
--when Ada_Base_Package_Decl =>
-- This.Add_Not_Implemented;
when Ada_Generic_Package_Internal =>
declare
Generic_Package_Internal_Node : constant LAL.Generic_Package_Internal := LAL.As_Generic_Package_Internal (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Package_Decl =>
declare
Package_Decl_Node : constant LAL.Package_Decl := LAL.As_Package_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
--when Ada_Base_Type_Decl =>
-- This.Add_Not_Implemented;
--when Ada_Base_Subtype_Decl =>
-- This.Add_Not_Implemented;
when Ada_Discrete_Base_Subtype_Decl =>
declare
Discrete_Base_Subtype_Decl_Node : constant LAL.Discrete_Base_Subtype_Decl := LAL.As_Discrete_Base_Subtype_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Subtype_Decl =>
declare
Subtype_Decl_Node : constant LAL.Subtype_Decl := LAL.As_Subtype_Decl (Node);
bareSubtype : constant LAL.Subtype_Indication := LAL.F_Subtype (Subtype_Decl_Node);
begin
Log ("bareSubtype: " & bareSubtype.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Classwide_Type_Decl =>
declare
Classwide_Type_Decl_Node : constant LAL.Classwide_Type_Decl := LAL.As_Classwide_Type_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Incomplete_Type_Decl =>
declare
Incomplete_Type_Decl_Node : constant LAL.Incomplete_Type_Decl := LAL.As_Incomplete_Type_Decl (Node);
Discriminants : constant LAL.Discriminant_Part := LAL.F_Discriminants (Incomplete_Type_Decl_Node);
begin
if not Discriminants.Is_Null then
Log ("Discriminants: " & Discriminants.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Incomplete_Tagged_Type_Decl =>
declare
Incomplete_Tagged_Type_Decl_Node : constant LAL.Incomplete_Tagged_Type_Decl := LAL.As_Incomplete_Tagged_Type_Decl (Node);
Has_Abstract : constant Boolean := LAL.F_Has_Abstract (Incomplete_Tagged_Type_Decl_Node);
begin
Log ("Has_Abstract: " & Boolean'Image (Has_Abstract));
end;
This.Add_Not_Implemented;
when Ada_Protected_Type_Decl =>
declare
Protected_Type_Decl_Node : constant LAL.Protected_Type_Decl := LAL.As_Protected_Type_Decl (Node);
Discriminants : constant LAL.Discriminant_Part := LAL.F_Discriminants (Protected_Type_Decl_Node);
Definition : constant LAL.Protected_Def := LAL.F_Definition (Protected_Type_Decl_Node);
begin
if not Discriminants.Is_Null then
Log ("Discriminants: " & Discriminants.Debug_Text);
end if;
if not Definition.Is_Null then
Log ("Definition: " & Definition.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Task_Type_Decl =>
declare
Task_Type_Decl_Node : constant LAL.Task_Type_Decl := LAL.As_Task_Type_Decl (Node);
Discriminants : constant LAL.Discriminant_Part := LAL.F_Discriminants (Task_Type_Decl_Node);
Definition : constant LAL.Task_Def := LAL.F_Definition (Task_Type_Decl_Node);
begin
if not Discriminants.Is_Null then
Log ("Discriminants: " & Discriminants.Debug_Text);
end if;
if not Definition.Is_Null then
Log ("Definition: " & Definition.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Single_Task_Type_Decl =>
declare
Single_Task_Type_Decl_Node : constant LAL.Single_Task_Type_Decl := LAL.As_Single_Task_Type_Decl (Node);
begin
NULL;
end;
when Ada_Type_Decl =>
declare
Type_Decl_Node : constant LAL.Type_Decl := LAL.As_Type_Decl (Node);
Discriminants : constant LAL.Discriminant_Part := LAL.F_Discriminants (Type_Decl_Node);
typeDef : constant LAL.Type_Def := LAL.F_Type_Def (Type_Decl_Node);
begin
if not Discriminants.Is_Null then
Log ("Discriminants: " & Discriminants.Debug_Text);
end if;
Log ("typeDef: " & typeDef.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Anonymous_Type_Decl =>
declare
Anonymous_Type_Decl_Node : constant LAL.Anonymous_Type_Decl := LAL.As_Anonymous_Type_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Synth_Anonymous_Type_Decl =>
declare
Synth_Anonymous_Type_Decl_Node : constant LAL.Synth_Anonymous_Type_Decl := LAL.As_Synth_Anonymous_Type_Decl (Node);
begin
NULL;
end;
when Ada_Abstract_Subp_Decl =>
declare
Abstract_Subp_Decl_Node : constant LAL.Abstract_Subp_Decl := LAL.As_Abstract_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
--when Ada_Formal_Subp_Decl =>
-- This.Add_Not_Implemented;
when Ada_Abstract_Formal_Subp_Decl =>
declare
Abstract_Formal_Subp_Decl_Node : constant LAL.Abstract_Formal_Subp_Decl := LAL.As_Abstract_Formal_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Concrete_Formal_Subp_Decl =>
declare
Concrete_Formal_Subp_Decl_Node : constant LAL.Concrete_Formal_Subp_Decl := LAL.As_Concrete_Formal_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Subp_Decl =>
declare
Subp_Decl_Node : constant LAL.Subp_Decl := LAL.As_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Entry_Decl =>
declare
Entry_Decl_Node : constant LAL.Entry_Decl := LAL.As_Entry_Decl (Node);
overridding : constant LAL.Overriding_Node := LAL.F_Overriding (Entry_Decl_Node);
spec : constant LAL.Entry_Spec := LAL.F_Spec (Entry_Decl_Node);
begin
Log ("overridding: " & overridding.Debug_Text);
Log ("spec: " & spec.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Enum_Literal_Decl =>
declare
Enum_Literal_Decl_Node : constant LAL.Enum_Literal_Decl := LAL.As_Enum_Literal_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Enum_Literal_Decl_Node);
enumType : constant LAL.Type_Decl := LAL.P_Enum_Type (Enum_Literal_Decl_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("enumType: " & enumType.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Generic_Subp_Internal =>
declare
Generic_Subp_Internal_Node : constant LAL.Generic_Subp_Internal := LAL.As_Generic_Subp_Internal (Node);
subpSpec : constant LAL.Subp_Spec := LAL.F_Subp_Spec (Generic_Subp_Internal_Node);
begin
Log ("subpSpec: " & subpSpec.Debug_Text);
end;
This.Add_Not_Implemented;
--when Ada_Body_Node =>
-- This.Add_Not_Implemented;
--when Ada_Base_Subp_Body =>
-- This.Add_Not_Implemented;
when Ada_Expr_Function =>
declare
Expr_Function_Node : constant LAL.Expr_Function := LAL.As_Expr_Function (Node);
expr : constant LAL.Expr := LAL.F_Expr (Expr_Function_Node);
begin
Log ("expr: " & expr.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Null_Subp_Decl =>
declare
Null_Subp_Decl_Node : constant LAL.Null_Subp_Decl := LAL.As_Null_Subp_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Subp_Body =>
declare
Subp_Body_Node : constant LAL.Subp_Body := LAL.As_Subp_Body (Node);
decl : constant LAL.Declarative_Part := LAL.F_Decls (Subp_Body_Node);
stmt : constant LAL.Handled_Stmts := LAL.F_Stmts (Subp_Body_Node);
endname : constant LAL.End_Name := LAL.F_End_Name (Subp_Body_Node);
begin
Log ("decl: " & decl.Debug_Text);
Log ("stmt: " & stmt.Debug_Text);
if not endname.Is_Null then
Log ("endname: " & endname.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Subp_Renaming_Decl =>
declare
Subp_Renaming_Decl_Node : constant LAL.Subp_Renaming_Decl := LAL.As_Subp_Renaming_Decl (Node);
rename : constant LAL.Renaming_Clause := LAL.F_Renames (Subp_Renaming_Decl_Node);
begin
Log ("rename: " & rename.Debug_Text);
end;
This.Add_Not_Implemented;
--when Ada_Body_Stub =>
-- This.Add_Not_Implemented;
when Ada_Package_Body_Stub =>
declare
Package_Body_Stub_Node : constant LAL.Package_Body_Stub := LAL.As_Package_Body_Stub (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Package_Body_Stub_Node);
begin
Log ("name: " & name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Protected_Body_Stub =>
declare
Protected_Body_Stub_Node : constant LAL.Protected_Body_Stub := LAL.As_Protected_Body_Stub (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Protected_Body_Stub_Node);
begin
Log ("name: " & name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Subp_Body_Stub =>
declare
Subp_Body_Stub_Node : constant LAL.Subp_Body_Stub := LAL.As_Subp_Body_Stub (Node);
overridding : constant LAL.Overriding_Node := LAL.F_Overriding (Subp_Body_Stub_Node);
subSpec : constant LAL.Subp_Spec := LAL.F_Subp_Spec (Subp_Body_Stub_Node);
begin
Log ("overridding: " & overridding.Debug_Text);
Log ("subSpec: " & subSpec.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Task_Body_Stub =>
declare
Task_Body_Stub_Node : constant LAL.Task_Body_Stub := LAL.As_Task_Body_Stub (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Task_Body_Stub_Node);
begin
Log ("name: " & name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Entry_Body =>
declare
Entry_Body_Node : constant LAL.Entry_Body := LAL.As_Entry_Body (Node);
params : constant LAL.Entry_Completion_Formal_Params := LAL.F_Params (Entry_Body_Node);
barrier : constant LAL.Expr := LAL.F_Barrier (Entry_Body_Node);
decls : constant LAL.Declarative_Part := LAL.F_Decls (Entry_Body_Node);
stmts : constant LAL.Handled_Stmts := LAL.F_Stmts (Entry_Body_Node);
endname : constant LAL.End_Name := LAL.F_End_Name (Entry_Body_Node);
begin
Log ("params: " & params.Debug_Text);
Log ("barrier: " & barrier.Debug_Text);
Log ("decls: " & decls.Debug_Text);
Log ("stmts: " & stmts.Debug_Text);
if not endname.Is_Null then
Log ("endname: " & endname.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Package_Body =>
declare
Package_Body_Node : constant LAL.Package_Body := LAL.As_Package_Body (Node);
name : constant LAL.Defining_Name := LAL.F_Package_Name (Package_Body_Node);
decls : constant LAL.Declarative_Part := LAL.F_Decls (Package_Body_Node);
stmts : constant LAL.Handled_Stmts := LAL.F_Stmts (Package_Body_Node);
endname : constant LAL.End_Name := LAL.F_End_Name (Package_Body_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("decls: " & decls.Debug_Text);
if not stmts.Is_Null then
Log ("stmts: " & stmts.Debug_Text);
end if;
if not endname.Is_Null then
Log ("endname: " & endname.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Protected_Body =>
declare
Protected_Body_Node : constant LAL.Protected_Body := LAL.As_Protected_Body (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Protected_Body_Node);
decls : constant LAL.Declarative_Part := LAL.F_Decls (Protected_Body_Node);
endname : constant LAL.End_Name := LAL.F_End_Name (Protected_Body_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("decls: " & decls.Debug_Text);
Log ("endname: " & endname.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Task_Body =>
declare
Task_Body_Node : constant LAL.Task_Body := LAL.As_Task_Body (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Task_Body_Node);
decls : constant LAL.Declarative_Part := LAL.F_Decls (Task_Body_Node);
stmts : constant LAL.Declarative_Part := LAL.F_Decls (Task_Body_Node);
endname : constant LAL.End_Name := LAL.F_End_Name (Task_Body_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("decls: " & decls.Debug_Text);
Log ("stmts: " & stmts.Debug_Text);
Log ("endname: " & endname.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Entry_Index_Spec =>
declare
Entry_Index_Spec_Node : constant LAL.Entry_Index_Spec := LAL.As_Entry_Index_Spec (Node);
id : constant LAL.Defining_Name := LAL.F_Id (Entry_Index_Spec_Node);
sub_type : constant LAL.Ada_Node := LAL.F_Subtype (Entry_Index_Spec_Node);
begin
Log ("id: " & id.Debug_Text);
Log ("sub_type: " & sub_type.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Error_Decl =>
declare
Error_Decl_Node : constant LAL.Error_Decl := LAL.As_Error_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Exception_Decl =>
declare
Exception_Decl_Node : constant LAL.Exception_Decl := LAL.As_Exception_Decl (Node);
ids : constant LAL.Defining_Name_List := LAL.F_Ids (Exception_Decl_Node);
rename : constant LAL.Renaming_Clause := LAL.F_Renames (Exception_Decl_Node);
begin
Log ("ids: " & ids.Debug_Text);
if not rename.Is_Null then
Log ("rename: " & rename.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Exception_Handler =>
declare
Exception_Handler_Node : constant LAL.Exception_Handler := LAL.As_Exception_Handler (Node);
exceptionName : constant LAL.Defining_Name := LAL.F_Exception_Name (Exception_Handler_Node);
handledExceptions : constant LAL.Alternatives_List := LAL.F_Handled_Exceptions (Exception_Handler_Node);
stmts : constant LAL.Stmt_List := LAL.F_Stmts (Exception_Handler_Node);
begin
if not exceptionName.Is_Null then
Log ("exceptionName: " & exceptionName.Debug_Text);
end if;
Log ("handledExceptions: " & handledExceptions.Debug_Text);
Log ("stmts: " & stmts.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_For_Loop_Var_Decl =>
declare
For_Loop_Var_Decl_Node : constant LAL.For_Loop_Var_Decl := LAL.As_For_Loop_Var_Decl (Node);
id : constant LAL.Defining_Name := LAL.F_Id (For_Loop_Var_Decl_Node);
idType : constant LAL.Subtype_Indication := LAL.F_Id_Type (For_Loop_Var_Decl_Node);
begin
Log ("id: " & id.Debug_Text);
if not idType.Is_Null then
Log ("idType: " & idType.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
--when Ada_Generic_Decl =>
-- This.Add_Not_Implemented;
when Ada_Generic_Package_Decl =>
declare
Generic_Package_Decl_Node : constant LAL.Generic_Package_Decl := LAL.As_Generic_Package_Decl (Node);
packageDecl : constant LAL.Generic_Package_Internal := LAL.F_Package_Decl (Generic_Package_Decl_Node);
bodyPart : constant LAL.Package_Body := LAL.P_Body_Part (Generic_Package_Decl_Node);
begin
Log ("packageDecl: " & packageDecl.Debug_Text);
if not bodyPart.Is_Null then
Log ("bodyPart: " & bodyPart.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Generic_Subp_Decl =>
declare
Generic_Subp_Decl_Node : constant LAL.Generic_Subp_Decl := LAL.As_Generic_Subp_Decl (Node);
subpDecl : constant LAL.Generic_Subp_Internal := LAL.F_Subp_Decl (Generic_Subp_Decl_Node);
-- bodyPart : constant LAL.Base_Subp_Body := LAL.P_Body_Part (Generic_Subp_Decl_Node);
begin
Log ("subpDecl: " & subpDecl.Debug_Text);
-- Log ("bodyPart: " & bodyPart.Debug_Text);
end;
This.Add_Not_Implemented;
--when Ada_Generic_Instantiation =>
-- This.Add_Not_Implemented;
when Ada_Generic_Package_Instantiation =>
declare
Generic_Package_Instantiation_Node : constant LAL.Generic_Package_Instantiation := LAL.As_Generic_Package_Instantiation (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Generic_Package_Instantiation_Node);
gericPackageName : constant LAL.Name := LAL.F_Generic_Pkg_Name (Generic_Package_Instantiation_Node);
params : constant LAL.Assoc_List := LAL.F_Params (Generic_Package_Instantiation_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("gericPackageName: " & gericPackageName.Debug_Text);
Log ("params: " & params.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Generic_Subp_Instantiation =>
declare
Generic_Subp_Instantiation_Node : constant LAL.Generic_Subp_Instantiation := LAL.As_Generic_Subp_Instantiation (Node);
--kind : constant Ada_Subp_Kind := LAL.F_Kind (Generic_Subp_Instantiation_Node);
subpName : constant LAL.Defining_Name := LAL.F_Subp_Name (Generic_Subp_Instantiation_Node);
genericSubpName : constant LAL.Name := LAL.F_Generic_Subp_Name (Generic_Subp_Instantiation_Node);
params : constant LAL.Assoc_List := LAL.F_Params (Generic_Subp_Instantiation_Node);
designatedSubp : constant LAL.Ada_Node := LAL.P_Designated_Subp (Generic_Subp_Instantiation_Node);
begin
--Log ("kind: " & kind.Debug_Text);
Log ("subpName: " & subpName.Debug_Text);
Log ("genericSubpName: " & genericSubpName.Debug_Text);
Log ("params: " & params.Debug_Text);
Log ("designatedSubp: " & designatedSubp.Debug_Text);
end;
This.Add_Not_Implemented;
--when Ada_Generic_Renaming_Decl =>
-- This.Add_Not_Implemented;
when Ada_Generic_Package_Renaming_Decl =>
declare
Generic_Package_Renaming_Decl_Node : constant LAL.Generic_Package_Renaming_Decl := LAL.As_Generic_Package_Renaming_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Generic_Package_Renaming_Decl_Node);
rename : constant LAL.Name := LAL.F_Renames (Generic_Package_Renaming_Decl_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("rename: " & rename.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Generic_Subp_Renaming_Decl =>
declare
Generic_Subp_Renaming_Decl_Node : constant LAL.Generic_Subp_Renaming_Decl := LAL.As_Generic_Subp_Renaming_Decl (Node);
kind : constant LAL.Subp_Kind := LAL.F_Kind (Generic_Subp_Renaming_Decl_Node);
name : constant LAL.Defining_Name := LAL.F_Name (Generic_Subp_Renaming_Decl_Node);
rename : constant LAL.Name := LAL.F_Renames (Generic_Subp_Renaming_Decl_Node);
begin
--Log ("kind: " & kind.Debug_Text);
Log ("kind: " & kind.Debug_Text);
Log ("name: " & name.Debug_Text);
Log ("rename: " & rename.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Label_Decl =>
declare
Label_Decl_Node : constant LAL.Label_Decl := LAL.As_Label_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Label_Decl_Node);
begin
--Log ("kind: " & kind.Debug_Text);
Log ("name: " & name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Named_Stmt_Decl =>
declare
Named_Stmt_Decl_Node : constant LAL.Named_Stmt_Decl := LAL.As_Named_Stmt_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Named_Stmt_Decl_Node);
begin
--Log ("kind: " & kind.Debug_Text);
Log ("name: " & name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Number_Decl =>
declare
Number_Decl_Node : constant LAL.Number_Decl := LAL.As_Number_Decl (Node);
ids : constant LAL.Defining_Name_List := LAL.F_Ids (Number_Decl_Node);
expr : constant LAL.Expr := LAL.F_Expr (Number_Decl_Node);
begin
--Log ("kind: " & kind.Debug_Text);
Log ("ids: " & ids.Debug_Text);
Log ("expr: " & expr.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Object_Decl =>
declare
Object_Decl_Node : constant LAL.Object_Decl := LAL.As_Object_Decl (Node);
FIds : constant LAL.Defining_Name_List := LAL.F_Ids (Object_Decl_Node);
Has_Aliased : constant Boolean := LAL.F_Has_Aliased (Object_Decl_Node);
Has_Constant : constant Boolean := LAL.F_Has_Constant (Object_Decl_Node);
mode : constant LAL.Mode := LAL.F_Mode (Object_Decl_Node);
typeExpr : constant LAL.Type_Expr := LAL.F_Type_Expr (Object_Decl_Node);
defaultExpr : constant LAL.Expr := LAL.F_Default_Expr (Object_Decl_Node);
renamingClause : constant LAL.Renaming_Clause := LAL.F_Renaming_Clause (Object_Decl_Node);
publicPartDecl : constant LAL.Basic_Decl := LAL.P_Public_Part_Decl (Object_Decl_Node);
begin
Log ("FIds: " & FIds.Debug_Text);
Log ("Has_Aliased: " & Boolean'Image (Has_Constant));
Log ("F_Has_Constant: " & Boolean'Image (Has_Constant));
Log ("mode: " & mode.Debug_Text);
if not typeExpr.Is_Null then
Log ("typeExpr: " & typeExpr.Debug_Text);
end if;
if not defaultExpr.Is_Null then
Log ("defaultExpr: " & defaultExpr.Debug_Text);
end if;
if not renamingClause.Is_Null then
Log ("renamingClause: " & renamingClause.Debug_Text);
end if;
if not publicPartDecl.Is_Null then
Log ("publicPartDecl: " & publicPartDecl.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Anonymous_Object_Decl =>
declare
Anonymous_Object_Decl_Node : constant LAL.Anonymous_Object_Decl := LAL.As_Anonymous_Object_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Extended_Return_Stmt_Object_Decl =>
declare
Extended_Return_Stmt_Object_Decl_Node : constant LAL.Extended_Return_Stmt_Object_Decl := LAL.As_Extended_Return_Stmt_Object_Decl (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Package_Renaming_Decl =>
declare
Package_Renaming_Decl_Node : constant LAL.Package_Renaming_Decl := LAL.As_Package_Renaming_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Package_Renaming_Decl_Node);
rename : constant LAL.Renaming_Clause := LAL.F_Renames (Package_Renaming_Decl_Node);
renamedPackage : constant LAL.Basic_Decl := LAL.P_Renamed_Package (Package_Renaming_Decl_Node);
finalRenamedPackage : constant LAL.Basic_Decl := LAL.P_Final_Renamed_Package (Package_Renaming_Decl_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("rename: " & rename.Debug_Text);
Log ("renamedPackage: " & renamedPackage.Debug_Text);
Log ("finalRenamedPackage: " & finalRenamedPackage.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Single_Protected_Decl =>
declare
Single_Protected_Decl_Node : constant LAL.Single_Protected_Decl := LAL.As_Single_Protected_Decl (Node);
name : constant LAL.Defining_Name := LAL.F_Name (Single_Protected_Decl_Node);
interfaces : constant LAL.Parent_List := LAL.F_Interfaces (Single_Protected_Decl_Node);
definition : constant LAL.Protected_Def := LAL.F_Definition (Single_Protected_Decl_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("interfaces: " & interfaces.Debug_Text);
Log ("definition: " & definition.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Single_Task_Decl =>
declare
Single_Task_Decl_Node : constant LAL.Single_Task_Decl := LAL.As_Single_Task_Decl (Node);
taskType : constant LAL.Single_Task_Type_Decl := LAL.F_Task_Type (Single_Task_Decl_Node);
begin
Log ("taskType: " & taskType.Debug_Text);
end;
This.Add_Not_Implemented;
end case;
end Process_Ada_Basic_Decl;
procedure Process_Ada_Case_Stmt_Alternative_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Case_Stmt_Alternative_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Case_Stmt_Alternative_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Case_Stmt_Alternative_Range
case Kind is
when Ada_Case_Stmt_Alternative =>
declare
Case_Stmt_Alternative_Node : constant LAL.Case_Stmt_Alternative := LAL.As_Case_Stmt_Alternative (Node);
choices : constant LAL.Alternatives_List := LAL.F_Choices (Case_Stmt_Alternative_Node);
stmts : constant LAL.Stmt_List := LAL.F_Stmts (Case_Stmt_Alternative_Node);
begin
Log ("choices: " & choices.Debug_Text);
Log ("stmts: " & stmts.Debug_Text);
end;
end case;
end Process_Ada_Case_Stmt_Alternative_Range;
procedure Process_Ada_Compilation_Unit_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Compilation_Unit_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Compilation_Unit_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Compilation_Unit_Range
case Kind is
when Ada_Compilation_Unit =>
declare
Compilation_Unit_Node : constant LAL.Compilation_Unit := LAL.As_Compilation_Unit (Node);
prelude : constant LAL.Ada_Node_List := LAL.F_Prelude (Compilation_Unit_Node);
bodyunit : constant LAL.Ada_Node := LAL.F_Body (Compilation_Unit_Node);
pragmas : constant LAL.Pragma_Node_List := LAL.F_Pragmas (Compilation_Unit_Node);
syntaticQualifiedName : constant LAL.Unbounded_Text_Type_Array := LAL.P_Syntactic_Fully_Qualified_Name (Compilation_Unit_Node);
unitKind : constant LALCO.Analysis_Unit_Kind := LAL.P_Unit_Kind (Compilation_Unit_Node);
begin
Log ("prelude: " & prelude.Debug_Text);
Log ("bodyunit: " & bodyunit.Debug_Text);
Log ("pragmas: " & pragmas.Debug_Text);
-- Log ("syntaticQualifiedName: " & syntaticQualifiedName.Debug_Text);
-- Log ("unitKind: " & unitKind.Debug_Text);
end;
end case;
end Process_Ada_Compilation_Unit_Range;
procedure Process_Ada_Component_Clause_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Component_Clause_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Component_Clause_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Component_Clause_Range
case Kind is
when Ada_Component_Clause =>
declare
Component_Clause_Node : constant LAL.Component_Clause := LAL.As_Component_Clause (Node);
id : constant LAL.Identifier := LAL.F_Id (Component_Clause_Node);
position : constant LAL.Expr := LAL.F_Position (Component_Clause_Node);
ranges : constant LAL.Range_Spec := LAL.F_Range (Component_Clause_Node);
begin
Log ("id: " & id.Debug_Text);
Log ("position: " & position.Debug_Text);
Log ("ranges: " & ranges.Debug_Text);
end;
end case;
end Process_Ada_Component_Clause_Range;
procedure Process_Ada_Component_Def_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Component_Def_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Component_Def_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Component_Def_Range
case Kind is
when Ada_Component_Def =>
declare
Component_Def_Node : constant LAL.Component_Def := LAL.As_Component_Def (Node);
Has_Aliased : constant Boolean := LAL.F_Has_Aliased (Component_Def_Node);
Has_Constant : constant Boolean := LAL.F_Has_Constant (Component_Def_Node);
begin
Log ("Has_Aliased: " & Boolean'Image (Has_Aliased));
Log ("Has_Constant: " & Boolean'Image (Has_Constant));
end;
end case;
end Process_Ada_Component_Def_Range;
procedure Process_Ada_Constraint
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Constraint";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Constraint := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Constraint
case Kind is
when Ada_Delta_Constraint =>
declare
Delta_Constraint_Node : constant LAL.Delta_Constraint := LAL.As_Delta_Constraint (Node);
Digit : constant LAL.Expr := LAL.F_Digits (Delta_Constraint_Node);
ranges : constant LAL.Range_Spec := LAL.F_Range (Delta_Constraint_Node);
begin
Log ("Digit: " & Digit.Debug_Text);
Log ("ranges: " & ranges.Debug_Text);
end;
when Ada_Digits_Constraint =>
declare
Digits_Constraint_Node : constant LAL.Digits_Constraint := LAL.As_Digits_Constraint (Node);
Digit : constant LAL.Expr := LAL.F_Digits (Digits_Constraint_Node);
ranges : constant LAL.Range_Spec := LAL.F_Range (Digits_Constraint_Node);
begin
Log ("Digit: " & Digit.Debug_Text);
Log ("ranges: " & ranges.Debug_Text);
end;
when Ada_Discriminant_Constraint =>
declare
Discriminant_Constraint_Node : constant LAL.Discriminant_Constraint := LAL.As_Discriminant_Constraint (Node);
constraints : constant LAL.Assoc_List := LAL.F_Constraints (Discriminant_Constraint_Node);
begin
Log ("constraints: " & constraints.Debug_Text);
end;
when Ada_Index_Constraint =>
declare
Index_Constraint_Node : constant LAL.Index_Constraint := LAL.As_Index_Constraint (Node);
constraints : constant LAL.Constraint_List := LAL.F_Constraints (Index_Constraint_Node);
begin
Log ("constraints: " & constraints.Debug_Text);
end;
when Ada_Range_Constraint =>
declare
Range_Constraint_Node : constant LAL.Range_Constraint := LAL.As_Range_Constraint (Node);
ranges : constant LAL.Range_Spec := LAL.F_Range (Range_Constraint_Node);
begin
Log ("Range: " & ranges.Debug_Text);
end;
end case;
end Process_Ada_Constraint;
procedure Process_Ada_Constant_Node
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Constant_Node";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constant_Node_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Constant_Node := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Constant_Node
case Kind is
when Ada_Constant_Absent =>
declare
Constant_Absent_Node : constant LAL.Constant_Absent := LAL.As_Constant_Absent (Node);
begin
NULL;
end;
when Ada_Constant_Present =>
declare
Constant_Present_Node : constant LAL.Constant_Present := LAL.As_Constant_Present (Node);
begin
NULL;
end;
end case;
end Process_Ada_Constant_Node;
procedure Process_Ada_Declarative_Part_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Declarative_Part_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Declarative_Part_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Declarative_Part_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Declarative_Part_Range
case Kind is
when Ada_Declarative_Part =>
declare
Declarative_Part_Node : constant LAL.Declarative_Part := LAL.As_Declarative_Part (Node);
decls : constant LAL.Ada_Node_List := LAL.F_Decls (Declarative_Part_Node);
begin
Log ("decls: " & decls.Debug_Text);
end;
when Ada_Private_Part =>
declare
Private_Part_Node : constant LAL.Private_Part := LAL.As_Private_Part (Node);
begin
NULL;
end;
when Ada_Public_Part =>
declare
Public_Part_Node : constant LAL.Public_Part := LAL.As_Public_Part (Node);
begin
NULL;
end;
end case;
end Process_Ada_Declarative_Part_Range;
procedure Process_Ada_Elsif_Expr_Part_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Elsif_Expr_Part_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Declarative_Part_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Elsif_Expr_Part_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Elsif_Expr_Part_Range
case Kind is
when Ada_Elsif_Expr_Part =>
declare
Elsif_Expr_Part_Node : constant LAL.Elsif_Expr_Part := LAL.As_Elsif_Expr_Part (Node);
Cond_Expr : constant LAL.Expr := LAL.F_Cond_Expr (Elsif_Expr_Part_Node);
Then_Expr : constant LAL.Expr := LAL.F_Then_Expr (Elsif_Expr_Part_Node);
begin
Log ("Cond_Expr: " & Cond_Expr.Debug_Text);
Log ("Then_Expr: " & Then_Expr.Debug_Text);
end;
end case;
end Process_Ada_Elsif_Expr_Part_Range;
procedure Process_Ada_Elsif_Stmt_Part_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Elsif_Stmt_Part_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Declarative_Part_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Elsif_Stmt_Part_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Elsif_Stmt_Part_Range
case Kind is
when Ada_Elsif_Stmt_Part =>
declare
Elsif_Stmt_Part_Node : constant LAL.Elsif_Stmt_Part := LAL.As_Elsif_Stmt_Part (Node);
Cond_Expr : constant LAL.Expr := LAL.F_Cond_Expr (Elsif_Stmt_Part_Node);
Stmts : constant LAL.Stmt_List := LAL.F_Stmts (Elsif_Stmt_Part_Node);
begin
Log ("Cond_Expr: " & Cond_Expr.Debug_Text);
Log ("Stmts: " & Stmts.Debug_Text);
end;
end case;
end Process_Ada_Elsif_Stmt_Part_Range;
procedure Process_Ada_Expr
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Ada_Expr";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Expr := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Expr
case Kind is
when Ada_Allocator =>
declare
Allocator_Node : constant LAL.Allocator := LAL.As_Allocator (Node);
Subpool : constant LAL.Name := LAL.F_Subpool (Allocator_Node);
Type_Or_Expr : constant LAL.Ada_Node := LAL.F_Type_Or_Expr (Allocator_Node);
Get_Allocated_Type : constant LAL.Base_Type_Decl := LAL.P_Get_Allocated_Type (Allocator_Node);
begin
if not Subpool.Is_Null then
Log ("Subpool: " & Subpool.Debug_Text);
end if;
if not Type_Or_Expr.Is_Null then
Log ("Type_Or_Expr: " & Type_Or_Expr.Debug_Text);
end if;
if not Get_Allocated_Type.Is_Null then
Log ("Get_Allocated_Type: " & Get_Allocated_Type.Debug_Text);
end if;
end;
when Ada_Aggregate =>
declare
Aggregate_Node : constant LAL.Aggregate := LAL.As_Aggregate (Node);
begin
NULL;
end;
when Ada_Null_Record_Aggregate =>
declare
Null_Record_Aggregate_Node : constant LAL.Null_Record_Aggregate := LAL.As_Null_Record_Aggregate (Node);
begin
NULL;
end;
when Ada_Bin_Op =>
declare
Bin_Op_Node : constant LAL.Bin_Op := LAL.As_Bin_Op (Node);
Left : constant LAL.Expr := LAL.F_Left (Bin_Op_Node);
Op : constant LAL.Op := LAL.F_Op (Bin_Op_Node);
Right : constant LAL.Expr := LAL.F_Right (Bin_Op_Node);
begin
Log ("Left: " & Left.Debug_Text);
Log ("Op: " & Op.Debug_Text);
Log ("Right: " & Right.Debug_Text);
end;
when Ada_Relation_Op =>
declare
Relation_Op_Node : constant LAL.Relation_Op := LAL.As_Relation_Op (Node);
begin
NULL;
end;
when Ada_Box_Expr =>
declare
Box_Expr_Node : constant LAL.Box_Expr := LAL.As_Box_Expr (Node);
begin
NULL;
end;
when Ada_Case_Expr =>
declare
Case_Expr_Node : constant LAL.Case_Expr := LAL.As_Case_Expr (Node);
Expr : constant LAL.Expr := LAL.F_Expr (Case_Expr_Node);
Cases : constant LAL.Case_Expr_Alternative_List := LAL.F_Cases (Case_Expr_Node);
begin
Log ("Expr: " & Expr.Debug_Text);
Log ("Cases: " & Cases.Debug_Text);
end;
when Ada_Case_Expr_Alternative =>
declare
Case_Expr_Alternative_Node : constant LAL.Case_Expr_Alternative := LAL.As_Case_Expr_Alternative (Node);
choices : constant LAL.Alternatives_List := LAL.F_Choices (Case_Expr_Alternative_Node);
expr : constant LAL.Expr := LAL.F_Expr (Case_Expr_Alternative_Node);
begin
Log ("choices: " & choices.Debug_Text);
Log ("expr: " & expr.Debug_Text);
end;
when Ada_Contract_Cases =>
declare
Contract_Cases_Node : constant LAL.Contract_Cases := LAL.As_Contract_Cases (Node);
contract_cases : constant LAL.Contract_Case_Assoc_List := LAL.F_Contract_Cases (Contract_Cases_Node);
begin
Log ("contract_cases: " & contract_cases.Debug_Text);
end;
when Ada_If_Expr =>
declare
If_Expr_Node : constant LAL.If_Expr := LAL.As_If_Expr (Node);
Cond_Expr : constant LAL.Expr := LAL.F_Cond_Expr (If_Expr_Node);
Then_Expr : constant LAL.Expr := LAL.F_Then_Expr (If_Expr_Node);
Alternatives : constant LAL.Elsif_Expr_Part_List := LAL.F_Alternatives (If_Expr_Node);
Else_Expr : constant LAL.Expr := LAL.F_Else_Expr (If_Expr_Node);
begin
Log ("Cond_Expr: " & Cond_Expr.Debug_Text);
Log ("Then_Expr: " & Then_Expr.Debug_Text);
Log ("Alternatives: " & Alternatives.Debug_Text);
if not Else_Expr.Is_Null then
Log ("Else_Expr: " & Else_Expr.Debug_Text);
end if;
end;
when Ada_Membership_Expr =>
declare
Membership_Expr_Node : constant LAL.Membership_Expr := LAL.As_Membership_Expr (Node);
Expr : constant LAL.Expr := LAL.F_Expr (Membership_Expr_Node);
Op : constant LAL.Op := LAL.F_Op (Membership_Expr_Node);
Membership_Exprs : constant LAL.Expr_Alternatives_List := LAL.F_Membership_Exprs (Membership_Expr_Node);
begin
Log ("Expr: " & Expr.Debug_Text);
Log ("Op: " & Op.Debug_Text);
Log ("Membership_Exprs: " & Membership_Exprs.Debug_Text);
end;
when Ada_Attribute_Ref =>
declare
Attribute_Ref_Node : constant LAL.Attribute_Ref := LAL.As_Attribute_Ref (Node);
Prefix : constant LAL.Name := LAL.F_Prefix (Attribute_Ref_Node);
Attribute : constant LAL.Identifier := LAL.F_Attribute (Attribute_Ref_Node);
Args : constant LAL.Ada_Node := LAL.F_Args (Attribute_Ref_Node);
begin
Log ("Prefix: " & Prefix.Debug_Text);
Log ("Attribute: " & Attribute.Debug_Text);
if not Args.Is_Null then
Log ("Args: " & Args.Debug_Text);
end if;
end;
when Ada_Update_Attribute_Ref =>
declare
Update_Attribute_Ref_Node : constant LAL.Update_Attribute_Ref := LAL.As_Update_Attribute_Ref (Node);
begin
NULL;
end;
when Ada_Call_Expr =>
declare
Call_Expr_Node : constant LAL.Call_Expr := LAL.As_Call_Expr (Node);
Name : constant LAL.Name := LAL.F_Name (Call_Expr_Node);
Suffix : constant LAL.Ada_Node := LAL.F_Suffix (Call_Expr_Node);
-- Is_Array_Slice : constant Boolean := LAL.P_Is_Array_Slice (Call_Expr_Node);
begin
Log ("Name: " & Name.Debug_Text);
Log ("Suffix: " & Suffix.Debug_Text);
-- Log ("Is_Array_Slice: " & Boolean'Image(Is_Array_Slice));
end;
when Ada_Defining_Name =>
declare
Defining_Name_Node : constant LAL.Defining_Name := LAL.As_Defining_Name (Node);
begin
NULL;
end;
when Ada_Discrete_Subtype_Name =>
declare
Discrete_Subtype_Name_Node : constant LAL.Discrete_Subtype_Name := LAL.As_Discrete_Subtype_Name (Node);
Sub_Type : constant LAL.Discrete_Subtype_Indication := LAL.F_Subtype (Discrete_Subtype_Name_Node);
begin
Log ("Sub_Type: " & Sub_Type.Debug_Text);
end;
when Ada_Dotted_Name =>
declare
Dotted_Name_Node : constant LAL.Dotted_Name := LAL.As_Dotted_Name (Node);
Prefix : constant LAL.Name := LAL.F_Prefix (Dotted_Name_Node);
Suffix : constant LAL.Base_Id := LAL.F_Suffix (Dotted_Name_Node);
begin
Log ("Prefix: " & Prefix.Debug_Text);
Log ("Suffix: " & Suffix.Debug_Text);
end;
when Ada_End_Name =>
declare
End_Name_Node : constant LAL.End_Name := LAL.As_End_Name (Node);
Name : constant LAL.Name := LAL.F_Name (End_Name_Node);
Basic_Decl : constant LAL.Basic_Decl := LAL.P_Basic_Decl (End_Name_Node);
begin
Log ("Name: " & Name.Debug_Text);
Log ("Basic_Decl: " & Basic_Decl.Debug_Text);
end;
when Ada_Explicit_Deref =>
declare
Explicit_Deref_Node : constant LAL.Explicit_Deref := LAL.As_Explicit_Deref (Node);
Prefix : constant LAL.Name := LAL.F_Prefix (Explicit_Deref_Node);
begin
Log ("Prefix: " & Prefix.Debug_Text);
end;
when Ada_Qual_Expr =>
declare
Qual_Expr_Node : constant LAL.Qual_Expr := LAL.As_Qual_Expr (Node);
Prefix : constant LAL.Name := LAL.F_Prefix (Qual_Expr_Node);
Suffix : constant LAL.Expr := LAL.F_Suffix (Qual_Expr_Node);
begin
Log ("Prefix: " & Prefix.Debug_Text);
Log ("Suffix: " & Suffix.Debug_Text);
end;
when Ada_Char_Literal =>
declare
Char_Literal_Node : constant LAL.Char_Literal := LAL.As_Char_Literal (Node);
-- Denoted_Value : constant LALCO.Character_Type := LAL.P_Denoted_Value (Char_Literal_Node);
begin
-- Log ("Denoted_Value: " & Denoted_Value.Debug_Text);
NULL;
end;
when Ada_Identifier =>
declare
Identifier_Node : constant LAL.Identifier := LAL.As_Identifier (Node);
begin
NULL;
end;
when Ada_Op_Abs =>
declare
Op_Abs_Node : constant LAL.Op_Abs := LAL.As_Op_Abs (Node);
begin
NULL;
end;
when Ada_Op_And =>
declare
Op_And_Node : constant LAL.Op_And := LAL.As_Op_And (Node);
begin
NULL;
end;
when Ada_Op_And_Then =>
declare
Op_And_Then_Node : constant LAL.Op_And_Then := LAL.As_Op_And_Then (Node);
begin
NULL;
end;
when Ada_Op_Concat =>
declare
Op_Concat_Node : constant LAL.Op_Concat := LAL.As_Op_Concat (Node);
begin
NULL;
end;
when Ada_Op_Div =>
declare
Op_Div_Node : constant LAL.Op_Div := LAL.As_Op_Div (Node);
begin
NULL;
end;
when Ada_Op_Double_Dot =>
declare
Op_Double_Dot_Node : constant LAL.Op_Double_Dot := LAL.As_Op_Double_Dot (Node);
begin
NULL;
end;
when Ada_Op_Eq =>
declare
Op_Eq_Node : constant LAL.Op_Eq := LAL.As_Op_Eq (Node);
begin
NULL;
end;
when Ada_Op_Gt =>
declare
Op_Gt_Node : constant LAL.Op_Gt := LAL.As_Op_Gt (Node);
begin
NULL;
end;
when Ada_Op_Gte =>
declare
Op_Gte_Node : constant LAL.Op_Gte := LAL.As_Op_Gte (Node);
begin
NULL;
end;
when Ada_Op_In =>
declare
Op_In_Node : constant LAL.Op_In := LAL.As_Op_In (Node);
begin
NULL;
end;
when Ada_Op_Lt =>
declare
Op_Lt_Node : constant LAL.Op_Lt := LAL.As_Op_Lt (Node);
begin
NULL;
end;
when Ada_Op_Lte =>
declare
Op_Lte_Node : constant LAL.Op_Lte := LAL.As_Op_Lte (Node);
begin
NULL;
end;
when Ada_Op_Minus =>
declare
Op_Minus_Node : constant LAL.Op_Minus := LAL.As_Op_Minus (Node);
begin
NULL;
end;
when Ada_Op_Mod =>
declare
Op_Mod_Node : constant LAL.Op_Mod := LAL.As_Op_Mod (Node);
begin
NULL;
end;
when Ada_Op_Mult =>
declare
Op_Mult_Node : constant LAL.Op_Mult := LAL.As_Op_Mult (Node);
begin
NULL;
end;
when Ada_Op_Neq =>
declare
Op_Neq_Node : constant LAL.Op_Neq := LAL.As_Op_Neq (Node);
begin
NULL;
end;
when Ada_Op_Not =>
declare
Op_Not_Node : constant LAL.Op_Not := LAL.As_Op_Not (Node);
begin
NULL;
end;
when Ada_Op_Not_In =>
declare
Op_Not_In_Node : constant LAL.Op_Not_In := LAL.As_Op_Not_In (Node);
begin
NULL;
end;
when Ada_Op_Or =>
declare
Op_Or_Node : constant LAL.Op_Or := LAL.As_Op_Or (Node);
begin
NULL;
end;
when Ada_Op_Or_Else =>
declare
Op_Or_Else_Node : constant LAL.Op_Or_Else := LAL.As_Op_Or_Else (Node);
begin
NULL;
end;
when Ada_Op_Plus =>
declare
Op_Plus_Node : constant LAL.Op_Plus := LAL.As_Op_Plus (Node);
begin
NULL;
end;
when Ada_Op_Pow =>
declare
Op_Pow_Node : constant LAL.Op_Pow := LAL.As_Op_Pow (Node);
begin
NULL;
end;
when Ada_Op_Rem =>
declare
Op_Rem_Node : constant LAL.Op_Rem := LAL.As_Op_Rem (Node);
begin
NULL;
end;
when Ada_Op_Xor =>
declare
Op_Xor_Node : constant LAL.Op_Xor := LAL.As_Op_Xor (Node);
begin
NULL;
end;
when Ada_String_Literal =>
declare
String_Literal_Node : constant LAL.String_Literal := LAL.As_String_Literal (Node);
-- Denoted_Value : constant LALCO.Stringacter_Type := LAL.P_Denoted_Value (String_Literal_Node);
begin
-- Log ("Denoted_Value: " & Denoted_Value.Debug_Text);
NULL;
end;
when Ada_Null_Literal =>
declare
Null_Literal_Node : constant LAL.Null_Literal := LAL.As_Null_Literal (Node);
begin
NULL;
end;
when Ada_Int_Literal =>
declare
Int_Literal_Node : constant LAL.Int_Literal := LAL.As_Int_Literal (Node);
-- Denoted_Value : constant LALCO.Big_Integer := LAL.P_Denoted_Value (Int_Literal_Node);
begin
-- Log ("Denoted_Value: " & Denoted_Value.Debug_Text);
NULL;
end;
when Ada_Real_Literal =>
declare
Real_Literal_Node : constant LAL.Real_Literal := LAL.As_Real_Literal (Node);
begin
NULL;
end;
when Ada_Target_Name =>
declare
Target_Name_Node : constant LAL.Target_Name := LAL.As_Target_Name (Node);
begin
NULL;
end;
when Ada_Paren_Expr =>
declare
Paren_Expr_Node : constant LAL.Paren_Expr := LAL.As_Paren_Expr (Node);
Expr : constant LAL.Expr := LAL.F_Expr (Paren_Expr_Node);
begin
Log ("Expr: " & Expr.Debug_Text);
end;
when Ada_Quantified_Expr =>
declare
Quantified_Expr_Node : constant LAL.Quantified_Expr := LAL.As_Quantified_Expr (Node);
Quantifier : constant LAL.Quantifier := LAL.F_Quantifier (Quantified_Expr_Node);
Loop_Spec : constant LAL.For_Loop_Spec := LAL.F_Loop_Spec (Quantified_Expr_Node);
Expr : constant LAL.Expr := LAL.F_Expr (Quantified_Expr_Node);
begin
Log ("Quantifier: " & Quantifier.Debug_Text);
Log ("Loop_Spec: " & Loop_Spec.Debug_Text);
Log ("Expr: " & Expr.Debug_Text);
end;
when Ada_Raise_Expr =>
declare
Raise_Expr_Node : constant LAL.Raise_Expr := LAL.As_Raise_Expr (Node);
Exception_Name : constant LAL.Name := LAL.F_Exception_Name (Raise_Expr_Node);
Error_Message : constant LAL.Expr := LAL.F_Error_Message (Raise_Expr_Node);
begin
Log ("Exception_Name: " & Exception_Name.Debug_Text);
Log ("Error_Message: " & Error_Message.Debug_Text);
end;
when Ada_Un_Op =>
declare
Un_Op_Node : constant LAL.Un_Op := LAL.As_Un_Op (Node);
Op : constant LAL.Op := LAL.F_Op (Un_Op_Node);
begin
Log ("Op: " & Op.Debug_Text);
end;
end case;
end Process_Ada_Expr;
procedure Process_Ada_Handled_Stmts_Range
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Handled_Stmts_Range";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Declarative_Part_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Handled_Stmts_Range := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Handled_Stmts_Range
case Kind is
when Ada_Handled_Stmts =>
declare
Handled_Stmts_Node : constant LAL.Handled_Stmts := LAL.As_Handled_Stmts (Node);
Stmts : constant LAL.Stmt_List := LAL.F_Stmts (Handled_Stmts_Node);
Exceptions : constant LAL.Ada_Node_List := LAL.F_Exceptions (Handled_Stmts_Node);
begin
Log ("Stmts: " & Stmts.Debug_Text);
Log ("Exceptions: " & Exceptions.Debug_Text);
end;
end case;
end Process_Ada_Handled_Stmts_Range;
procedure process_ada_interface_kind
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Handled_Stmts_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_interface_kind := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_interface_kind
case kind is
when ada_interface_kind_limited =>
declare
interface_kind_limited_Node : constant LAL.interface_kind_limited := LAL.As_interface_kind_limited (Node);
begin
NULL;
end;
when ada_interface_kind_protected =>
declare
interface_kind_protected_Node : constant LAL.interface_kind_protected := LAL.As_interface_kind_protected (Node);
begin
NULL;
end;
when ada_interface_kind_synchronized =>
declare
interface_kind_synchronized_Node : constant LAL.interface_kind_synchronized := LAL.As_interface_kind_synchronized (Node);
begin
NULL;
end;
when ada_interface_kind_task =>
declare
interface_kind_task_Node : constant LAL.interface_kind_task := LAL.As_interface_kind_task (Node);
begin
NULL;
end;
end case;
end process_ada_interface_kind;
procedure process_ada_Iter_Type
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Iter_Type";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Iter_Type := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Iter_Type
case kind is
when ada_Iter_Type_In =>
declare
Iter_Type_In_Node : constant LAL.Iter_Type_In := LAL.As_Iter_Type_In (Node);
begin
NULL;
end;
when ada_Iter_Type_Of =>
declare
Iter_Type_Of_Node : constant LAL.Iter_Type_Of := LAL.As_Iter_Type_Of (Node);
begin
NULL;
end;
end case;
end process_ada_Iter_Type;
procedure process_ada_Library_Item_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Library_Item_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Library_Item_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Library_Item_Range
case kind is
when ada_Library_Item =>
declare
Library_Item_Node : constant LAL.Library_Item := LAL.As_Library_Item (Node);
Has_Private : constant Boolean := LAL.F_Has_Private (Library_Item_Node);
item : constant LAL.Basic_Decl := LAL.F_Item (Library_Item_Node);
begin
Log ("Has_Private: " & Boolean'Image (Has_Private));
Log ("item: " & item.Debug_Text);
end;
this.add_not_implemented;
end case;
end process_ada_Library_Item_Range;
procedure process_ada_Limited_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Library_Item_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Limited_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Limited_Node
case kind is
when ada_Limited_Absent =>
declare
Limited_Absent_Node : constant LAL.Limited_Absent := LAL.As_Limited_Absent (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Limited_Present =>
declare
Limited_Present_Node : constant LAL.Limited_Present := LAL.As_Limited_Present (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Limited_Node;
procedure process_ada_Loop_Spec
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Loop_Spec";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Loop_Spec := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Loop_Spec
case kind is
when ada_For_Loop_Spec =>
declare
For_Loop_Spec_Node : constant LAL.For_Loop_Spec := LAL.As_For_Loop_Spec (Node);
Has_Reverse : constant Boolean := LAL.F_Has_Reverse (For_Loop_Spec_Node);
var_decl : constant LAL.For_Loop_Var_Decl := LAL.F_Var_Decl (For_Loop_Spec_Node);
loop_type : constant LAL.Iter_Type := LAL.F_Loop_Type (For_Loop_Spec_Node);
begin
Log ("F_Has_Reverse: " & Boolean'Image (Has_Reverse));
Log ("var_decl: " & var_decl.Debug_Text);
Log ("loop_type: " & loop_type.Debug_Text);
end;
this.add_not_implemented;
when ada_While_Loop_Spec =>
declare
While_Loop_Spec_Node : constant LAL.While_Loop_Spec := LAL.As_While_Loop_Spec (Node);
expr : constant LAL.Expr := LAL.F_Expr (While_Loop_Spec_Node);
begin
Log ("expr: " & expr.Debug_Text);
end;
this.add_not_implemented;
end case;
end process_ada_Loop_Spec;
procedure process_ada_Mode
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Mode";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Mode := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Mode
case kind is
when ada_Mode_Default =>
declare
Mode_Default_Node : constant LAL.Mode_Default := LAL.As_Mode_Default (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Mode_In =>
declare
Mode_In_Node : constant LAL.Mode_In := LAL.As_Mode_In (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Mode_In_Out =>
declare
Mode_In_Out_Node : constant LAL.Mode_In_Out := LAL.As_Mode_In_Out (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Mode_Out =>
declare
Mode_Out_Node : constant LAL.Mode_Out := LAL.As_Mode_Out (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Mode;
procedure process_ada_Not_Null
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Not_Null";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Not_Null := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Not_Null
case kind is
when ada_Not_Null_Absent =>
declare
Not_Null_Absent_Node : constant LAL.Not_Null_Absent := LAL.As_Not_Null_Absent (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Not_Null_Present =>
declare
Not_Null_Present_Node : constant LAL.Not_Null_Present := LAL.As_Not_Null_Present (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Not_Null;
procedure process_ada_Null_Component_Decl_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Null_Component_Decl_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Null_Component_Decl_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Null_Component_Decl_Range
case kind is
when ada_Null_Component_Decl =>
declare
Null_Component_Decl_Node : constant LAL.Null_Component_Decl := LAL.As_Null_Component_Decl (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Null_Component_Decl_Range;
procedure process_ada_Others_Designator_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Others_Designator_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Others_Designator_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Others_Designator_Range
case kind is
when ada_Others_Designator =>
declare
Others_Designator_Node : constant LAL.Others_Designator := LAL.As_Others_Designator (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Others_Designator_Range;
procedure process_ada_Overriding_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Overriding_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Overriding_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Overriding_Node
case kind is
when ada_Overriding_Not_Overriding =>
declare
Overriding_Not_Overriding_Node : constant LAL.Overriding_Not_Overriding := LAL.As_Overriding_Not_Overriding (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Overriding_Overriding =>
declare
Overriding_Overriding_Node : constant LAL.Overriding_Overriding := LAL.As_Overriding_Overriding (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Overriding_Unspecified =>
declare
Overriding_Unspecified_Node : constant LAL.Overriding_Unspecified := LAL.As_Overriding_Unspecified (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Overriding_Node;
procedure process_ada_Params_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Params_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Params_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Params_Range
case kind is
when ada_Params =>
declare
Params_Node : constant LAL.Params := LAL.As_Params (Node);
params : constant LAL.Param_Spec_List := LAL.F_Params (Params_Node);
begin
Log ("params: " & params.Debug_Text);
end;
this.add_not_implemented;
end case;
end process_ada_Params_Range;
procedure process_ada_Pragma_Node_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Pragma_Node_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Pragma_Node_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Pragma_Node_Range
case kind is
when ada_Pragma_Node =>
declare
Pragma_Node_Node : constant LAL.Pragma_Node := LAL.As_Pragma_Node (Node);
id : constant LAL.Identifier := LAL.F_Id (Pragma_Node_Node);
args : constant LAL.Base_Assoc_List := LAL.F_Args (Pragma_Node_Node);
-- associated_Decls : constant LAL.Basic_Decl_Array := LAL.P_Associated_Decls (Pragma_Node_Node);
begin
Log ("id: " & id.Debug_Text);
Log ("args: " & args.Debug_Text);
-- Log ("associated_Decls: " & associated_Decls.Debug_Text);
end;
this.add_not_implemented;
end case;
end process_ada_Pragma_Node_Range;
procedure process_ada_Prim_Type_Accessor_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Prim_Type_Accessor_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Prim_Type_Accessor_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Prim_Type_Accessor_Range
case kind is
when ada_Prim_Type_Accessor =>
declare
Prim_Type_Accessor_Node : constant LAL.Prim_Type_Accessor := LAL.As_Prim_Type_Accessor (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Prim_Type_Accessor_Range;
procedure process_ada_Private_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Private_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Private_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Private_Node
case kind is
when ada_Private_Absent =>
declare
Private_Absent_Node : constant LAL.Private_Absent := LAL.As_Private_Absent (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Private_Present =>
declare
Private_Present_Node : constant LAL.Private_Present := LAL.As_Private_Present (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Private_Node;
procedure process_ada_Protected_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Protected_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Protected_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Protected_Node
case kind is
when ada_Protected_Absent =>
declare
Protected_Absent_Node : constant LAL.Protected_Absent := LAL.As_Protected_Absent (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Protected_Present =>
declare
Protected_Present_Node : constant LAL.Protected_Present := LAL.As_Protected_Present (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Protected_Node;
procedure process_ada_Protected_Def_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Protected_Def_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Protected_Def_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Protected_Def_Range
case kind is
when ada_Protected_Def =>
declare
Protected_Def_Node : constant LAL.Protected_Def := LAL.As_Protected_Def (Node);
public_part : constant LAL.Public_Part := LAL.F_Public_Part (Protected_Def_Node);
private_part : constant LAL.Private_Part := LAL.F_Private_Part (Protected_Def_Node);
end_name : constant LAL.End_Name := LAL.F_End_Name (Protected_Def_Node);
begin
Log ("public_part: " & public_part.Debug_Text);
if not private_part.Is_Null then
Log ("private_part: " & private_part.Debug_Text);
end if;
if not end_name.Is_Null then
Log ("end_name: " & end_name.Debug_Text);
end if;
end;
this.add_not_implemented;
end case;
end process_ada_Protected_Def_Range;
procedure process_ada_Quantifier
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Quantifier";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Quantifier := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Quantifier
case kind is
when ada_Quantifier_All =>
declare
Quantifier_All_Node : constant LAL.Quantifier_All := LAL.As_Quantifier_All (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Quantifier_Some =>
declare
Quantifier_Some_Node : constant LAL.Quantifier_Some := LAL.As_Quantifier_Some (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Quantifier;
procedure process_ada_Range_Spec_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Range_Spec_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Range_Spec_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Range_Spec_Range
case kind is
when ada_Range_Spec =>
declare
Range_Spec_Node : constant LAL.Range_Spec := LAL.As_Range_Spec (Node);
F_Range : constant LAL.Expr := LAL.F_Range (Range_Spec_Node);
begin
Log ("F_Range: " & F_Range.Debug_Text);
end;
this.add_not_implemented;
end case;
end process_ada_Range_Spec_Range;
procedure process_ada_Renaming_Clause_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Renaming_Clause_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Renaming_Clause_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Renaming_Clause_Range
case kind is
when ada_Renaming_Clause =>
declare
Renaming_Clause_Node : constant LAL.Renaming_Clause := LAL.As_Renaming_Clause (Node);
renamed_object : constant LAL.Name := LAL.F_Renamed_Object (Renaming_Clause_Node);
begin
Log ("renamed_object: " & renamed_object.Debug_Text);
end;
this.add_not_implemented;
when ada_Synthetic_Renaming_Clause =>
declare
Synthetic_Renaming_Clause_Node : constant LAL.Synthetic_Renaming_Clause := LAL.As_Synthetic_Renaming_Clause (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Renaming_Clause_Range;
procedure process_ada_Reverse_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Reverse_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Reverse_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Reverse_Node
case kind is
when ada_Reverse_Absent =>
declare
Reverse_Absent_Node : constant LAL.Reverse_Absent := LAL.As_Reverse_Absent (Node);
begin
NULL;
end;
this.add_not_implemented;
when ada_Reverse_Present =>
declare
Reverse_Present_Node : constant LAL.Reverse_Present := LAL.As_Reverse_Present (Node);
begin
NULL;
end;
this.add_not_implemented;
end case;
end process_ada_Reverse_Node;
procedure process_ada_Select_When_Part_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Select_When_Part_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Select_When_Part_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Select_When_Part_Range
case kind is
when ada_Select_When_Part =>
declare
Select_When_Part_Node : constant LAL.Select_When_Part := LAL.As_Select_When_Part (Node);
cond_expr : constant LAL.Expr := LAL.F_Cond_Expr (Select_When_Part_Node);
stmts : constant LAL.Stmt_List := LAL.F_Stmts (Select_When_Part_Node);
begin
if not cond_expr.Is_Null then
Log ("cond_expr: " & cond_expr.Debug_Text);
end if;
if not stmts.Is_Null then
Log ("stmts: " & stmts.Debug_Text);
end if;
end;
this.add_not_implemented;
end case;
end process_ada_Select_When_Part_Range;
procedure Process_Ada_Stmt
(This : in out Class;
-- Node : in LAL.Stmt'Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process_Ada_Stmt";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
-- Will raise Constraint_Error if Node.Kind is not in Ada_Stmt:
Kind : constant LALCO.Ada_Stmt := Node.Kind;
use LALCO; -- For subtype names in case stmt
begin -- Process_Ada_Stmt
case Kind is
when Ada_Accept_Stmt =>
declare
Accept_Stmt_Node : constant LAL.Accept_Stmt := LAL.As_Accept_Stmt (Node);
Name : constant LAL.Identifier := LAL.F_Name (Accept_Stmt_Node);
Entry_Index_Expr : constant LAL.Expr := LAL.F_Entry_Index_Expr (Accept_Stmt_Node);
Params : constant LAL.Entry_Completion_Formal_Params := LAL.F_Params (Accept_Stmt_Node);
begin
Log ("Name: " & Name.Debug_Text);
if not Entry_Index_Expr.Is_Null then
Log ("Entry_Index_Expr: " & Entry_Index_Expr.Debug_Text);
end if;
Log ("Params: " & Params.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Accept_Stmt_With_Stmts =>
declare
Accept_Stmt_With_Stmts_Node : constant LAL.Accept_Stmt_With_Stmts := LAL.As_Accept_Stmt_With_Stmts (Node);
Stmts : constant LAL.Handled_Stmts := LAL.F_Stmts (Accept_Stmt_With_Stmts_Node);
End_Name : constant LAL.End_Name := LAL.F_End_Name (Accept_Stmt_With_Stmts_Node);
begin
Log ("Stmts: " & Stmts.Debug_Text);
Log ("End_Name: " & End_Name.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_For_Loop_Stmt =>
declare
For_Loop_Stmt_Node : constant LAL.For_Loop_Stmt := LAL.As_For_Loop_Stmt (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Loop_Stmt =>
declare
Loop_Stmt_Node : constant LAL.Loop_Stmt := LAL.As_Loop_Stmt (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_While_Loop_Stmt =>
declare
While_Loop_Stmt_Node : constant LAL.While_Loop_Stmt := LAL.As_While_Loop_Stmt (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Begin_Block =>
declare
Begin_Block_Node : constant LAL.Begin_Block := LAL.As_Begin_Block (Node);
Stmt : constant LAL.Handled_Stmts := LAL.F_Stmts (Begin_Block_Node);
End_Name : constant LAL.End_Name := LAL.F_End_Name (Begin_Block_Node);
begin
Log ("Stmt: " & Stmt.Debug_Text);
if not End_Name.Is_Null then
Log ("End_Name: " & End_Name.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Decl_Block =>
declare
Decl_Block_Node : constant LAL.Decl_Block := LAL.As_Decl_Block (Node);
Decl : constant LAL.Declarative_Part := LAL.F_Decls (Decl_Block_Node);
Stmt : constant LAL.Handled_Stmts := LAL.F_Stmts (Decl_Block_Node);
End_Name : constant LAL.End_Name := LAL.F_End_Name (Decl_Block_Node);
begin
Log ("Decl: " & Decl.Debug_Text);
Log ("Stmt: " & Stmt.Debug_Text);
if not End_Name.Is_Null then
Log ("End_Name: " & End_Name.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Case_Stmt =>
declare
Case_Stmt_Node : constant LAL.Case_Stmt := LAL.As_Case_Stmt (Node);
Expr : constant LAL.Expr := LAL.F_Expr (Case_Stmt_Node);
Alternatives : constant LAL.Case_Stmt_Alternative_List := LAL.F_Alternatives (Case_Stmt_Node);
begin
Log ("Expr: " & Expr.Debug_Text);
Log ("Alternatives: " & Alternatives.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Extended_Return_Stmt =>
declare
Extended_Return_Stmt_Node : constant LAL.Extended_Return_Stmt := LAL.As_Extended_Return_Stmt (Node);
Decl_Stmt : constant LAL.Extended_Return_Stmt_Object_Decl := LAL.F_Decl (Extended_Return_Stmt_Node);
Stmt : constant LAL.Handled_Stmts := LAL.F_Stmts (Extended_Return_Stmt_Node);
begin
Log ("Decl_Stmt: " & Decl_Stmt.Debug_Text);
Log ("Stmt: " & Stmt.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_If_Stmt =>
declare
If_Stmt_Node : constant LAL.If_Stmt := LAL.As_If_Stmt (Node);
Then_Stmt : constant LAL.Stmt_List := LAL.F_Then_Stmts (If_Stmt_Node);
Alternative : constant LAL.Elsif_Stmt_Part_List := LAL.F_Alternatives (If_Stmt_Node);
Else_Stmt : constant LAL.Stmt_List := LAL.F_Else_Stmts (If_Stmt_Node);
begin
Log ("Then_Stmt: " & Then_Stmt.Debug_Text);
Log ("Alternative: " & Alternative.Debug_Text);
Log ("Else_Stmt: " & Else_Stmt.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Named_Stmt =>
declare
Named_Stmt_Node : constant LAL.Named_Stmt := LAL.As_Named_Stmt (Node);
Decl_Stmt : constant LAL.Named_Stmt_Decl := LAL.F_Decl (Named_Stmt_Node);
Stmt : constant LAL.Composite_Stmt := LAL.F_Stmt (Named_Stmt_Node);
begin
Log ("Decl_Stmt: " & Decl_Stmt.Debug_Text);
Log ("Stmt: " & Stmt.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Select_Stmt =>
declare
Select_Stmt_Node : constant LAL.Select_Stmt := LAL.As_Select_Stmt (Node);
Guards : constant LAL.Select_When_Part_List := LAL.F_Guards (Select_Stmt_Node);
Else_Stmt : constant LAL.Stmt_List := LAL.F_Else_Stmts (Select_Stmt_Node);
Abort_Stmts : constant LAL.Stmt_List := LAL.F_Abort_Stmts (Select_Stmt_Node);
begin
Log ("F_Guards: " & Guards.Debug_Text);
Log ("F_Else_Stmts: " & Else_Stmt.Debug_Text);
Log ("F_Abort_Stmts: " & Abort_Stmts.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Error_Stmt =>
declare
Error_Stmt_Node : constant LAL.Error_Stmt := LAL.As_Error_Stmt (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Abort_Stmt =>
declare
Abort_Stmt_Node : constant LAL.Abort_Stmt := LAL.As_Abort_Stmt (Node);
Names : constant LAL.Name_List := LAL.F_Names (Abort_Stmt_Node);
begin
Log ("F_Names: " & Names.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Assign_Stmt =>
declare
Assign_Stmt_Node : constant LAL.Assign_Stmt := LAL.As_Assign_Stmt (Node);
Dest : constant LAL.Name := LAL.F_Dest (Assign_Stmt_Node);
Expr : constant LAL.Expr := LAL.F_Expr (Assign_Stmt_Node);
begin
Log ("F_Dest: " & Dest.Debug_Text);
Log ("F_Expr: " & Expr.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Call_Stmt =>
declare
Call_Stmt_Node : constant LAL.Call_Stmt := LAL.As_Call_Stmt (Node);
Call : constant LAL.Name := LAL.F_Call (Call_Stmt_Node);
begin
Log ("F_Call: " & Call.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Delay_Stmt =>
declare
Delay_Stmt_Node : constant LAL.Delay_Stmt := LAL.As_Delay_Stmt (Node);
Has_Until : constant Boolean := LAL.F_Has_Until (Delay_Stmt_Node);
Seconds : constant LAL.Expr := LAL.F_Expr (Delay_Stmt_Node);
begin
Log ("F_Has_Until: " & Boolean'Image (Has_Until));
Log ("Seconds: " & Seconds.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Exit_Stmt =>
declare
Exit_Stmt_Node : constant LAL.Exit_Stmt := LAL.As_Exit_Stmt (Node);
Loop_Name : constant LAL.Identifier := LAL.F_Loop_Name (Exit_Stmt_Node);
Cond_Expr : constant LAL.Expr := LAL.F_Cond_Expr (Exit_Stmt_Node);
begin
if not Loop_Name.Is_Null then
Log ("F_Loop_Name: " & Loop_Name.Debug_Text);
end if;
if not Cond_Expr.Is_Null then
Log ("F_Cond_Expr: " & Cond_Expr.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Goto_Stmt =>
declare
Goto_Stmt_Node : constant LAL.Goto_Stmt := LAL.As_Goto_Stmt (Node);
Label : constant LAL.Name := LAL.F_Label_Name (Goto_Stmt_Node);
begin
Log ("F_Label_Name: " & Label.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Label =>
declare
Label_Node : constant LAL.Label := LAL.As_Label (Node);
Label_Decl : constant LAL.Label_Decl := LAL.F_Decl (Label_Node);
begin
Log ("F_Decl: " & Label_Decl.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Null_Stmt =>
declare
Null_Stmt_Node : constant LAL.Null_Stmt := LAL.As_Null_Stmt (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
when Ada_Raise_Stmt =>
declare
Raise_Stmt_Node : constant LAL.Raise_Stmt := LAL.As_Raise_Stmt (Node);
Exception_Name : constant LAL.Name := LAL.F_Exception_Name (Raise_Stmt_Node);
Error_Message : constant LAL.Expr := LAL.F_Error_Message (Raise_Stmt_Node);
begin
Log ("F_Exception_Name: " & Exception_Name.Debug_Text);
if not Error_Message.Is_Null then
Log ("Error_Message: " & Error_Message.Debug_Text);
end if;
end;
This.Add_Not_Implemented;
when Ada_Requeue_Stmt =>
declare
Requeue_Stmt_Node : constant LAL.Requeue_Stmt := LAL.As_Requeue_Stmt (Node);
Call_Name : constant LAL.Name := LAL.F_Call_Name (Requeue_Stmt_Node);
Has_Abort : constant Boolean := LAL.F_Has_Abort (Requeue_Stmt_Node);
begin
Log ("F_Call_Name: " & Call_Name.Debug_Text);
Log ("F_Has_Abort: " & Boolean'Image (Has_Abort));
end;
This.Add_Not_Implemented;
when Ada_Return_Stmt =>
declare
Return_Stmt_Node : constant LAL.Return_Stmt := LAL.As_Return_Stmt (Node);
Return_Expr : constant LAL.Expr := LAL.F_Return_Expr (Return_Stmt_Node);
begin
Log ("F_Return_Expr: " & Return_Expr.Debug_Text);
end;
This.Add_Not_Implemented;
when Ada_Terminate_Alternative =>
declare
Terminate_Alternative_Node : constant LAL.Terminate_Alternative := LAL.As_Terminate_Alternative (Node);
begin
NULL;
end;
This.Add_Not_Implemented;
end case;
exception
when X : External_Error | Internal_Error | Usage_Error =>
raise;
when X: others =>
Log_Exception (X);
Log ("No handler for this exception. Raising Internal_Error");
raise Internal_Error;
end Process_Ada_Stmt;
procedure process_ada_Subp_Kind
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Subp_Kind";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Subp_Kind := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Subp_Kind
case kind is
when ada_Subp_Kind_Function =>
declare
Subp_Kind_Function_Node : constant LAL.Subp_Kind_Function := LAL.As_Subp_Kind_Function (Node);
begin
NULL;
end;
when ada_Subp_Kind_Procedure =>
declare
Subp_Kind_Procedure_Node : constant LAL.Subp_Kind_Procedure := LAL.As_Subp_Kind_Procedure (Node);
begin
NULL;
end;
end case;
end process_ada_Subp_Kind;
procedure process_ada_Subunit_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Subunit_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Subunit_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Subunit_Range
case kind is
when ada_Subunit =>
declare
Subunit_Node : constant LAL.Subunit := LAL.As_Subunit (Node);
name : constant LAL.Name := LAL.F_Name (Subunit_Node);
f_body : constant LAL.Body_Node := LAL.F_Body (Subunit_Node);
body_root : constant LAL.Basic_Decl := LAL.P_Body_Root (Subunit_Node);
begin
Log ("name: " & name.Debug_Text);
Log ("f_body: " & f_body.Debug_Text);
Log ("body_root: " & body_root.Debug_Text);
end;
end case;
end process_ada_Subunit_Range;
procedure process_ada_Synchronized_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Synchronized_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Synchronized_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Synchronized_Node
case kind is
when ada_Synchronized_Absent =>
declare
Synchronized_Absent_Node : constant LAL.Synchronized_Absent := LAL.As_Synchronized_Absent (Node);
begin
NULL;
end;
when ada_Synchronized_Present =>
declare
Synchronized_Present_Node : constant LAL.Synchronized_Present := LAL.As_Synchronized_Present (Node);
begin
NULL;
end;
end case;
end process_ada_Synchronized_Node;
procedure process_ada_Tagged_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Tagged_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Tagged_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Tagged_Node
case kind is
when ada_Tagged_Absent =>
declare
Tagged_Absent_Node : constant LAL.Tagged_Absent := LAL.As_Tagged_Absent (Node);
begin
NULL;
end;
when ada_Tagged_Present =>
declare
Tagged_Present_Node : constant LAL.Tagged_Present := LAL.As_Tagged_Present (Node);
begin
NULL;
end;
end case;
end process_ada_Tagged_Node;
procedure process_ada_Task_Def_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Task_Def_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Task_Def_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Task_Def_Range
case kind is
when ada_Task_Def =>
declare
Task_Def_Node : constant LAL.Task_Def := LAL.As_Task_Def (Node);
interfaces : constant LAL.Parent_List := LAL.F_Interfaces (Task_Def_Node);
public_part : constant LAL.Public_Part := LAL.F_Public_Part (Task_Def_Node);
private_part : constant LAL.Private_part := LAL.F_Private_Part (Task_Def_Node);
end_name : constant LAL.End_Name := LAL.F_End_Name (Task_Def_Node);
begin
Log ("interfaces: " & interfaces.Debug_Text);
Log ("public_part: " & public_part.Debug_Text);
if not private_part.Is_Null then
Log ("private_part: " & private_part.Debug_Text);
end if;
Log ("end_name: " & end_name.Debug_Text);
end;
end case;
end process_ada_Task_Def_Range;
procedure process_ada_Type_Def
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Def_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Type_Def := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Type_Def
case kind is
when ada_Access_To_Subp_Def =>
declare
Access_To_Subp_Def_Node : constant LAL.Access_To_Subp_Def := LAL.As_Access_To_Subp_Def (Node);
has_protected : constant Boolean := LAL.F_Has_Protected (Access_To_Subp_Def_Node);
sub_spec : constant LAL.Subp_Spec := LAL.F_Subp_Spec (Access_To_Subp_Def_Node);
begin
Log ("has_protected: " & Boolean'Image(has_protected));
Log ("sub_spec: " & sub_spec.Debug_Text);
end;
when ada_Anonymous_Type_Access_Def =>
declare
Anonymous_Type_Access_Def_Node : constant LAL.Anonymous_Type_Access_Def := LAL.As_Anonymous_Type_Access_Def (Node);
type_decl : constant LAL.Base_Type_Decl := LAL.F_Type_Decl (Anonymous_Type_Access_Def_Node);
begin
Log ("type_decl: " & type_decl.Debug_Text);
end;
when ada_Type_Access_Def =>
declare
Type_Access_Def_Node : constant LAL.Type_Access_Def := LAL.As_Type_Access_Def (Node);
has_all : constant Boolean := LAL.F_Has_All (Type_Access_Def_Node);
has_constant : constant Boolean := LAL.F_Has_Constant (Type_Access_Def_Node);
begin
Log ("has_all: " & Boolean'Image(has_all));
Log ("has_constant: " & Boolean'Image(has_constant));
end;
when ada_Array_Type_Def =>
declare
Array_Type_Def_Node : constant LAL.Array_Type_Def := LAL.As_Array_Type_Def (Node);
indices : constant LAL.Array_Indices := LAL.F_Indices (Array_Type_Def_Node);
component_type : constant LAL.Component_Def := LAL.F_Component_Type (Array_Type_Def_Node);
begin
Log ("indices: " & indices.Debug_Text);
Log ("component_type: " & component_type.Debug_Text);
end;
when ada_Derived_Type_Def =>
declare
Derived_Type_Def_Node : constant LAL.Derived_Type_Def := LAL.As_Derived_Type_Def (Node);
interfaces : constant LAL.Parent_List := LAL.F_Interfaces (Derived_Type_Def_Node);
record_extension : constant LAL.Base_Record_Def := LAL.F_Record_Extension (Derived_Type_Def_Node);
has_with_private : constant Boolean := LAL.F_Has_With_Private (Derived_Type_Def_Node);
begin
if not interfaces.Is_Null then
Log ("interfaces: " & interfaces.Debug_Text);
end if;
if not record_extension.Is_Null then
Log ("record_extension: " & record_extension.Debug_Text);
end if;
Log ("has_with_private: " & Boolean'Image(has_with_private));
end;
when ada_Enum_Type_Def =>
declare
Enum_Type_Def_Node : constant LAL.Enum_Type_Def := LAL.As_Enum_Type_Def (Node);
enum_literals : constant LAL.Enum_Literal_Decl_List := LAL.F_Enum_Literals (Enum_Type_Def_Node);
begin
Log ("enum_literals: " & enum_literals.Debug_Text);
end;
when ada_Formal_Discrete_Type_Def =>
declare
Formal_Discrete_Type_Def_Node : constant LAL.Formal_Discrete_Type_Def := LAL.As_Formal_Discrete_Type_Def (Node);
begin
NULL;
end;
when ada_Interface_Type_Def =>
declare
Interface_Type_Def_Node : constant LAL.Interface_Type_Def := LAL.As_Interface_Type_Def (Node);
interface_kind : constant LAL.Interface_Kind := LAL.F_Interface_Kind (Interface_Type_Def_Node);
begin
Log ("interface_kind: " & interface_kind.Debug_Text);
end;
when ada_Mod_Int_Type_Def =>
declare
Mod_Int_Type_Def_Node : constant LAL.Mod_Int_Type_Def := LAL.As_Mod_Int_Type_Def (Node);
expr : constant LAL.Expr := LAL.F_Expr (Mod_Int_Type_Def_Node);
begin
Log ("expr: " & expr.Debug_Text);
end;
when ada_Private_Type_Def =>
declare
Private_Type_Def_Node : constant LAL.Private_Type_Def := LAL.As_Private_Type_Def (Node);
has_abstract : constant Boolean := LAL.F_Has_Abstract (Private_Type_Def_Node);
has_tagged : constant Boolean := LAL.F_Has_Tagged (Private_Type_Def_Node);
has_limited : constant Boolean := LAL.F_Has_Limited (Private_Type_Def_Node);
begin
Log ("has_abstract: " & Boolean'Image(has_abstract));
Log ("has_tagged: " & Boolean'Image(has_tagged));
Log ("has_limited: " & Boolean'Image(has_limited));
end;
when ada_Decimal_Fixed_Point_Def =>
declare
Decimal_Fixed_Point_Def_Node : constant LAL.Decimal_Fixed_Point_Def := LAL.As_Decimal_Fixed_Point_Def (Node);
f_delta : constant LAL.Expr := LAL.F_Delta (Decimal_Fixed_Point_Def_Node);
f_digits : constant LAL.Expr := LAL.F_Digits (Decimal_Fixed_Point_Def_Node);
f_range : constant LAL.Range_Spec := LAL.F_Range (Decimal_Fixed_Point_Def_Node);
begin
Log ("f_delta: " & f_delta.Debug_Text);
Log ("f_digits: " & f_digits.Debug_Text);
if not f_range.Is_Null then
Log ("f_range: " & f_range.Debug_Text);
end if;
end;
when ada_Floating_Point_Def =>
declare
Floating_Point_Def_Node : constant LAL.Floating_Point_Def := LAL.As_Floating_Point_Def (Node);
num_digits : constant LAL.Expr := LAL.F_Num_Digits (Floating_Point_Def_Node);
f_range : constant LAL.Range_Spec := LAL.F_Range (Floating_Point_Def_Node);
begin
Log ("num_digits: " & num_digits.Debug_Text);
if not f_range.Is_Null then
Log ("f_range: " & f_range.Debug_Text);
end if;
end;
when ada_Ordinary_Fixed_Point_Def =>
declare
Ordinary_Fixed_Point_Def_Node : constant LAL.Ordinary_Fixed_Point_Def := LAL.As_Ordinary_Fixed_Point_Def (Node);
f_delta : constant LAL.Expr := LAL.F_Delta (Ordinary_Fixed_Point_Def_Node);
f_range : constant LAL.Range_Spec := LAL.F_Range (Ordinary_Fixed_Point_Def_Node);
begin
Log ("f_delta: " & f_delta.Debug_Text);
Log ("f_range: " & f_range.Debug_Text);
end;
when ada_Record_Type_Def =>
declare
Record_Type_Def_Node : constant LAL.Record_Type_Def := LAL.As_Record_Type_Def (Node);
has_abstract : constant Boolean := LAL.F_Has_Abstract (Record_Type_Def_Node);
has_tagged : constant Boolean := LAL.F_Has_Tagged (Record_Type_Def_Node);
has_limited : constant Boolean := LAL.F_Has_Limited (Record_Type_Def_Node);
begin
Log ("has_abstract: " & Boolean'Image(has_abstract));
Log ("has_tagged: " & Boolean'Image(has_tagged));
Log ("has_limited: " & Boolean'Image(has_limited));
end;
when ada_Signed_Int_Type_Def =>
declare
Signed_Int_Type_Def_Node : constant LAL.Signed_Int_Type_Def := LAL.As_Signed_Int_Type_Def (Node);
f_range : constant LAL.Range_Spec := LAL.F_Range (Signed_Int_Type_Def_Node);
begin
Log ("f_range: " & f_range.Debug_Text);
end;
end case;
end process_ada_Type_Def;
procedure process_ada_Type_Expr
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Type_Expr";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Type_Expr := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Type_Expr
case kind is
when ada_Anonymous_Type =>
declare
Anonymous_Type_Node : constant LAL.Anonymous_Type := LAL.As_Anonymous_Type (Node);
type_Decl : constant LAL.Anonymous_Type_Decl := LAL.F_Type_Decl (Anonymous_Type_Node);
begin
Log ("type_Decl: " & type_Decl.Debug_Text);
end;
when ada_Enum_Lit_Synth_Type_Expr =>
declare
Enum_Lit_Synth_Type_Expr_Node : constant LAL.Enum_Lit_Synth_Type_Expr := LAL.As_Enum_Lit_Synth_Type_Expr (Node);
begin
NULL;
end;
when ada_Subtype_Indication =>
declare
Subtype_Indication_Node : constant LAL.Subtype_Indication := LAL.As_Subtype_Indication (Node);
has_not_null : constant Boolean := LAL.F_Has_Not_Null (Subtype_Indication_Node);
name : constant LAL.Name := LAL.F_Name (Subtype_Indication_Node);
constraint : constant LAL.Constraint := LAL.F_Constraint (Subtype_Indication_Node);
begin
Log ("has_not_null: " & Boolean'Image(has_not_null));
Log ("name: " & name.Debug_Text);
if not constraint.Is_Null then
Log ("constraint: " & constraint.Debug_Text);
end if;
end;
when ada_Constrained_Subtype_Indication =>
declare
Constrained_Subtype_Indication_Node : constant LAL.Constrained_Subtype_Indication := LAL.As_Constrained_Subtype_Indication (Node);
begin
NULL;
end;
when ada_Discrete_Subtype_Indication =>
declare
Discrete_Subtype_Indication_Node : constant LAL.Discrete_Subtype_Indication := LAL.As_Discrete_Subtype_Indication (Node);
begin
NULL;
end;
end case;
end process_ada_Type_Expr;
procedure process_ada_Unconstrained_Array_Index_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Unconstrained_Array_Index_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Unconstrained_Array_Index_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Unconstrained_Array_Index_Range
case kind is
when ada_Unconstrained_Array_Index =>
declare
Unconstrained_Array_Index_Node : constant LAL.Unconstrained_Array_Index := LAL.As_Unconstrained_Array_Index (Node);
begin
NULL;
end;
end case;
end process_ada_Unconstrained_Array_Index_Range;
procedure process_ada_Until_Node
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Until_Node";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Until_Node := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Until_Node
case kind is
when ada_Until_Absent =>
declare
Until_Absent_Node : constant LAL.Until_Absent := LAL.As_Until_Absent (Node);
begin
NULL;
end;
when ada_Until_Present =>
declare
Until_Present_Node : constant LAL.Until_Present := LAL.As_Until_Present (Node);
begin
NULL;
end;
end case;
end process_ada_Until_Node;
procedure process_ada_Use_Clause
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Use_Clause";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Use_Clause := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Use_Clause
case kind is
when ada_Use_Package_Clause =>
declare
Use_Package_Clause_Node : constant LAL.Use_Package_Clause := LAL.As_Use_Package_Clause (Node);
packages : constant LAL.Name_List := LAL.F_Packages (Use_Package_Clause_Node);
begin
Log ("packages: " & packages.Debug_Text);
end;
when ada_Use_Type_Clause =>
declare
Use_Type_Clause_Node : constant LAL.Use_Type_Clause := LAL.As_Use_Type_Clause (Node);
has_all : constant Boolean := LAL.F_Has_All (Use_Type_Clause_Node);
types : constant LAL.Name_List := LAL.F_Types (Use_Type_Clause_Node);
begin
Log ("has_all: " & Boolean'Image(has_all));
Log ("types: " & types.Debug_Text);
end;
end case;
end process_ada_Use_Clause;
procedure process_ada_Variant_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Variant_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Variant_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Variant_Range
case kind is
when ada_Variant =>
declare
Variant_Node : constant LAL.Variant := LAL.As_Variant (Node);
choices : constant LAL.Alternatives_List := LAL.F_Choices (Variant_Node);
components : constant LAL.Component_List := LAL.F_Components (Variant_Node);
begin
Log ("choices: " & choices.Debug_Text);
Log ("components: " & components.Debug_Text);
end;
end case;
end process_ada_Variant_Range;
procedure process_ada_Variant_Part_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_Variant_Part_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_Variant_Part_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_Variant_Part_Range
case kind is
when ada_Variant_Part =>
declare
Variant_Part_Node : constant LAL.Variant_Part := LAL.As_Variant_Part (Node);
discr_name : constant LAL.Identifier := LAL.F_Discr_Name (Variant_Part_Node);
variant : constant LAL.Variant_List := LAL.F_Variant (Variant_Part_Node);
begin
Log ("discr_name: " & discr_name.Debug_Text);
Log ("variant: " & variant.Debug_Text);
end;
end case;
end process_ada_Variant_Part_Range;
procedure process_ada_With_Clause_Range
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_With_Clause_Range";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_With_Clause_Range := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_With_Clause_Range
case kind is
when ada_With_Clause =>
declare
With_Clause_Node : constant LAL.With_Clause := LAL.As_With_Clause (Node);
packages : constant LAL.Name_List := LAL.F_Packages (With_Clause_Node);
has_private : constant Boolean := LAL.F_Has_Private (With_Clause_Node);
has_limited : constant Boolean := LAL.F_Has_Limited (With_Clause_Node);
begin
Log ("packages: " & packages.Debug_Text);
Log ("has_private: " & Boolean'Image(has_private));
Log ("has_limited: " & Boolean'Image(has_limited));
end;
end case;
end process_ada_With_Clause_Range;
procedure process_ada_With_Private
(this : in out class;
-- node : in lal.stmt'class;
node : in lal.ada_node'class)
is
parent_name : constant string := module_name;
module_name : constant string := parent_name & ".process_With_Private";
package logging is new generic_logging (module_name); use logging;
-- auto : logging.auto_logger; -- logs begin and end
-- will raise declarative_part_error if node.kind is not in ada_stmt:
kind : constant lalco.ada_With_Private := node.kind;
use lalco; -- for subtype names in case stmt
begin -- process_ada_With_Private
case kind is
when ada_With_Private_Absent =>
declare
With_Private_Absent_Node : constant LAL.With_Private_Absent := LAL.As_With_Private_Absent (Node);
begin
NULL;
end;
when ada_With_Private_Present =>
declare
With_Private_Present_Node : constant LAL.With_Private_Present := LAL.As_With_Private_Present (Node);
begin
NULL;
end;
end case;
end process_ada_With_Private;
-- Do_Pre_Child_Processing and Do_Post_Child_Processing below are preserved
-- from Asis_Adapter for familiarity.
--
-- Asis_Adapter.Unit.Process indirectly calls Asis_Adapter.Element.
-- Process_Element_Tree, which calls an instance of generic
-- Asis.Iterator.Traverse_Element, instantiated with
-- Do_Pre_Child_Processing and Do_Post_Child_Processing.
--
-- Lal_Adapter.Unit.Process indirectly calls LAL.Compilation_Unit.Traverse
-- with a pointer that indrectly calls Lal_Adapter.Node.Process, which calls
-- Do_Pre_Child_Processing and Do_Post_Child_Processing.
procedure Do_Pre_Child_Processing
(This : in out Class;
Node : in LAL.Ada_Node'Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Do_Pre_Child_Processing";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
Result : a_nodes_h.Element_Struct renames This.A_Element;
Sloc_Range_Image : constant string := Slocs.Image (Node.Sloc_Range);
Kind : constant LALCO.Ada_Node_Kind_Type := Node.Kind;
Kind_Image : constant String := LALCO.Ada_Node_Kind_Type'Image (Kind);
Kind_Name : constant String := Node.Kind_Name;
Debug_Text : constant String := Node.Debug_Text;
procedure Add_Element_ID is begin
-- ID is in the Dot node twice (once in the Label and once in
-- Node_ID), but not in the a_node twice.
This.Add_To_Dot_Label (To_String (This.Element_IDs.First_Element));
Result.id := This.Element_IDs.First_Element;
end;
procedure Add_Node_Kind is begin
This.Add_To_Dot_Label ("Node_Kind", Kind_Image);
-- TODO: Result.Element_Kind := anhS.To_Element_Kinds (Element_Kind);
end;
procedure Add_Source_Location is
Unit : constant LAL.Analysis_Unit := Node.Unit;
File_Name : constant String := Unit.Get_Filename;
Sloc_Range : constant Slocs.Source_Location_Range := Node.Sloc_Range;
Image : constant String := To_String (Node.Full_Sloc_Image);
begin
This.Add_To_Dot_Label ("Source", Image);
Result.Source_Location :=
(Unit_Name => To_Chars_Ptr (File_Name),
First_Line => Interfaces.C.int (Sloc_Range.Start_Line),
First_Column => Interfaces.C.int (Sloc_Range.Start_Column),
Last_Line => Interfaces.C.int (Sloc_Range.End_Line),
Last_Column => Interfaces.C.int (Sloc_Range.End_Column));
end;
procedure Add_Enclosing_Element is
Value : constant a_nodes_h.Element_ID :=
-- Get_Element_ID (Node.P_Semantic_Parent);
Get_Element_ID (Node.Parent);
begin
-- State.Add_Dot_Edge (From => Enclosing_Element_Id,
-- To => State.Element_Id,
-- Label => "Child");
This.Add_To_Dot_Label ("Enclosing_Element", Value);
Result.Enclosing_Element_Id := Value;
end;
procedure Start_Output is
Default_Node : Dot.Node_Stmt.Class; -- Initialized
Default_Label : Dot.HTML_Like_Labels.Class; -- Initialized
-- Parent_Name : constant String := Module_Name;
-- Module_Name : constant String := Parent_Name & ".Start_Output";
-- package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
begin -- Start_Output
-- Set defaults:
Result := a_nodes_h.Support.Default_Element_Struct;
This.Outputs.Text.End_Line;
-- Element ID comes out on next line via Add_Element_ID:
This.Outputs.Text.Put_Indented_Line (String'("BEGIN "));
This.Outputs.Text.Indent;
This.Dot_Node := Default_Node;
This.Dot_Label := Default_Label;
-- Get ID:
This.Element_IDs.Prepend (Get_Element_ID (Node));
-- Log ( " Elem ID: " & To_String(Get_Element_ID (Node)));
This.Dot_Node.Node_ID.ID :=
To_Dot_ID_Type (This.Element_IDs.First_Element, Element_ID_Kind);
-- Result.Debug_Image := Debug_Image;
-- Put_Debug;
Add_Element_ID;
Add_Node_Kind;
Add_Enclosing_Element;
Add_Source_Location;
end Start_Output;
procedure Finish_Output is
-- Parent_Name : constant String := Module_Name;
-- Module_Name : constant String := Parent_Name & ".Finish_Output";
-- package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
begin
This.Dot_Node.Add_Label (This.Dot_Label);
This.Outputs.Graph.Append_Stmt
(new Dot.Node_Stmt.Class'(This.Dot_Node));
-- Depends on unique node ids:
This.Outputs.A_Nodes.Push (Result);
end Finish_Output;
use LALCO; -- For subtype names in case stmt
-- use type LALCO.Ada_Node_Kind_Type; -- For "="
begin -- Do_Pre_Child_Processing
-- Log ("Line" & Start_Line_Image & ": " & Kind_Image & ": " & Debug_Text);
-- if Node.Kind /= LALCO.Ada_Compilation_Unit then
Log ("Kind enum: " & Kind_Image & "; Kind name: " & Kind_Name & " at " & Sloc_Range_Image);
Start_Output;
-- Log (LAL.Image(Node));
-- if Kind in LALCO.Ada_Stmt then
-- Log ("Statement");
-- else
-- Log ("NOT a statement");
-- end if;
--
case Kind is
-- 3 included kinds:
when Ada_Abort_Node'First .. Ada_Abort_Node'Last =>
This.Process_Ada_Abort_Node (Node);
-- 3 included kinds:
when Ada_Abstract_Node'First .. Ada_Abstract_Node'Last =>
This.Process_Ada_Abstract_Node (Node);
-- 30 included kinds:
when Ada_Ada_List'First .. Ada_Ada_List'Last =>
This.Process_Ada_Ada_List (Node);
-- 3 included kinds:
when Ada_Aliased_Node'First .. Ada_Aliased_Node'Last =>
This.Process_Ada_Aliased_Node (Node);
-- 3 included kinds:
when Ada_All_Node'First .. Ada_All_Node'Last =>
This.Process_Ada_All_Node (Node);
-- 3 included kinds:
when Ada_Array_Indices'First .. Ada_Array_Indices'Last =>
This.Process_Ada_Array_Indices (Node);
-- 1 included kinds:
when Ada_Aspect_Assoc_Range'First .. Ada_Aspect_Assoc_Range'Last =>
This.Process_Ada_Aspect_Assoc_Range (Node);
-- 5 included kinds:
when Ada_Aspect_Clause'First .. Ada_Aspect_Clause'Last =>
This.Process_Ada_Aspect_Clause (Node);
-- 2 included kinds:
when Ada_Aspect_Spec_Range'First .. Ada_Aspect_Spec_Range'Last =>
this.process_ada_aspect_spec_range (node);
-- 3 included kinds:
when Ada_Base_Assoc'First .. Ada_Base_Assoc'Last =>
this.process_ada_Base_Assoc (node);
-- 3 included kinds:
when Ada_Base_Formal_Param_Holder'First .. Ada_Base_Formal_Param_Holder'Last =>
this.process_ada_Base_Formal_Param_Holder (node);
-- 3 included kinds:
when Ada_Base_Record_Def'First .. Ada_Base_Record_Def'Last =>
this.process_ada_Base_Record_Def (node);
-- 5 included kinds:
when Ada_Basic_Assoc'First .. Ada_Basic_Assoc'Last =>
this.process_ada_Basic_Assoc (node);
-- 74 included kinds:
when Ada_Basic_Decl'First .. Ada_Basic_Decl'Last =>
This.Process_Ada_Basic_Decl (Node);
-- 1 included kinds:
when Ada_Case_Stmt_Alternative_Range'First .. Ada_Case_Stmt_Alternative_Range'Last =>
This.Process_Ada_Case_Stmt_Alternative_Range (Node);
-- 1 included kinds:
when Ada_Compilation_Unit_Range'First .. Ada_Compilation_Unit_Range'Last =>
This.Process_Ada_Compilation_Unit_Range (Node);
-- 1 included kinds:
when Ada_Component_Clause_Range'First .. Ada_Component_Clause_Range'Last =>
This.Process_Ada_Component_Clause_Range (Node);
-- 1 included kinds:
when Ada_Component_Def_Range'First .. Ada_Component_Def_Range'Last =>
This.Process_Ada_Component_Def_Range (Node);
-- 6 included kinds:
when Ada_Constraint'First .. Ada_Constraint'Last =>
This.Process_Ada_Constraint (Node);
-- 3 included kinds:
when Ada_Constant_Node'First .. Ada_Constant_Node'Last =>
This.Process_Ada_Constant_Node (Node);
-- 3 included kinds:
when Ada_Declarative_Part_Range'First .. Ada_Declarative_Part_Range'Last =>
This.Process_Ada_Declarative_Part_Range (Node);
-- 1 included kinds:
when Ada_Elsif_Expr_Part_Range'First .. Ada_Elsif_Expr_Part_Range'Last =>
This.Process_Ada_Elsif_Expr_Part_Range (Node);
-- 1 included kinds:
when Ada_Elsif_Stmt_Part_Range'First .. Ada_Elsif_Stmt_Part_Range'Last =>
This.Process_Ada_Elsif_Stmt_Part_Range (Node);
-- 60 included kinds:
when Ada_Expr'First .. Ada_Expr'Last =>
This.Process_Ada_Expr (Node);
-- 1 included kinds:
when Ada_Handled_Stmts_Range'First .. Ada_Handled_Stmts_Range'Last =>
This.Process_Ada_Handled_Stmts_Range (Node);
-- 5 included kinds:
when Ada_Interface_Kind'First .. Ada_Interface_Kind'Last =>
This.Process_Ada_Interface_Kind (Node);
-- 3 included kinds:
when Ada_Iter_Type'First .. Ada_Iter_Type'Last =>
This.Process_Ada_Iter_Type (Node);
-- 2 included kinds:
when Ada_Library_Item_Range'First .. Ada_Library_Item_Range'Last =>
This.Process_Ada_Library_Item_Range (Node);
-- 3 included kinds:
when Ada_Limited_Node'First .. Ada_Limited_Node'Last =>
This.Process_Ada_Limited_Node (Node);
-- 3 included kinds:
when Ada_Loop_Spec'First .. Ada_Loop_Spec'Last =>
This.Process_Ada_Loop_Spec (Node);
-- 3 included kinds:
when Ada_Mode'First .. Ada_Mode'Last =>
This.Process_Ada_Mode (Node);
-- 3 included kinds:
when Ada_Not_Null'First .. Ada_Not_Null'Last =>
This.Process_Ada_Not_Null (Node);
-- 2 included kinds:
when Ada_Null_Component_Decl_Range'First .. Ada_Null_Component_Decl_Range'Last =>
This.Process_Ada_Null_Component_Decl_Range (Node);
-- 2 included kinds:
when Ada_Others_Designator_Range'First .. Ada_Others_Designator_Range'Last =>
This.Process_Ada_Others_Designator_Range (Node);
-- 4 included kinds:
when Ada_Overriding_Node'First .. Ada_Overriding_Node'Last =>
This.Process_Ada_Overriding_Node (Node);
-- 4 included kinds:
when Ada_Params_Range'First .. Ada_Params_Range'Last =>
This.Process_Ada_Params_Range (Node);
-- 4 included kinds:
when Ada_Pragma_Node_Range'First .. Ada_Pragma_Node_Range'Last =>
This.Process_Ada_Pragma_Node_Range (Node);
-- 4 included kinds:
when Ada_Prim_Type_Accessor_Range'First .. Ada_Prim_Type_Accessor_Range'Last =>
This.Process_Ada_Prim_Type_Accessor_Range (Node);
-- 4 included kinds:
when Ada_Private_Node'First .. Ada_Private_Node'Last =>
This.Process_Ada_Private_Node (Node);
-- 4 included kinds:
when Ada_Protected_Node'First .. Ada_Protected_Node'Last =>
This.Process_Ada_Protected_Node (Node);
-- 4 included kinds:
when Ada_Protected_Def_Range'First .. Ada_Protected_Def_Range'Last =>
This.Process_Ada_Protected_Def_Range (Node);
-- 3 included kinds:
when Ada_Quantifier'First .. Ada_Quantifier'Last =>
This.Process_Ada_Quantifier (Node);
-- 2 included kinds:
when Ada_Range_Spec_Range'First .. Ada_Range_Spec_Range'Last =>
This.Process_Ada_Range_Spec_Range (Node);
-- 3 included kinds:
when Ada_Renaming_Clause_Range'First .. Ada_Renaming_Clause_Range'Last =>
This.Process_Ada_Renaming_Clause_Range (Node);
-- 3 included kinds:
when Ada_Reverse_Node'First .. Ada_Reverse_Node'Last =>
This.Process_Ada_Reverse_Node (Node);
-- 2 included kinds:
when Ada_Select_When_Part_Range'First .. Ada_Select_When_Part_Range'Last =>
This.Process_Ada_Select_When_Part_Range (Node);
-- 31 (25?) included kinds:
when Ada_Stmt'First .. Ada_Stmt'Last =>
-- Log ("Tag: " & Ada.Tags.Expanded_Name (Node'Tag));
-- This.Process_Ada_Stmt (LAL.Stmt'Class (Node), Outputs);
This.Process_Ada_Stmt (Node);
-- 3 included kinds:
when Ada_Subp_Kind'First .. Ada_Subp_Kind'Last =>
This.Process_Ada_Subp_Kind (Node);
-- 2 included kinds:
when Ada_Subunit_Range'First .. Ada_Subunit_Range'Last =>
This.Process_Ada_Subunit_Range (Node);
-- 3 included kinds:
when Ada_Synchronized_Node'First .. Ada_Synchronized_Node'Last =>
This.Process_Ada_Synchronized_Node (Node);
-- 3 included kinds:
when Ada_Tagged_Node'First .. Ada_Tagged_Node'Last =>
This.Process_Ada_Tagged_Node (Node);
-- 2 included kinds:
when Ada_Task_Def_Range'First .. Ada_Task_Def_Range'Last =>
This.Process_Ada_Task_Def_Range (Node);
-- 17 included kinds:
when Ada_Type_Def'First .. Ada_Type_Def'Last =>
This.Process_Ada_Type_Def (Node);
-- 5 included kinds:
when Ada_Type_Expr'First .. Ada_Type_Expr'Last =>
This.Process_Ada_Type_Expr (Node);
-- 2 included kinds:
when Ada_Unconstrained_Array_Index_Range'First .. Ada_Unconstrained_Array_Index_Range'Last =>
This.Process_Ada_Unconstrained_Array_Index_Range (Node);
-- 3 included kinds:
when Ada_Until_Node'First .. Ada_Until_Node'Last =>
This.Process_Ada_Until_Node (Node);
-- 3 included kinds:
when Ada_Use_Clause'First .. Ada_Use_Clause'Last =>
This.Process_Ada_Use_Clause (Node);
-- 2 included kinds:
when Ada_Variant_Range'First .. Ada_Variant_Range'Last =>
This.Process_Ada_Variant_Range (Node);
-- 2 included kinds:
when Ada_Variant_Part_Range'First .. Ada_Variant_Part_Range'Last =>
This.Process_Ada_Variant_Part_Range (Node);
-- 2 included kinds:
when Ada_With_Clause_Range'First .. Ada_With_Clause_Range'Last =>
This.Process_Ada_With_Clause_Range (Node);
-- 3 included kinds:
when Ada_With_Private'First .. Ada_With_Private'Last =>
This.Process_Ada_With_Private (Node);
-- when Ada_Abort_Node'First .. Ada_Abort_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Abstract_Node'First .. Ada_Abstract_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Ada_List'First .. Ada_Ada_List'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Aliased_Node'First .. Ada_Aliased_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_All_Node'First .. Ada_All_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Array_Indices'First .. Ada_Array_Indices'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Aspect_Assoc_Range'First .. Ada_Aspect_Assoc_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Aspect_Clause'First .. Ada_Aspect_Clause'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Aspect_Spec_Range'First .. Ada_Aspect_Spec_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Base_Assoc'First .. Ada_Base_Assoc'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Base_Formal_Param_Holder'First .. Ada_Base_Formal_Param_Holder'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Base_Record_Def'First .. Ada_Base_Record_Def'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Basic_Assoc'First .. Ada_Basic_Assoc'Last =>
-- This.Add_Not_Implemented;
-- Moved to top:
-- when Ada_Basic_Decl'First .. Ada_Basic_Decl'Last =>
-- when Ada_Case_Stmt_Alternative_Range'First .. Ada_Case_Stmt_Alternative_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Compilation_Unit_Range'First .. Ada_Compilation_Unit_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Component_Clause_Range'First .. Ada_Component_Clause_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Component_Def_Range'First .. Ada_Component_Def_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Constraint'First .. Ada_Constraint'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Constant_Node'First .. Ada_Constant_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Declarative_Part_Range'First .. Ada_Declarative_Part_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Elsif_Expr_Part_Range'First .. Ada_Elsif_Expr_Part_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Elsif_Stmt_Part_Range'First .. Ada_Elsif_Stmt_Part_Range'Last =>
-- This.Add_Not_Implemented;
-- Moved to top:
-- when Ada_Expr'First .. Ada_Expr'Last =>
-- when Ada_Handled_Stmts_Range'First .. Ada_Handled_Stmts_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Interface_Kind'First .. Ada_Interface_Kind'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Iter_Type'First .. Ada_Iter_Type'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Library_Item_Range'First .. Ada_Library_Item_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Limited_Node'First .. Ada_Limited_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Loop_Spec'First .. Ada_Loop_Spec'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Mode'First .. Ada_Mode'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Not_Null'First .. Ada_Not_Null'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Null_Component_Decl_Range'First .. Ada_Null_Component_Decl_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Others_Designator_Range'First .. Ada_Others_Designator_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Overriding_Node'First .. Ada_Overriding_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Params_Range'First .. Ada_Params_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Pragma_Node_Range'First .. Ada_Pragma_Node_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Prim_Type_Accessor_Range'First .. Ada_Prim_Type_Accessor_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Private_Node'First .. Ada_Private_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Protected_Node'First .. Ada_Protected_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Protected_Def_Range'First .. Ada_Protected_Def_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Quantifier'First .. Ada_Quantifier'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Range_Spec_Range'First .. Ada_Range_Spec_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Renaming_Clause_Range'First .. Ada_Renaming_Clause_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Reverse_Node'First .. Ada_Reverse_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Select_When_Part_Range'First .. Ada_Select_When_Part_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Subp_Kind'First .. Ada_Subp_Kind'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Subunit_Range'First .. Ada_Subunit_Range'Last =>
-- This.Add_Not_Implemented;
-- Moved to top:
-- when Ada_Stmt'First .. Ada_Stmt'Last =>
-- when Ada_Synchronized_Node'First .. Ada_Synchronized_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Tagged_Node'First .. Ada_Tagged_Node'Last =>
-- This.Add_Not_Implemented;
-- Moved to top:
-- when Ada_Type_Def'First .. Ada_Type_Def'Last =>
-- when Ada_Task_Def_Range'First .. Ada_Task_Def_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Type_Expr'First .. Ada_Type_Expr'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Unconstrained_Array_Index_Range'First .. Ada_Unconstrained_Array_Index_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Until_Node'First .. Ada_Until_Node'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Use_Clause'First .. Ada_Use_Clause'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Variant_Range'First .. Ada_Variant_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_Variant_Part_Range'First .. Ada_Variant_Part_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_With_Clause_Range'First .. Ada_With_Clause_Range'Last =>
-- This.Add_Not_Implemented;
-- when Ada_With_Private'First .. Ada_With_Private'Last =>
-- This.Add_Not_Implemented;
end case;
Finish_Output;
-- end if;
exception
when X : External_Error | Internal_Error | Usage_Error =>
raise;
when X: others =>
Log_Exception (X);
Log ("No handler for this exception. Raising Internal_Error");
raise Internal_Error;
end Do_Pre_Child_Processing;
procedure Do_Post_Child_Processing
(This : in out Class) is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Do_Post_Child_Processing";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
begin -- Do_Post_Child_Processing
This.Outputs.Text.End_Line;
This.Outputs.Text.Dedent;
This.Outputs.Text.Put_Indented_Line
(String'("END " & To_String (This.Element_IDs.First_Element)));
This.Element_IDs.Delete_First;
exception
when X : External_Error | Internal_Error | Usage_Error =>
raise;
when X: others =>
Log_Exception (X);
Log ("No handler for this exception. Raising Internal_Error");
raise Internal_Error;
end Do_Post_Child_Processing;
------------
-- Exported:
------------
procedure Process
(This : in out Class;
Node : in LAL.Ada_Node'Class;
-- Options : in Options_Record;
Outputs : in Output_Accesses_Record)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & ".Process";
package Logging is new Generic_Logging (Module_Name); use Logging;
-- Auto : Logging.Auto_Logger; -- Logs BEGIN and END
begin
This.Outputs := Outputs;
Do_Pre_Child_Processing (This, Node);
Do_Post_Child_Processing (This);
end Process;
end Lal_Adapter.Node;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- (PPC ELF Version) --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Restrictions (No_Exception_Propagation);
-- Only local exception handling is supported in this profile
pragma Restrictions (No_Exception_Registration);
-- Disable exception name registration. This capability is not used because
-- it is only required by exception stream attributes which are not supported
-- in this run time.
pragma Restrictions (No_Implicit_Dynamic_Code);
-- Pointers to nested subprograms are not allowed in this run time, in order
-- to prevent the compiler from building "trampolines".
pragma Restrictions (No_Finalization);
-- Controlled types are not supported in this run time
pragma Restrictions (No_Tasking);
-- Tasking is not supported in this run time
pragma Discard_Names;
-- Disable explicitly the generation of names associated with entities in
-- order to reduce the amount of storage used. These names are not used anyway
-- (attributes such as 'Image and 'Value are not supported in this run time).
package System is
pragma Pure;
-- Note that we take advantage of the implementation permission to make
-- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
-- 2005, this is Pure in any case (AI-362).
pragma No_Elaboration_Code_All;
-- Allow the use of that restriction in units that WITH this unit
type Name is (SYSTEM_NAME_GNAT);
System_Name : constant Name := SYSTEM_NAME_GNAT;
-- System-Dependent Named Numbers
Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1);
Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1;
Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size;
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := Standard'Max_Integer_Size - 1;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
Tick : constant := 0.0;
-- Storage-related Declarations
type Address is private;
pragma Preelaborable_Initialization (Address);
Null_Address : constant Address;
Storage_Unit : constant := 8;
Word_Size : constant := 32;
Memory_Size : constant := 2 ** 32;
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order := High_Order_First;
pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
-- Priority-related Declarations (RM D.1)
-- ??? need comments explaining the values below
Max_Priority : constant Positive := 245;
Max_Interrupt_Priority : constant Positive := 255;
subtype Any_Priority is Integer range 0 .. 255;
subtype Priority is Any_Priority range 0 .. 245;
subtype Interrupt_Priority is Any_Priority range 246 .. 255;
Default_Priority : constant Priority := 122;
private
type Address is mod Memory_Size;
Null_Address : constant Address := 0;
--------------------------------------
-- System Implementation Parameters --
--------------------------------------
-- These parameters provide information about the target that is used
-- by the compiler. They are in the private part of System, where they
-- can be accessed using the special circuitry in the Targparm unit
-- whose source should be consulted for more detailed descriptions
-- of the individual switch values.
Atomic_Sync_Default : constant Boolean := False;
Backend_Divide_Checks : constant Boolean := False;
Backend_Overflow_Checks : constant Boolean := True;
Command_Line_Args : constant Boolean := False;
Configurable_Run_Time : constant Boolean := True;
Denorm : constant Boolean := True;
Duration_32_Bits : constant Boolean := True;
Exit_Status_Supported : constant Boolean := False;
Fractional_Fixed_Ops : constant Boolean := False;
Frontend_Layout : constant Boolean := False;
Machine_Overflows : constant Boolean := False;
Machine_Rounds : constant Boolean := True;
Preallocated_Stacks : constant Boolean := False;
Signed_Zeros : constant Boolean := True;
Stack_Check_Default : constant Boolean := False;
Stack_Check_Probes : constant Boolean := False;
Stack_Check_Limits : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;
Always_Compatible_Rep : constant Boolean := True;
Suppress_Standard_Library : constant Boolean := True;
Use_Ada_Main_Program_Name : constant Boolean := False;
Frontend_Exceptions : constant Boolean := False;
ZCX_By_Default : constant Boolean := True;
end System;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="17">
<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>rxEngPacketDropper</name>
<module_structure>Pipeline</module_structure>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>8</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>DataOutApp_V_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>3458491835</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>512</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>DataOutApp_V_keep_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1627914923</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>DataOutApp_V_strb_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>DataOutApp_V_user_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>96</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>DataOutApp_V_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>DataOutApp_V_dest_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</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>9</id>
<name>rthDropFifo</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271655824</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>160</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>
<item class_id_reference="3" object_id="_8">
<Value>
<Obj>
<type>1</type>
<id>15</id>
<name>ureDataPayload</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271917152</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1024</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>42</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>repd_state_load</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>80</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>0.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>response_drop_V_load</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_base.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>931</lineNumber>
<contextFuncName>operator!</contextFuncName>
<contextNormFuncName>operator_inv</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_base.h</first>
<second>operator!</second>
</first>
<second>931</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4269847568</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>81</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>0.00</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>br_ln206</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>206</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>206</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4269988688</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>82</item>
<item>83</item>
<item>84</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>tmp_i</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>136</lineNumber>
<contextFuncName>empty</contextFuncName>
<contextNormFuncName>empty</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>empty</second>
</first>
<second>136</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control>auto</control>
<opType>fifo</opType>
<implIndex>memory</implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>78</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>86</item>
<item>87</item>
<item>89</item>
</oprand_edges>
<opcode>nbreadreq</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="_13">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>br_ln208</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>208</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>208</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4268850320</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>90</item>
<item>91</item>
<item>92</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>rthDropFifo_read</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control>auto</control>
<opType>fifo</opType>
<implIndex>memory</implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>78</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>160</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>94</item>
<item>95</item>
<item>397</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.15</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>trunc_ln145_1</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4270749328</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>96</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>response_id_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271919888</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>97</item>
<item>98</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>0.00</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>trunc_ln145_6</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>100</item>
<item>101</item>
<item>103</item>
<item>105</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>response_user_myIP_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>106</item>
<item>107</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>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>trunc_ln145_7</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>108</item>
<item>109</item>
<item>111</item>
<item>113</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>response_user_theirIP_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>114</item>
<item>115</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>0.00</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>trunc_ln145_8</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271791968</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>117</item>
<item>118</item>
<item>120</item>
<item>122</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>response_user_myPort_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271796912</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>123</item>
<item>124</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>0.00</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>trunc_ln145_9</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271789344</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>125</item>
<item>126</item>
<item>128</item>
<item>130</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>response_user_theirPort_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271795856</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>131</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>0.00</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>tmp</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271786720</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>134</item>
<item>135</item>
<item>137</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>17</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>response_drop_V_write_ln145</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271791616</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>138</item>
<item>139</item>
<item>395</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>0.00</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>repd_state_write_ln0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271049120</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>141</item>
<item>142</item>
<item>394</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>0.38</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>br_ln211</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>211</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>211</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>143</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name>br_ln212</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>212</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>212</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271781856</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>144</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>21</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>tmp_i_112</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>136</lineNumber>
<contextFuncName>empty</contextFuncName>
<contextNormFuncName>empty</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>empty</second>
</first>
<second>136</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control>auto</control>
<opType>fifo</opType>
<implIndex>memory</implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>78</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>146</item>
<item>147</item>
<item>148</item>
</oprand_edges>
<opcode>nbreadreq</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="_31">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>br_ln214</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4272870112</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>149</item>
<item>150</item>
<item>151</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name>ureDataPayload_read</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control>auto</control>
<opType>fifo</opType>
<implIndex>memory</implIndex>
<coreName>FIFO</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>78</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1024</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>153</item>
<item>154</item>
<item>398</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.15</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>tmp_27</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>224</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>512</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>155</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>25</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name>tmp_28</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271798464</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>157</item>
<item>158</item>
<item>160</item>
<item>162</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>26</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>currWord_last_V</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>read</contextFuncName>
<contextNormFuncName>read</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/hls_stream_39.h</first>
<second>read</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>currWord.last.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271799232</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>164</item>
<item>165</item>
<item>167</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>27</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>tmp_31</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>218</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>218</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271808960</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>168</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>0.00</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>v2_V</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>308</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</first>
<second>get</second>
</first>
<second>308</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>v2.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>6775156</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>169</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>0.00</m_delay>
<m_topoIndex>35</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>v2_V_3</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>308</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</first>
<second>get</second>
</first>
<second>308</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>v2.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271811584</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>170</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>0.00</m_delay>
<m_topoIndex>36</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name>v2_V_4</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>308</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</first>
<second>get</second>
</first>
<second>308</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>v2.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271812616</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>171</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>0.00</m_delay>
<m_topoIndex>37</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name>v1_V</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>309</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</first>
<second>get</second>
</first>
<second>309</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>v1.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271803712</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>172</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>0.00</m_delay>
<m_topoIndex>38</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>p_Result_s</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>312</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_ref.h</first>
<second>get</second>
</first>
<second>312</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>174</item>
<item>175</item>
<item>176</item>
<item>177</item>
<item>178</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>39</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name>br_ln221</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702258035</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>179</item>
<item>180</item>
<item>181</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>28</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>DataOutApp_V_data_V_write_ln304</name>
<fileName>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_axi_sdata.h</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>304</lineNumber>
<contextFuncName>write</contextFuncName>
<contextNormFuncName>write</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/tools/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot/ap_axi_sdata.h</first>
<second>write</second>
</first>
<second>304</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control>auto</control>
<opType>adapter</opType>
<implIndex>axi4stream</implIndex>
<coreName>axis</coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>123</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>13</count>
<item_version>0</item_version>
<item>183</item>
<item>184</item>
<item>185</item>
<item>186</item>
<item>187</item>
<item>188</item>
<item>189</item>
<item>190</item>
<item>191</item>
<item>193</item>
<item>194</item>
<item>195</item>
<item>196</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>40</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>br_ln222</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>222</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>222</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271802800</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>197</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>41</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>br_ln223</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>223</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>223</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>384</coreId>
<rtlModuleName></rtlModuleName>
</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>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name>repd_state_write_ln0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271373264</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>202</item>
<item>203</item>
<item>396</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>0.38</m_delay>
<m_topoIndex>30</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>br_ln224</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>224</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>224</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271374088</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>204</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name>br_ln225</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>225</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>225</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4272611088</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>205</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name>br_ln226</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</fileName>
<fileDirectory>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</fileDirectory>
<lineNumber>226</lineNumber>
<contextFuncName>rxEngPacketDropper</contextFuncName>
<contextNormFuncName>rxEngPacketDropper</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/UDP/udp.cpp</first>
<second>rxEngPacketDropper</second>
</first>
<second>226</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4272613392</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>206</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name>_ln0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271784368</coreId>
<rtlModuleName></rtlModuleName>
</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>42</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_51">
<Value>
<Obj>
<type>2</type>
<id>88</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271785312</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_52">
<Value>
<Obj>
<type>2</type>
<id>102</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271047600</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>32</content>
</item>
<item class_id_reference="16" object_id="_53">
<Value>
<Obj>
<type>2</type>
<id>104</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271044160</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>63</content>
</item>
<item class_id_reference="16" object_id="_54">
<Value>
<Obj>
<type>2</type>
<id>110</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271786880</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>64</content>
</item>
<item class_id_reference="16" object_id="_55">
<Value>
<Obj>
<type>2</type>
<id>112</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>544828517</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>95</content>
</item>
<item class_id_reference="16" object_id="_56">
<Value>
<Obj>
<type>2</type>
<id>119</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>807414846</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>96</content>
</item>
<item class_id_reference="16" object_id="_57">
<Value>
<Obj>
<type>2</type>
<id>121</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1936484392</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>111</content>
</item>
<item class_id_reference="16" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>127</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1747394670</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>112</content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>129</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2019638381</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>127</content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>136</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>128</content>
</item>
<item class_id_reference="16" object_id="_61">
<Value>
<Obj>
<type>2</type>
<id>140</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702129263</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_62">
<Value>
<Obj>
<type>2</type>
<id>159</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>828326990</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>512</content>
</item>
<item class_id_reference="16" object_id="_63">
<Value>
<Obj>
<type>2</type>
<id>161</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1931498832</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>575</content>
</item>
<item class_id_reference="16" object_id="_64">
<Value>
<Obj>
<type>2</type>
<id>166</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1129521725</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>576</content>
</item>
<item class_id_reference="16" object_id="_65">
<Value>
<Obj>
<type>2</type>
<id>192</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4272493232</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>5</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_66">
<Value>
<Obj>
<type>2</type>
<id>201</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>574453865</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_67">
<Obj>
<type>3</type>
<id>29</id>
<name>entry</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1279795712</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>26</item>
<item>27</item>
<item>28</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_68">
<Obj>
<type>3</type>
<id>32</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271760064</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>30</item>
<item>31</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_69">
<Obj>
<type>3</type>
<id>48</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>73715744</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>15</count>
<item_version>0</item_version>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_70">
<Obj>
<type>3</type>
<id>50</id>
<name>._crit_edge.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271781344</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>49</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_71">
<Obj>
<type>3</type>
<id>53</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271782656</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>51</item>
<item>52</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_72">
<Obj>
<type>3</type>
<id>65</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>11</count>
<item_version>0</item_version>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>64</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_73">
<Obj>
<type>3</type>
<id>68</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271801088</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>66</item>
<item>67</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_74">
<Obj>
<type>3</type>
<id>70</id>
<name>._crit_edge2.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1952803683</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>69</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_75">
<Obj>
<type>3</type>
<id>73</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1445951598</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>71</item>
<item>72</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_76">
<Obj>
<type>3</type>
<id>75</id>
<name>._crit_edge3.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1768843590</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>74</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_77">
<Obj>
<type>3</type>
<id>77</id>
<name>._crit_edge1.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1819243365</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>76</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_78">
<Obj>
<type>3</type>
<id>79</id>
<name>rxEngPacketDropper.exit</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4271783952</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>78</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>108</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_79">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>82</id>
<edge_type>1</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="_82">
<id>83</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>84</id>
<edge_type>2</edge_type>
<source_obj>53</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>90</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>91</id>
<edge_type>2</edge_type>
<source_obj>50</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>92</id>
<edge_type>2</edge_type>
<source_obj>48</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>96</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="_91">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>119</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>121</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>128</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>136</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>138</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>140</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>142</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_119">
<id>143</id>
<edge_type>2</edge_type>
<source_obj>50</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_120">
<id>144</id>
<edge_type>2</edge_type>
<source_obj>79</source_obj>
<sink_obj>49</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_121">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_122">
<id>148</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_123">
<id>149</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_124">
<id>150</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_125">
<id>151</id>
<edge_type>2</edge_type>
<source_obj>65</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_126">
<id>154</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_127">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_128">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_129">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>159</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_130">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>161</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_131">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_132">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>166</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_133">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>58</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_134">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_135">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_136">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_137">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_138">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_139">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_140">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_141">
<id>178</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_142">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_143">
<id>180</id>
<edge_type>2</edge_type>
<source_obj>68</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_144">
<id>181</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_145">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_146">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_147">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_148">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_149">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_150">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_151">
<id>190</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_152">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_153">
<id>193</id>
<edge_type>1</edge_type>
<source_obj>192</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_154">
<id>194</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_155">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_156">
<id>196</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_157">
<id>197</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_158">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_159">
<id>199</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_160">
<id>200</id>
<edge_type>2</edge_type>
<source_obj>73</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_161">
<id>202</id>
<edge_type>1</edge_type>
<source_obj>201</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_162">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_163">
<id>204</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_164">
<id>205</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_165">
<id>206</id>
<edge_type>2</edge_type>
<source_obj>79</source_obj>
<sink_obj>76</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_166">
<id>378</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_167">
<id>379</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_168">
<id>380</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_169">
<id>381</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_170">
<id>382</id>
<edge_type>2</edge_type>
<source_obj>48</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_171">
<id>383</id>
<edge_type>2</edge_type>
<source_obj>50</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_172">
<id>384</id>
<edge_type>2</edge_type>
<source_obj>53</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_173">
<id>385</id>
<edge_type>2</edge_type>
<source_obj>53</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_174">
<id>386</id>
<edge_type>2</edge_type>
<source_obj>65</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_175">
<id>387</id>
<edge_type>2</edge_type>
<source_obj>65</source_obj>
<sink_obj>68</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_176">
<id>388</id>
<edge_type>2</edge_type>
<source_obj>68</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_177">
<id>389</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>73</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_178">
<id>390</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_179">
<id>391</id>
<edge_type>2</edge_type>
<source_obj>73</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_180">
<id>392</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_181">
<id>393</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_182">
<id>394</id>
<edge_type>4</edge_type>
<source_obj>26</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_183">
<id>395</id>
<edge_type>4</edge_type>
<source_obj>27</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_184">
<id>396</id>
<edge_type>4</edge_type>
<source_obj>26</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_185">
<id>397</id>
<edge_type>4</edge_type>
<source_obj>30</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_186">
<id>398</id>
<edge_type>4</edge_type>
<source_obj>51</source_obj>
<sink_obj>54</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="_187">
<mId>1</mId>
<mTag>rxEngPacketDropper</mTag>
<mNormTag>rxEngPacketDropper</mNormTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>12</count>
<item_version>0</item_version>
<item>29</item>
<item>32</item>
<item>48</item>
<item>50</item>
<item>53</item>
<item>65</item>
<item>68</item>
<item>70</item>
<item>73</item>
<item>75</item>
<item>77</item>
<item>79</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2</mMinLatency>
<mMaxLatency>2</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_188">
<states class_id="25" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_189">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>43</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_190">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_191">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_192">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_193">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_194">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_195">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_196">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_197">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_198">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_199">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_200">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_201">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_202">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_203">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_204">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_205">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_206">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_207">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_208">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_209">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_210">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_211">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_212">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_213">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_214">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_215">
<id>43</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_216">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_217">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_218">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_219">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_220">
<id>49</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_221">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_222">
<id>52</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_223">
<id>54</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_224">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_225">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_226">
<id>57</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_227">
<id>64</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_228">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_229">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_230">
<id>72</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_231">
<id>74</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_232">
<id>76</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_233">
<id>2</id>
<operations>
<count>7</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_234">
<id>58</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_235">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_236">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_237">
<id>61</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_238">
<id>62</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_239">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_240">
<id>66</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_241">
<id>3</id>
<operations>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_242">
<id>66</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_243">
<id>67</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_244">
<id>78</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="_245">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>-1</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_246">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="35" tracking_level="0" version="0">
<count>42</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="0" version="0">
<first>26</first>
<second class_id="37" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="38" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="39" tracking_level="0" version="0">
<first>29</first>
<second class_id="40" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>79</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="41" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="42" tracking_level="1" version="0" object_id="_247">
<region_name>rxEngPacketDropper</region_name>
<basic_blocks>
<count>12</count>
<item_version>0</item_version>
<item>29</item>
<item>32</item>
<item>48</item>
<item>50</item>
<item>53</item>
<item>65</item>
<item>68</item>
<item>70</item>
<item>73</item>
<item>75</item>
<item>77</item>
<item>79</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>3</pipe_depth>
<mDBIIViolationVec class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</mDBIIViolationVec>
</item>
</regions>
<dp_fu_nodes class_id="44" tracking_level="0" version="0">
<count>30</count>
<item_version>0</item_version>
<item class_id="45" tracking_level="0" version="0">
<first>98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>106</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>126</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>66</item>
<item>66</item>
</second>
</item>
<item>
<first>149</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>153</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>157</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
<item>
<first>167</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>177</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
<item>
<first>183</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
<item>
<first>209</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</second>
</item>
<item>
<first>215</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>42</item>
</second>
</item>
<item>
<first>225</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</second>
</item>
<item>
<first>231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>46</item>
</second>
</item>
<item>
<first>251</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>255</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>265</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>273</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>71</item>
</second>
</item>
<item>
<first>279</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>284</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>288</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>292</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>296</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>300</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="47" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>currWord_last_V_fu_265</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>p_Result_s_fu_300</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>tmp_27_fu_251</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>tmp_28_fu_255</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>tmp_fu_231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>trunc_ln145_1_fu_157</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>trunc_ln145_6_fu_167</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>trunc_ln145_7_fu_183</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>trunc_ln145_8_fu_199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
<item>
<first>trunc_ln145_9_fu_215</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>42</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>20</count>
<item_version>0</item_version>
<item>
<first>grp_write_fu_126</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>66</item>
<item>66</item>
</second>
</item>
<item>
<first>repd_state_load_load_fu_149</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>response_drop_V_load_load_fu_153</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>rthDropFifo_read_read_fu_106</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>store_ln0_store_fu_245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>46</item>
</second>
</item>
<item>
<first>store_ln0_store_fu_273</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>71</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_177</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_209</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_225</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</second>
</item>
<item>
<first>store_ln145_store_fu_239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>tmp_31_load_fu_279</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>tmp_i_112_nbreadreq_fu_112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>tmp_i_nbreadreq_fu_98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>ureDataPayload_read_read_fu_120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
<item>
<first>v1_V_load_fu_296</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>v2_V_3_load_fu_288</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>v2_V_4_load_fu_292</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>v2_V_load_fu_284</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</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="49" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>8</count>
<item_version>0</item_version>
<item>
<first>313</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>317</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>324</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>328</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>333</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>338</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>343</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>348</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>8</count>
<item_version>0</item_version>
<item>
<first>currWord_last_V_reg_338</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>p_Result_s_reg_348</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>repd_state_load_reg_313</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>response_drop_V_load_reg_317</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>tmp_27_reg_328</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>tmp_28_reg_333</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>tmp_31_reg_343</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>tmp_i_112_reg_324</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="50" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="51" tracking_level="0" version="0">
<first>DataOutApp_V_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>DataOutApp_V_dest_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>DataOutApp_V_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>DataOutApp_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>DataOutApp_V_strb_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>DataOutApp_V_user_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</second>
</item>
<item>
<first>rthDropFifo</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>nbreadreq</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
</second>
</item>
<item>
<first>ureDataPayload</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>nbreadreq</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core>
<count>2</count>
<item_version>0</item_version>
<item>
<first>9</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
</port2core>
<node2core>
<count>5</count>
<item_version>0</item_version>
<item>
<first>30</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>1150</first>
<second>7</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>888</first>
<second>111</second>
</second>
</item>
</node2core>
</syndb>
</boost_serialization>
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . T A S K _ I N F O --
-- --
-- S p e c --
-- --
-- Copyright (C) 2007-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the definitions and routines associated with the
-- implementation and use of the Task_Info pragma. It is specialized
-- appropriately for targets that make use of this pragma.
-- Note: the compiler generates direct calls to this interface, via Rtsfind.
-- Any changes to this interface may require corresponding compiler changes.
-- This unit may be used directly from an application program by providing
-- an appropriate WITH, and the interface can be expected to remain stable.
-- This is the Windows (native) version of this module
with System.Win32;
package System.Task_Info is
pragma Preelaborate;
pragma Elaborate_Body;
-- To ensure that a body is allowed
use type System.Win32.ProcessorId;
-- Windows provides a way to define the ideal processor to use for a given
-- thread. The ideal processor is not necessarily the one that will be used
-- by the OS but the OS will always try to schedule this thread to the
-- specified processor if it is available.
-- The Task_Info pragma:
-- pragma Task_Info (EXPRESSION);
-- allows the specification on a task by task basis of a value of type
-- System.Task_Info.Task_Info_Type to be passed to a task when it is
-- created. The specification of this type, and the effect on the task
-- that is created is target dependent.
-- The Task_Info pragma appears within a task definition (compare the
-- definition and implementation of pragma Priority). If no such pragma
-- appears, then the value Unspecified_Task_Info is passed. If a pragma
-- is present, then it supplies an alternative value. If the argument of
-- the pragma is a discriminant reference, then the value can be set on
-- a task by task basis by supplying the appropriate discriminant value.
-- Note that this means that the type used for Task_Info_Type must be
-- suitable for use as a discriminant (i.e. a scalar or access type).
-----------------------
-- Thread Attributes --
-----------------------
subtype CPU_Number is System.Win32.ProcessorId;
Any_CPU : constant CPU_Number := -1;
Invalid_CPU_Number : exception;
-- Raised when an invalid CPU number has been specified
-- i.e. CPU > Number_Of_Processors.
type Thread_Attributes is record
CPU : CPU_Number := Any_CPU;
end record;
Default_Thread_Attributes : constant Thread_Attributes := (others => <>);
type Task_Info_Type is access all Thread_Attributes;
Unspecified_Task_Info : constant Task_Info_Type := null;
function Number_Of_Processors return Positive;
-- Returns the number of processors on the running host
end System.Task_Info;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- SYSTEM.TASKING.ASYNC_DELAYS.ENQUEUE_CALENDAR --
-- --
-- S p e c --
-- --
-- Copyright (C) 1998-2020, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- Note: the compiler generates direct calls to this interface, via Rtsfind.
-- Any changes to this interface may require corresponding compiler changes.
-- See comments in package System.Tasking.Async_Delays
with Ada.Calendar;
function System.Tasking.Async_Delays.Enqueue_Calendar
(T : Ada.Calendar.Time;
D : Delay_Block_Access) return Boolean;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S N A M E S --
-- --
-- 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. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Namet; use Namet;
with Opt; use Opt;
with Table;
package body Snames is
-- Table used to record convention identifiers
type Convention_Id_Entry is record
Name : Name_Id;
Convention : Convention_Id;
end record;
package Convention_Identifiers is new Table.Table (
Table_Component_Type => Convention_Id_Entry,
Table_Index_Type => Int,
Table_Low_Bound => 1,
Table_Initial => 50,
Table_Increment => 200,
Table_Name => "Name_Convention_Identifiers");
-- Table of names to be set by Initialize. Each name is terminated by a
-- single #, and the end of the list is marked by a null entry, i.e. by
-- two # marks in succession. Note that the table does not include the
-- entries for a-z, since these are initialized by Namet itself.
Preset_Names : constant String :=
"_parent#" &
"_tag#" &
"off#" &
"space#" &
"time#" &
"_abort_signal#" &
"_alignment#" &
"_assign#" &
"_atcb#" &
"_chain#" &
"_clean#" &
"_controller#" &
"_entry_bodies#" &
"_expunge#" &
"_final_list#" &
"_idepth#" &
"_init#" &
"_local_final_list#" &
"_master#" &
"_object#" &
"_priority#" &
"_process_atsd#" &
"_secondary_stack#" &
"_service#" &
"_size#" &
"_stack#" &
"_tags#" &
"_task#" &
"_task_id#" &
"_task_info#" &
"_task_name#" &
"_trace_sp#" &
"_disp_asynchronous_select#" &
"_disp_conditional_select#" &
"_disp_get_prim_op_kind#" &
"_disp_timed_select#" &
"_disp_get_task_id#" &
"initialize#" &
"adjust#" &
"finalize#" &
"next#" &
"prev#" &
"_typecode#" &
"_from_any#" &
"_to_any#" &
"allocate#" &
"deallocate#" &
"dereference#" &
"decimal_io#" &
"enumeration_io#" &
"fixed_io#" &
"float_io#" &
"integer_io#" &
"modular_io#" &
"const#" &
"<error>#" &
"go#" &
"put#" &
"put_line#" &
"to#" &
"finalization#" &
"finalization_root#" &
"interfaces#" &
"standard#" &
"system#" &
"text_io#" &
"wide_text_io#" &
"wide_wide_text_io#" &
"no_dsa#" &
"garlic_dsa#" &
"polyorb_dsa#" &
"addr#" &
"async#" &
"get_active_partition_id#" &
"get_rci_package_receiver#" &
"get_rci_package_ref#" &
"origin#" &
"params#" &
"partition#" &
"partition_interface#" &
"ras#" &
"call#" &
"rci_name#" &
"receiver#" &
"result#" &
"rpc#" &
"subp_id#" &
"operation#" &
"argument#" &
"arg_modes#" &
"handler#" &
"target#" &
"req#" &
"obj_typecode#" &
"stub#" &
"Oabs#" &
"Oand#" &
"Omod#" &
"Onot#" &
"Oor#" &
"Orem#" &
"Oxor#" &
"Oeq#" &
"One#" &
"Olt#" &
"Ole#" &
"Ogt#" &
"Oge#" &
"Oadd#" &
"Osubtract#" &
"Oconcat#" &
"Omultiply#" &
"Odivide#" &
"Oexpon#" &
"ada_83#" &
"ada_95#" &
"ada_05#" &
"ada_2005#" &
"assertion_policy#" &
"c_pass_by_copy#" &
"compile_time_warning#" &
"component_alignment#" &
"convention_identifier#" &
"debug_policy#" &
"detect_blocking#" &
"discard_names#" &
"elaboration_checks#" &
"eliminate#" &
"explicit_overriding#" &
"extend_system#" &
"extensions_allowed#" &
"external_name_casing#" &
"float_representation#" &
"initialize_scalars#" &
"interrupt_state#" &
"license#" &
"locking_policy#" &
"long_float#" &
"no_run_time#" &
"no_strict_aliasing#" &
"normalize_scalars#" &
"polling#" &
"persistent_bss#" &
"profile#" &
"profile_warnings#" &
"propagate_exceptions#" &
"queuing_policy#" &
"ravenscar#" &
"restricted_run_time#" &
"restrictions#" &
"restriction_warnings#" &
"reviewable#" &
"source_file_name#" &
"source_file_name_project#" &
"style_checks#" &
"suppress#" &
"suppress_exception_locations#" &
"task_dispatching_policy#" &
"universal_data#" &
"unsuppress#" &
"use_vads_size#" &
"validity_checks#" &
"warnings#" &
"abort_defer#" &
"all_calls_remote#" &
"annotate#" &
"assert#" &
"asynchronous#" &
"atomic#" &
"atomic_components#" &
"attach_handler#" &
"comment#" &
"common_object#" &
"complete_representation#" &
"complex_representation#" &
"controlled#" &
"convention#" &
"cpp_class#" &
"cpp_constructor#" &
"cpp_virtual#" &
"cpp_vtable#" &
"debug#" &
"elaborate#" &
"elaborate_all#" &
"elaborate_body#" &
"export#" &
"export_exception#" &
"export_function#" &
"export_object#" &
"export_procedure#" &
"export_value#" &
"export_valued_procedure#" &
"external#" &
"finalize_storage_only#" &
"ident#" &
"import#" &
"import_exception#" &
"import_function#" &
"import_object#" &
"import_procedure#" &
"import_valued_procedure#" &
"inline#" &
"inline_always#" &
"inline_generic#" &
"inspection_point#" &
"interface_name#" &
"interrupt_handler#" &
"interrupt_priority#" &
"java_constructor#" &
"java_interface#" &
"keep_names#" &
"link_with#" &
"linker_alias#" &
"linker_constructor#" &
"linker_destructor#" &
"linker_options#" &
"linker_section#" &
"list#" &
"machine_attribute#" &
"main#" &
"main_storage#" &
"memory_size#" &
"no_return#" &
"obsolescent#" &
"optimize#" &
"optional_overriding#" &
"pack#" &
"page#" &
"passive#" &
"preelaborate#" &
"preelaborate_05#" &
"priority#" &
"psect_object#" &
"pure#" &
"pure_05#" &
"pure_function#" &
"remote_call_interface#" &
"remote_types#" &
"share_generic#" &
"shared#" &
"shared_passive#" &
"source_reference#" &
"stream_convert#" &
"subtitle#" &
"suppress_all#" &
"suppress_debug_info#" &
"suppress_initialization#" &
"system_name#" &
"task_info#" &
"task_name#" &
"task_storage#" &
"thread_body#" &
"time_slice#" &
"title#" &
"unchecked_union#" &
"unimplemented_unit#" &
"unreferenced#" &
"unreserve_all_interrupts#" &
"volatile#" &
"volatile_components#" &
"weak_external#" &
"ada#" &
"assembler#" &
"cobol#" &
"cpp#" &
"fortran#" &
"intrinsic#" &
"java#" &
"stdcall#" &
"stubbed#" &
"asm#" &
"assembly#" &
"default#" &
"dll#" &
"win32#" &
"as_is#" &
"attribute_name#" &
"body_file_name#" &
"boolean_entry_barriers#" &
"check#" &
"casing#" &
"code#" &
"component#" &
"component_size_4#" &
"copy#" &
"d_float#" &
"descriptor#" &
"dot_replacement#" &
"dynamic#" &
"entity#" &
"entry_count#" &
"external_name#" &
"first_optional_parameter#" &
"form#" &
"g_float#" &
"gcc#" &
"gnat#" &
"gpl#" &
"ieee_float#" &
"ignore#" &
"info#" &
"internal#" &
"link_name#" &
"lowercase#" &
"max_entry_queue_depth#" &
"max_entry_queue_length#" &
"max_size#" &
"mechanism#" &
"message#" &
"mixedcase#" &
"modified_gpl#" &
"name#" &
"nca#" &
"no#" &
"no_dependence#" &
"no_dynamic_attachment#" &
"no_dynamic_interrupts#" &
"no_requeue#" &
"no_requeue_statements#" &
"no_task_attributes#" &
"no_task_attributes_package#" &
"on#" &
"parameter_types#" &
"reference#" &
"restricted#" &
"result_mechanism#" &
"result_type#" &
"runtime#" &
"sb#" &
"secondary_stack_size#" &
"section#" &
"semaphore#" &
"simple_barriers#" &
"spec_file_name#" &
"state#" &
"static#" &
"stack_size#" &
"subunit_file_name#" &
"task_stack_size_default#" &
"task_type#" &
"time_slicing_enabled#" &
"top_guard#" &
"uba#" &
"ubs#" &
"ubsb#" &
"unit_name#" &
"unknown#" &
"unrestricted#" &
"uppercase#" &
"user#" &
"vax_float#" &
"vms#" &
"vtable_ptr#" &
"working_storage#" &
"abort_signal#" &
"access#" &
"address#" &
"address_size#" &
"aft#" &
"alignment#" &
"asm_input#" &
"asm_output#" &
"ast_entry#" &
"bit#" &
"bit_order#" &
"bit_position#" &
"body_version#" &
"callable#" &
"caller#" &
"code_address#" &
"component_size#" &
"compose#" &
"constrained#" &
"count#" &
"default_bit_order#" &
"definite#" &
"delta#" &
"denorm#" &
"digits#" &
"elaborated#" &
"emax#" &
"enum_rep#" &
"epsilon#" &
"exponent#" &
"external_tag#" &
"first#" &
"first_bit#" &
"fixed_value#" &
"fore#" &
"has_access_values#" &
"has_discriminants#" &
"identity#" &
"img#" &
"integer_value#" &
"large#" &
"last#" &
"last_bit#" &
"leading_part#" &
"length#" &
"machine_emax#" &
"machine_emin#" &
"machine_mantissa#" &
"machine_overflows#" &
"machine_radix#" &
"machine_rounding#" &
"machine_rounds#" &
"machine_size#" &
"mantissa#" &
"max_size_in_storage_elements#" &
"maximum_alignment#" &
"mechanism_code#" &
"mod#" &
"model_emin#" &
"model_epsilon#" &
"model_mantissa#" &
"model_small#" &
"modulus#" &
"null_parameter#" &
"object_size#" &
"partition_id#" &
"passed_by_reference#" &
"pool_address#" &
"pos#" &
"position#" &
"range#" &
"range_length#" &
"round#" &
"safe_emax#" &
"safe_first#" &
"safe_large#" &
"safe_last#" &
"safe_small#" &
"scale#" &
"scaling#" &
"signed_zeros#" &
"size#" &
"small#" &
"storage_size#" &
"storage_unit#" &
"stream_size#" &
"tag#" &
"target_name#" &
"terminated#" &
"to_address#" &
"type_class#" &
"uet_address#" &
"unbiased_rounding#" &
"unchecked_access#" &
"unconstrained_array#" &
"universal_literal_string#" &
"unrestricted_access#" &
"vads_size#" &
"val#" &
"valid#" &
"value_size#" &
"version#" &
"wchar_t_size#" &
"wide_wide_width#" &
"wide_width#" &
"width#" &
"word_size#" &
"adjacent#" &
"ceiling#" &
"copy_sign#" &
"floor#" &
"fraction#" &
"image#" &
"input#" &
"machine#" &
"max#" &
"min#" &
"model#" &
"pred#" &
"remainder#" &
"rounding#" &
"succ#" &
"truncation#" &
"value#" &
"wide_image#" &
"wide_wide_image#" &
"wide_value#" &
"wide_wide_value#" &
"output#" &
"read#" &
"write#" &
"elab_body#" &
"elab_spec#" &
"storage_pool#" &
"base#" &
"class#" &
"ceiling_locking#" &
"inheritance_locking#" &
"fifo_queuing#" &
"priority_queuing#" &
"fifo_within_priorities#" &
"access_check#" &
"accessibility_check#" &
"discriminant_check#" &
"division_check#" &
"elaboration_check#" &
"index_check#" &
"length_check#" &
"overflow_check#" &
"range_check#" &
"storage_check#" &
"tag_check#" &
"all_checks#" &
"abort#" &
"abs#" &
"accept#" &
"and#" &
"all#" &
"array#" &
"at#" &
"begin#" &
"body#" &
"case#" &
"constant#" &
"declare#" &
"delay#" &
"do#" &
"else#" &
"elsif#" &
"end#" &
"entry#" &
"exception#" &
"exit#" &
"for#" &
"function#" &
"generic#" &
"goto#" &
"if#" &
"in#" &
"is#" &
"limited#" &
"loop#" &
"new#" &
"not#" &
"null#" &
"of#" &
"or#" &
"others#" &
"out#" &
"package#" &
"pragma#" &
"private#" &
"procedure#" &
"raise#" &
"record#" &
"rem#" &
"renames#" &
"return#" &
"reverse#" &
"select#" &
"separate#" &
"subtype#" &
"task#" &
"terminate#" &
"then#" &
"type#" &
"use#" &
"when#" &
"while#" &
"with#" &
"xor#" &
"divide#" &
"enclosing_entity#" &
"exception_information#" &
"exception_message#" &
"exception_name#" &
"file#" &
"generic_dispatching_constructor#" &
"import_address#" &
"import_largest_value#" &
"import_value#" &
"is_negative#" &
"line#" &
"rotate_left#" &
"rotate_right#" &
"shift_left#" &
"shift_right#" &
"shift_right_arithmetic#" &
"source_location#" &
"unchecked_conversion#" &
"unchecked_deallocation#" &
"to_pointer#" &
"free#" &
"abstract#" &
"aliased#" &
"protected#" &
"until#" &
"requeue#" &
"tagged#" &
"raise_exception#" &
"ada_roots#" &
"archive_builder#" &
"archive_indexer#" &
"binder#" &
"binder_driver#" &
"body_suffix#" &
"builder#" &
"compiler#" &
"compiler_driver#" &
"compiler_kind#" &
"compiler_pic_option#" &
"compute_dependency#" &
"config_body_file_name#" &
"config_body_file_name_pattern#" &
"config_file_switches#" &
"config_file_unique#" &
"config_spec_file_name#" &
"config_spec_file_name_pattern#" &
"cross_reference#" &
"default_builder_switches#" &
"default_global_compiler_switches#" &
"default_language#" &
"default_linker#" &
"default_switches#" &
"dependency_file_kind#" &
"dependency_option#" &
"exec_dir#" &
"executable#" &
"executable_suffix#" &
"extends#" &
"externally_built#" &
"finder#" &
"global_compiler_switches#" &
"global_configuration_pragmas#" &
"gnatls#" &
"gnatstub#" &
"implementation#" &
"implementation_exceptions#" &
"implementation_suffix#" &
"include_option#" &
"include_path#" &
"include_path_file#" &
"language_kind#" &
"language_processing#" &
"languages#" &
"library_ali_dir#" &
"library_dir#" &
"library_auto_init#" &
"library_gcc#" &
"library_interface#" &
"library_kind#" &
"library_name#" &
"library_options#" &
"library_reference_symbol_file#" &
"library_src_dir#" &
"library_symbol_file#" &
"library_symbol_policy#" &
"library_version#" &
"linker#" &
"linker_executable_option#" &
"linker_lib_dir_option#" &
"linker_lib_name_option#" &
"local_configuration_pragmas#" &
"locally_removed_files#" &
"mapping_file_switches#" &
"metrics#" &
"naming#" &
"object_dir#" &
"pretty_printer#" &
"project#" &
"roots#" &
"runtime_project#" &
"separate_suffix#" &
"source_dirs#" &
"source_files#" &
"source_list_file#" &
"spec#" &
"spec_suffix#" &
"specification#" &
"specification_exceptions#" &
"specification_suffix#" &
"switches#" &
"unaligned_valid#" &
"interface#" &
"overriding#" &
"synchronized#" &
"#";
---------------------
-- Generated Names --
---------------------
-- This section lists the various cases of generated names which are
-- built from existing names by adding unique leading and/or trailing
-- upper case letters. In some cases these names are built recursively,
-- in particular names built from types may be built from types which
-- themselves have generated names. In this list, xxx represents an
-- existing name to which identifying letters are prepended or appended,
-- and a trailing n represents a serial number in an external name that
-- has some semantic significance (e.g. the n'th index type of an array).
-- xxxA access type for formal xxx in entry param record (Exp_Ch9)
-- xxxB tag table for tagged type xxx (Exp_Ch3)
-- xxxB task body procedure for task xxx (Exp_Ch9)
-- xxxD dispatch table for tagged type xxx (Exp_Ch3)
-- xxxD discriminal for discriminant xxx (Sem_Ch3)
-- xxxDn n'th discr check function for rec type xxx (Exp_Ch3)
-- xxxE elaboration boolean flag for task xxx (Exp_Ch9)
-- xxxE dispatch table pointer type for tagged type xxx (Exp_Ch3)
-- xxxE parameters for accept body for entry xxx (Exp_Ch9)
-- xxxFn n'th primitive of a tagged type (named xxx) (Exp_Ch3)
-- xxxJ tag table type index for tagged type xxx (Exp_Ch3)
-- xxxM master Id value for access type xxx (Exp_Ch3)
-- xxxP tag table pointer type for tagged type xxx (Exp_Ch3)
-- xxxP parameter record type for entry xxx (Exp_Ch9)
-- xxxPA access to parameter record type for entry xxx (Exp_Ch9)
-- xxxPn pointer type for n'th primitive of tagged type xxx (Exp_Ch3)
-- xxxR dispatch table pointer for tagged type xxx (Exp_Ch3)
-- xxxT tag table type for tagged type xxx (Exp_Ch3)
-- xxxT literal table for enumeration type xxx (Sem_Ch3)
-- xxxV type for task value record for task xxx (Exp_Ch9)
-- xxxX entry index constant (Exp_Ch9)
-- xxxY dispatch table type for tagged type xxx (Exp_Ch3)
-- xxxZ size variable for task xxx (Exp_Ch9)
-- TSS names
-- xxxDA deep adjust routine for type xxx (Exp_TSS)
-- xxxDF deep finalize routine for type xxx (Exp_TSS)
-- xxxDI deep initialize routine for type xxx (Exp_TSS)
-- xxxEQ composite equality routine for record type xxx (Exp_TSS)
-- xxxFA PolyORB/DSA From_Any converter for type xxx (Exp_TSS)
-- xxxIP initialization procedure for type xxx (Exp_TSS)
-- xxxRA RAS type access routine for type xxx (Exp_TSS)
-- xxxRD RAS type dereference routine for type xxx (Exp_TSS)
-- xxxRP Rep to Pos conversion for enumeration type xxx (Exp_TSS)
-- xxxSA array/slice assignment for controlled comp. arrays (Exp_TSS)
-- xxxSI stream input attribute subprogram for type xxx (Exp_TSS)
-- xxxSO stream output attribute subprogram for type xxx (Exp_TSS)
-- xxxSR stream read attribute subprogram for type xxx (Exp_TSS)
-- xxxSW stream write attribute subprogram for type xxx (Exp_TSS)
-- xxxTA PolyORB/DSA To_Any converter for type xxx (Exp_TSS)
-- xxxTC PolyORB/DSA Typecode for type xxx (Exp_TSS)
-- Implicit type names
-- TxxxT type of literal table for enumeration type xxx (Sem_Ch3)
-- (Note: this list is not complete or accurate ???)
----------------------
-- Get_Attribute_Id --
----------------------
function Get_Attribute_Id (N : Name_Id) return Attribute_Id is
begin
return Attribute_Id'Val (N - First_Attribute_Name);
end Get_Attribute_Id;
------------------
-- Get_Check_Id --
------------------
function Get_Check_Id (N : Name_Id) return Check_Id is
begin
return Check_Id'Val (N - First_Check_Name);
end Get_Check_Id;
-----------------------
-- Get_Convention_Id --
-----------------------
function Get_Convention_Id (N : Name_Id) return Convention_Id is
begin
case N is
when Name_Ada => return Convention_Ada;
when Name_Assembler => return Convention_Assembler;
when Name_C => return Convention_C;
when Name_COBOL => return Convention_COBOL;
when Name_CPP => return Convention_CPP;
when Name_Fortran => return Convention_Fortran;
when Name_Intrinsic => return Convention_Intrinsic;
when Name_Java => return Convention_Java;
when Name_Stdcall => return Convention_Stdcall;
when Name_Stubbed => return Convention_Stubbed;
-- If no direct match, then we must have a convention
-- identifier pragma that has specified this name.
when others =>
for J in 1 .. Convention_Identifiers.Last loop
if N = Convention_Identifiers.Table (J).Name then
return Convention_Identifiers.Table (J).Convention;
end if;
end loop;
raise Program_Error;
end case;
end Get_Convention_Id;
---------------------------
-- Get_Locking_Policy_Id --
---------------------------
function Get_Locking_Policy_Id (N : Name_Id) return Locking_Policy_Id is
begin
return Locking_Policy_Id'Val (N - First_Locking_Policy_Name);
end Get_Locking_Policy_Id;
-------------------
-- Get_Pragma_Id --
-------------------
function Get_Pragma_Id (N : Name_Id) return Pragma_Id is
begin
if N = Name_AST_Entry then
return Pragma_AST_Entry;
elsif N = Name_Interface then
return Pragma_Interface;
elsif N = Name_Storage_Size then
return Pragma_Storage_Size;
elsif N = Name_Storage_Unit then
return Pragma_Storage_Unit;
elsif N not in First_Pragma_Name .. Last_Pragma_Name then
return Unknown_Pragma;
else
return Pragma_Id'Val (N - First_Pragma_Name);
end if;
end Get_Pragma_Id;
---------------------------
-- Get_Queuing_Policy_Id --
---------------------------
function Get_Queuing_Policy_Id (N : Name_Id) return Queuing_Policy_Id is
begin
return Queuing_Policy_Id'Val (N - First_Queuing_Policy_Name);
end Get_Queuing_Policy_Id;
------------------------------------
-- Get_Task_Dispatching_Policy_Id --
------------------------------------
function Get_Task_Dispatching_Policy_Id (N : Name_Id)
return Task_Dispatching_Policy_Id is
begin
return Task_Dispatching_Policy_Id'Val
(N - First_Task_Dispatching_Policy_Name);
end Get_Task_Dispatching_Policy_Id;
----------------
-- Initialize --
----------------
procedure Initialize is
P_Index : Natural;
Discard_Name : Name_Id;
begin
P_Index := Preset_Names'First;
loop
Name_Len := 0;
while Preset_Names (P_Index) /= '#' loop
Name_Len := Name_Len + 1;
Name_Buffer (Name_Len) := Preset_Names (P_Index);
P_Index := P_Index + 1;
end loop;
-- We do the Name_Find call to enter the name into the table, but
-- we don't need to do anything with the result, since we already
-- initialized all the preset names to have the right value (we
-- are depending on the order of the names and Preset_Names).
Discard_Name := Name_Find;
P_Index := P_Index + 1;
exit when Preset_Names (P_Index) = '#';
end loop;
-- Make sure that number of names in standard table is correct. If
-- this check fails, run utility program XSNAMES to construct a new
-- properly matching version of the body.
pragma Assert (Discard_Name = Last_Predefined_Name);
-- Initialize the convention identifiers table with the standard
-- set of synonyms that we recognize for conventions.
Convention_Identifiers.Init;
Convention_Identifiers.Append ((Name_Asm, Convention_Assembler));
Convention_Identifiers.Append ((Name_Assembly, Convention_Assembler));
Convention_Identifiers.Append ((Name_Default, Convention_C));
Convention_Identifiers.Append ((Name_External, Convention_C));
Convention_Identifiers.Append ((Name_DLL, Convention_Stdcall));
Convention_Identifiers.Append ((Name_Win32, Convention_Stdcall));
end Initialize;
-----------------------
-- Is_Attribute_Name --
-----------------------
function Is_Attribute_Name (N : Name_Id) return Boolean is
begin
return N in First_Attribute_Name .. Last_Attribute_Name;
end Is_Attribute_Name;
-------------------
-- Is_Check_Name --
-------------------
function Is_Check_Name (N : Name_Id) return Boolean is
begin
return N in First_Check_Name .. Last_Check_Name;
end Is_Check_Name;
------------------------
-- Is_Convention_Name --
------------------------
function Is_Convention_Name (N : Name_Id) return Boolean is
begin
-- Check if this is one of the standard conventions
if N in First_Convention_Name .. Last_Convention_Name
or else N = Name_C
then
return True;
-- Otherwise check if it is in convention identifier table
else
for J in 1 .. Convention_Identifiers.Last loop
if N = Convention_Identifiers.Table (J).Name then
return True;
end if;
end loop;
return False;
end if;
end Is_Convention_Name;
------------------------------
-- Is_Entity_Attribute_Name --
------------------------------
function Is_Entity_Attribute_Name (N : Name_Id) return Boolean is
begin
return N in First_Entity_Attribute_Name .. Last_Entity_Attribute_Name;
end Is_Entity_Attribute_Name;
--------------------------------
-- Is_Function_Attribute_Name --
--------------------------------
function Is_Function_Attribute_Name (N : Name_Id) return Boolean is
begin
return N in
First_Renamable_Function_Attribute ..
Last_Renamable_Function_Attribute;
end Is_Function_Attribute_Name;
---------------------
-- Is_Keyword_Name --
---------------------
function Is_Keyword_Name (N : Name_Id) return Boolean is
begin
return Get_Name_Table_Byte (N) /= 0
and then (Ada_Version >= Ada_95
or else N not in Ada_95_Reserved_Words)
and then (Ada_Version >= Ada_05
or else N not in Ada_2005_Reserved_Words);
end Is_Keyword_Name;
----------------------------
-- Is_Locking_Policy_Name --
----------------------------
function Is_Locking_Policy_Name (N : Name_Id) return Boolean is
begin
return N in First_Locking_Policy_Name .. Last_Locking_Policy_Name;
end Is_Locking_Policy_Name;
-----------------------------
-- Is_Operator_Symbol_Name --
-----------------------------
function Is_Operator_Symbol_Name (N : Name_Id) return Boolean is
begin
return N in First_Operator_Name .. Last_Operator_Name;
end Is_Operator_Symbol_Name;
--------------------
-- Is_Pragma_Name --
--------------------
function Is_Pragma_Name (N : Name_Id) return Boolean is
begin
return N in First_Pragma_Name .. Last_Pragma_Name
or else N = Name_AST_Entry
or else N = Name_Interface
or else N = Name_Storage_Size
or else N = Name_Storage_Unit;
end Is_Pragma_Name;
---------------------------------
-- Is_Procedure_Attribute_Name --
---------------------------------
function Is_Procedure_Attribute_Name (N : Name_Id) return Boolean is
begin
return N in First_Procedure_Attribute .. Last_Procedure_Attribute;
end Is_Procedure_Attribute_Name;
----------------------------
-- Is_Queuing_Policy_Name --
----------------------------
function Is_Queuing_Policy_Name (N : Name_Id) return Boolean is
begin
return N in First_Queuing_Policy_Name .. Last_Queuing_Policy_Name;
end Is_Queuing_Policy_Name;
-------------------------------------
-- Is_Task_Dispatching_Policy_Name --
-------------------------------------
function Is_Task_Dispatching_Policy_Name (N : Name_Id) return Boolean is
begin
return N in First_Task_Dispatching_Policy_Name ..
Last_Task_Dispatching_Policy_Name;
end Is_Task_Dispatching_Policy_Name;
----------------------------
-- Is_Type_Attribute_Name --
----------------------------
function Is_Type_Attribute_Name (N : Name_Id) return Boolean is
begin
return N in First_Type_Attribute_Name .. Last_Type_Attribute_Name;
end Is_Type_Attribute_Name;
----------------------------------
-- Record_Convention_Identifier --
----------------------------------
procedure Record_Convention_Identifier
(Id : Name_Id;
Convention : Convention_Id)
is
begin
Convention_Identifiers.Append ((Id, Convention));
end Record_Convention_Identifier;
end Snames;
|
-----------------------------------------------------------------------
-- AWA.Jobs.Models -- AWA.Jobs.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095
-----------------------------------------------------------------------
-- Copyright (C) 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
pragma Warnings (Off);
with ADO.Sessions;
with ADO.Objects;
with ADO.Statements;
with ADO.SQL;
with ADO.Schemas;
with Ada.Calendar;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Util.Beans.Objects;
with Util.Beans.Objects.Enums;
with Util.Beans.Basic.Lists;
with AWA.Events.Models;
with AWA.Users.Models;
pragma Warnings (On);
package AWA.Jobs.Models is
pragma Style_Checks ("-mr");
type Job_Status_Type is (SCHEDULED, RUNNING, CANCELED, FAILED, TERMINATED);
for Job_Status_Type use (SCHEDULED => 0, RUNNING => 1, CANCELED => 2, FAILED => 3, TERMINATED => 4);
package Job_Status_Type_Objects is
new Util.Beans.Objects.Enums (Job_Status_Type);
type Job_Ref is new ADO.Objects.Object_Ref with null record;
-- --------------------
-- The job is associated with a dispatching queue.
-- --------------------
-- Create an object key for Job.
function Job_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key;
-- Create an object key for Job from a string.
-- Raises Constraint_Error if the string cannot be converted into the object key.
function Job_Key (Id : in String) return ADO.Objects.Object_Key;
Null_Job : constant Job_Ref;
function "=" (Left, Right : Job_Ref'Class) return Boolean;
-- Set the job identifier
procedure Set_Id (Object : in out Job_Ref;
Value : in ADO.Identifier);
-- Get the job identifier
function Get_Id (Object : in Job_Ref)
return ADO.Identifier;
-- Set the job status
procedure Set_Status (Object : in out Job_Ref;
Value : in AWA.Jobs.Models.Job_Status_Type);
-- Get the job status
function Get_Status (Object : in Job_Ref)
return AWA.Jobs.Models.Job_Status_Type;
-- Set the job name
procedure Set_Name (Object : in out Job_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String);
procedure Set_Name (Object : in out Job_Ref;
Value : in String);
-- Get the job name
function Get_Name (Object : in Job_Ref)
return Ada.Strings.Unbounded.Unbounded_String;
function Get_Name (Object : in Job_Ref)
return String;
-- Set the job start date
procedure Set_Start_Date (Object : in out Job_Ref;
Value : in ADO.Nullable_Time);
-- Get the job start date
function Get_Start_Date (Object : in Job_Ref)
return ADO.Nullable_Time;
-- Set the job creation date
procedure Set_Create_Date (Object : in out Job_Ref;
Value : in Ada.Calendar.Time);
-- Get the job creation date
function Get_Create_Date (Object : in Job_Ref)
return Ada.Calendar.Time;
-- Set the job finish date
procedure Set_Finish_Date (Object : in out Job_Ref;
Value : in ADO.Nullable_Time);
-- Get the job finish date
function Get_Finish_Date (Object : in Job_Ref)
return ADO.Nullable_Time;
-- Set the job progress indicator
procedure Set_Progress (Object : in out Job_Ref;
Value : in Integer);
-- Get the job progress indicator
function Get_Progress (Object : in Job_Ref)
return Integer;
-- Set the job parameters
procedure Set_Parameters (Object : in out Job_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String);
procedure Set_Parameters (Object : in out Job_Ref;
Value : in String);
-- Get the job parameters
function Get_Parameters (Object : in Job_Ref)
return Ada.Strings.Unbounded.Unbounded_String;
function Get_Parameters (Object : in Job_Ref)
return String;
-- Set the job result
procedure Set_Results (Object : in out Job_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String);
procedure Set_Results (Object : in out Job_Ref;
Value : in String);
-- Get the job result
function Get_Results (Object : in Job_Ref)
return Ada.Strings.Unbounded.Unbounded_String;
function Get_Results (Object : in Job_Ref)
return String;
--
function Get_Version (Object : in Job_Ref)
return Integer;
-- Set the job priority
procedure Set_Priority (Object : in out Job_Ref;
Value : in Integer);
-- Get the job priority
function Get_Priority (Object : in Job_Ref)
return Integer;
--
procedure Set_User (Object : in out Job_Ref;
Value : in AWA.Users.Models.User_Ref'Class);
--
function Get_User (Object : in Job_Ref)
return AWA.Users.Models.User_Ref'Class;
--
procedure Set_Event (Object : in out Job_Ref;
Value : in AWA.Events.Models.Message_Ref'Class);
--
function Get_Event (Object : in Job_Ref)
return AWA.Events.Models.Message_Ref'Class;
--
procedure Set_Session (Object : in out Job_Ref;
Value : in AWA.Users.Models.Session_Ref'Class);
--
function Get_Session (Object : in Job_Ref)
return AWA.Users.Models.Session_Ref'Class;
-- Load the entity identified by 'Id'.
-- Raises the NOT_FOUND exception if it does not exist.
procedure Load (Object : in out Job_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier);
-- Load the entity identified by 'Id'.
-- Returns True in <b>Found</b> if the object was found and False if it does not exist.
procedure Load (Object : in out Job_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean);
-- Find and load the entity.
overriding
procedure Find (Object : in out Job_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
-- Save the entity. If the entity does not have an identifier, an identifier is allocated
-- and it is inserted in the table. Otherwise, only data fields which have been changed
-- are updated.
overriding
procedure Save (Object : in out Job_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
-- Delete the entity.
overriding
procedure Delete (Object : in out Job_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
function Get_Value (From : in Job_Ref;
Name : in String) return Util.Beans.Objects.Object;
-- Table definition
JOB_TABLE : constant ADO.Schemas.Class_Mapping_Access;
-- Internal method to allocate the Object_Record instance
overriding
procedure Allocate (Object : in out Job_Ref);
-- Copy of the object.
procedure Copy (Object : in Job_Ref;
Into : in out Job_Ref);
private
JOB_NAME : aliased constant String := "awa_job";
COL_0_1_NAME : aliased constant String := "id";
COL_1_1_NAME : aliased constant String := "status";
COL_2_1_NAME : aliased constant String := "name";
COL_3_1_NAME : aliased constant String := "start_date";
COL_4_1_NAME : aliased constant String := "create_date";
COL_5_1_NAME : aliased constant String := "finish_date";
COL_6_1_NAME : aliased constant String := "progress";
COL_7_1_NAME : aliased constant String := "parameters";
COL_8_1_NAME : aliased constant String := "results";
COL_9_1_NAME : aliased constant String := "version";
COL_10_1_NAME : aliased constant String := "priority";
COL_11_1_NAME : aliased constant String := "user_id";
COL_12_1_NAME : aliased constant String := "event_id";
COL_13_1_NAME : aliased constant String := "session_id";
JOB_DEF : aliased constant ADO.Schemas.Class_Mapping :=
(Count => 14,
Table => JOB_NAME'Access,
Members => (
1 => COL_0_1_NAME'Access,
2 => COL_1_1_NAME'Access,
3 => COL_2_1_NAME'Access,
4 => COL_3_1_NAME'Access,
5 => COL_4_1_NAME'Access,
6 => COL_5_1_NAME'Access,
7 => COL_6_1_NAME'Access,
8 => COL_7_1_NAME'Access,
9 => COL_8_1_NAME'Access,
10 => COL_9_1_NAME'Access,
11 => COL_10_1_NAME'Access,
12 => COL_11_1_NAME'Access,
13 => COL_12_1_NAME'Access,
14 => COL_13_1_NAME'Access
)
);
JOB_TABLE : constant ADO.Schemas.Class_Mapping_Access
:= JOB_DEF'Access;
Null_Job : constant Job_Ref
:= Job_Ref'(ADO.Objects.Object_Ref with null record);
type Job_Impl is
new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER,
Of_Class => JOB_DEF'Access)
with record
Status : AWA.Jobs.Models.Job_Status_Type;
Name : Ada.Strings.Unbounded.Unbounded_String;
Start_Date : ADO.Nullable_Time;
Create_Date : Ada.Calendar.Time;
Finish_Date : ADO.Nullable_Time;
Progress : Integer;
Parameters : Ada.Strings.Unbounded.Unbounded_String;
Results : Ada.Strings.Unbounded.Unbounded_String;
Version : Integer;
Priority : Integer;
User : AWA.Users.Models.User_Ref;
Event : AWA.Events.Models.Message_Ref;
Session : AWA.Users.Models.Session_Ref;
end record;
type Job_Access is access all Job_Impl;
overriding
procedure Destroy (Object : access Job_Impl);
overriding
procedure Find (Object : in out Job_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
overriding
procedure Load (Object : in out Job_Impl;
Session : in out ADO.Sessions.Session'Class);
procedure Load (Object : in out Job_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class);
overriding
procedure Save (Object : in out Job_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Create (Object : in out Job_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
procedure Delete (Object : in out Job_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Set_Field (Object : in out Job_Ref'Class;
Impl : out Job_Access);
end AWA.Jobs.Models;
|
-- implementation of package Bubble
-- see bubble.ads for a specification
-- which gives a brief overview of the package
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
package body Bubble is
protected body State is
procedure Set_All(a, b, c, d : Integer) is
begin
State.a := a;
State.b := b;
State.c := c;
State.d := d;
Print_State;
end Set_All;
entry Wait_Until_Sorted(a, b, c, d : out Integer)
when (a <= b and b <= c and c <= d)
is
begin
a := State.a;
b := State.b;
c := State.c;
d := State.d;
end Wait_Until_Sorted;
-- private procedure used to help user see what happens:
procedure Print_State is
begin
Put("a = "); Put(a,2); Put("; ");
Put("b = "); Put(b,2); Put("; ");
Put("c = "); Put(c,2); Put("; ");
Put("d = "); Put(d,2); Put("; ");
Put_Line("");
end Print_State;
procedure Swap(n, m : in out Integer)
is
temp : Integer;
begin
temp := n; n := m; m := temp;
end Swap;
entry BubbleAB when a > b is
begin
Swap(a,b);
Print_State;
end BubbleAB;
entry BubbleBC when b > c is
begin
Swap(b,c);
Print_State;
end BubbleBC;
entry BubbleCD when c > d is
begin
Swap(c,d);
Print_State;
end BubbleCD;
end State;
-- Tasks that keep calling Bubble.. to sort the numbers asap:
task body BubbleAB is
begin
loop
State.BubbleAB;
end loop;
end BubbleAB;
-- Tasks that keep calling Bubble.. to sort the numbers asap:
task body BubbleBC is
begin
loop
State.BubbleBC;
end loop;
end BubbleBC;
-- Tasks that keep calling Bubble.. to sort the numbers asap:
task body BubbleCD is
begin
loop
State.BubbleCD;
end loop;
end BubbleCD;
end Bubble;
|
-- { dg-do compile }
pragma Restrictions(No_Elaboration_Code);
package Elab3 is
type T_List is array (Positive range <>) of Integer;
type T_List_Access is access constant T_List;
type R is record
A : T_List_Access;
end record;
C : constant R := (A => null);
end Elab3;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
private with Interfaces.C;
private with Ada.Containers.Bounded_Vectors;
private with Ada.Containers.Indefinite_Hashed_Maps;
private with Ada.Containers.Vectors;
private with Ada.Finalization;
private with Ada.Strings.Unbounded;
private with GNAT.OS_Lib;
package Inotify is
pragma Preelaborate;
type Watch_Bits is record
Accessed : Boolean := False;
Modified : Boolean := False;
Metadata : Boolean := False;
Closed_Write : Boolean := False;
Closed_No_Write : Boolean := False;
Opened : Boolean := False;
Moved_From : Boolean := False;
Moved_To : Boolean := False;
Created : Boolean := False;
Deleted : Boolean := False;
Deleted_Self : Boolean := False;
Moved_Self : Boolean := False;
Only_Directories : Boolean := False;
Do_Not_Follow : Boolean := False;
Exclude_Unlinked : Boolean := False;
Add_Mask : Boolean := False;
One_Shot : Boolean := False;
end record;
All_Events : constant Watch_Bits;
type Instance is tagged limited private;
pragma Preelaborable_Initialization (Instance);
function File_Descriptor (Object : Instance) return Integer;
-- Return the file descriptor of the inotify instance
--
-- The returned file descript may only be used for polling.
type Watch is private;
procedure Add_Watch
(Object : in out Instance;
Path : String;
Mask : Watch_Bits := All_Events);
function Add_Watch
(Object : in out Instance;
Path : String;
Mask : Watch_Bits := All_Events) return Watch;
procedure Remove_Watch (Object : in out Instance; Subject : Watch);
function Has_Watches (Object : in out Instance) return Boolean;
function Name (Object : Instance; Subject : Watch) return String;
type Event_Kind is
(Accessed,
Modified,
Metadata,
Closed_Write,
Closed_No_Write,
Opened,
Moved_From,
Moved_To,
Created,
Deleted,
Deleted_Self,
Moved_Self,
Unmounted_Filesystem);
procedure Process_Events
(Object : in out Instance;
Handle : not null access procedure
(Subject : Watch;
Event : Event_Kind;
Is_Directory : Boolean;
Name : String));
-- Wait and process events
--
-- If reading an event fails, a Read_Error is raised. If the event queue
-- overflowed then Queue_Overflow_Error is raised.
procedure Process_Events
(Object : in out Instance;
Handle : not null access procedure
(Subject : Watch;
Event : Event_Kind;
Is_Directory : Boolean;
Name : String);
Move_Handle : not null access procedure
(Subject : Watch;
Is_Directory : Boolean;
From, To : String));
-- Wait and process events
--
-- Move_Handle is called after matching Moved_From and Moved_To events
-- have been processed. To be effective, Add_Watch must have been called
-- with a mask containing these two events.
--
-- If reading an event fails, a Read_Error is raised. If the event queue
-- overflowed then Queue_Overflow_Error is raised.
Read_Error : exception;
Queue_Overflow_Error : exception;
private
for Event_Kind use
(Accessed => 16#0001#,
Modified => 16#0002#,
Metadata => 16#0004#,
Closed_Write => 16#0008#,
Closed_No_Write => 16#0010#,
Opened => 16#0020#,
Moved_From => 16#0040#,
Moved_To => 16#0080#,
Created => 16#0100#,
Deleted => 16#0200#,
Deleted_Self => 16#0400#,
Moved_Self => 16#0800#,
Unmounted_Filesystem => 16#2000#);
for Event_Kind'Size use 14;
for Watch_Bits use record
Accessed at 0 range 0 .. 0;
Modified at 0 range 1 .. 1;
Metadata at 0 range 2 .. 2;
Closed_Write at 0 range 3 .. 3;
Closed_No_Write at 0 range 4 .. 4;
Opened at 0 range 5 .. 5;
Moved_From at 0 range 6 .. 6;
Moved_To at 0 range 7 .. 7;
Created at 0 range 8 .. 8;
Deleted at 0 range 9 .. 9;
Deleted_Self at 0 range 10 .. 10;
Moved_Self at 0 range 11 .. 11;
Only_Directories at 0 range 24 .. 24;
Do_Not_Follow at 0 range 25 .. 25;
Exclude_Unlinked at 0 range 26 .. 26;
Add_Mask at 0 range 29 .. 29;
One_Shot at 0 range 31 .. 31;
end record;
for Watch_Bits'Size use Interfaces.C.unsigned'Size;
for Watch_Bits'Alignment use Interfaces.C.unsigned'Alignment;
All_Events : constant Watch_Bits :=
(Accessed |
Modified |
Metadata |
Closed_Write |
Closed_No_Write |
Opened |
Moved_From |
Moved_To |
Created |
Deleted |
Deleted_Self |
Moved_Self =>
True,
others => False);
-----------------------------------------------------------------------------
package SU renames Ada.Strings.Unbounded;
type Move is record
From, To : SU.Unbounded_String;
end record;
type Cookie_Move_Pair is record
Key : Interfaces.C.unsigned;
Value : Move;
end record;
package Move_Vectors is new Ada.Containers.Bounded_Vectors
(Index_Type => Positive,
Element_Type => Cookie_Move_Pair);
-----------------------------------------------------------------------------
function Hash (Key : Interfaces.C.int) return Ada.Containers.Hash_Type is
(Ada.Containers.Hash_Type (Key));
package Watch_Maps is new Ada.Containers.Indefinite_Hashed_Maps
(Key_Type => Interfaces.C.int,
Element_Type => String,
Hash => Hash,
Equivalent_Keys => Interfaces.C."=");
type Watch is record
Watch : Interfaces.C.int;
end record;
package Watch_Vectors is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Watch);
type Instance is limited new Ada.Finalization.Limited_Controlled with record
Instance : GNAT.OS_Lib.File_Descriptor := GNAT.OS_Lib.Invalid_FD;
Watches : Watch_Maps.Map;
Defer_Remove : Boolean := False;
Pending_Removals : Watch_Vectors.Vector;
Moves : Move_Vectors.Vector (Capacity => 8);
-- A small container to hold pairs of cookies and files that are moved
--
-- The container needs to be bounded because files that are moved
-- to outside the monitored folder do not generate Moved_To events.
-- A vector is used instead of a map so that the oldest pair can
-- be deleted if the container is full.
end record;
pragma Preelaborable_Initialization (Instance);
overriding procedure Initialize (Object : in out Instance);
overriding procedure Finalize (Object : in out Instance);
end Inotify;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . W C H _ C N V --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
with Interfaces; use Interfaces;
with System.WCh_Con; use System.WCh_Con;
with System.WCh_JIS; use System.WCh_JIS;
package body System.WCh_Cnv is
-----------------------------
-- Char_Sequence_To_UTF_32 --
-----------------------------
function Char_Sequence_To_UTF_32
(C : Character;
EM : System.WCh_Con.WC_Encoding_Method) return UTF_32_Code
is
B1 : Unsigned_32;
C1 : Character;
U : Unsigned_32;
W : Unsigned_32;
procedure Get_Hex (N : Character);
-- If N is a hex character, then set B1 to 16 * B1 + character N.
-- Raise Constraint_Error if character N is not a hex character.
procedure Get_UTF_Byte;
pragma Inline (Get_UTF_Byte);
-- Used to interpret a 2#10xxxxxx# continuation byte in UTF-8 mode.
-- Reads a byte, and raises CE if the first two bits are not 10.
-- Otherwise shifts W 6 bits left and or's in the 6 xxxxxx bits.
-------------
-- Get_Hex --
-------------
procedure Get_Hex (N : Character) is
B2 : constant Unsigned_32 := Character'Pos (N);
begin
if B2 in Character'Pos ('0') .. Character'Pos ('9') then
B1 := B1 * 16 + B2 - Character'Pos ('0');
elsif B2 in Character'Pos ('A') .. Character'Pos ('F') then
B1 := B1 * 16 + B2 - (Character'Pos ('A') - 10);
elsif B2 in Character'Pos ('a') .. Character'Pos ('f') then
B1 := B1 * 16 + B2 - (Character'Pos ('a') - 10);
else
raise Constraint_Error;
end if;
end Get_Hex;
------------------
-- Get_UTF_Byte --
------------------
procedure Get_UTF_Byte is
begin
U := Unsigned_32 (Character'Pos (In_Char));
if (U and 2#11000000#) /= 2#10_000000# then
raise Constraint_Error;
end if;
W := Shift_Left (W, 6) or (U and 2#00111111#);
end Get_UTF_Byte;
-- Start of processing for Char_Sequence_To_UTF_32
begin
case EM is
when WCEM_Hex =>
if C /= ASCII.ESC then
return Character'Pos (C);
else
B1 := 0;
Get_Hex (In_Char);
Get_Hex (In_Char);
Get_Hex (In_Char);
Get_Hex (In_Char);
return UTF_32_Code (B1);
end if;
when WCEM_Upper =>
if C > ASCII.DEL then
return 256 * Character'Pos (C) + Character'Pos (In_Char);
else
return Character'Pos (C);
end if;
when WCEM_Shift_JIS =>
if C > ASCII.DEL then
return Wide_Character'Pos (Shift_JIS_To_JIS (C, In_Char));
else
return Character'Pos (C);
end if;
when WCEM_EUC =>
if C > ASCII.DEL then
return Wide_Character'Pos (EUC_To_JIS (C, In_Char));
else
return Character'Pos (C);
end if;
when WCEM_UTF8 =>
-- Note: for details of UTF8 encoding see RFC 3629
U := Unsigned_32 (Character'Pos (C));
-- 16#00_0000#-16#00_007F#: 0xxxxxxx
if (U and 2#10000000#) = 2#00000000# then
return Character'Pos (C);
-- 16#00_0080#-16#00_07FF#: 110xxxxx 10xxxxxx
elsif (U and 2#11100000#) = 2#110_00000# then
W := U and 2#00011111#;
Get_UTF_Byte;
return UTF_32_Code (W);
-- 16#00_0800#-16#00_ffff#: 1110xxxx 10xxxxxx 10xxxxxx
elsif (U and 2#11110000#) = 2#1110_0000# then
W := U and 2#00001111#;
Get_UTF_Byte;
Get_UTF_Byte;
return UTF_32_Code (W);
-- 16#01_0000#-16#10_FFFF#: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
elsif (U and 2#11111000#) = 2#11110_000# then
W := U and 2#00000111#;
for K in 1 .. 3 loop
Get_UTF_Byte;
end loop;
return UTF_32_Code (W);
-- 16#0020_0000#-16#03FF_FFFF#: 111110xx 10xxxxxx 10xxxxxx
-- 10xxxxxx 10xxxxxx
elsif (U and 2#11111100#) = 2#111110_00# then
W := U and 2#00000011#;
for K in 1 .. 4 loop
Get_UTF_Byte;
end loop;
return UTF_32_Code (W);
-- 16#0400_0000#-16#7FFF_FFFF#: 1111110x 10xxxxxx 10xxxxxx
-- 10xxxxxx 10xxxxxx 10xxxxxx
elsif (U and 2#11111110#) = 2#1111110_0# then
W := U and 2#00000001#;
for K in 1 .. 5 loop
Get_UTF_Byte;
end loop;
return UTF_32_Code (W);
else
raise Constraint_Error;
end if;
when WCEM_Brackets =>
if C /= '[' then
return Character'Pos (C);
end if;
if In_Char /= '"' then
raise Constraint_Error;
end if;
B1 := 0;
Get_Hex (In_Char);
Get_Hex (In_Char);
C1 := In_Char;
if C1 /= '"' then
Get_Hex (C1);
Get_Hex (In_Char);
C1 := In_Char;
if C1 /= '"' then
Get_Hex (C1);
Get_Hex (In_Char);
C1 := In_Char;
if C1 /= '"' then
Get_Hex (C1);
Get_Hex (In_Char);
if B1 > Unsigned_32 (UTF_32_Code'Last) then
raise Constraint_Error;
end if;
if In_Char /= '"' then
raise Constraint_Error;
end if;
end if;
end if;
end if;
if In_Char /= ']' then
raise Constraint_Error;
end if;
return UTF_32_Code (B1);
end case;
end Char_Sequence_To_UTF_32;
--------------------------------
-- Char_Sequence_To_Wide_Char --
--------------------------------
function Char_Sequence_To_Wide_Char
(C : Character;
EM : System.WCh_Con.WC_Encoding_Method) return Wide_Character
is
function Char_Sequence_To_UTF is new Char_Sequence_To_UTF_32 (In_Char);
U : constant UTF_32_Code := Char_Sequence_To_UTF (C, EM);
begin
if U > 16#FFFF# then
raise Constraint_Error;
else
return Wide_Character'Val (U);
end if;
end Char_Sequence_To_Wide_Char;
-----------------------------
-- UTF_32_To_Char_Sequence --
-----------------------------
procedure UTF_32_To_Char_Sequence
(Val : UTF_32_Code;
EM : System.WCh_Con.WC_Encoding_Method)
is
Hexc : constant array (UTF_32_Code range 0 .. 15) of Character :=
"0123456789ABCDEF";
C1, C2 : Character;
U : Unsigned_32;
begin
-- Raise CE for invalid UTF_32_Code
if not Val'Valid then
raise Constraint_Error;
end if;
-- Processing depends on encoding mode
case EM is
when WCEM_Hex =>
if Val < 256 then
Out_Char (Character'Val (Val));
elsif Val <= 16#FFFF# then
Out_Char (ASCII.ESC);
Out_Char (Hexc (Val / (16**3)));
Out_Char (Hexc ((Val / (16**2)) mod 16));
Out_Char (Hexc ((Val / 16) mod 16));
Out_Char (Hexc (Val mod 16));
else
raise Constraint_Error;
end if;
when WCEM_Upper =>
if Val < 128 then
Out_Char (Character'Val (Val));
elsif Val < 16#8000# or else Val > 16#FFFF# then
raise Constraint_Error;
else
Out_Char (Character'Val (Val / 256));
Out_Char (Character'Val (Val mod 256));
end if;
when WCEM_Shift_JIS =>
if Val < 128 then
Out_Char (Character'Val (Val));
elsif Val <= 16#FFFF# then
JIS_To_Shift_JIS (Wide_Character'Val (Val), C1, C2);
Out_Char (C1);
Out_Char (C2);
else
raise Constraint_Error;
end if;
when WCEM_EUC =>
if Val < 128 then
Out_Char (Character'Val (Val));
elsif Val <= 16#FFFF# then
JIS_To_EUC (Wide_Character'Val (Val), C1, C2);
Out_Char (C1);
Out_Char (C2);
else
raise Constraint_Error;
end if;
when WCEM_UTF8 =>
-- Note: for details of UTF8 encoding see RFC 3629
U := Unsigned_32 (Val);
-- 16#00_0000#-16#00_007F#: 0xxxxxxx
if U <= 16#00_007F# then
Out_Char (Character'Val (U));
-- 16#00_0080#-16#00_07FF#: 110xxxxx 10xxxxxx
elsif U <= 16#00_07FF# then
Out_Char (Character'Val (2#11000000# or Shift_Right (U, 6)));
Out_Char (Character'Val (2#10000000# or (U and 2#00111111#)));
-- 16#00_0800#-16#00_FFFF#: 1110xxxx 10xxxxxx 10xxxxxx
elsif U <= 16#00_FFFF# then
Out_Char (Character'Val (2#11100000# or Shift_Right (U, 12)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 6)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (U and 2#00111111#)));
-- 16#01_0000#-16#10_FFFF#: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
elsif U <= 16#10_FFFF# then
Out_Char (Character'Val (2#11110000# or Shift_Right (U, 18)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 12)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 6)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (U and 2#00111111#)));
-- 16#0020_0000#-16#03FF_FFFF#: 111110xx 10xxxxxx 10xxxxxx
-- 10xxxxxx 10xxxxxx
elsif U <= 16#03FF_FFFF# then
Out_Char (Character'Val (2#11111000# or Shift_Right (U, 24)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 18)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 12)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 6)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (U and 2#00111111#)));
-- 16#0400_0000#-16#7FFF_FFFF#: 1111110x 10xxxxxx 10xxxxxx
-- 10xxxxxx 10xxxxxx 10xxxxxx
elsif U <= 16#7FFF_FFFF# then
Out_Char (Character'Val (2#11111100# or Shift_Right (U, 30)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 24)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 18)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 12)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (Shift_Right (U, 6)
and 2#00111111#)));
Out_Char (Character'Val (2#10000000# or (U and 2#00111111#)));
else
raise Constraint_Error;
end if;
when WCEM_Brackets =>
-- Values in the range 0-255 are directly output. Note that there
-- is an issue with [ (16#5B#) since this will cause confusion
-- if the resulting string is interpreted using brackets encoding.
-- One possibility would be to always output [ as ["5B"] but in
-- practice this is undesirable, since for example normal use of
-- Wide_Text_IO for output (much more common than input), really
-- does want to be able to say something like
-- Put_Line ("Start of output [first run]");
-- and have it come out as intended, rather than contaminated by
-- a ["5B"] sequence in place of the left bracket.
if Val < 256 then
Out_Char (Character'Val (Val));
-- Otherwise use brackets notation for vales greater than 255
else
Out_Char ('[');
Out_Char ('"');
if Val > 16#FFFF# then
if Val > 16#00FF_FFFF# then
Out_Char (Hexc (Val / 16 ** 7));
Out_Char (Hexc ((Val / 16 ** 6) mod 16));
end if;
Out_Char (Hexc ((Val / 16 ** 5) mod 16));
Out_Char (Hexc ((Val / 16 ** 4) mod 16));
end if;
Out_Char (Hexc ((Val / 16 ** 3) mod 16));
Out_Char (Hexc ((Val / 16 ** 2) mod 16));
Out_Char (Hexc ((Val / 16) mod 16));
Out_Char (Hexc (Val mod 16));
Out_Char ('"');
Out_Char (']');
end if;
end case;
end UTF_32_To_Char_Sequence;
--------------------------------
-- Wide_Char_To_Char_Sequence --
--------------------------------
procedure Wide_Char_To_Char_Sequence
(WC : Wide_Character;
EM : System.WCh_Con.WC_Encoding_Method)
is
procedure UTF_To_Char_Sequence is new UTF_32_To_Char_Sequence (Out_Char);
begin
UTF_To_Char_Sequence (Wide_Character'Pos (WC), EM);
end Wide_Char_To_Char_Sequence;
end System.WCh_Cnv;
|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
with WebIDL.Arguments;
with WebIDL.Constructors;
with WebIDL.Definitions;
with WebIDL.Enumerations;
with WebIDL.Interface_Members;
with WebIDL.Interfaces;
with WebIDL.Types;
package body WebIDL.Parsers is
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
-----------
-- Parse --
-----------
procedure Parse
(Self : in out Parser'Class;
Lexer : in out Abstract_Lexer'Class;
Factory : in out WebIDL.Factories.Factory'Class;
Errors : out League.String_Vectors.Universal_String_Vector)
is
pragma Unreferenced (Self);
use all type WebIDL.Tokens.Token_Kind;
Next : WebIDL.Tokens.Token;
procedure Expect
(Kind : WebIDL.Tokens.Token_Kind;
Ok : in out Boolean)
with Inline;
procedure Argument
(Result : out WebIDL.Arguments.Argument_Access;
Ok : in out Boolean);
procedure ArgumentList
(Result : out WebIDL.Factories.Argument_Vector_Access;
Ok : in out Boolean);
procedure ArgumentName
(Result : out League.Strings.Universal_String;
Ok : in out Boolean);
procedure CallbackOrInterfaceOrMixin
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean);
procedure Constructor
(Result : out WebIDL.Constructors.Constructor_Access;
Ok : in out Boolean);
procedure Definition
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean);
procedure Enum
(Result : out WebIDL.Enumerations.Enumeration_Access;
Ok : in out Boolean);
procedure EnumValueList
(Result : out League.String_Vectors.Universal_String_Vector;
Ok : in out Boolean);
procedure Inheritance
(Result : out League.Strings.Universal_String;
Ok : in out Boolean);
procedure InterfaceMembers
(Result : out WebIDL.Factories.Interface_Member_Vector_Access;
Ok : in out Boolean);
procedure InterfaceMember
(Result : out WebIDL.Interface_Members.Interface_Member_Access;
Ok : in out Boolean);
procedure InterfaceOrMixin
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean);
procedure InterfaceRest
(Result : out WebIDL.Interfaces.Interface_Access;
Ok : in out Boolean);
procedure PromiseType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure DistinguishableType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure UnionType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure UnionMemberType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure SingleType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure ParseType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure RecordType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure UnrestrictedFloatType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
procedure UnsignedIntegerType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean);
--------------
-- Argument --
--------------
procedure Argument
(Result : out WebIDL.Arguments.Argument_Access;
Ok : in out Boolean)
is
Name : League.Strings.Universal_String;
Type_Def : WebIDL.Types.Type_Access;
Opt : Boolean := False;
Ellipsis : Boolean := False;
begin
if not Ok then
return;
elsif Next.Kind = Optional_Token then
Opt := True;
raise Program_Error;
else
ParseType (Type_Def, Ok);
if Next.Kind = Ellipsis_Token then
Expect (Ellipsis_Token, Ok);
Ellipsis := True;
end if;
ArgumentName (Name, Ok);
end if;
Result := Factory.Argument
(Type_Def => Type_Def,
Name => Name,
Is_Options => Opt,
Has_Ellipsis => Ellipsis);
end Argument;
------------------
-- ArgumentList --
------------------
procedure ArgumentList
(Result : out WebIDL.Factories.Argument_Vector_Access;
Ok : in out Boolean) is
begin
Result := Factory.Arguments;
loop
declare
Item : WebIDL.Arguments.Argument_Access;
begin
Argument (Item, Ok);
exit when not Ok;
Result.Append (Item);
exit when Next.Kind /= ',';
Expect (',', Ok);
end;
end loop;
Ok := True;
end ArgumentList;
------------------
-- ArgumentName --
------------------
procedure ArgumentName
(Result : out League.Strings.Universal_String;
Ok : in out Boolean) is
begin
Expect (Identifier_Token, Ok);
Result := Next.Text;
end ArgumentName;
-----------------
-- Constructor --
-----------------
procedure Constructor
(Result : out WebIDL.Constructors.Constructor_Access;
Ok : in out Boolean)
is
Args : WebIDL.Factories.Argument_Vector_Access;
begin
if not Ok then
return;
end if;
Expect (Constructor_Token, Ok);
Expect ('(', Ok);
ArgumentList (Args, Ok);
Expect (')', Ok);
Expect (';', Ok);
Result := Factory.Constructor (Args);
end Constructor;
--------------------------------
-- CallbackOrInterfaceOrMixin --
--------------------------------
procedure CallbackOrInterfaceOrMixin
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean) is
begin
case Next.Kind is
when Callback_Token =>
-- Expect (Callback_Token, Ok);
raise Program_Error;
when Interface_Token =>
Expect (Interface_Token, Ok);
InterfaceOrMixin (Result, Ok);
when others =>
Ok := False;
end case;
end CallbackOrInterfaceOrMixin;
----------------
-- Definition --
----------------
procedure Definition
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean) is
begin
case Next.Kind is
when Callback_Token | Interface_Token =>
CallbackOrInterfaceOrMixin (Result, Ok);
when Enum_Token =>
declare
Node : WebIDL.Enumerations.Enumeration_Access;
begin
Enum (Node, Ok);
Result := WebIDL.Definitions.Definition_Access (Node);
end;
when others =>
Ok := False;
end case;
end Definition;
-------------------------
-- DistinguishableType --
-------------------------
procedure DistinguishableType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean) is
begin
case Next.Kind is
when Short_Token | Long_Token | Unsigned_Token =>
UnsignedIntegerType (Result, Ok);
when Unrestricted_Token | Float_Token | Double_Token =>
UnrestrictedFloatType (Result, Ok);
when Undefined_Token =>
Expect (Undefined_Token, Ok);
Result := Factory.Undefined;
when Boolean_Token =>
Expect (Boolean_Token, Ok);
Result := Factory.Bool;
when Byte_Token =>
Expect (Byte_Token, Ok);
Result := Factory.Byte;
when Octet_Token =>
Expect (Octet_Token, Ok);
Result := Factory.Octet;
when Bigint_Token =>
Expect (Bigint_Token, Ok);
Result := Factory.BigInt;
when DOMString_Token =>
Expect (DOMString_Token, Ok);
Result := Factory.DOMString;
when ByteString_Token =>
Expect (ByteString_Token, Ok);
Result := Factory.ByteString;
when USVString_Token =>
Expect (USVString_Token, Ok);
Result := Factory.USVString;
when Identifier_Token =>
raise Program_Error;
when Sequence_Token =>
declare
T : WebIDL.Types.Type_Access;
begin
Expect (Sequence_Token, Ok);
Expect ('<', Ok);
ParseType (T, Ok);
Expect ('>', Ok);
if Ok then
Result := Factory.Sequence (T);
end if;
end;
when Object_Token =>
Expect (Object_Token, Ok);
Result := Factory.Object;
when Symbol_Token =>
Expect (Symbol_Token, Ok);
Result := Factory.Symbol;
when ArrayBuffer_Token |
DataView_Token |
Int8Array_Token |
Int16Array_Token |
Int32Array_Token |
Uint8Array_Token |
Uint16Array_Token |
Uint32Array_Token |
Uint8ClampedArray_Token |
Float32Array_Token |
Float64Array_Token =>
Result := Factory.Buffer_Related_Type (Next.Text);
Expect (Next.Kind, Ok);
when FrozenArray_Token =>
declare
T : WebIDL.Types.Type_Access;
begin
Expect (FrozenArray_Token, Ok);
Expect ('<', Ok);
ParseType (T, Ok);
Expect ('>', Ok);
if Ok then
Result := Factory.Frozen_Array (T);
end if;
end;
when ObservableArray_Token =>
declare
T : WebIDL.Types.Type_Access;
begin
Expect (ObservableArray_Token, Ok);
Expect ('<', Ok);
ParseType (T, Ok);
Expect ('>', Ok);
if Ok then
Result := Factory.Observable_Array (T);
end if;
end;
when Record_Token =>
RecordType (Result, Ok);
when others =>
raise Program_Error;
end case;
if Ok and Next.Kind = '?' then
Expect ('?', Ok);
Result := Factory.Nullable (Result);
end if;
end DistinguishableType;
----------
-- Enum --
----------
procedure Enum
(Result : out WebIDL.Enumerations.Enumeration_Access;
Ok : in out Boolean)
is
Name : League.Strings.Universal_String;
Values : League.String_Vectors.Universal_String_Vector;
begin
if not Ok then
return;
end if;
Expect (Enum_Token, Ok);
Expect (Identifier_Token, Ok);
Name := Next.Text;
Expect ('{', Ok);
EnumValueList (Values, Ok);
Expect ('}', Ok);
Expect (';', Ok);
if Ok then
Result := Factory.Enumeration (Name, Values);
end if;
end Enum;
procedure EnumValueList
(Result : out League.String_Vectors.Universal_String_Vector;
Ok : in out Boolean) is
begin
if not Ok then
return;
end if;
Expect (String_Token, Ok);
Result.Append (Next.Text);
while Ok and Next.Kind = ',' loop
Expect (',', Ok);
Expect (String_Token, Ok);
Result.Append (Next.Text);
end loop;
end EnumValueList;
------------
-- Expect --
------------
procedure Expect
(Kind : WebIDL.Tokens.Token_Kind;
Ok : in out Boolean) is
begin
if Ok and Next.Kind = Kind then
Lexer.Next_Token (Next);
elsif Ok then
Errors.Append (+"Expecing ");
Errors.Append (+Kind'Wide_Wide_Image);
Ok := False;
end if;
end Expect;
procedure Inheritance
(Result : out League.Strings.Universal_String;
Ok : in out Boolean) is
begin
if Next.Kind = ':' then
Expect (':', Ok);
Expect (Identifier_Token, Ok);
Result := Next.Text;
end if;
end Inheritance;
---------------------
-- InterfaceMember --
---------------------
procedure InterfaceMember
(Result : out WebIDL.Interface_Members.Interface_Member_Access;
Ok : in out Boolean) is
pragma Unreferenced (Result);
begin
case Next.Kind is
when Constructor_Token =>
declare
Item : WebIDL.Constructors.Constructor_Access;
begin
Constructor (Item, Ok);
Result := WebIDL.Interface_Members.Interface_Member_Access
(Item);
end;
when others =>
Ok := False;
end case;
end InterfaceMember;
----------------------
-- InterfaceMembers --
----------------------
procedure InterfaceMembers
(Result : out WebIDL.Factories.Interface_Member_Vector_Access;
Ok : in out Boolean)
is
begin
Result := Factory.Interface_Members;
while Ok loop
declare
Item : WebIDL.Interface_Members.Interface_Member_Access;
begin
InterfaceMember (Item, Ok);
if Ok then
Result.Append (Item);
end if;
end;
end loop;
Ok := True;
end InterfaceMembers;
----------------------
-- InterfaceOrMixin --
----------------------
procedure InterfaceOrMixin
(Result : out WebIDL.Definitions.Definition_Access;
Ok : in out Boolean) is
begin
if Next.Kind = Mixin_Token then
raise Program_Error;
else
declare
Value : WebIDL.Interfaces.Interface_Access;
begin
InterfaceRest (Value, Ok);
Result := WebIDL.Definitions.Definition_Access (Value);
end;
end if;
end InterfaceOrMixin;
-------------------
-- InterfaceRest --
-------------------
procedure InterfaceRest
(Result : out WebIDL.Interfaces.Interface_Access;
Ok : in out Boolean)
is
Name : League.Strings.Universal_String;
Parent : League.Strings.Universal_String;
Members : WebIDL.Factories.Interface_Member_Vector_Access;
begin
if not Ok then
return;
end if;
Expect (Identifier_Token, Ok);
Name := Next.Text;
Inheritance (Parent, Ok);
Expect ('{', Ok);
InterfaceMembers (Members, Ok);
Expect ('}', Ok);
Expect (';', Ok);
if Ok then
Result := Factory.New_Interface
(Name => Name,
Parent => Parent,
Members => Members);
end if;
end InterfaceRest;
procedure ParseType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
begin
if Next.Kind = '(' then
UnionType (Result, Ok);
if Ok and Next.Kind = '?' then
Expect ('?', Ok);
Result := Factory.Nullable (Result);
end if;
else
SingleType (Result, Ok);
end if;
end ParseType;
procedure PromiseType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
T : WebIDL.Types.Type_Access;
begin
Expect (Promise_Token, Ok);
Expect ('<', Ok);
ParseType (T, Ok);
Expect ('>', Ok);
if Ok then
Result := Factory.Promise (T);
end if;
end PromiseType;
procedure RecordType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
Key : WebIDL.Types.Type_Access;
Value : WebIDL.Types.Type_Access;
begin
Expect (Record_Token, Ok);
Expect ('<', Ok);
ParseType (Key, Ok);
Expect (',', Ok);
ParseType (Value, Ok);
Expect ('>', Ok);
if Ok then
Result := Factory.Record_Type (Key, Value);
end if;
end RecordType;
procedure SingleType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean) is
begin
case Next.Kind is
when Short_Token | Long_Token | Unsigned_Token |
Unrestricted_Token | Float_Token | Double_Token |
Undefined_Token |
Boolean_Token |
Byte_Token |
Octet_Token |
Bigint_Token |
DOMString_Token |
ByteString_Token |
USVString_Token |
Identifier_Token |
Sequence_Token |
Object_Token |
Symbol_Token |
ArrayBuffer_Token |
DataView_Token |
Int8Array_Token |
Int16Array_Token |
Int32Array_Token |
Uint8Array_Token |
Uint16Array_Token |
Uint32Array_Token |
Uint8ClampedArray_Token |
Float32Array_Token |
Float64Array_Token |
FrozenArray_Token |
ObservableArray_Token |
Record_Token =>
DistinguishableType (Result, Ok);
when Any_Token =>
Expect (Any_Token, Ok);
Result := Factory.Any;
when Promise_Token =>
PromiseType (Result, Ok);
when others =>
raise Program_Error;
end case;
end SingleType;
---------------------
-- UnionMemberType --
---------------------
procedure UnionMemberType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean) is
begin
if not Ok then
return;
end if;
case Next.Kind is
when '(' =>
UnionType (Result, Ok);
if Ok and Next.Kind = '?' then
Expect ('?', Ok);
Result := Factory.Nullable (Result);
end if;
when others =>
DistinguishableType (Result, Ok);
end case;
end UnionMemberType;
---------------
-- UnionType --
---------------
procedure UnionType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
Item : WebIDL.Types.Type_Access;
Vector : constant WebIDL.Factories.Union_Member_Vector_Access :=
Factory.Union_Members;
begin
Expect ('(', Ok);
UnionMemberType (Item, Ok);
if Ok then
Vector.Append (Item);
end if;
Expect (Or_Token, Ok);
UnionMemberType (Item, Ok);
if Ok then
Vector.Append (Item);
end if;
while Next.Kind = Or_Token loop
Expect (Or_Token, Ok);
UnionMemberType (Item, Ok);
if Ok then
Vector.Append (Item);
else
exit;
end if;
end loop;
Expect (')', Ok);
if Ok then
Result := Factory.Union (Vector);
end if;
end UnionType;
---------------------------
-- UnrestrictedFloatType --
---------------------------
procedure UnrestrictedFloatType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
Restricted : Boolean := True;
Double : Boolean := False;
begin
if Next.Kind = Unrestricted_Token then
Expect (Unrestricted_Token, Ok);
Restricted := False;
end if;
if Next.Kind = Float_Token then
Expect (Float_Token, Ok);
else
Expect (Double_Token, Ok);
Double := True;
end if;
if Ok then
Result := Factory.Float (Restricted, Double);
end if;
end UnrestrictedFloatType;
procedure UnsignedIntegerType
(Result : out WebIDL.Types.Type_Access;
Ok : in out Boolean)
is
Unsigned : Boolean := False;
Long : Natural := 0;
begin
if Next.Kind = Unsigned_Token then
Unsigned := True;
Expect (Unsigned_Token, Ok);
end if;
case Next.Kind is
when Short_Token =>
Expect (Short_Token, Ok);
when others =>
Expect (Long_Token, Ok);
Long := Boolean'Pos (Ok);
if Ok and Next.Kind = Long_Token then
Expect (Long_Token, Ok);
Long := 2;
end if;
end case;
if Ok then
Result := Factory.Integer (Unsigned, Long);
end if;
end UnsignedIntegerType;
begin
Lexer.Next_Token (Next);
loop
declare
Ok : Boolean := True;
Result : WebIDL.Definitions.Definition_Access;
begin
Definition (Result, Ok);
exit when not Ok;
end;
end loop;
if Next.Kind /= End_Of_Stream_Token then
Errors.Append (+"EOF expected");
end if;
end Parse;
end WebIDL.Parsers;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . E X C E P T I O N S _ D E B U G --
-- --
-- S p e c --
-- --
-- Copyright (C) 2006-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains internal routines used as debugger helpers.
-- It should be compiled without optimization to let debuggers inspect
-- parameter values reliably from breakpoints on the routines.
pragma Compiler_Unit_Warning;
with System.Standard_Library;
package System.Exceptions_Debug is
pragma Preelaborate;
-- To let Ada.Exceptions "with" us and let us "with" Standard_Library
package SSL renames System.Standard_Library;
-- To let some of the hooks below have formal parameters typed in
-- accordance with what GDB expects.
procedure Debug_Raise_Exception
(E : SSL.Exception_Data_Ptr; Message : String);
pragma Export
(Ada, Debug_Raise_Exception, "__gnat_debug_raise_exception");
-- Hook called at a "raise" point for an exception E, when it is
-- just about to be propagated.
procedure Debug_Unhandled_Exception (E : SSL.Exception_Data_Ptr);
pragma Export
(Ada, Debug_Unhandled_Exception, "__gnat_unhandled_exception");
-- Hook called during the propagation process of an exception E, as soon
-- as it is known to be unhandled.
procedure Debug_Raise_Assert_Failure;
pragma Export
(Ada, Debug_Raise_Assert_Failure, "__gnat_debug_raise_assert_failure");
-- Hook called when an assertion failed. This is used by the debugger to
-- intercept assertion failures, and treat them specially.
procedure Local_Raise (Excep : System.Address);
pragma Export (Ada, Local_Raise);
-- This is a dummy routine, used only by the debugger for the purpose of
-- logging local raise statements that were transformed into a direct goto
-- to the handler code. The compiler in this case generates:
--
-- Local_Raise (exception_data'address);
-- goto Handler
--
-- The argument is the address of the exception data
end System.Exceptions_Debug;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E R R _ V A R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains variables common to error reporting packages
-- including Errout and Prj.Err.
with Namet; use Namet;
with Types; use Types;
with Uintp; use Uintp;
package Err_Vars is
-- All of these variables are set when needed, so they do not need to be
-- initialized. However, there is code that saves and restores existing
-- values, which may malfunction in -gnatVa mode if the variable has never
-- been initialized, so we initialize some variables to avoid exceptions
-- from invalid values in such cases.
-- Note on error counts (Serious_Errors_Detected, Total_Errors_Detected,
-- Warnings_Detected, Warning_Info_Messages, Report_Info_Messages). These
-- counts might more logically appear in this unit, but we place them
-- instead in atree.ads, because of licensing issues. We need to be able
-- to access these counts from units that have the more general licensing
-- conditions.
----------------------------------
-- Error Message Mode Variables --
----------------------------------
-- These variables control special error message modes. The initialized
-- values below give the normal default behavior, but they can be reset
-- by the caller to get different behavior as noted in the comments. These
-- variables are not reset by calls to the error message routines, so the
-- caller is responsible for resetting the default behavior after use.
Error_Msg_Qual_Level : Nat := 0;
-- Number of levels of qualification required for type name (see the
-- description of the } insertion character. Note that this value does
-- not get reset by any Error_Msg call, so the caller is responsible
-- for resetting it.
Warn_On_Instance : Boolean := False;
-- Normally if a warning is generated in a generic template from the
-- analysis of the template, then the warning really belongs in the
-- template, and the default value of False for this Boolean achieves
-- that effect. If Warn_On_Instance is set True, then the warnings are
-- generated on the instantiation (referring to the template) rather
-- than on the template itself.
Raise_Exception_On_Error : Nat := 0;
-- If this value is non-zero, then any attempt to generate an error
-- message raises the exception Error_Msg_Exception, and the error
-- message is not output. This is used for defending against junk
-- resulting from illegalities, and also for substitution of more
-- appropriate error messages from higher semantic levels. It is
-- a counter so that the increment/decrement protocol nests neatly.
-- Initialized for -gnatVa use, see comment above.
Error_Msg_Exception : exception;
-- Exception raised if Raise_Exception_On_Error is true
Current_Error_Source_File : Source_File_Index := No_Source_File;
-- Id of current messages. Used to post file name when unit changes. This
-- is initialized to Main_Source_File at the start of a compilation, which
-- means that no file names will be output unless there are errors in units
-- other than the main unit. However, if the main unit has a pragma
-- Source_Reference line, then this is initialized to No_Source_File,
-- to force an initial reference to the real source file name.
Warning_Doc_Switch : Boolean := False;
-- If this is set True, then the ??/?x?/?x? sequences in error messages
-- are active (see errout.ads for details). If this switch is False, then
-- these sequences are ignored (i.e. simply equivalent to a single ?). The
-- -gnatw.d switch sets this flag True, -gnatw.D sets this flag False.
----------------------------------------
-- Error Message Insertion Parameters --
----------------------------------------
-- The error message routines work with strings that contain insertion
-- sequences that result in the insertion of variable data. The following
-- variables contain the required data. The procedure is to set one or more
-- of the following global variables to appropriate values before making a
-- call to one of the error message routines with a string containing the
-- insertion character to get the value inserted in an appropriate format.
Error_Msg_Col : Column_Number;
-- Column for @ insertion character in message
Error_Msg_Uint_1 : Uint;
Error_Msg_Uint_2 : Uint;
-- Uint values for ^ insertion characters in message
-- WARNING: There is a matching C declaration of these variables in fe.h
Error_Msg_Sloc : Source_Ptr;
-- Source location for # insertion character in message
Error_Msg_Name_1 : Name_Id;
Error_Msg_Name_2 : Name_Id;
Error_Msg_Name_3 : Name_Id;
-- Name_Id values for % insertion characters in message
Error_Msg_File_1 : File_Name_Type;
Error_Msg_File_2 : File_Name_Type;
Error_Msg_File_3 : File_Name_Type;
-- File_Name_Type values for { insertion characters in message
Error_Msg_Unit_1 : Unit_Name_Type;
Error_Msg_Unit_2 : Unit_Name_Type;
-- Unit_Name_Type values for $ insertion characters in message
Error_Msg_Node_1 : Node_Id;
Error_Msg_Node_2 : Node_Id;
-- Node_Id values for & insertion characters in message
Error_Msg_Warn : Boolean;
-- Used if current message contains a < insertion character to indicate
-- if the current message is a warning message. Must be set appropriately
-- before any call to Error_Msg_xxx with a < insertion character present.
-- Setting is irrelevant if no < insertion character is present. Note
-- that it is not necessary to reset this after using it, since the proper
-- procedure is always to set it before issuing such a message. Note that
-- the warning documentation tag is always [enabled by default] in the
-- case where this flag is True.
Error_Msg_String : String (1 .. 4096);
Error_Msg_Strlen : Natural;
-- Used if current message contains a ~ insertion character to indicate
-- insertion of the string Error_Msg_String (1 .. Error_Msg_Strlen).
end Err_Vars;
|
-----------------------------------------------------------------------
-- util-log-appenders-formatters -- Log appenders
-- Copyright (C) 2001 - 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
procedure Util.Log.Appenders.Formatter (Self : in Appender'Class;
Content : in Util.Strings.Builders.Builder;
Date : in Ada.Calendar.Time;
Level : in Level_Type;
Logger : in String) is
procedure Get is new Util.Strings.Builders.Get (Process);
begin
if Self.Layout /= MESSAGE then
Process (Format (Self, Date, Level, Logger));
end if;
Get (Content);
end Util.Log.Appenders.Formatter;
|
------------------------------------------------------------------------------
-- Copyright (C) 2012-2020 by Heisenbug Ltd.
--
-- 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);
with Caches.Access_Patterns.Linear;
package body Caches.Tests is
-----------------------------------------------------------------------------
-- Linear
-----------------------------------------------------------------------------
procedure Linear (The_Cache : in out Cache'Class;
Length : in Bytes;
Iterations : in Positive;
Warmup : in Boolean;
Result : out Result_Array) is
Start : constant Natural := 1 - Boolean'Pos (Warmup);
begin
Flush (This => The_Cache,
Recursive => True);
for Step in Result'Range loop
for i in Start .. Iterations loop
-- Throw away results of the zeroth warmup run.
if i = 1 then
Reset (This => The_Cache,
Recursive => True);
end if;
declare
A : Address;
P : aliased Access_Patterns.Pattern'Class :=
Access_Patterns.Linear.Create (Length => Length,
Step => Step * 4);
begin
while not Access_Patterns.End_Of_Pattern (This => P) loop
A := Access_Patterns.Next (This_Ptr => P'Access);
Read (This => The_Cache,
Where => A);
Write (This => The_Cache,
Where => A);
end loop;
end;
end loop;
Result (Step) :=
Float (Perf_Index (This => The_Cache,
Recursive => True) /
(Long_Float (Iterations) * Long_Float (Length)));
end loop;
end Linear;
end Caches.Tests;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author Alexander Senier
-- @date 2019-01-21
--
-- Copyright (C) 2018 Componolit GmbH
-- 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 nor the names of its contributors may be used
-- to endorse or promote products derived from this software without
-- specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
package LSC.SHA2_Generic
is
pragma Pure;
generic
type Message_Index_Type is (<>);
type Message_Elem_Type is (<>);
type Message_Type is array (Message_Index_Type range <>) of Message_Elem_Type;
type Hash_Index_Type is (<>);
type Hash_Elem_Type is (<>);
type Hash_Type is array (Hash_Index_Type) of Hash_Elem_Type;
function Hash_SHA256 (Message : Message_Type) return Hash_Type;
generic
type Message_Index_Type is (<>);
type Message_Elem_Type is (<>);
type Message_Type is array (Message_Index_Type range <>) of Message_Elem_Type;
type Hash_Index_Type is (<>);
type Hash_Elem_Type is (<>);
type Hash_Type is array (Hash_Index_Type) of Hash_Elem_Type;
function Hash_SHA384 (Message : Message_Type) return Hash_Type;
generic
type Message_Index_Type is (<>);
type Message_Elem_Type is (<>);
type Message_Type is array (Message_Index_Type range <>) of Message_Elem_Type;
type Hash_Index_Type is (<>);
type Hash_Elem_Type is (<>);
type Hash_Type is array (Hash_Index_Type) of Hash_Elem_Type;
function Hash_SHA512 (Message : Message_Type) return Hash_Type;
end LSC.SHA2_Generic;
|
with Animals.Humans;
with Animals.Flying_Horses;
use Animals;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Humans_Horses is
Rider : Humans.Human :=
Humans.Make ("Knight Rider",
Humans.Male);
Pegasus : Flying_Horses.Flying_Horse :=
Flying_Horses.Make (Flying_Horses.Snow_White);
procedure Transform_Accordingly (O : in out Animal) is
begin
O.Add_Wings (2);
O.Add_Legs (1);
end Transform_Accordingly;
procedure Transform_Accordingly_OK (O : in out Animal'Class) is
begin
O.Add_Wings (2);
O.Add_Legs (1);
end Transform_Accordingly_OK;
NL : constant Character := Character'Val (10);
begin
Put_Line("Original Rider" & NL &
Integer'Image (Rider.Wings) & " wings" & NL &
Integer'Image (Rider.Legs) & " legs");
Put_Line("Original Pegasus" & NL &
Integer'Image (Pegasus.Wings) & " wings" & NL &
Integer'Image (Pegasus.Legs) & " legs");
-- This isn't what we want
--Transform_Accordingly (Animal (Rider));
--Transform_Accordingly (Animal (Pegasus));
Transform_Accordingly_OK (Rider);
Transform_Accordingly_OK (Pegasus);
Put_Line("Trans Rider" & NL &
Integer'Image (Rider.Wings) & " wings" & NL &
Integer'Image (Rider.Legs) & " legs");
Put_Line("Trans Pegasus" & NL &
Integer'Image (Pegasus.Wings) & " wings" & NL &
Integer'Image (Pegasus.Legs) & " legs");
end Test_Humans_Horses;
|
------------------------------------------------------------------------------
-- Copyright (c) 2014, 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. --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Simple_Webapps.Upload_Servers provides a basic implementation of an HTTP --
-- file server designed around upload. --
-- The main page ("/") contains a file upload form. After file upload, the --
-- user is redirected to a report page where they can check details about --
-- the uploaded file (Hash checksum, recorded MIME type and name, etc). --
-- The file can then either be used directly from the server filesystem, or --
-- downloaded using a secret URI generated from a server-wide key and the --
-- file hash. Secret download URI prevents service abuse by limiting access --
-- to people knowing the secret key. --
------------------------------------------------------------------------------
with AWS.Dispatchers;
with AWS.Status;
with AWS.Response;
with Natools.S_Expressions.Lockable;
private with Ada.Calendar;
private with Ada.Containers.Ordered_Maps;
private with Ada.Containers.Ordered_Sets;
private with Ada.Directories;
private with Ada.Strings.Unbounded;
private with Natools.Cron;
private with Natools.References;
private with Natools.Storage_Pools;
private with Natools.S_Expressions.Atom_Refs;
private with Natools.S_Expressions.Printers.Pretty;
package Simple_Webapps.Upload_Servers is
type Handler is new AWS.Dispatchers.Handler with private;
overriding function Dispatch
(Dispatcher : Handler;
Request : AWS.Status.Data)
return AWS.Response.Data;
overriding function Clone (Dispatcher : Handler) return Handler;
procedure Reset
(Dispatcher : in out Handler;
Config_File : in String;
Debug : in Boolean := False);
procedure Reset
(Dispatcher : in out Handler;
Config : in out Natools.S_Expressions.Lockable.Descriptor'Class;
Debug : in Boolean := False);
type Log_Procedure is not null access procedure (Message : in String);
procedure Discard_Log (Message : in String) is null;
Log : Log_Procedure := Discard_Log'Access;
-- Note that Log.all is called in procedures of the proctected backend
-- objects. So Log must not be potentially blocking, but can be
-- non-reentrant if only one backend is created.
private
package S_Expressions renames Natools.S_Expressions;
subtype String_Holder is Ada.Strings.Unbounded.Unbounded_String;
function Hold (S : String) return String_Holder
renames Ada.Strings.Unbounded.To_Unbounded_String;
function To_String (H : String_Holder) return String
renames Ada.Strings.Unbounded.To_String;
subtype URI_Key is String (1 .. 27);
type Size_Time is range 0 .. 10 ** 15;
-- Product of a file size and a time, used to cap expiration times
package Backend is
package Atom_Refs renames Natools.S_Expressions.Atom_Refs;
type File is tagged private;
function Is_Empty (Self : File) return Boolean;
function Name (Self : File) return String;
function Path (Self : File) return String;
function Comment (Self : File) return String;
function Report (Self : File) return URI_Key;
function Download (Self : File) return URI_Key;
function Hash_Type (Self : File) return String;
function Hex_Digest (Self : File) return String;
function MIME_Type (Self : File) return String;
function Upload (Self : File) return Ada.Calendar.Time;
function Expiration (Self : File) return Ada.Calendar.Time;
type File_Set is private;
type Config_Data is private;
protected type Database is
function Report (Key : URI_Key) return File;
function Download (Key : URI_Key) return File;
function Error_Template return String;
function Index_Template return String;
function Max_Expiration return Size_Time;
function Static_Resource_Dir return String;
function Report_Template return String;
function Debug_Activated return Boolean;
function Iterate
(Process : not null access procedure (F : in File))
return Boolean;
procedure Add_File
(Local_Path : in String;
Name : in String;
Comment : in String;
MIME_Type : in String;
Expiration : in Ada.Calendar.Time;
Report : out URI_Key);
-- Add a new file to the internal database
procedure Purge_Expired;
-- Remove expired entries from database
procedure Reset
(New_Config : in out S_Expressions.Lockable.Descriptor'Class;
New_Debug : in Boolean := False);
-- Reset database to a clean state with the given parameters
private
Config : Config_Data;
Files : File_Set;
Debug : Boolean := False;
end Database;
private
function Path
(Directory : Atom_Refs.Immutable_Reference;
Report : URI_Key)
return String;
type File_Data is record
Name : String_Holder;
Comment : String_Holder;
MIME_Type : String_Holder;
Report : URI_Key;
Download : URI_Key;
Upload : Ada.Calendar.Time;
Expiration : Ada.Calendar.Time;
Directory : Atom_Refs.Immutable_Reference;
end record;
package File_Refs is new Natools.References
(File_Data,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool);
type File is tagged record
Ref : File_Refs.Immutable_Reference;
end record;
function Expire_Before (Left, Right : File) return Boolean;
package File_Maps is new Ada.Containers.Ordered_Maps (URI_Key, File);
package Time_Sets is new Ada.Containers.Ordered_Sets
(File, Expire_Before);
type File_Set is record
Reports : File_Maps.Map;
Downloads : File_Maps.Map;
Expires : Time_Sets.Set;
end record;
procedure Read
(Self : out File_Set;
Input : in out S_Expressions.Lockable.Descriptor'Class;
Directory : in Atom_Refs.Immutable_Reference);
type Config_Data is record
Storage_File : String_Holder;
Error_Template : String_Holder;
Index_Template : String_Holder;
Report_Template : String_Holder;
Static_Dir : String_Holder;
Directory : Atom_Refs.Immutable_Reference;
HMAC_Key : String_Holder;
Max_Expiration : Size_Time := 368_640_000; -- 100 kB.h
Input_Dir : String_Holder;
Printer_Param : S_Expressions.Printers.Pretty.Parameters;
end record;
end Backend;
function Expiration
(DB : Backend.Database;
Request_Number : Natural;
Request_Unit : String;
Size : Ada.Directories.File_Size)
return Ada.Calendar.Time;
package Database_Refs is new Natools.References
(Backend.Database,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool);
package Timer_Refs is new Natools.References
(Natools.Cron.Cron_Entry,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool,
Natools.Storage_Pools.Access_In_Default_Pool'Storage_Pool);
type Handler is new AWS.Dispatchers.Handler with record
DB : Database_Refs.Reference;
Timer : Timer_Refs.Reference;
end record;
type Purge_Callback is new Natools.Cron.Callback with record
DB : Database_Refs.Reference;
end record;
overriding procedure Run (Self : in out Purge_Callback);
end Simple_Webapps.Upload_Servers;
|
type Link;
type Link_Access is access Link;
type Link is record
Next : Link_Access := null;
Data : Integer;
end record;
|
package body OpenGL.Texture is
--
-- Mappings between enumeration types and OpenGL constants.
--
function Environment_Target_To_Constant
(Target : in Environment_Target_t) return Thin.Enumeration_t is
begin
case Target is
when Texture_Environment => return Thin.GL_TEXTURE_ENV;
when Texture_Filter_Control => return Thin.GL_TEXTURE_FILTER_CONTROL;
when Point_Sprite => return Thin.GL_POINT_SPRITE;
end case;
end Environment_Target_To_Constant;
function Environment_Parameter_To_Constant
(Value : in Environment_Parameter_t) return Thin.Enumeration_t is
begin
case Value is
when Texture_Env_Mode => return Thin.GL_TEXTURE_ENV_MODE;
when Texture_LOD_Bias => return Thin.GL_TEXTURE_LOD_BIAS;
when Combine_RGB => return Thin.GL_COMBINE_RGB;
when Combine_Alpha => return Thin.GL_COMBINE_ALPHA;
when Source0_RGB => return Thin.GL_SRC0_RGB;
when Source1_RGB => return Thin.GL_SRC1_RGB;
when Source2_RGB => return Thin.GL_SRC2_RGB;
when Source0_Alpha => return Thin.GL_SRC0_ALPHA;
when Source1_Alpha => return Thin.GL_SRC1_ALPHA;
when Source2_Alpha => return Thin.GL_SRC2_ALPHA;
when Operand0_RGB => return Thin.GL_OPERAND0_RGB;
when Operand1_RGB => return Thin.GL_OPERAND1_RGB;
when Operand2_RGB => return Thin.GL_OPERAND2_RGB;
when Operand0_Alpha => return Thin.GL_OPERAND0_ALPHA;
when Operand1_Alpha => return Thin.GL_OPERAND1_ALPHA;
when Operand2_Alpha => return Thin.GL_OPERAND2_ALPHA;
when RGB_Scale => return Thin.GL_RGB_SCALE;
when Alpha_Scale => return Thin.GL_ALPHA_SCALE;
when Coord_Replace => return Thin.GL_COORD_REPLACE;
end case;
end Environment_Parameter_To_Constant;
function Target_To_Constant
(Value : in Target_t) return Thin.Enumeration_t is
begin
case Value is
when Texture_1D => return Thin.GL_TEXTURE_1D;
when Texture_2D => return Thin.GL_TEXTURE_2D;
when Texture_3D => return Thin.GL_TEXTURE_3D;
when Texture_Cube_Map => return Thin.GL_TEXTURE_CUBE_MAP;
when Texture_Rectangle_ARB => return Thin.GL_TEXTURE_RECTANGLE_ARB;
end case;
end Target_To_Constant;
function Texture_Parameter_To_Constant
(Value : in Texture_Parameter_t) return Thin.Enumeration_t is
begin
case Value is
when Texture_Min_Filter => return Thin.GL_TEXTURE_MIN_FILTER;
when Texture_Mag_Filter => return Thin.GL_TEXTURE_MAG_FILTER;
when Texture_Min_LOD => return Thin.GL_TEXTURE_MIN_LOD;
when Texture_Max_LOD => return Thin.GL_TEXTURE_MAX_LOD;
when Texture_Base_Level => return Thin.GL_TEXTURE_BASE_LEVEL;
when Texture_Max_Level => return Thin.GL_TEXTURE_MAX_LEVEL;
when Texture_Wrap_S => return Thin.GL_TEXTURE_WRAP_S;
when Texture_Wrap_T => return Thin.GL_TEXTURE_WRAP_T;
when Texture_Wrap_R => return Thin.GL_TEXTURE_WRAP_R;
when Texture_Priority => return Thin.GL_TEXTURE_PRIORITY;
when Texture_Compare_Mode => return Thin.GL_TEXTURE_COMPARE_MODE;
when Texture_Compare_Func => return Thin.GL_TEXTURE_COMPARE_FUNC;
when Depth_Texture_Mode => return Thin.GL_DEPTH_TEXTURE_MODE;
when Generate_Mipmap => return Thin.GL_GENERATE_MIPMAP;
end case;
end Texture_Parameter_To_Constant;
function Storage_To_Constant (Value : in Storage_Parameter_t)
return Thin.Enumeration_t is
begin
case Value is
when Pack_Swap_Bytes => return Thin.GL_PACK_SWAP_BYTES;
when Pack_LSB_First => return Thin.GL_PACK_LSB_FIRST;
when Pack_Row_Length => return Thin.GL_PACK_ROW_LENGTH;
when Pack_Image_Height => return Thin.GL_PACK_IMAGE_HEIGHT;
when Pack_Skip_Pixels => return Thin.GL_PACK_SKIP_PIXELS;
when Pack_Skip_Rows => return Thin.GL_PACK_SKIP_ROWS;
when Pack_Skip_Images => return Thin.GL_PACK_SKIP_IMAGES;
when Pack_Alignment => return Thin.GL_PACK_ALIGNMENT;
when Unpack_Swap_Bytes => return Thin.GL_UNPACK_SWAP_BYTES;
when Unpack_LSB_First => return Thin.GL_UNPACK_LSB_FIRST;
when Unpack_Row_Length => return Thin.GL_UNPACK_ROW_LENGTH;
when Unpack_Image_Height => return Thin.GL_UNPACK_IMAGE_HEIGHT;
when Unpack_Skip_Pixels => return Thin.GL_UNPACK_SKIP_PIXELS;
when Unpack_Skip_Rows => return Thin.GL_UNPACK_SKIP_ROWS;
when Unpack_Skip_Images => return Thin.GL_UNPACK_SKIP_IMAGES;
when Unpack_Alignment => return Thin.GL_UNPACK_ALIGNMENT;
end case;
end Storage_To_Constant;
function Target_1D_To_Constant (Target : in Target_1D_t)
return Thin.Enumeration_t is
begin
case Target is
when Texture_1D => return Thin.GL_TEXTURE_1D;
when Proxy_Texture_1D => return Thin.GL_PROXY_TEXTURE_1D;
when Texture_Rectangle_ARB => return Thin.GL_TEXTURE_RECTANGLE_ARB;
end case;
end Target_1D_To_Constant;
function Target_2D_To_Constant (Target : in Target_2D_t)
return Thin.Enumeration_t is
begin
case Target is
when Proxy_Texture_2D => return Thin.GL_PROXY_TEXTURE_2D;
when Proxy_Texture_Cube_Map => return Thin.GL_PROXY_TEXTURE_CUBE_MAP;
when Texture_2D => return Thin.GL_TEXTURE_2D;
when Texture_Cube_Map_Negative_X => return Thin.GL_TEXTURE_CUBE_MAP_NEGATIVE_X;
when Texture_Cube_Map_Negative_Y => return Thin.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y;
when Texture_Cube_Map_Negative_Z => return Thin.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z;
when Texture_Cube_Map_Positive_X => return Thin.GL_TEXTURE_CUBE_MAP_POSITIVE_X;
when Texture_Cube_Map_Positive_Y => return Thin.GL_TEXTURE_CUBE_MAP_POSITIVE_Y;
when Texture_Cube_Map_Positive_Z => return Thin.GL_TEXTURE_CUBE_MAP_POSITIVE_Z;
when Texture_Rectangle_ARB => return Thin.GL_TEXTURE_RECTANGLE_ARB;
end case;
end Target_2D_To_Constant;
function Target_3D_To_Constant (Target : in Target_3D_t)
return Thin.Enumeration_t is
begin
case Target is
when Texture_3D => return Thin.GL_TEXTURE_3D;
when Proxy_Texture_3D => return Thin.GL_PROXY_TEXTURE_3D;
when Texture_Rectangle_ARB => return Thin.GL_TEXTURE_RECTANGLE_ARB;
end case;
end Target_3D_To_Constant;
function Format_To_Constant (Format : in Format_t)
return Thin.Enumeration_t is
begin
case Format is
when Color_Index => return Thin.GL_COLOR_INDEX;
when Red => return Thin.GL_RED;
when Green => return Thin.GL_GREEN;
when Blue => return Thin.GL_BLUE;
when Alpha => return Thin.GL_ALPHA;
when RGB => return Thin.GL_RGB;
when BGR => return Thin.GL_BGR;
when RGBA => return Thin.GL_RGBA;
when BGRA => return Thin.GL_BGRA;
when Luminance => return Thin.GL_LUMINANCE;
when Luminance_Alpha => return Thin.GL_LUMINANCE_ALPHA;
end case;
end Format_To_Constant;
function Internal_To_Constant (Format : in Internal_Format_t)
return Thin.Integer_t is
begin
case Format is
when Alpha => return Thin.GL_ALPHA;
when Alpha_4 => return Thin.GL_ALPHA4;
when Alpha_8 => return Thin.GL_ALPHA8;
when Alpha_12 => return Thin.GL_ALPHA12;
when Alpha_16 => return Thin.GL_ALPHA16;
when Compressed_Alpha => return Thin.GL_COMPRESSED_ALPHA;
when Compressed_Luminance => return Thin.GL_COMPRESSED_LUMINANCE;
when Compressed_Luminance_Alpha => return Thin.GL_COMPRESSED_LUMINANCE_ALPHA;
when Compressed_Intensity => return Thin.GL_COMPRESSED_INTENSITY;
when Compressed_RGB => return Thin.GL_COMPRESSED_RGB;
when Compressed_RGBA => return Thin.GL_COMPRESSED_RGBA;
when Luminance => return Thin.GL_LUMINANCE;
when Luminance_4 => return Thin.GL_LUMINANCE4;
when Luminance_8 => return Thin.GL_LUMINANCE8;
when Luminance_12 => return Thin.GL_LUMINANCE12;
when Luminance_16 => return Thin.GL_LUMINANCE16;
when Luminance_Alpha => return Thin.GL_LUMINANCE_ALPHA;
when Luminance_4_Alpha_4 => return Thin.GL_LUMINANCE4_ALPHA4;
when Luminance_6_Alpha_2 => return Thin.GL_LUMINANCE6_ALPHA2;
when Luminance_8_Alpha_8 => return Thin.GL_LUMINANCE8_ALPHA8;
when Luminance_12_Alpha_4 => return Thin.GL_LUMINANCE12_ALPHA4;
when Luminance_12_Alpha_12 => return Thin.GL_LUMINANCE12_ALPHA12;
when Luminance_16_Alpha_16 => return Thin.GL_LUMINANCE16_ALPHA16;
when Intensity => return Thin.GL_INTENSITY;
when Intensity_4 => return Thin.GL_INTENSITY4;
when Intensity_8 => return Thin.GL_INTENSITY8;
when Intensity_12 => return Thin.GL_INTENSITY12;
when Intensity_16 => return Thin.GL_INTENSITY16;
when R3_G3_B2 => return Thin.GL_R3_G3_B2;
when RGB => return Thin.GL_RGB;
when RGB_4 => return Thin.GL_RGB4;
when RGB_5 => return Thin.GL_RGB5;
when RGB_8 => return Thin.GL_RGB8;
when RGB_10 => return Thin.GL_RGB10;
when RGB_12 => return Thin.GL_RGB12;
when RGB_16 => return Thin.GL_RGB16;
when RGBA => return Thin.GL_RGBA;
when RGBA_2 => return Thin.GL_RGBA2;
when RGBA_4 => return Thin.GL_RGBA4;
when RGB5_A1 => return Thin.GL_RGB5_A1;
when RGBA_8 => return Thin.GL_RGBA8;
when RGB10_A2 => return Thin.GL_RGB10_A2;
when RGBA_12 => return Thin.GL_RGBA12;
when RGBA_16 => return Thin.GL_RGBA16;
when SLuminance => return Thin.GL_SLUMINANCE;
when SLuminance_8 => return Thin.GL_SLUMINANCE8;
when SLuminance_Alpha => return Thin.GL_SLUMINANCE_ALPHA;
when SLuminance_8_Alpha_8 => return Thin.GL_SLUMINANCE8_ALPHA8;
when SRGB => return Thin.GL_SRGB;
when SRGB_8 => return Thin.GL_SRGB8;
when SRGB_Alpha => return Thin.GL_SRGB_ALPHA;
when SRGB_8_Alpha_8 => return Thin.GL_SRGB8_ALPHA8;
end case;
end Internal_To_Constant;
function Data_Type_To_Constant (Data_Type : in Data_Type_t)
return Thin.Enumeration_t is
begin
case Data_Type is
when Unsigned_Byte => return Thin.GL_UNSIGNED_BYTE;
when Byte => return Thin.GL_BYTE;
when Bitmap => return Thin.GL_BITMAP;
when Unsigned_Short => return Thin.GL_UNSIGNED_SHORT;
when Short => return Thin.GL_SHORT;
when Unsigned_Integer => return Thin.GL_UNSIGNED_INT;
when Integer => return Thin.GL_INT;
when Float => return Thin.GL_FLOAT;
when Unsigned_Byte_3_3_2 => return Thin.GL_UNSIGNED_BYTE_3_3_2;
when Unsigned_Byte_2_3_3_Rev => return Thin.GL_UNSIGNED_BYTE_2_3_3_REV;
when Unsigned_Short_5_6_5 => return Thin.GL_UNSIGNED_SHORT_5_6_5;
when Unsigned_Short_5_6_5_Rev => return Thin.GL_UNSIGNED_SHORT_5_6_5_REV;
when Unsigned_Short_4_4_4_4 => return Thin.GL_UNSIGNED_SHORT_4_4_4_4;
when Unsigned_Short_4_4_4_4_Rev => return Thin.GL_UNSIGNED_SHORT_4_4_4_4_REV;
when Unsigned_Short_5_5_5_1 => return Thin.GL_UNSIGNED_SHORT_5_5_5_1;
when Unsigned_Short_1_5_5_5_Rev => return Thin.GL_UNSIGNED_SHORT_1_5_5_5_REV;
when Unsigned_Integer_8_8_8_8 => return Thin.GL_UNSIGNED_INT_8_8_8_8;
when Unsigned_Integer_8_8_8_8_Rev => return Thin.GL_UNSIGNED_INT_8_8_8_8_REV;
when Unsigned_Integer_10_10_10_2 => return Thin.GL_UNSIGNED_INT_10_10_10_2;
when Unsigned_Integer_2_10_10_10_Rev => return Thin.GL_UNSIGNED_INT_2_10_10_10_REV;
end case;
end Data_Type_To_Constant;
--
-- Environment
--
procedure Environment
(Target : in Environment_Target_t;
Parameter : in Environment_Parameter_t;
Value : in Standard.Integer) is
begin
Thin.Tex_Envi
(Target => Environment_Target_To_Constant (Target),
Parameter => Environment_Parameter_To_Constant (Parameter),
Value => Thin.Integer_t (Value));
end Environment;
procedure Environment
(Target : in Environment_Target_t;
Parameter : in Environment_Parameter_t;
Value : in Standard.Float) is
begin
Thin.Tex_Envf
(Target => Environment_Target_To_Constant (Target),
Parameter => Environment_Parameter_To_Constant (Parameter),
Value => Thin.Float_t (Value));
end Environment;
--
-- Pixel_Store
--
procedure Pixel_Store
(Parameter : in Storage_Parameter_t;
Value : in Standard.Integer) is
begin
Thin.Pixel_Storei
(Parameter => Storage_To_Constant (Parameter),
Value => Thin.Integer_t (Value));
end Pixel_Store;
procedure Pixel_Store
(Parameter : in Storage_Parameter_t;
Value : in Standard.Float) is
begin
Thin.Pixel_Storef
(Parameter => Storage_To_Constant (Parameter),
Value => Thin.Float_t (Value));
end Pixel_Store;
--
-- Parameter
--
procedure Parameter
(Target : in Target_t;
Parameter : in Texture_Parameter_t;
Value : in Standard.Integer) is
begin
Thin.Tex_Parameteri
(Target => Target_To_Constant (Target),
Parameter => Texture_Parameter_To_Constant (Parameter),
Value => Thin.Integer_t (Value));
end Parameter;
procedure Parameter
(Target : in Target_t;
Parameter : in Texture_Parameter_t;
Value : in Standard.Float) is
begin
Thin.Tex_Parameterf
(Target => Target_To_Constant (Target),
Parameter => Texture_Parameter_To_Constant (Parameter),
Value => Thin.Float_t (Value));
end Parameter;
--
-- Image_3D
--
procedure Image_3D
(Target : in Target_3D_t;
Level : in Natural;
Internal_Format : in Internal_Format_t;
Width : in Positive;
Height : in Positive;
Depth : in Positive;
Border : in Border_Width_t;
Format : in Format_t;
Data : in Data_Array_t;
Data_Type : in Data_Type_t) is
begin
Thin.Tex_Image_3D
(Target => Target_3D_To_Constant (Target),
Level => Thin.Integer_t (Level),
Internal_Format => Internal_To_Constant (Internal_Format),
Width => Thin.Size_t (Width),
Height => Thin.Size_t (Height),
Depth => Thin.Size_t (Depth),
Border => Thin.Integer_t (Border),
Format => Format_To_Constant (Format),
Data_Type => Data_Type_To_Constant (Data_Type),
Data => Data (Data'First)'Address);
end Image_3D;
--
-- Image_2D
--
procedure Image_2D
(Target : in Target_2D_t;
Level : in Natural;
Internal_Format : in Internal_Format_t;
Width : in Positive;
Height : in Positive;
Border : in Border_Width_t;
Format : in Format_t;
Data : in Data_Array_t;
Data_Type : in Data_Type_t) is
begin
Thin.Tex_Image_2D
(Target => Target_2D_To_Constant (Target),
Level => Thin.Integer_t (Level),
Internal_Format => Internal_To_Constant (Internal_Format),
Width => Thin.Size_t (Width),
Height => Thin.Size_t (Height),
Border => Thin.Integer_t (Border),
Format => Format_To_Constant (Format),
Data_Type => Data_Type_To_Constant (Data_Type),
Data => Data (Data'First)'Address);
end Image_2D;
--
-- Image_1D
--
procedure Image_1D
(Target : in Target_1D_t;
Level : in Natural;
Internal_Format : in Internal_Format_t;
Width : in Positive;
Border : in Border_Width_t;
Format : in Format_t;
Data : in Data_Array_t;
Data_Type : in Data_Type_t) is
begin
Thin.Tex_Image_1D
(Target => Target_1D_To_Constant (Target),
Level => Thin.Integer_t (Level),
Internal_Format => Internal_To_Constant (Internal_Format),
Width => Thin.Size_t (Width),
Border => Thin.Integer_t (Border),
Format => Format_To_Constant (Format),
Data_Type => Data_Type_To_Constant (Data_Type),
Data => Data (Data'First)'Address);
end Image_1D;
--
-- Generate
--
procedure Generate
(Textures : in out Index_Array_t) is
begin
Thin.Gen_Textures
(Size => Textures'Length,
Textures => Textures (Textures'First)'Address);
end Generate;
--
-- Bind
--
procedure Bind
(Target : in Target_t;
Texture : in Index_t) is
begin
Thin.Bind_Texture
(Target => Target_To_Constant (Target),
Texture => Thin.Unsigned_Integer_t (Texture));
end Bind;
--
-- Blend_Function
--
function Blend_Factor_To_Constant
(Blend_Factor : in Blend_Factor_t) return Thin.Enumeration_t is
begin
case Blend_Factor is
when Blend_Zero => return Thin.GL_ZERO;
when Blend_One => return Thin.GL_ONE;
when Blend_Source_Color => return Thin.GL_SRC_COLOR;
when Blend_One_Minus_Source_Color => return Thin.GL_ONE_MINUS_SRC_COLOR;
when Blend_Target_Color => return Thin.GL_DST_COLOR;
when Blend_One_Minus_Target_Color => return Thin.GL_ONE_MINUS_DST_COLOR;
when Blend_Source_Alpha => return Thin.GL_SRC_ALPHA;
when Blend_One_Minus_Source_Alpha => return Thin.GL_ONE_MINUS_SRC_ALPHA;
when Blend_Target_Alpha => return Thin.GL_DST_ALPHA;
when Blend_One_Minus_Target_Alpha => return Thin.GL_ONE_MINUS_DST_ALPHA;
when Blend_Constant_Color => return Thin.GL_CONSTANT_COLOR;
when Blend_One_Minus_Constant_Color => return Thin.GL_ONE_MINUS_CONSTANT_COLOR;
when Blend_Constant_Alpha => return Thin.GL_CONSTANT_ALPHA;
when Blend_One_Minus_Constant_Alpha => return Thin.GL_ONE_MINUS_CONSTANT_ALPHA;
when Blend_Source_Alpha_Saturate => return Thin.GL_SRC_ALPHA_SATURATE;
end case;
end Blend_Factor_To_Constant;
procedure Blend_Function
(Source_Factor : in Blend_Factor_t;
Target_Factor : in Blend_Factor_t) is
begin
Thin.Blend_Func
(Source_Factor => Blend_Factor_To_Constant (Source_Factor),
Target_Factor => Blend_Factor_To_Constant (Target_Factor));
end Blend_Function;
end OpenGL.Texture;
|
<?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>lineIntersectsPlane</name>
<ret_bitwidth>96</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>7</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>edge_p1_x</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>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>edge_p1_y</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>edge_p1_z</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>edge_p2_x</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>edge_p2_y</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>edge_p2_z</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>plane</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>plane</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>39</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>plane_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/mnt/hgfs/Thesis/HoneyBee</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>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>plane</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>49</item>
<item>50</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>edge_p2_z_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>51</item>
<item>52</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>21</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>edge_p2_y_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>53</item>
<item>54</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>edge_p2_x_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>55</item>
<item>56</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>edge_p1_z_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>57</item>
<item>58</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>22</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>edge_p1_y_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>59</item>
<item>60</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>edge_p1_x_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</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>61</item>
<item>62</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>PR_z</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>12</lineNumber>
<contextFuncName>vector</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>61</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>vector</second>
</first>
<second>12</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.z</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>2</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>tmp_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</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>65</item>
<item>67</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>3</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>bitcast_ln20</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</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>68</item>
</oprand_edges>
<opcode>bitcast</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="_18">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>xor_ln20</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</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>69</item>
<item>71</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.80</m_delay>
<m_topoIndex>5</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>bitcast_ln20_1</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</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>72</item>
</oprand_edges>
<opcode>bitcast</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="_20">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>norm_y</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.x</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>73</item>
<item>74</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>7</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>tmp_i9</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</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>75</item>
<item>76</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>tmp_28_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</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>77</item>
<item>78</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>17</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>dot</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>dot</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>79</item>
<item>80</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>23</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>tmp_i1</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>81</item>
<item>82</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>13</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>tmp_i1_6</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>83</item>
<item>84</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>14</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>tmp_15_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>85</item>
<item>86</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>tmp_17_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>87</item>
<item>88</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>24</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>tmp_18_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>89</item>
<item>90</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>27</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>tmp_19_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>91</item>
<item>92</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>15</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>tmp_20_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>93</item>
<item>94</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</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>tmp_21_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>95</item>
<item>96</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>16</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>tmp_22_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>97</item>
<item>98</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>20</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>tmp_23_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>99</item>
<item>100</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>25</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>tmp_24_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>101</item>
<item>102</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>26</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>tmp_26_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</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>103</item>
<item>104</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>28</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>T</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>T</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>105</item>
<item>106</item>
</oprand_edges>
<opcode>fdiv</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>7.19</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>tmp_i2</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</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>107</item>
<item>108</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>30</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>agg_result_x_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.x</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>109</item>
<item>110</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>tmp_12_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</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>111</item>
<item>112</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>agg_result_y_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.y</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>113</item>
<item>114</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>tmp_14_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</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>115</item>
<item>116</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>agg_result_z_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.z</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>117</item>
<item>118</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>35</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>mrv_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>120</item>
<item>121</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>36</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>mrv_1_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>122</item>
<item>123</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>37</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>mrv_2_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>124</item>
<item>125</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>38</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>_ln76</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>76</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>126</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>39</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_47">
<Value>
<Obj>
<type>2</type>
<id>66</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>1</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_48">
<Value>
<Obj>
<type>2</type>
<id>70</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>2147483648</content>
</item>
<item class_id_reference="16" object_id="_49">
<Value>
<Obj>
<type>2</type>
<id>119</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>96</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="_50">
<Obj>
<type>3</type>
<id>47</id>
<name>lineIntersectsPlane</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>39</count>
<item_version>0</item_version>
<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>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>68</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_51">
<id>50</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="_52">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_53">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>64</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>65</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="_61">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_62">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>69</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="_64">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>74</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="_68">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>90</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="_84">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>94</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>96</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>97</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="_91">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>106</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="_100">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>119</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</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="_119">
<mId>1</mId>
<mTag>lineIntersectsPlane</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>47</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>44</mMinLatency>
<mMaxLatency>44</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>39</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>8</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>18</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>18</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>3</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>4</first>
<second>2</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>7</first>
<second>3</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>14</first>
<second>3</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>14</first>
<second>3</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>22</first>
<second>3</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>11</first>
<second>3</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>15</first>
<second>2</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>11</first>
<second>3</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>15</first>
<second>2</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>22</first>
<second>3</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>26</first>
<second>11</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>44</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>47</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>44</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>
|
package AdaM.Assist
is
function Tail_of (the_full_Name : in Identifier) return Identifier;
function strip_Tail_of (the_full_Name : in Identifier) return Identifier;
function type_button_Name_of (the_full_Name : in Identifier) return String;
-- function Split (the_Text : in String) return text_Lines;
function identifier_Suffix (Id : in Identifier; Count : in Positive) return Identifier;
function strip_standard_Prefix (Id : in Identifier) return Identifier;
function parent_Name (Id : in Identifier) return Identifier;
function simple_Name (Id : in Identifier) return Identifier;
function Split (Id : in Identifier) return text_Lines;
end AdaM.Assist;
|
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Lexer.Source.File is
overriding procedure Read_Data (S : in out Instance; Buffer : out String;
Length : out Natural) is
use type Ada.Directories.File_Size;
begin
Length := Natural'Min (Buffer'Length, Natural (S.Input_Length - S.Input_At));
declare
subtype Read_Blob is String (1 .. Length);
begin
Read_Blob'Read (S.Stream, Buffer (Buffer'First .. Buffer'First + Length - 1));
S.Input_At := S.Input_At + Ada.Directories.File_Size (Length);
end;
end Read_Data;
overriding procedure Finalize (Object : in out Instance) is
begin
Ada.Streams.Stream_IO.Close (Object.File);
end Finalize;
function As_Source (File_Path : String) return Pointer is
Ret : constant access Instance :=
new Instance'(Source.Instance with Input_At => 0,
Input_Length => Ada.Directories.Size (File_Path),
others => <>);
begin
Ada.Streams.Stream_IO.Open (Ret.File, Ada.Streams.Stream_IO.In_File,
File_Path);
Ret.Stream := Ada.Streams.Stream_IO.Stream (Ret.File);
return Pointer (Ret);
end As_Source;
end Lexer.Source.File;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with System.Storage_Elements;
with HAL; use HAL;
private with System;
package USB is
subtype EP_Id is UInt4;
type EP_Dir is (EP_In, EP_Out);
type EP_Addr is record
Num : EP_Id;
Dir : EP_Dir;
end record;
type EP_Type is (Control, Isochronous, Bulk, Interrupt);
for EP_Type use (Control => 0,
Isochronous => 1,
Bulk => 2,
Interrupt => 3);
type Data_Phase_Transfer_Direction is (Host_To_Device,
Device_To_Host)
with Size => 1;
for Data_Phase_Transfer_Direction use (Host_To_Device => 0,
Device_To_Host => 1);
type Request_Type_Type is (Stand, Class, Vendor, Reserved)
with Size => 2;
for Request_Type_Type use (Stand => 0,
Class => 1,
Vendor => 2,
Reserved => 3);
type Request_Type_Recipient is (Dev, Iface, Endpoint, Other);
for Request_Type_Recipient use (Dev => 0,
Iface => 1,
Endpoint => 2,
Other => 3);
type Request_Type is record
Recipient : Request_Type_Recipient;
Reserved : UInt3;
Typ : Request_Type_Type;
Dir : Data_Phase_Transfer_Direction;
end record with Pack, Size => 8;
type Setup_Data is record
RType : Request_Type;
Request : UInt8;
Value : UInt16;
Index : UInt16;
Length : UInt16;
end record with Pack, Size => 8 * 8;
function Img (D : Setup_Data) return String
is ("Type: (" & D.RType.Dir'Img & "," & D.RType.Typ'Img & "," &
D.RType.Recipient'Img & ")" &
" Req:" & D.Request'Img &
" Val:" & D.Value'Img &
" Index:" & D.Index'Img &
" Len:" & D.Length'Img);
function Img (EP : EP_Addr) return String
is ("[" & EP.Dir'Img & EP.Num'Img & "]");
type String_Id is new UInt8;
Invalid_String_Id : constant String_Id := 0;
type Lang_ID is new UInt16;
type Interface_Id is new UInt8;
type Device_Descriptor is record
bLength : UInt8;
bDescriptorType : UInt8;
bcdUSB : UInt16;
bDeviceClass : UInt8;
bDeviceSubClass : UInt8;
bDeviceProtocol : UInt8;
bMaxPacketSize0 : UInt8;
idVendor : UInt16;
idProduct : UInt16;
bcdDevice : UInt16;
iManufacturer : String_Id;
iProduct : String_Id;
iSerialNumber : String_Id;
bNumConfigurations : UInt8;
end record with Pack;
type Device_Qualifier is record
bLength : UInt8;
bDescriptorType : UInt8;
bcdUSB : UInt16;
bDeviceClass : UInt8;
bDeviceSubClass : UInt8;
bDeviceProtocol : UInt8;
bMaxPacketSize0 : UInt8;
bNumConfigurations : UInt8;
bReserved : UInt8;
end record with Pack;
type String_Descriptor_Zero is record
bLength : UInt8;
bDescriptorType : UInt8 := 3;
Str : String (1 .. 2);
end record;
subtype String_Range is UInt8 range 0 .. 253;
-- The maximum length of a string is limited by the the bLength field of the
-- String Descriptor. This field is one byte: 0 .. 255, but bLength encodes
-- to total size of the descriptor including the bLenght and bDescriptorType
-- fields (one byte each). So the remaining length for string is 255 - 2.
type USB_String is array (String_Range range <>) of Character;
function To_USB_String (Str : String) return USB_String
with Pre => Str'Length * 2 <= String_Range'Last - String_Range'First + 1;
-- Convert Ada ASCII string to USB UTF16 string
type String_Descriptor (bLength : UInt8) is record
bDescriptorType : UInt8 := 3;
Str : USB_String (3 .. bLength);
end record with Pack;
type Setup_Request_Answer is (Handled, Not_Supported, Next_Callback);
subtype Buffer_Len is System.Storage_Elements.Storage_Offset;
Verbose : constant Boolean := False;
Logs_Enabled : constant Boolean := True;
Control_Buffer_Size : constant := 256;
Max_Strings : constant := 5;
Max_Total_String_Chars : constant := 256;
end USB;
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
-- SDL.C_Pointers
--
-- This private package contains all the types representing the internal C pointers for various objects.
--------------------------------------------------------------------------------------------------------------------
private package SDL.C_Pointers is
type Windows is null record;
type Windows_Pointer is access all Windows with
Convention => C;
type Renderers is null record;
type Renderer_Pointer is access all Renderers with
Convention => C;
type Textures is null record;
type Texture_Pointer is access all Textures with
Convention => C;
type GL_Contexts is null record;
type GL_Context_Pointer is access all GL_Contexts with
Convention => C;
type Joysticks is null record;
type Joystick_Pointer is access all Joysticks with
Convention => C;
type Game_Controller is null record;
type Game_Controller_Pointer is access all Game_Controller with
Convention => C;
end SDL.C_Pointers;
|
with
openGL.Tasks,
GL.Binding,
ada.unchecked_Deallocation;
package body openGL.Primitive
is
---------
-- Forge
--
procedure define (Self : in out Item; Kind : in facet_Kind)
is
begin
Self.facet_Kind := Kind;
end define;
procedure free (Self : in out View)
is
procedure deallocate is new ada.Unchecked_Deallocation (Primitive.item'Class,
Primitive.view);
begin
Self.destroy;
deallocate (Self);
end free;
--------------
-- Attributes
--
function Texture (Self : in Item) return openGL.Texture.Object
is
begin
return Self.Texture;
end Texture;
procedure Texture_is (Self : in out Item; Now : in openGL.Texture.Object)
is
begin
Self.Texture := Now;
end Texture_is;
function Bounds (self : in Item) return openGL.Bounds
is
begin
return Self.Bounds;
end Bounds;
procedure Bounds_are (Self : in out Item; Now : in openGL.Bounds)
is
begin
Self.Bounds := Now;
end Bounds_are;
function is_Transparent (self : in Item) return Boolean
is
begin
return Self.is_Transparent;
end is_Transparent;
procedure is_Transparent (Self : in out Item; Now : in Boolean := True)
is
begin
Self.is_Transparent := Now;
end is_Transparent;
--------------
--- Operations
--
procedure render (Self : in out Item)
is
use GL,
GL.Binding;
begin
Tasks.check;
if Self.line_Width /= unused_line_Width
then
glLineWidth (glFloat (Self.line_Width));
end if;
end render;
end openGL.Primitive;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- SQL Database Access --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with League.Calendars.ISO_8601;
with Matreshka.Internals.SQL_Drivers.MySQL.Databases;
with Matreshka.Internals.SQL_Parameter_Rewriters.MySQL;
package body Matreshka.Internals.SQL_Drivers.MySQL.Queries is
use type Interfaces.C.int;
use type League.Calendars.ISO_8601.Nanosecond_100_Number;
procedure Set_MySQL_Stmt_Error (Self : not null access MySQL_Query'Class);
-- Sets error message to reported by database.
function To_Address is
new Ada.Unchecked_Conversion
(Interfaces.C.Strings.chars_ptr, System.Address);
function To_chars_ptr is
new Ada.Unchecked_Conversion
(System.Address, Interfaces.C.Strings.chars_ptr);
procedure Free is
new Ada.Unchecked_Deallocation
(MYSQL_BIND_Array, MYSQL_BIND_Array_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Value_Array, Value_Array_Access);
Rewriter : SQL_Parameter_Rewriters.MySQL.MySQL_Parameter_Rewriter;
-- SQL statement parameter rewriter.
----------------
-- Bind_Value --
----------------
overriding procedure Bind_Value
(Self : not null access MySQL_Query;
Name : League.Strings.Universal_String;
Value : League.Holders.Holder;
Direction : SQL.Parameter_Directions)
is
pragma Unreferenced (Direction);
-- Only 'in' parameters are supported now.
begin
Self.Parameters.Set_Value (Name, Value);
end Bind_Value;
-----------------
-- Bound_Value --
-----------------
overriding function Bound_Value
(Self : not null access MySQL_Query;
Name : League.Strings.Universal_String)
return League.Holders.Holder is
begin
raise Program_Error;
return League.Holders.Empty_Holder;
end Bound_Value;
-------------------
-- Error_Message --
-------------------
overriding function Error_Message
(Self : not null access MySQL_Query)
return League.Strings.Universal_String is
begin
return Self.Error;
end Error_Message;
-------------
-- Execute --
-------------
overriding function Execute
(Self : not null access MySQL_Query) return Boolean
is
Value : League.Holders.Holder;
Binds : MYSQL_BIND_Array (1 .. Self.Parameters.Number_Of_Positional);
Values : Value_Array (1 .. Self.Parameters.Number_Of_Positional);
Aux : Interfaces.C.Strings.chars_ptr;
Result : Interfaces.C.int;
begin
-- Prepare data for parameters when necessary.
for J in Binds'Range loop
Value := Self.Parameters.Value (J);
if League.Holders.Is_Empty (Value) then
Binds (J).buffer_type := MYSQL_TYPE_NULL;
elsif League.Holders.Is_Universal_String (Value) then
Aux :=
Interfaces.C.Strings.New_String
(League.Holders.Element (Value).To_UTF_8_String);
Values (J).Length_Value :=
Interfaces.C.unsigned_long
(Interfaces.C.Strings.Strlen (Aux));
Binds (J).buffer_type := MYSQL_TYPE_STRING;
Binds (J).buffer := To_Address (Aux);
Binds (J).length := Values (J).Length_Value'Unchecked_Access;
elsif League.Holders.Is_Abstract_Integer (Value) then
Values (J).Long_Long_Value :=
Interfaces.Integer_64
(League.Holders.Universal_Integer'
(League.Holders.Element (Value)));
Binds (J).buffer_type := MYSQL_TYPE_LONGLONG;
Binds (J).is_unsigned := 0;
Binds (J).buffer := Values (J).Long_Long_Value'Address;
elsif League.Holders.Is_Abstract_Float (Value) then
Values (J).Double_Value :=
Interfaces.C.double
(League.Holders.Universal_Float'
(League.Holders.Element (Value)));
Binds (J).buffer_type := MYSQL_TYPE_DOUBLE;
Binds (J).buffer := Values (J).Double_Value'Address;
elsif League.Holders.Is_Date (Value) then
declare
Aux : constant League.Calendars.Date
:= League.Holders.Element (Value);
Year : League.Calendars.ISO_8601.Year_Number;
Month : League.Calendars.ISO_8601.Month_Number;
Day : League.Calendars.ISO_8601.Day_Number;
begin
League.Calendars.ISO_8601.Split (Aux, Year, Month, Day);
Values (J).Time_Value :=
(year => Interfaces.C.unsigned (Year),
month => Interfaces.C.unsigned (Month),
day => Interfaces.C.unsigned (Day),
hour => 0,
minute => 0,
second => 0,
second_part => 0,
neg => 0,
time_type => MYSQL_TIMESTAMP_DATE);
Binds (J).buffer_type := MYSQL_TYPE_DATE;
Binds (J).buffer := Values (J).Time_Value'Address;
end;
elsif League.Holders.Is_Date_Time (Value) then
declare
Aux : constant League.Calendars.Date_Time
:= League.Holders.Element (Value);
Year : League.Calendars.ISO_8601.Year_Number;
Month : League.Calendars.ISO_8601.Month_Number;
Day : League.Calendars.ISO_8601.Day_Number;
Hour : League.Calendars.ISO_8601.Hour_Number;
Minute : League.Calendars.ISO_8601.Minute_Number;
Second : League.Calendars.ISO_8601.Second_Number;
Fraction : League.Calendars.ISO_8601.Nanosecond_100_Number;
begin
-- XXX UTC time zone must be specified here.
League.Calendars.ISO_8601.Split
(Aux, Year, Month, Day, Hour, Minute, Second, Fraction);
Values (J).Time_Value :=
(year => Interfaces.C.unsigned (Year),
month => Interfaces.C.unsigned (Month),
day => Interfaces.C.unsigned (Day),
hour => Interfaces.C.unsigned (Hour),
minute => Interfaces.C.unsigned (Minute),
second => Interfaces.C.unsigned (Second),
second_part => Interfaces.C.unsigned_long (Fraction / 10),
neg => 0,
time_type => MYSQL_TIMESTAMP_DATETIME);
Binds (J).buffer_type := MYSQL_TYPE_DATETIME;
Binds (J).buffer := Values (J).Time_Value'Address;
end;
elsif League.Holders.Is_Time (Value) then
declare
Aux : constant League.Calendars.Time
:= League.Holders.Element (Value);
begin
Values (J).Time_Value :=
(year => 0,
month => 0,
day => 0,
hour =>
Interfaces.C.unsigned
(League.Calendars.ISO_8601.Hour (Aux)),
minute =>
Interfaces.C.unsigned
(League.Calendars.ISO_8601.Minute (Aux)),
second =>
Interfaces.C.unsigned
(League.Calendars.ISO_8601.Second (Aux)),
second_part =>
Interfaces.C.unsigned_long
(League.Calendars.ISO_8601.Nanosecond_100 (Aux) / 10),
neg => 0,
time_type => MYSQL_TIMESTAMP_TIME);
Binds (J).buffer_type := MYSQL_TYPE_TIME;
Binds (J).buffer := Values (J).Time_Value'Address;
end;
end if;
end loop;
-- Bind data for parameters when necessary
if Binds'Length /= 0 then
if mysql_stmt_bind_param (Self.Handle, Binds (1)'Access) /= 0 then
Self.Set_MySQL_Stmt_Error;
return False;
end if;
end if;
Result := mysql_stmt_execute (Self.Handle);
-- Cleanup data for parameters.
for J in Binds'Range loop
-- Actual data is allocated dynamically for string only, release all
-- used memory.
if Binds (J).buffer_type = MYSQL_TYPE_STRING then
Aux := To_chars_ptr (Binds (J).buffer);
Interfaces.C.Strings.Free (Aux);
end if;
end loop;
if Result /= 0 then
Self.Set_MySQL_Stmt_Error;
return False;
end if;
Self.Is_Active := True;
Self.Is_Valid := False;
return True;
end Execute;
------------
-- Finish --
------------
overriding procedure Finish (Self : not null access MySQL_Query) is
begin
raise Program_Error;
end Finish;
----------------
-- Initialize --
----------------
procedure Initialize
(Self : not null access MySQL_Query'Class;
Database : not null access Databases.MySQL_Database'Class) is
begin
SQL_Drivers.Initialize (Self, Database_Access (Database));
Self.Is_Active := False;
Self.Is_Valid := False;
end Initialize;
----------------
-- Invalidate --
----------------
overriding procedure Invalidate (Self : not null access MySQL_Query) is
Aux : Interfaces.C.Strings.chars_ptr;
begin
if Self.Database /= null and Self.Handle /= null then
if mysql_stmt_close (Self.Handle) /= 0 then
Self.Set_MySQL_Stmt_Error;
Self.Handle := null;
end if;
Self.Parameters.Clear;
if Self.Result /= null then
for J in Self.Result'Range loop
if Self.Result (J).buffer_type = MYSQL_TYPE_VAR_STRING then
Aux := To_chars_ptr (Self.Result (J).buffer);
Interfaces.C.Strings.Free (Aux);
end if;
end loop;
Free (Self.Result);
end if;
Free (Self.Buffer);
end if;
-- Call Invalidate of parent tagged type.
Abstract_Query (Self.all).Invalidate;
end Invalidate;
---------------
-- Is_Active --
---------------
overriding function Is_Active
(Self : not null access MySQL_Query) return Boolean is
begin
return Self.Is_Active;
end Is_Active;
--------------
-- Is_Valid --
--------------
overriding function Is_Valid
(Self : not null access MySQL_Query) return Boolean is
begin
return Self.Is_Valid;
end Is_Valid;
----------
-- Next --
----------
overriding function Next
(Self : not null access MySQL_Query) return Boolean
is
Result : Interfaces.C.int;
begin
if Self.Result = null then
return False;
end if;
Result := mysql_stmt_fetch (Self.Handle);
if Result = 0 then
Self.Is_Valid := True;
return True;
elsif Result = MYSQL_NO_Data then
Self.Is_Valid := False;
return False;
else
Self.Is_Valid := False;
Self.Set_MySQL_Stmt_Error;
return False;
end if;
end Next;
-------------
-- Prepare --
-------------
overriding function Prepare
(Self : not null access MySQL_Query;
Query : League.Strings.Universal_String) return Boolean
is
Rewritten : League.Strings.Universal_String;
C_Query : Interfaces.C.Strings.chars_ptr;
Count : Natural;
Result : MYSQL_RES_Access;
Field : MYSQL_FIELD_Access;
begin
-- Rewrite statement and prepare set of parameters.
Rewriter.Rewrite (Query, Rewritten, Self.Parameters);
-- Convert rewritten statement into string in client library format.
C_Query := Interfaces.C.Strings.New_String (Rewritten.To_UTF_8_String);
-- Allocate statement.
Self.Handle :=
mysql_stmt_init
(Databases.MySQL_Database'Class (Self.Database.all).Database_Handle);
if Self.Handle = null then
Self.Error := League.Strings.To_Universal_String ("out of memory");
return False;
end if;
-- Prepare statement.
if mysql_stmt_prepare
(Self.Handle,
C_Query,
Interfaces.C.unsigned_long
(Interfaces.C.Strings.Strlen (C_Query))) /= 0
then
Interfaces.C.Strings.Free (C_Query);
Self.Set_MySQL_Stmt_Error;
return False;
end if;
Interfaces.C.Strings.Free (C_Query);
-- Check number of parameters.
Count := Natural (mysql_stmt_param_count (Self.Handle));
if Count /= Self.Parameters.Number_Of_Positional then
Self.Error :=
League.Strings.To_Universal_String
("invalid use of parameter placeholder");
return False;
end if;
-- Prepare storage for result.
Result := mysql_stmt_result_metadata (Self.Handle);
if Result /= null then
Count := Natural (mysql_num_fields (Result));
Self.Result := new MYSQL_BIND_Array (1 .. Count);
Initialize (Self.Result.all);
Self.Buffer := new Value_Array (1 .. Count);
for J in Self.Result'Range loop
Field := mysql_fetch_field (Result);
case Field.field_type is
when MYSQL_TYPE_DECIMAL =>
raise Program_Error;
when MYSQL_TYPE_TINY =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_TINY;
Self.Result (J).is_unsigned := 0;
Self.Result (J).buffer :=
Self.Buffer (J).Tiny_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_SHORT =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_SHORT;
Self.Result (J).is_unsigned := 0;
Self.Result (J).buffer :=
Self.Buffer (J).Short_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_LONG =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_LONG;
Self.Result (J).is_unsigned := 0;
Self.Result (J).buffer :=
Self.Buffer (J).Long_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_FLOAT =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_FLOAT;
Self.Result (J).buffer :=
Self.Buffer (J).Float_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_DOUBLE =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_DOUBLE;
Self.Result (J).buffer :=
Self.Buffer (J).Double_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_NULL =>
raise Program_Error;
when MYSQL_TYPE_TIMESTAMP =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_TIMESTAMP;
Self.Result (J).buffer :=
Self.Buffer (J).Time_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_LONGLONG =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_LONGLONG;
Self.Result (J).is_unsigned := 0;
Self.Result (J).buffer :=
Self.Buffer (J).Long_Long_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_INT24 =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_INT24;
Self.Result (J).is_unsigned := 0;
Self.Result (J).buffer :=
Self.Buffer (J).Int_24_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_DATE =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_DATE;
Self.Result (J).buffer :=
Self.Buffer (J).Time_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_TIME =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_TIME;
Self.Result (J).buffer :=
Self.Buffer (J).Time_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_DATETIME =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_DATETIME;
Self.Result (J).buffer :=
Self.Buffer (J).Time_Value'Address;
Self.Result (J).buffer_length := 0;
when MYSQL_TYPE_YEAR =>
raise Program_Error;
when MYSQL_TYPE_NEWDATE =>
raise Program_Error;
when MYSQL_TYPE_VARCHAR =>
raise Program_Error;
when MYSQL_TYPE_BIT =>
raise Program_Error;
when MYSQL_TYPE_NEWDECIMAL =>
raise Program_Error;
when MYSQL_TYPE_ENUM =>
raise Program_Error;
when MYSQL_TYPE_SET =>
raise Program_Error;
when MYSQL_TYPE_TINY_BLOB =>
raise Program_Error;
when MYSQL_TYPE_MEDIUM_BLOB =>
raise Program_Error;
when MYSQL_TYPE_LONG_BLOB =>
raise Program_Error;
when MYSQL_TYPE_BLOB =>
raise Program_Error;
when MYSQL_TYPE_VAR_STRING =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_VAR_STRING;
Self.Result (J).buffer :=
To_Address
(Interfaces.C.Strings.New_String
((1 .. Natural (Field.length) => ' ')));
Self.Result (J).buffer_length := Field.length;
Self.Result (J).length :=
Self.Buffer (J).Length_Value'Unchecked_Access;
when MYSQL_TYPE_STRING =>
Self.Result (J).is_null :=
Self.Buffer (J).Null_Value'Access;
Self.Result (J).buffer_type := MYSQL_TYPE_STRING;
Self.Result (J).buffer :=
To_Address
(Interfaces.C.Strings.New_String
((1 .. Natural (Field.length) => ' ')));
Self.Result (J).buffer_length := Field.length;
Self.Result (J).length :=
Self.Buffer (J).Length_Value'Unchecked_Access;
when MYSQL_TYPE_GEOMETRY =>
raise Program_Error;
end case;
end loop;
mysql_free_result (Result);
-- Bind buffers.
if mysql_stmt_bind_result
(Self.Handle, Self.Result (1)'Access) /= 0
then
Self.Set_MySQL_Stmt_Error;
return False;
end if;
end if;
return True;
end Prepare;
--------------------------
-- Set_MySQL_Stmt_Error --
--------------------------
procedure Set_MySQL_Stmt_Error (Self : not null access MySQL_Query'Class) is
Error : constant String
:= Interfaces.C.Strings.Value (mysql_stmt_error (Self.Handle));
begin
Self.Error := League.Strings.From_UTF_8_String (Error);
end Set_MySQL_Stmt_Error;
-----------
-- Value --
-----------
overriding function Value
(Self : not null access MySQL_Query;
Index : Positive) return League.Holders.Holder
is
Value : League.Holders.Holder;
begin
-- Return empty holder when there is not data or index is out of range.
if Self.Result = null
or Index > Self.Result'Last
then
return League.Holders.Empty_Holder;
end if;
-- Extract requested value.
case Self.Result (Index).buffer_type is
when MYSQL_TYPE_DECIMAL =>
raise Program_Error;
when MYSQL_TYPE_TINY =>
-- Process integer (TINY) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Integer_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Integer
(Self.Buffer (Index).Tiny_Value));
end if;
when MYSQL_TYPE_SHORT =>
-- Process integer (SHORT) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Integer_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Integer
(Self.Buffer (Index).Short_Value));
end if;
when MYSQL_TYPE_LONG =>
-- Process integer (LONG) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Integer_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Integer
(Self.Buffer (Index).Long_Value));
end if;
when MYSQL_TYPE_FLOAT =>
-- Process float (FLOAT) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Float_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Float
(Self.Buffer (Index).Float_Value));
end if;
when MYSQL_TYPE_DOUBLE =>
-- Process float (DOUBLE) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Float_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Float
(Self.Buffer (Index).Double_Value));
end if;
when MYSQL_TYPE_NULL =>
raise Program_Error;
when MYSQL_TYPE_TIMESTAMP =>
-- Process TIMESTAMP.
League.Holders.Set_Tag (Value, League.Holders.Date_Time_Tag);
if Self.Buffer (Index).Null_Value = 0 then
-- XXX UTC time zone must be specified here.
League.Holders.Replace_Element
(Value,
League.Calendars.ISO_8601.Create
(League.Calendars.ISO_8601.Year_Number
(Self.Buffer (Index).Time_Value.year),
League.Calendars.ISO_8601.Month_Number
(Self.Buffer (Index).Time_Value.month),
League.Calendars.ISO_8601.Day_Number
(Self.Buffer (Index).Time_Value.day),
League.Calendars.ISO_8601.Hour_Number
(Self.Buffer (Index).Time_Value.hour),
League.Calendars.ISO_8601.Minute_Number
(Self.Buffer (Index).Time_Value.minute),
League.Calendars.ISO_8601.Second_Number
(Self.Buffer (Index).Time_Value.second),
League.Calendars.ISO_8601.Nanosecond_100_Number
(Self.Buffer (Index).Time_Value.second_part) * 10));
end if;
when MYSQL_TYPE_LONGLONG =>
-- Process integer (LONGLONG) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Integer_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Integer
(Self.Buffer (Index).Long_Long_Value));
end if;
when MYSQL_TYPE_INT24 =>
-- Process integer (INT24) data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_Integer_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Holders.Universal_Integer
(Self.Buffer (Index).Int_24_Value));
end if;
when MYSQL_TYPE_DATE =>
-- Process DATE.
League.Holders.Set_Tag (Value, League.Holders.Date_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Calendars.ISO_8601.Create
(League.Calendars.ISO_8601.Year_Number
(Self.Buffer (Index).Time_Value.year),
League.Calendars.ISO_8601.Month_Number
(Self.Buffer (Index).Time_Value.month),
League.Calendars.ISO_8601.Day_Number
(Self.Buffer (Index).Time_Value.day)));
end if;
when MYSQL_TYPE_TIME =>
-- Process TIME.
League.Holders.Set_Tag (Value, League.Holders.Time_Tag);
-- XXX TIME is not supported.
when MYSQL_TYPE_DATETIME =>
-- Process DATETIME.
League.Holders.Set_Tag (Value, League.Holders.Date_Time_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Calendars.ISO_8601.Create
(League.Calendars.ISO_8601.Year_Number
(Self.Buffer (Index).Time_Value.year),
League.Calendars.ISO_8601.Month_Number
(Self.Buffer (Index).Time_Value.month),
League.Calendars.ISO_8601.Day_Number
(Self.Buffer (Index).Time_Value.day),
League.Calendars.ISO_8601.Hour_Number
(Self.Buffer (Index).Time_Value.hour),
League.Calendars.ISO_8601.Minute_Number
(Self.Buffer (Index).Time_Value.minute),
League.Calendars.ISO_8601.Second_Number
(Self.Buffer (Index).Time_Value.second),
League.Calendars.ISO_8601.Nanosecond_100_Number
(Self.Buffer (Index).Time_Value.second_part) * 10));
end if;
when MYSQL_TYPE_YEAR =>
raise Program_Error;
when MYSQL_TYPE_NEWDATE =>
raise Program_Error;
when MYSQL_TYPE_VARCHAR =>
raise Program_Error;
when MYSQL_TYPE_BIT =>
raise Program_Error;
when MYSQL_TYPE_NEWDECIMAL =>
raise Program_Error;
when MYSQL_TYPE_ENUM =>
raise Program_Error;
when MYSQL_TYPE_SET =>
raise Program_Error;
when MYSQL_TYPE_TINY_BLOB =>
raise Program_Error;
when MYSQL_TYPE_MEDIUM_BLOB =>
raise Program_Error;
when MYSQL_TYPE_LONG_BLOB =>
raise Program_Error;
when MYSQL_TYPE_BLOB =>
raise Program_Error;
when MYSQL_TYPE_VAR_STRING =>
-- Process text data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_String_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Strings.From_UTF_8_String
(Interfaces.C.Strings.Value
(To_chars_ptr (Self.Result (Index).buffer),
Interfaces.C.size_t (Self.Buffer (Index).Length_Value))));
end if;
when MYSQL_TYPE_STRING =>
-- Process text data.
League.Holders.Set_Tag
(Value, League.Holders.Universal_String_Tag);
if Self.Buffer (Index).Null_Value = 0 then
League.Holders.Replace_Element
(Value,
League.Strings.From_UTF_8_String
(Interfaces.C.Strings.Value
(To_chars_ptr (Self.Result (Index).buffer),
Interfaces.C.size_t (Self.Buffer (Index).Length_Value))));
end if;
when MYSQL_TYPE_GEOMETRY =>
raise Program_Error;
end case;
return Value;
end Value;
end Matreshka.Internals.SQL_Drivers.MySQL.Queries;
|
F1, F2 : File_Type;
begin
Open (F1, In_File, "city.ppm");
declare
X : Image := Get_PPM (F1);
begin
Close (F1);
Create (F2, Out_File, "city_sharpen.ppm");
Filter (X, ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.0, -1.0, -1.0)));
Put_PPM (F2, X);
end;
Close (F2);
|
--
-- PQueue -- Generic protected queue package
--
-- This code was adapted from two different chunks of code in Norman
-- H. Cohen's excellent book Ada as a Second Language. It implements a simple
-- protected generic queue type.
generic
type Data_Type is private;
package PQueue is
pragma Preelaborate;
------------------------------------------------------------------------------
--
-- Public types
--
------------------------------------------------------------------------------
-- The implementation details of the queue aren't important to users
type Queue_Type is limited private;
-- The protected type, providing an interface to manage the queue
protected type Protected_Queue_Type is
-- Place an item on the back of the queue. Doesn't block.
procedure Enqueue (Item : in Data_Type);
-- Remove an item from the front of the queue. Blocks if no items are
-- present.
entry Dequeue (Item : out Data_Type);
-- Return the number of items presently on the queue. Doesn't block.
function Length return natural;
private
-- The actual queue we're protecting
Queue : Queue_Type;
end Protected_Queue_Type;
------------------------------------------------------------------------------
--
-- Private types
--
------------------------------------------------------------------------------
private
-- Implementation of a simple queue, using a linked list. First, define
-- the list node type, with a data item of whatever type the user specifies
-- when they instantiate this generic package.
type Queue_Element_Type;
type Queue_Element_Pointer is access Queue_Element_Type;
type Queue_Element_Type is record
Data : Data_Type;
Next : Queue_Element_Pointer;
end record;
-- Now the queue itself, with its length, and pointers to the front and
-- back items.
type Queue_Type is record
Len : natural := 0;
Front : Queue_Element_Pointer := null;
Back : Queue_Element_Pointer := null;
end record;
---------------------------------------------------------------------------
end PQueue;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . T R A C E B A C K . S Y M B O L I C --
-- --
-- B o d y --
-- --
-- Copyright (C) 1999-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. --
-- --
------------------------------------------------------------------------------
-- Run-time symbolic traceback support for Alpha/VMS
with Ada.Exceptions.Traceback; use Ada.Exceptions.Traceback;
with Interfaces.C;
with System;
with System.Aux_DEC;
with System.Soft_Links;
with System.Traceback_Entries;
package body GNAT.Traceback.Symbolic is
pragma Warnings (Off);
pragma Linker_Options ("--for-linker=sys$library:trace.exe");
use Interfaces.C;
use System;
use System.Aux_DEC;
use System.Traceback_Entries;
subtype User_Arg_Type is Unsigned_Longword;
subtype Cond_Value_Type is Unsigned_Longword;
type ASCIC is record
Count : unsigned_char;
Data : char_array (1 .. 255);
end record;
pragma Convention (C, ASCIC);
for ASCIC use record
Count at 0 range 0 .. 7;
Data at 1 range 0 .. 8 * 255 - 1;
end record;
for ASCIC'Size use 8 * 256;
function Fetch_ASCIC is new Fetch_From_Address (ASCIC);
procedure Symbolize
(Status : out Cond_Value_Type;
Current_PC : in Address;
Adjusted_PC : in Address;
Current_FP : in Address;
Current_R26 : in Address;
Image_Name : out Address;
Module_Name : out Address;
Routine_Name : out Address;
Line_Number : out Integer;
Relative_PC : out Address;
Absolute_PC : out Address;
PC_Is_Valid : out Long_Integer;
User_Act_Proc : Address := Address'Null_Parameter;
User_Arg_Value : User_Arg_Type := User_Arg_Type'Null_Parameter);
pragma Interface (External, Symbolize);
pragma Import_Valued_Procedure
(Symbolize, "TBK$SYMBOLIZE",
(Cond_Value_Type, Address, Address, Address, Address,
Address, Address, Address, Integer,
Address, Address, Long_Integer,
Address, User_Arg_Type),
(Value, Value, Value, Value, Value,
Reference, Reference, Reference, Reference,
Reference, Reference, Reference,
Value, Value),
User_Act_Proc);
function Decode_Ada_Name (Encoded_Name : String) return String;
-- Decodes an Ada identifier name. Removes leading "_ada_" and trailing
-- __{DIGIT}+ or ${DIGIT}+, converts other "__" to '.'
---------------------
-- Decode_Ada_Name --
---------------------
function Decode_Ada_Name (Encoded_Name : String) return String is
Decoded_Name : String (1 .. Encoded_Name'Length);
Pos : Integer := Encoded_Name'First;
Last : Integer := Encoded_Name'Last;
DPos : Integer := 1;
begin
if Pos > Last then
return "";
end if;
-- Skip leading _ada_
if Encoded_Name'Length > 4
and then Encoded_Name (Pos .. Pos + 4) = "_ada_"
then
Pos := Pos + 5;
end if;
-- Skip trailing __{DIGIT}+ or ${DIGIT}+
if Encoded_Name (Last) in '0' .. '9' then
for J in reverse Pos + 2 .. Last - 1 loop
case Encoded_Name (J) is
when '0' .. '9' =>
null;
when '$' =>
Last := J - 1;
exit;
when '_' =>
if Encoded_Name (J - 1) = '_' then
Last := J - 2;
end if;
exit;
when others =>
exit;
end case;
end loop;
end if;
-- Now just copy encoded name to decoded name, converting "__" to '.'
while Pos <= Last loop
if Encoded_Name (Pos) = '_' and then Encoded_Name (Pos + 1) = '_'
and then Pos /= Encoded_Name'First
then
Decoded_Name (DPos) := '.';
Pos := Pos + 2;
else
Decoded_Name (DPos) := Encoded_Name (Pos);
Pos := Pos + 1;
end if;
DPos := DPos + 1;
end loop;
return Decoded_Name (1 .. DPos - 1);
end Decode_Ada_Name;
------------------------
-- Symbolic_Traceback --
------------------------
function Symbolic_Traceback (Traceback : Tracebacks_Array) return String is
Status : Cond_Value_Type;
Image_Name : ASCIC;
Image_Name_Addr : Address;
Module_Name : ASCIC;
Module_Name_Addr : Address;
Routine_Name : ASCIC;
Routine_Name_Addr : Address;
Line_Number : Integer;
Relative_PC : Address;
Absolute_PC : Address;
PC_Is_Valid : Long_Integer;
Return_Address : Address;
Res : String (1 .. 256 * Traceback'Length);
Len : Integer;
begin
if Traceback'Length > 0 then
Len := 0;
-- Since image computation is not thread-safe we need task lockout
System.Soft_Links.Lock_Task.all;
for J in Traceback'Range loop
if J = Traceback'Last then
Return_Address := Address_Zero;
else
Return_Address := PC_For (Traceback (J + 1));
end if;
Symbolize
(Status,
PC_For (Traceback (J)),
PC_For (Traceback (J)),
PV_For (Traceback (J)),
Return_Address,
Image_Name_Addr,
Module_Name_Addr,
Routine_Name_Addr,
Line_Number,
Relative_PC,
Absolute_PC,
PC_Is_Valid);
Image_Name := Fetch_ASCIC (Image_Name_Addr);
Module_Name := Fetch_ASCIC (Module_Name_Addr);
Routine_Name := Fetch_ASCIC (Routine_Name_Addr);
declare
First : Integer := Len + 1;
Last : Integer := First + 80 - 1;
Pos : Integer;
Routine_Name_D : String := Decode_Ada_Name
(To_Ada
(Routine_Name.Data (1 .. size_t (Routine_Name.Count)),
False));
begin
Res (First .. Last) := (others => ' ');
Res (First .. First + Integer (Image_Name.Count) - 1) :=
To_Ada
(Image_Name.Data (1 .. size_t (Image_Name.Count)),
False);
Res (First + 10 ..
First + 10 + Integer (Module_Name.Count) - 1) :=
To_Ada
(Module_Name.Data (1 .. size_t (Module_Name.Count)),
False);
Res (First + 30 ..
First + 30 + Routine_Name_D'Length - 1) :=
Routine_Name_D;
-- If routine name doesn't fit 20 characters, output
-- the line number on next line at 50th position
if Routine_Name_D'Length > 20 then
Pos := First + 30 + Routine_Name_D'Length;
Res (Pos) := ASCII.LF;
Last := Pos + 80;
Res (Pos + 1 .. Last) := (others => ' ');
Pos := Pos + 51;
else
Pos := First + 50;
end if;
Res (Pos .. Pos + Integer'Image (Line_Number)'Length - 1) :=
Integer'Image (Line_Number);
Res (Last) := ASCII.LF;
Len := Last;
end;
end loop;
System.Soft_Links.Unlock_Task.all;
return Res (1 .. Len);
else
return "";
end if;
end Symbolic_Traceback;
function Symbolic_Traceback (E : Exception_Occurrence) return String is
begin
return Symbolic_Traceback (Tracebacks (E));
end Symbolic_Traceback;
end GNAT.Traceback.Symbolic;
|
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAMG55J19.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Power Management Controller
package Interfaces.SAM.PMC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-- PMC_SCER_PCK array
type PMC_SCER_PCK_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_SCER_PCK
type PMC_SCER_PCK_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCK as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCK as an array
Arr : PMC_SCER_PCK_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_SCER_PCK_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- System Clock Enable Register
type PMC_SCER_Register is record
-- unspecified
Reserved_0_5 : Interfaces.SAM.UInt6 := 16#0#;
-- Write-only. USB Host Port Clock Enable
UHP : Boolean := False;
-- Write-only. USB Device Port Clock Enable
UDP : Boolean := False;
-- Write-only. Programmable Clock 0 Output Enable
PCK : PMC_SCER_PCK_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : Interfaces.SAM.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SCER_Register use record
Reserved_0_5 at 0 range 0 .. 5;
UHP at 0 range 6 .. 6;
UDP at 0 range 7 .. 7;
PCK at 0 range 8 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PMC_SCDR_PCK array
type PMC_SCDR_PCK_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_SCDR_PCK
type PMC_SCDR_PCK_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCK as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCK as an array
Arr : PMC_SCDR_PCK_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_SCDR_PCK_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- System Clock Disable Register
type PMC_SCDR_Register is record
-- unspecified
Reserved_0_5 : Interfaces.SAM.UInt6 := 16#0#;
-- Write-only. USB Host Port Clock Disable
UHP : Boolean := False;
-- Write-only.
UDP : Boolean := False;
-- Write-only. Programmable Clock 0 Output Disable
PCK : PMC_SCDR_PCK_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : Interfaces.SAM.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SCDR_Register use record
Reserved_0_5 at 0 range 0 .. 5;
UHP at 0 range 6 .. 6;
UDP at 0 range 7 .. 7;
PCK at 0 range 8 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PMC_SCSR_PCK array
type PMC_SCSR_PCK_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_SCSR_PCK
type PMC_SCSR_PCK_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCK as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCK as an array
Arr : PMC_SCSR_PCK_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_SCSR_PCK_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- System Clock Status Register
type PMC_SCSR_Register is record
-- unspecified
Reserved_0_5 : Interfaces.SAM.UInt6;
-- Read-only. USB Host Port Clock Status
UHP : Boolean;
-- Read-only.
UDP : Boolean;
-- Read-only. Programmable Clock 0 Output Status
PCK : PMC_SCSR_PCK_Field;
-- unspecified
Reserved_16_31 : Interfaces.SAM.UInt16;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SCSR_Register use record
Reserved_0_5 at 0 range 0 .. 5;
UHP at 0 range 6 .. 6;
UDP at 0 range 7 .. 7;
PCK at 0 range 8 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PMC_PCER0_PID array
type PMC_PCER0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_PCER0_PID
type PMC_PCER0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_PCER0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_PCER0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- Peripheral Clock Enable Register 0
type PMC_PCER0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte := 16#0#;
-- Write-only. Peripheral Clock 8 Enable
PID : PMC_PCER0_PID_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PCER0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- PMC_PCDR0_PID array
type PMC_PCDR0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_PCDR0_PID
type PMC_PCDR0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_PCDR0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_PCDR0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- Peripheral Clock Disable Register 0
type PMC_PCDR0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte := 16#0#;
-- Write-only. Peripheral Clock 8 Disable
PID : PMC_PCDR0_PID_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PCDR0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- PMC_PCSR0_PID array
type PMC_PCSR0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_PCSR0_PID
type PMC_PCSR0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_PCSR0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_PCSR0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- Peripheral Clock Status Register 0
type PMC_PCSR0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte;
-- Read-only. Peripheral Clock 8 Status
PID : PMC_PCSR0_PID_Field;
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PCSR0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- Main On-Chip RC Oscillator Frequency Selection
type CKGR_MOR_MOSCRCF_Field is
(
-- The Fast RC Oscillator Frequency is at 8 MHz (default)
CKGR_MOR_MOSCRCF_Field_8_Mhz,
-- The Fast RC Oscillator Frequency is at 16 MHz
CKGR_MOR_MOSCRCF_Field_16_Mhz,
-- The Fast RC Oscillator Frequency is at 24 MHz
CKGR_MOR_MOSCRCF_Field_24_Mhz)
with Size => 3;
for CKGR_MOR_MOSCRCF_Field use
(CKGR_MOR_MOSCRCF_Field_8_Mhz => 0,
CKGR_MOR_MOSCRCF_Field_16_Mhz => 1,
CKGR_MOR_MOSCRCF_Field_24_Mhz => 2);
subtype CKGR_MOR_MOSCXTST_Field is Interfaces.SAM.Byte;
-- Write Access Password
type CKGR_MOR_KEY_Field is
(
-- Reset value for the field
Ckgr_Mor_Key_Field_Reset,
-- Writing any other value in this field aborts the write
-- operation.Always reads as 0.
Passwd)
with Size => 8;
for CKGR_MOR_KEY_Field use
(Ckgr_Mor_Key_Field_Reset => 0,
Passwd => 55);
-- Main Oscillator Register
type CKGR_MOR_Register is record
-- Main Crystal Oscillator Enable
MOSCXTEN : Boolean := False;
-- Main Crystal Oscillator Bypass
MOSCXTBY : Boolean := False;
-- Wait Mode Command (Write-only)
WAITMODE : Boolean := False;
-- Main On-Chip RC Oscillator Enable
MOSCRCEN : Boolean := True;
-- Main On-Chip RC Oscillator Frequency Selection
MOSCRCF : CKGR_MOR_MOSCRCF_Field :=
Interfaces.SAM.PMC.CKGR_MOR_MOSCRCF_Field_8_Mhz;
-- unspecified
Reserved_7_7 : Interfaces.SAM.Bit := 16#0#;
-- Main Crystal Oscillator Start-up Time
MOSCXTST : CKGR_MOR_MOSCXTST_Field := 16#0#;
-- Write Access Password
KEY : CKGR_MOR_KEY_Field := Ckgr_Mor_Key_Field_Reset;
-- Main Oscillator Selection
MOSCSEL : Boolean := False;
-- Clock Failure Detector Enable
CFDEN : Boolean := False;
-- unspecified
Reserved_26_31 : Interfaces.SAM.UInt6 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CKGR_MOR_Register use record
MOSCXTEN at 0 range 0 .. 0;
MOSCXTBY at 0 range 1 .. 1;
WAITMODE at 0 range 2 .. 2;
MOSCRCEN at 0 range 3 .. 3;
MOSCRCF at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
MOSCXTST at 0 range 8 .. 15;
KEY at 0 range 16 .. 23;
MOSCSEL at 0 range 24 .. 24;
CFDEN at 0 range 25 .. 25;
Reserved_26_31 at 0 range 26 .. 31;
end record;
subtype CKGR_MCFR_MAINF_Field is Interfaces.SAM.UInt16;
-- Main Clock Frequency Register
type CKGR_MCFR_Register is record
-- Main Clock Frequency
MAINF : CKGR_MCFR_MAINF_Field := 16#0#;
-- Main Clock Frequency Measure Ready
MAINFRDY : Boolean := False;
-- unspecified
Reserved_17_19 : Interfaces.SAM.UInt3 := 16#0#;
-- RC Oscillator Frequency Measure (write-only)
RCMEAS : Boolean := False;
-- unspecified
Reserved_21_31 : Interfaces.SAM.UInt11 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CKGR_MCFR_Register use record
MAINF at 0 range 0 .. 15;
MAINFRDY at 0 range 16 .. 16;
Reserved_17_19 at 0 range 17 .. 19;
RCMEAS at 0 range 20 .. 20;
Reserved_21_31 at 0 range 21 .. 31;
end record;
subtype CKGR_PLLAR_PLLAEN_Field is Interfaces.SAM.Byte;
subtype CKGR_PLLAR_PLLACOUNT_Field is Interfaces.SAM.UInt6;
subtype CKGR_PLLAR_MULA_Field is Interfaces.SAM.UInt12;
-- PLLA Register
type CKGR_PLLAR_Register is record
-- PLLA Control
PLLAEN : CKGR_PLLAR_PLLAEN_Field := 16#0#;
-- PLLA Counter
PLLACOUNT : CKGR_PLLAR_PLLACOUNT_Field := 16#3F#;
-- unspecified
Reserved_14_15 : Interfaces.SAM.UInt2 := 16#0#;
-- PLLA Multiplier
MULA : CKGR_PLLAR_MULA_Field := 16#0#;
-- unspecified
Reserved_28_28 : Interfaces.SAM.Bit := 16#0#;
-- Must be written to 0
ZERO : Boolean := False;
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CKGR_PLLAR_Register use record
PLLAEN at 0 range 0 .. 7;
PLLACOUNT at 0 range 8 .. 13;
Reserved_14_15 at 0 range 14 .. 15;
MULA at 0 range 16 .. 27;
Reserved_28_28 at 0 range 28 .. 28;
ZERO at 0 range 29 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
subtype CKGR_PLLBR_PLLBEN_Field is Interfaces.SAM.Byte;
subtype CKGR_PLLBR_PLLBCOUNT_Field is Interfaces.SAM.UInt6;
subtype CKGR_PLLBR_MULB_Field is Interfaces.SAM.UInt11;
-- PLLB Register
type CKGR_PLLBR_Register is record
-- PLLB Control
PLLBEN : CKGR_PLLBR_PLLBEN_Field := 16#0#;
-- PLLB Counter
PLLBCOUNT : CKGR_PLLBR_PLLBCOUNT_Field := 16#3F#;
-- unspecified
Reserved_14_15 : Interfaces.SAM.UInt2 := 16#0#;
-- PLLB Multiplier
MULB : CKGR_PLLBR_MULB_Field := 16#0#;
-- unspecified
Reserved_27_28 : Interfaces.SAM.UInt2 := 16#0#;
-- Must be written to 0
ZERO : Boolean := False;
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CKGR_PLLBR_Register use record
PLLBEN at 0 range 0 .. 7;
PLLBCOUNT at 0 range 8 .. 13;
Reserved_14_15 at 0 range 14 .. 15;
MULB at 0 range 16 .. 26;
Reserved_27_28 at 0 range 27 .. 28;
ZERO at 0 range 29 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- Master Clock Source Selection
type PMC_MCKR_CSS_Field is
(
-- Slow Clock is selected
Slow_Clk,
-- Main Clock is selected
Main_Clk,
-- PLLA Clock is selected
Plla_Clk,
-- PLLBClock is selected
Pllb_Clk)
with Size => 2;
for PMC_MCKR_CSS_Field use
(Slow_Clk => 0,
Main_Clk => 1,
Plla_Clk => 2,
Pllb_Clk => 3);
-- Processor Clock Prescaler
type PMC_MCKR_PRES_Field is
(
-- Selected clock
Clk_1,
-- Selected clock divided by 2
Clk_2,
-- Selected clock divided by 4
Clk_4,
-- Selected clock divided by 8
Clk_8,
-- Selected clock divided by 16
Clk_16,
-- Selected clock divided by 32
Clk_32,
-- Selected clock divided by 64
Clk_64,
-- Selected clock divided by 3
Clk_3)
with Size => 3;
for PMC_MCKR_PRES_Field use
(Clk_1 => 0,
Clk_2 => 1,
Clk_4 => 2,
Clk_8 => 3,
Clk_16 => 4,
Clk_32 => 5,
Clk_64 => 6,
Clk_3 => 7);
-- Master Clock Register
type PMC_MCKR_Register is record
-- Master Clock Source Selection
CSS : PMC_MCKR_CSS_Field := Interfaces.SAM.PMC.Main_Clk;
-- unspecified
Reserved_2_3 : Interfaces.SAM.UInt2 := 16#0#;
-- Processor Clock Prescaler
PRES : PMC_MCKR_PRES_Field := Interfaces.SAM.PMC.Clk_1;
-- unspecified
Reserved_7_11 : Interfaces.SAM.UInt5 := 16#0#;
-- PLLA Divisor by 2
PLLADIV2 : Boolean := False;
PLLBDIV2 : Boolean := False;
-- unspecified
Reserved_14_31 : Interfaces.SAM.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_MCKR_Register use record
CSS at 0 range 0 .. 1;
Reserved_2_3 at 0 range 2 .. 3;
PRES at 0 range 4 .. 6;
Reserved_7_11 at 0 range 7 .. 11;
PLLADIV2 at 0 range 12 .. 12;
PLLBDIV2 at 0 range 13 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
subtype PMC_USB_USBDIV_Field is Interfaces.SAM.UInt4;
-- USB Clock Register
type PMC_USB_Register is record
-- USB Input Clock Selection
USBS : Boolean := False;
-- unspecified
Reserved_1_7 : Interfaces.SAM.UInt7 := 16#0#;
-- Divider for USB Clock
USBDIV : PMC_USB_USBDIV_Field := 16#0#;
-- unspecified
Reserved_12_31 : Interfaces.SAM.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_USB_Register use record
USBS at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
USBDIV at 0 range 8 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-- Master Clock Source Selection
type PMC_PCK_CSS_Field is
(
-- Slow Clock is selected
Slow_Clk,
-- Main Clock is selected
Main_Clk,
-- PLLA Clock is selected
Plla_Clk,
-- PLLB Clock is selected
Pllb_Clk,
-- Master Clock is selected
Mck)
with Size => 3;
for PMC_PCK_CSS_Field use
(Slow_Clk => 0,
Main_Clk => 1,
Plla_Clk => 2,
Pllb_Clk => 3,
Mck => 4);
subtype PMC_PCK_PRES_Field is Interfaces.SAM.Byte;
-- Programmable Clock 0 Register
type PMC_PCK_Register is record
-- Master Clock Source Selection
CSS : PMC_PCK_CSS_Field := Interfaces.SAM.PMC.Slow_Clk;
-- unspecified
Reserved_3_3 : Interfaces.SAM.Bit := 16#0#;
-- Programmable Clock Prescaler
PRES : PMC_PCK_PRES_Field := 16#0#;
-- unspecified
Reserved_12_31 : Interfaces.SAM.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PCK_Register use record
CSS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
PRES at 0 range 4 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-- Programmable Clock 0 Register
type PMC_PCK_Registers is array (0 .. 7) of PMC_PCK_Register
with Volatile;
-- PMC_IER_PCKRDY array
type PMC_IER_PCKRDY_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_IER_PCKRDY
type PMC_IER_PCKRDY_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCKRDY as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCKRDY as an array
Arr : PMC_IER_PCKRDY_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_IER_PCKRDY_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Interrupt Enable Register
type PMC_IER_Register is record
-- Write-only. Main Crystal Oscillator Status Interrupt Enable
MOSCXTS : Boolean := False;
-- Write-only. PLLA Lock Interrupt Enable
LOCKA : Boolean := False;
-- Write-only. PLLB Lock Interrupt Enable
LOCKB : Boolean := False;
-- Write-only. Master Clock Ready Interrupt Enable
MCKRDY : Boolean := False;
-- unspecified
Reserved_4_7 : Interfaces.SAM.UInt4 := 16#0#;
-- Write-only. Programmable Clock Ready 0 Interrupt Enable
PCKRDY : PMC_IER_PCKRDY_Field :=
(As_Array => False, Val => 16#0#);
-- Write-only. Main Oscillator Selection Status Interrupt Enable
MOSCSELS : Boolean := False;
-- Write-only. Main On-Chip RC Status Interrupt Enable
MOSCRCS : Boolean := False;
-- Write-only. Clock Failure Detector Event Interrupt Enable
CFDEV : Boolean := False;
-- unspecified
Reserved_19_31 : Interfaces.SAM.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_IER_Register use record
MOSCXTS at 0 range 0 .. 0;
LOCKA at 0 range 1 .. 1;
LOCKB at 0 range 2 .. 2;
MCKRDY at 0 range 3 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
PCKRDY at 0 range 8 .. 15;
MOSCSELS at 0 range 16 .. 16;
MOSCRCS at 0 range 17 .. 17;
CFDEV at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- PMC_IDR_PCKRDY array
type PMC_IDR_PCKRDY_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_IDR_PCKRDY
type PMC_IDR_PCKRDY_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCKRDY as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCKRDY as an array
Arr : PMC_IDR_PCKRDY_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_IDR_PCKRDY_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Interrupt Disable Register
type PMC_IDR_Register is record
-- Write-only. Main Crystal Oscillator Status Interrupt Disable
MOSCXTS : Boolean := False;
-- Write-only. PLLA Lock Interrupt Disable
LOCKA : Boolean := False;
-- Write-only. PLLB Lock Interrupt Disable
LOCKB : Boolean := False;
-- Write-only. Master Clock Ready Interrupt Disable
MCKRDY : Boolean := False;
-- unspecified
Reserved_4_7 : Interfaces.SAM.UInt4 := 16#0#;
-- Write-only. Programmable Clock Ready 0 Interrupt Disable
PCKRDY : PMC_IDR_PCKRDY_Field :=
(As_Array => False, Val => 16#0#);
-- Write-only. Main Oscillator Selection Status Interrupt Disable
MOSCSELS : Boolean := False;
-- Write-only. Main On-Chip RC Status Interrupt Disable
MOSCRCS : Boolean := False;
-- Write-only. Clock Failure Detector Event Interrupt Disable
CFDEV : Boolean := False;
-- unspecified
Reserved_19_31 : Interfaces.SAM.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_IDR_Register use record
MOSCXTS at 0 range 0 .. 0;
LOCKA at 0 range 1 .. 1;
LOCKB at 0 range 2 .. 2;
MCKRDY at 0 range 3 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
PCKRDY at 0 range 8 .. 15;
MOSCSELS at 0 range 16 .. 16;
MOSCRCS at 0 range 17 .. 17;
CFDEV at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- PMC_SR_PCKRDY array
type PMC_SR_PCKRDY_Field_Array is array (0 .. 7) of Boolean
with Component_Size => 1, Size => 8;
-- Type definition for PMC_SR_PCKRDY
type PMC_SR_PCKRDY_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCKRDY as a value
Val : Interfaces.SAM.Byte;
when True =>
-- PCKRDY as an array
Arr : PMC_SR_PCKRDY_Field_Array;
end case;
end record
with Unchecked_Union, Size => 8;
for PMC_SR_PCKRDY_Field use record
Val at 0 range 0 .. 7;
Arr at 0 range 0 .. 7;
end record;
-- Status Register
type PMC_SR_Register is record
-- Read-only. Main Crystal Oscillator Status
MOSCXTS : Boolean;
-- Read-only. PLLA Lock Status
LOCKA : Boolean;
-- Read-only. PLLB Lock Status
LOCKB : Boolean;
-- Read-only. Master Clock Status
MCKRDY : Boolean;
-- unspecified
Reserved_4_6 : Interfaces.SAM.UInt3;
-- Read-only. Slow Clock Oscillator Selection
OSCSELS : Boolean;
-- Read-only. Programmable Clock Ready Status
PCKRDY : PMC_SR_PCKRDY_Field;
-- Read-only. Main Oscillator Selection Status
MOSCSELS : Boolean;
-- Read-only. Main On-Chip RC Oscillator Status
MOSCRCS : Boolean;
-- Read-only. Clock Failure Detector Event
CFDEV : Boolean;
-- Read-only. Clock Failure Detector Status
CFDS : Boolean;
-- Read-only. Clock Failure Detector Fault Output Status
FOS : Boolean;
-- unspecified
Reserved_21_31 : Interfaces.SAM.UInt11;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SR_Register use record
MOSCXTS at 0 range 0 .. 0;
LOCKA at 0 range 1 .. 1;
LOCKB at 0 range 2 .. 2;
MCKRDY at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
OSCSELS at 0 range 7 .. 7;
PCKRDY at 0 range 8 .. 15;
MOSCSELS at 0 range 16 .. 16;
MOSCRCS at 0 range 17 .. 17;
CFDEV at 0 range 18 .. 18;
CFDS at 0 range 19 .. 19;
FOS at 0 range 20 .. 20;
Reserved_21_31 at 0 range 21 .. 31;
end record;
-- PMC_IMR_PCKRDY array
type PMC_IMR_PCKRDY_Field_Array is array (0 .. 2) of Boolean
with Component_Size => 1, Size => 3;
-- Type definition for PMC_IMR_PCKRDY
type PMC_IMR_PCKRDY_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PCKRDY as a value
Val : Interfaces.SAM.UInt3;
when True =>
-- PCKRDY as an array
Arr : PMC_IMR_PCKRDY_Field_Array;
end case;
end record
with Unchecked_Union, Size => 3;
for PMC_IMR_PCKRDY_Field use record
Val at 0 range 0 .. 2;
Arr at 0 range 0 .. 2;
end record;
-- Interrupt Mask Register
type PMC_IMR_Register is record
-- Read-only. Main Crystal Oscillator Status Interrupt Mask
MOSCXTS : Boolean;
-- Read-only. PLLA Lock Interrupt Mask
LOCKA : Boolean;
-- Read-only. PLLB Lock Interrupt Mask
LOCKB : Boolean;
-- Read-only. Master Clock Ready Interrupt Mask
MCKRDY : Boolean;
-- unspecified
Reserved_4_7 : Interfaces.SAM.UInt4;
-- Read-only. Programmable Clock Ready 0 Interrupt Mask
PCKRDY : PMC_IMR_PCKRDY_Field;
-- unspecified
Reserved_11_15 : Interfaces.SAM.UInt5;
-- Read-only. Main Oscillator Selection Status Interrupt Mask
MOSCSELS : Boolean;
-- Read-only. Main On-Chip RC Status Interrupt Mask
MOSCRCS : Boolean;
-- Read-only. Clock Failure Detector Event Interrupt Mask
CFDEV : Boolean;
-- unspecified
Reserved_19_31 : Interfaces.SAM.UInt13;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_IMR_Register use record
MOSCXTS at 0 range 0 .. 0;
LOCKA at 0 range 1 .. 1;
LOCKB at 0 range 2 .. 2;
MCKRDY at 0 range 3 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
PCKRDY at 0 range 8 .. 10;
Reserved_11_15 at 0 range 11 .. 15;
MOSCSELS at 0 range 16 .. 16;
MOSCRCS at 0 range 17 .. 17;
CFDEV at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- PMC_FSMR_FSTT array
type PMC_FSMR_FSTT_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PMC_FSMR_FSTT
type PMC_FSMR_FSTT_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FSTT as a value
Val : Interfaces.SAM.UInt16;
when True =>
-- FSTT as an array
Arr : PMC_FSMR_FSTT_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PMC_FSMR_FSTT_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Flash Low-power Mode
type PMC_FSMR_FLPM_Field is
(
-- Flash is in Standby Mode when system enters Wait Mode
Flash_Standby,
-- Flash is in Deep-power-down mode when system enters Wait Mode
Flash_Deep_Powerdown,
-- Idle mode
Flash_Idle)
with Size => 2;
for PMC_FSMR_FLPM_Field use
(Flash_Standby => 0,
Flash_Deep_Powerdown => 1,
Flash_Idle => 2);
-- Fast Startup Mode Register
type PMC_FSMR_Register is record
-- Fast Startup Input Enable 0
FSTT : PMC_FSMR_FSTT_Field :=
(As_Array => False, Val => 16#0#);
-- RTT Alarm Enable
RTTAL : Boolean := False;
-- RTC Alarm Enable
RTCAL : Boolean := False;
-- USB Alarm Enable
USBAL : Boolean := False;
-- unspecified
Reserved_19_19 : Interfaces.SAM.Bit := 16#0#;
-- Low-power Mode
LPM : Boolean := False;
-- Flash Low-power Mode
FLPM : PMC_FSMR_FLPM_Field :=
Interfaces.SAM.PMC.Flash_Standby;
-- unspecified
Reserved_23_31 : Interfaces.SAM.UInt9 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_FSMR_Register use record
FSTT at 0 range 0 .. 15;
RTTAL at 0 range 16 .. 16;
RTCAL at 0 range 17 .. 17;
USBAL at 0 range 18 .. 18;
Reserved_19_19 at 0 range 19 .. 19;
LPM at 0 range 20 .. 20;
FLPM at 0 range 21 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
-- PMC_FSPR_FSTP array
type PMC_FSPR_FSTP_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PMC_FSPR_FSTP
type PMC_FSPR_FSTP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- FSTP as a value
Val : Interfaces.SAM.UInt16;
when True =>
-- FSTP as an array
Arr : PMC_FSPR_FSTP_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PMC_FSPR_FSTP_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Fast Startup Polarity Register
type PMC_FSPR_Register is record
-- Fast Startup Input Polarityx
FSTP : PMC_FSPR_FSTP_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : Interfaces.SAM.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_FSPR_Register use record
FSTP at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- Fault Output Clear Register
type PMC_FOCR_Register is record
-- Write-only. Fault Output Clear
FOCLR : Boolean := False;
-- unspecified
Reserved_1_31 : Interfaces.SAM.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_FOCR_Register use record
FOCLR at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
-- Write Protection Key
type PMC_WPMR_WPKEY_Field is
(
-- Reset value for the field
Pmc_Wpmr_Wpkey_Field_Reset,
-- Writing any other value in this field aborts the write operation of
-- the WPEN bit. Always reads as 0.
Passwd)
with Size => 24;
for PMC_WPMR_WPKEY_Field use
(Pmc_Wpmr_Wpkey_Field_Reset => 0,
Passwd => 5262659);
-- Write Protection Mode Register
type PMC_WPMR_Register is record
-- Write Protection Enable
WPEN : Boolean := False;
-- unspecified
Reserved_1_7 : Interfaces.SAM.UInt7 := 16#0#;
-- Write Protection Key
WPKEY : PMC_WPMR_WPKEY_Field := Pmc_Wpmr_Wpkey_Field_Reset;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_WPMR_Register use record
WPEN at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
WPKEY at 0 range 8 .. 31;
end record;
subtype PMC_WPSR_WPVSRC_Field is Interfaces.SAM.UInt16;
-- Write Protection Status Register
type PMC_WPSR_Register is record
-- Read-only. Write Protection Violation Status
WPVS : Boolean;
-- unspecified
Reserved_1_7 : Interfaces.SAM.UInt7;
-- Read-only. Write Protection Violation Source
WPVSRC : PMC_WPSR_WPVSRC_Field;
-- unspecified
Reserved_24_31 : Interfaces.SAM.Byte;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_WPSR_Register use record
WPVS at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
WPVSRC at 0 range 8 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
subtype PMC_PCR_PID_Field is Interfaces.SAM.UInt6;
-- Divisor Value
type PMC_PCR_DIV_Field is
(
-- Peripheral clock is MCK
Periph_Div_Mck,
-- Peripheral clock is MCK/2
Periph_Div2_Mck,
-- Peripheral clock is MCK/4
Periph_Div4_Mck,
-- Peripheral clock is MCK/8
Periph_Div8_Mck)
with Size => 2;
for PMC_PCR_DIV_Field use
(Periph_Div_Mck => 0,
Periph_Div2_Mck => 1,
Periph_Div4_Mck => 2,
Periph_Div8_Mck => 3);
-- Peripheral Control Register
type PMC_PCR_Register is record
-- Peripheral ID
PID : PMC_PCR_PID_Field := 16#0#;
-- unspecified
Reserved_6_11 : Interfaces.SAM.UInt6 := 16#0#;
-- Command
CMD : Boolean := False;
-- unspecified
Reserved_13_15 : Interfaces.SAM.UInt3 := 16#0#;
-- Divisor Value
DIV : PMC_PCR_DIV_Field := Interfaces.SAM.PMC.Periph_Div_Mck;
-- unspecified
Reserved_18_27 : Interfaces.SAM.UInt10 := 16#0#;
-- Enable
EN : Boolean := False;
-- unspecified
Reserved_29_31 : Interfaces.SAM.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PCR_Register use record
PID at 0 range 0 .. 5;
Reserved_6_11 at 0 range 6 .. 11;
CMD at 0 range 12 .. 12;
Reserved_13_15 at 0 range 13 .. 15;
DIV at 0 range 16 .. 17;
Reserved_18_27 at 0 range 18 .. 27;
EN at 0 range 28 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
subtype PMC_OCR_CAL8_Field is Interfaces.SAM.UInt7;
subtype PMC_OCR_CAL16_Field is Interfaces.SAM.UInt7;
subtype PMC_OCR_CAL24_Field is Interfaces.SAM.UInt7;
-- Oscillator Calibration Register
type PMC_OCR_Register is record
-- RC Oscillator Calibration bits for 8 MHz
CAL8 : PMC_OCR_CAL8_Field := 16#40#;
-- Selection of RC Oscillator Calibration bits for 8 MHz
SEL8 : Boolean := False;
-- RC Oscillator Calibration bits for 16 MHz
CAL16 : PMC_OCR_CAL16_Field := 16#40#;
-- Selection of RC Oscillator Calibration bits for 16 MHz
SEL16 : Boolean := False;
-- RC Oscillator Calibration bits for 24 MHz
CAL24 : PMC_OCR_CAL24_Field := 16#40#;
-- Selection of RC Oscillator Calibration bits for 24 MHz
SEL24 : Boolean := False;
-- unspecified
Reserved_24_31 : Interfaces.SAM.Byte := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_OCR_Register use record
CAL8 at 0 range 0 .. 6;
SEL8 at 0 range 7 .. 7;
CAL16 at 0 range 8 .. 14;
SEL16 at 0 range 15 .. 15;
CAL24 at 0 range 16 .. 22;
SEL24 at 0 range 23 .. 23;
Reserved_24_31 at 0 range 24 .. 31;
end record;
-- PMC_SLPWK_ER0_PID array
type PMC_SLPWK_ER0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_SLPWK_ER0_PID
type PMC_SLPWK_ER0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_SLPWK_ER0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_SLPWK_ER0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- SleepWalking Enable Register 0
type PMC_SLPWK_ER0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte := 16#0#;
-- Write-only. Peripheral 8 SleepWalking Enable
PID : PMC_SLPWK_ER0_PID_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SLPWK_ER0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- PMC_SLPWK_DR0_PID array
type PMC_SLPWK_DR0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_SLPWK_DR0_PID
type PMC_SLPWK_DR0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_SLPWK_DR0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_SLPWK_DR0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- SleepWalking Disable Register 0
type PMC_SLPWK_DR0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte := 16#0#;
-- Write-only. Peripheral 8 SleepWalking Disable
PID : PMC_SLPWK_DR0_PID_Field :=
(As_Array => False, Val => 16#0#);
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SLPWK_DR0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- PMC_SLPWK_SR0_PID array
type PMC_SLPWK_SR0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_SLPWK_SR0_PID
type PMC_SLPWK_SR0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_SLPWK_SR0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_SLPWK_SR0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- SleepWalking Status Register 0
type PMC_SLPWK_SR0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte;
-- Read-only. Peripheral 8 SleepWalking Status
PID : PMC_SLPWK_SR0_PID_Field;
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SLPWK_SR0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
-- PMC_SLPWK_ASR0_PID array
type PMC_SLPWK_ASR0_PID_Field_Array is array (8 .. 29) of Boolean
with Component_Size => 1, Size => 22;
-- Type definition for PMC_SLPWK_ASR0_PID
type PMC_SLPWK_ASR0_PID_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PID as a value
Val : Interfaces.SAM.UInt22;
when True =>
-- PID as an array
Arr : PMC_SLPWK_ASR0_PID_Field_Array;
end case;
end record
with Unchecked_Union, Size => 22;
for PMC_SLPWK_ASR0_PID_Field use record
Val at 0 range 0 .. 21;
Arr at 0 range 0 .. 21;
end record;
-- SleepWalking Activity Status Register 0
type PMC_SLPWK_ASR0_Register is record
-- unspecified
Reserved_0_7 : Interfaces.SAM.Byte;
-- Read-only. Peripheral 8 Activity Status
PID : PMC_SLPWK_ASR0_PID_Field;
-- unspecified
Reserved_30_31 : Interfaces.SAM.UInt2;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_SLPWK_ASR0_Register use record
Reserved_0_7 at 0 range 0 .. 7;
PID at 0 range 8 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
subtype PMC_PMMR_PLLA_MMAX_Field is Interfaces.SAM.UInt11;
-- PLL Maximum Multiplier Value Register
type PMC_PMMR_Register is record
-- PLLA Maximum Allowed Multiplier Value
PLLA_MMAX : PMC_PMMR_PLLA_MMAX_Field := 16#7FF#;
-- unspecified
Reserved_11_31 : Interfaces.SAM.UInt21 := 16#FFE0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PMC_PMMR_Register use record
PLLA_MMAX at 0 range 0 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Power Management Controller
type PMC_Peripheral is record
-- System Clock Enable Register
PMC_SCER : aliased PMC_SCER_Register;
-- System Clock Disable Register
PMC_SCDR : aliased PMC_SCDR_Register;
-- System Clock Status Register
PMC_SCSR : aliased PMC_SCSR_Register;
-- Peripheral Clock Enable Register 0
PMC_PCER0 : aliased PMC_PCER0_Register;
-- Peripheral Clock Disable Register 0
PMC_PCDR0 : aliased PMC_PCDR0_Register;
-- Peripheral Clock Status Register 0
PMC_PCSR0 : aliased PMC_PCSR0_Register;
-- Main Oscillator Register
CKGR_MOR : aliased CKGR_MOR_Register;
-- Main Clock Frequency Register
CKGR_MCFR : aliased CKGR_MCFR_Register;
-- PLLA Register
CKGR_PLLAR : aliased CKGR_PLLAR_Register;
-- PLLB Register
CKGR_PLLBR : aliased CKGR_PLLBR_Register;
-- Master Clock Register
PMC_MCKR : aliased PMC_MCKR_Register;
-- USB Clock Register
PMC_USB : aliased PMC_USB_Register;
-- Programmable Clock 0 Register
PMC_PCK : aliased PMC_PCK_Registers;
-- Interrupt Enable Register
PMC_IER : aliased PMC_IER_Register;
-- Interrupt Disable Register
PMC_IDR : aliased PMC_IDR_Register;
-- Status Register
PMC_SR : aliased PMC_SR_Register;
-- Interrupt Mask Register
PMC_IMR : aliased PMC_IMR_Register;
-- Fast Startup Mode Register
PMC_FSMR : aliased PMC_FSMR_Register;
-- Fast Startup Polarity Register
PMC_FSPR : aliased PMC_FSPR_Register;
-- Fault Output Clear Register
PMC_FOCR : aliased PMC_FOCR_Register;
-- Write Protection Mode Register
PMC_WPMR : aliased PMC_WPMR_Register;
-- Write Protection Status Register
PMC_WPSR : aliased PMC_WPSR_Register;
-- Peripheral Control Register
PMC_PCR : aliased PMC_PCR_Register;
-- Oscillator Calibration Register
PMC_OCR : aliased PMC_OCR_Register;
-- SleepWalking Enable Register 0
PMC_SLPWK_ER0 : aliased PMC_SLPWK_ER0_Register;
-- SleepWalking Disable Register 0
PMC_SLPWK_DR0 : aliased PMC_SLPWK_DR0_Register;
-- SleepWalking Status Register 0
PMC_SLPWK_SR0 : aliased PMC_SLPWK_SR0_Register;
-- SleepWalking Activity Status Register 0
PMC_SLPWK_ASR0 : aliased PMC_SLPWK_ASR0_Register;
-- PLL Maximum Multiplier Value Register
PMC_PMMR : aliased PMC_PMMR_Register;
end record
with Volatile;
for PMC_Peripheral use record
PMC_SCER at 16#0# range 0 .. 31;
PMC_SCDR at 16#4# range 0 .. 31;
PMC_SCSR at 16#8# range 0 .. 31;
PMC_PCER0 at 16#10# range 0 .. 31;
PMC_PCDR0 at 16#14# range 0 .. 31;
PMC_PCSR0 at 16#18# range 0 .. 31;
CKGR_MOR at 16#20# range 0 .. 31;
CKGR_MCFR at 16#24# range 0 .. 31;
CKGR_PLLAR at 16#28# range 0 .. 31;
CKGR_PLLBR at 16#2C# range 0 .. 31;
PMC_MCKR at 16#30# range 0 .. 31;
PMC_USB at 16#38# range 0 .. 31;
PMC_PCK at 16#40# range 0 .. 255;
PMC_IER at 16#60# range 0 .. 31;
PMC_IDR at 16#64# range 0 .. 31;
PMC_SR at 16#68# range 0 .. 31;
PMC_IMR at 16#6C# range 0 .. 31;
PMC_FSMR at 16#70# range 0 .. 31;
PMC_FSPR at 16#74# range 0 .. 31;
PMC_FOCR at 16#78# range 0 .. 31;
PMC_WPMR at 16#E4# range 0 .. 31;
PMC_WPSR at 16#E8# range 0 .. 31;
PMC_PCR at 16#10C# range 0 .. 31;
PMC_OCR at 16#110# range 0 .. 31;
PMC_SLPWK_ER0 at 16#114# range 0 .. 31;
PMC_SLPWK_DR0 at 16#118# range 0 .. 31;
PMC_SLPWK_SR0 at 16#11C# range 0 .. 31;
PMC_SLPWK_ASR0 at 16#120# range 0 .. 31;
PMC_PMMR at 16#130# range 0 .. 31;
end record;
-- Power Management Controller
PMC_Periph : aliased PMC_Peripheral
with Import, Address => PMC_Base;
end Interfaces.SAM.PMC;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K I N G . S T A G E S --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU Library General Public License as published by the --
-- Free Software Foundation; either version 2, or (at your option) any --
-- later version. GNARL is distributed in the hope that it will be use- --
-- ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Gen- --
-- eral Library Public License for more details. You should have received --
-- a copy of the GNU Library General Public License along with GNARL; see --
-- file COPYING.LIB. If not, write to the Free Software Foundation, 675 --
-- Mass Ave, Cambridge, MA 02139, USA. --
-- --
------------------------------------------------------------------------------
package System.Tasking.Stages is
-- This interface is described in the document
-- Gnu Ada Runtime Library Interface (GNARLI).
pragma Elaborate_Body (System.Tasking.Stages);
function Current_Master return Master_ID;
procedure Enter_Master;
procedure Complete_Master;
procedure Create_Task
(Size : Size_Type;
Priority : Integer;
Num_Entries : Task_Entry_Index;
Master : Master_ID;
State : Task_Procedure_Access;
Discriminants : System.Address;
Elaborated : Access_Boolean;
Chain : in out Activation_Chain;
Created_Task : out Task_ID);
procedure Activate_Tasks (Chain_Access : Activation_Chain_Access);
procedure Expunge_Unactivated_Tasks (Chain : in out Activation_Chain);
procedure Complete_Activation;
procedure Complete_Task;
function Terminated (T : Task_ID) return Boolean;
-------------------------------
-- RTS Internal Declarations --
-------------------------------
-- These declarations are not part of the GNARLI.
procedure Leave_Task;
-- Export for abortion
procedure Init_Master (M : out Master_ID);
pragma Inline (Init_Master);
function Increment_Master (M : Master_ID) return Master_ID;
pragma Inline (Increment_Master);
function Decrement_Master (M : Master_ID) return Master_ID;
pragma Inline (Decrement_Master);
end System.Tasking.Stages;
|
-- Copyright 2018-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
function Something return Integer;
procedure Do_Nothing (A : System.Address);
end Pck;
|
with Blueprint; use Blueprint;
package Init_Project is
procedure Init (Path : String; Blueprint : String; ToDo : Action);
private
end Init_Project; |
pragma SPARK_Mode(On);
package body Stack is
function Top (S : in Stack) return Thing is (S.Elements (S.Quantity));
procedure Pop (S : in out Stack) is
begin S.Quantity := S.Quantity - 1; end Pop;
procedure Put (S : in out Stack; E : Thing) is
begin
S.Quantity := S.Quantity + 1;
S.Elements (S.Quantity) := E;
end Put;
end Stack;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- Purpose:
-- Helper procedures to replace one AST node with other
package Asis.Gela.Replace is
function Could_Be_Positional_Array_Aggregate
(Item : Asis.Element) return Boolean;
procedure Operator_Symbol_To_String_Literal (Item : in out Asis.Element);
procedure Record_To_Parameter_Association (Item : in out Asis.Element);
procedure Identifier_To_Enumeration_Literal (Item : in out Asis.Element);
procedure Expression_To_Function_Call (Item : in out Asis.Element);
procedure Function_To_Indexed_Component (Item : in out Asis.Element);
procedure Function_To_Slice (Item : in out Asis.Element);
procedure Function_To_Type_Conversion (Item : in out Asis.Element);
procedure Record_To_Array_Association (Item : in out Asis.Element);
procedure Function_To_Constraint (Item : in out Asis.Element);
procedure Procedure_To_Entry_Call (Item : in out Asis.Element);
procedure Record_To_Array_Aggregate
(Item : in out Asis.Element;
Positional : in Boolean);
procedure Integer_Real_Number (Item : in out Asis.Element);
procedure To_Conditional_Entry_Call (Element : in out Asis.Statement);
procedure To_Timed_Entry_Call (Element : in out Asis.Statement);
procedure To_Enumeration_Rep_Clause (Element : in out Asis.Statement);
procedure Procedure_To_Indexed_Entry_Call (Element : in out Asis.Statement);
procedure Interface_To_Formal_Interface (Item : in out Asis.Statement);
end Asis.Gela.Replace;
------------------------------------------------------------------------------
-- 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.
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 3 8 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 38
package System.Pack_38 is
pragma Preelaborate;
Bits : constant := 38;
type Bits_38 is mod 2 ** Bits;
for Bits_38'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_38
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_38 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_38
(Arr : System.Address;
N : Natural;
E : Bits_38;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
function GetU_38
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_38 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned. This version
-- is used when Arr may represent an unaligned address.
procedure SetU_38
(Arr : System.Address;
N : Natural;
E : Bits_38;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value. This version
-- is used when Arr may represent an unaligned address
end System.Pack_38;
|
package Mission with SPARK_Mode is
-- the mission can only go forward
type Mission_State_Type is (
UNKNOWN,
INITIALIZING,
SELF_TESTING,
ASCENDING);
procedure run_Mission;
end Mission;
|
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
package Support_Utils.Char_Utils is
---------------------------------------------------------------------------
-- Is C one of: " ,-;:.([{<)]}>"
function Is_Punctuation (C : Character) return Boolean;
-- Is C alphabetic, or '.' or '-' ?
function Is_Alpha_Etc (C : Character) return Boolean;
-- Converts V -> U, v -> u, J -> I, j -> i. Used in few select places.
-- Doesn't change character when it is not V/v or J/j.
function V_To_U_And_J_To_I (C : in Character) return Character;
procedure V_To_U_And_J_To_I (C : in out Character);
---------------------------------------------------------------------------
end Support_Utils.Char_Utils;
|
package body agar.gui.widget.icon is
package cbinds is
function allocate_from_bitmap
(filename : cs.chars_ptr) return icon_access_t;
pragma import (c, allocate_from_bitmap, "AG_IconFromBMP");
procedure set_text
(icon : icon_access_t;
str : cs.chars_ptr);
pragma import (c, set_text, "AG_IconSetTextS");
procedure set_background_fill
(icon : icon_access_t;
fill : c.int;
color : agar.core.types.uint32_t);
pragma import (c, set_background_fill, "AG_IconSetBackgroundFill");
-- procedure set_padding
-- (icon : icon_access_t;
-- left : c.int;
-- right : c.int;
-- top : c.int;
-- bottom : c.int);
-- pragma import (c, set_padding, "AG_IconSetPadding");
end cbinds;
function allocate_from_bitmap
(filename : string) return icon_access_t
is
ca_name : aliased c.char_array := c.to_c (filename);
begin
return cbinds.allocate_from_bitmap
(filename => cs.to_chars_ptr (ca_name'unchecked_access));
end allocate_from_bitmap;
procedure set_text
(icon : icon_access_t;
text : string)
is
ca_text : aliased c.char_array := c.to_c (text);
begin
cbinds.set_text
(icon => icon,
str => cs.to_chars_ptr (ca_text'unchecked_access));
end set_text;
-- procedure set_padding
-- (icon : icon_access_t;
-- left : natural;
-- right : natural;
-- top : natural;
-- bottom : natural) is
-- begin
-- cbinds.set_padding
-- (icon => icon,
-- left => c.int (left),
-- right => c.int (right),
-- top => c.int (top),
-- bottom => c.int (bottom));
-- end set_padding;
procedure set_background_fill
(icon : icon_access_t;
fill : boolean;
color : agar.core.types.uint32_t) is
c_fill : c.int := 0;
begin
if fill then c_fill := 1; end if;
cbinds.set_background_fill
(icon => icon,
fill => c_fill,
color => color);
end set_background_fill;
end agar.gui.widget.icon;
|
Package body Dbase.Login is
CIB : Direct_Cursor;
function If_Exists (Usrnme : Unbounded_String) return Boolean is
Stmt : Prepared_Statement;
SQLstatement : Unbounded_String;
begin
SQLstatement := "SELECT * FROM users WHERE username = '"& Usrnme & "'";
Add (Standard_Window,
Line => 1,
Column => 1,
Str => To_String(SQLstatement));
refresh;
Stmt:= Prepare (To_String(SQLstatement), Index_By => Field_Index'First);
CIB.Fetch (Dbase.DB, Stmt);
if CIB.Has_Row then
return True;
else
return False;
end if;
end If_Exists;
function Fld (CI : Direct_Cursor; FldNme : String) return Unbounded_String is
begin
for i in 0..CI.Field_Count-1 loop
if CI.Field_Name(i) = FldNme then
return To_Unbounded_String(CI.Value(i));
end if;
end loop;
Display_Warning.Warning("No Field " & FldNme);
return To_Unbounded_String(FldNme) & " Not Found";
end;
procedure Create_User is
UserName, FullName, Password, Password2, Fname : Unbounded_String;
NowDate : Time := Clock;
CreateDate, SQLstatement : Unbounded_String;
Width,Columns : Column_Position := 50;
Length,Lines : Line_Position := 8;
Display_Window : Window;
Stmt : Prepared_Statement;
begin
if Dbase.Scroller.OpenDb then
Get_Size(Number_Of_Lines => Lines,Number_Of_Columns => Columns);
Display_Window := Sub_Window(Win => Standard_Window,
Number_Of_Lines => Length,
Number_Of_Columns => Width,
First_Line_Position => (Lines - Length) / 2,
First_Column_Position => (Columns - Width) / 2);
Clear(Display_Window);
Box(Display_Window);
loop
Add (Display_Window,Line => 2,Column => 2,Str => "UserName : ");
Texaco.Line_Editor(Display_Window,
StartLine => 2,
StartColumn => 15,
Editlength => 16,
Edline => UserName,
MaxLength => 15,
SuppressSpaces => True);
Fname := To_Unbounded_String(Ada.Strings.Fixed.Translate(To_String(UserName),
Ada.Strings.Maps.Constants.Lower_Case_Map));
if If_Exists (FName) then
Display_Warning.Warning("That Username is already in use",Down => Integer(Length-1));
UserName := To_Unbounded_String("");
Redraw(Display_Window,0,Integer(Length)-1);
Refresh(Display_Window);
end if;
exit when UserName /= "";
end loop;
loop
Add (Display_Window,Line => 3,Column => 2,Str => "Full Name : ");
Texaco.Line_Editor(Display_Window,
StartLine => 3,
StartColumn => 15,
Editlength => 31,
Edline => FullName,
MaxLength => 30);
exit when FullName /= "";
end loop;
loop
Add (Display_Window,Line => 4,Column => 2,Str => "Password : ");
Texaco.Password_Editor(Display_Window,
StartLine => 4,
StartColumn => 15,
Edline => Password,
MaxLength => 15);
Add (Display_Window,Line => 5,Column => 2,Str => "Re-Type Password : ");
Texaco.Password_Editor(Display_Window,
StartLine => 5,
StartColumn => 21,
Edline => Password2,
MaxLength => 15);
if Password /= Password2 then
Display_Warning.Warning("Passwords Do Not Match",Down => Integer(Length-1));
Password := To_Unbounded_String("");
Password2 := To_Unbounded_String("");
end if;
exit when Password /= "";
end loop;
if Display_Warning.GetYN("Do You want to save this User Y/N",Down => Integer(Length-1)) then
CreateDate := To_Unbounded_String(Image (NowDate));
SQLstatement := SQLstatement & "INSERT INTO users (username,fullname,password) VALUES (";
SQLstatement := SQLstatement & "'"&Fname&"','"&FullName&"','"&Password&"')";
Add (Standard_Window,
Line => 1,
Column => 1,
Str => To_String(SQLstatement));
refresh;
Stmt:= Prepare (To_String(SQLstatement));
Dbase.DB.Execute(Stmt);
Dbase.DB.Commit;
if Dbase.DB.Success then
Display_Warning.Warning("New User Created");
else
Display_Warning.Warning("Create User Failed");
end if;
end if;
Dbase.Scroller.CloseDb;
else
Display_Warning.Warning("No Open Universe DB");
end if;
Clear(Display_Window);
Refresh(Display_Window);
Delete (Win => Display_Window);
end Create_User;
procedure Login_User is
InputUserName, InputPassword, Fname, UserName,FullName,Password : Unbounded_String;
Width,Columns : Column_Position := 50;
Length,Lines : Line_Position := 8;
Display_Window : Window;
begin
if Dbase.Scroller.OpenDb then
Get_Size(Number_Of_Lines => Lines,Number_Of_Columns => Columns);
Display_Window := Sub_Window(Win => Standard_Window,
Number_Of_Lines => Length,
Number_Of_Columns => Width,
First_Line_Position => (Lines - Length) / 2,
First_Column_Position => (Columns - Width) / 2);
Clear(Display_Window);
Box(Display_Window);
loop
Add (Display_Window,Line => 2,Column => 2,Str => "UserName : ");
Texaco.Line_Editor(Display_Window,
StartLine => 2,
StartColumn => 15,
Editlength => 16,
Edline => InputUserName,
MaxLength => 15,
SuppressSpaces => True);
exit when InputUserName /= "";
end loop;
loop
Add (Display_Window,Line => 3,Column => 2,Str => "Password : ");
Texaco.Password_Editor(Display_Window,
StartLine => 3,
StartColumn => 15,
Edline => InputPassword,
MaxLength => 15);
exit when InputPassword /= "";
end loop;
Fname := To_Unbounded_String(Ada.Strings.Fixed.Translate(To_String(InputUserName),
Ada.Strings.Maps.Constants.Lower_Case_Map));
if IF_Exists (FName) then
Password := Fld(CIB,"password");
if InputPassword = Password then
UserLoggedIn := True;
UserLoggedName := Fld(CIB,"username");
UserLoggedFullName := Fld(CIB,"fullname");
UserLoggedUserId := Fld(CIB,"user_id");
Display_Warning.Warning(To_String("Logged in "& UserLoggedName),Down => Integer(Length-1));
else
Display_Warning.Warning("Login Failed",Down => Integer(Length-1));
end if;
else
Display_Warning.Warning("Login Failed",Down => Integer(Length-1));
end if;
Dbase.Scroller.CloseDb;
end if;
Clear(Display_Window);
Refresh(Display_Window);
Delete (Win => Display_Window);
end Login_User;
end Dbase.Login;
|
with
Ada.Containers.Vectors,
Ada.Streams;
private
with
AdaM.Declaration.of_renaming.a_subprogram,
AdaM.Declaration.of_renaming.a_package,
AdaM.Declaration.of_renaming.a_generic;
package AdaM.library_Unit.renaming_declaration
is
type Item is new library_Unit.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : in View);
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : out View);
for View'write use View_write;
for View'read use View_read;
-- Vector
--
package Vectors is new ada.Containers.Vectors (Positive, View);
subtype Vector is Vectors.Vector;
-- Forge
--
function new_Subprogram return library_Unit.renaming_declaration.view;
procedure free (Self : in out library_Unit.renaming_declaration.view);
overriding
procedure destruct (Self : in out library_Unit.renaming_declaration.item);
-- Attributes
--
overriding
function Id (Self : access Item) return AdaM.Id;
private
type Kind is ( package_renaming_Declaration,
generic_renaming_Declaration,
subprogram_renaming_Declaration);
type a_Declaration (Kind : renaming_declaration.Kind := package_renaming_Declaration) is
record
case Kind
is
when package_renaming_Declaration =>
of_package_Renaming : AdaM.Declaration.of_renaming.a_package.view;
when generic_renaming_Declaration =>
of_generic_Renaming : AdaM.Declaration.of_renaming.a_generic.view;
when subprogram_renaming_Declaration =>
of_subprogram_Renaming : AdaM.Declaration.of_renaming.a_subprogram.view;
end case;
end record;
type Item is new library_Unit.item with
record
Declaration : a_Declaration;
end record;
end AdaM.library_Unit.renaming_declaration;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S T Y L E S W --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the style switches used for setting style options.
-- The only clients of this package are the body of Style and the body of
-- Switches. All other style checking issues are handled using the public
-- interfaces in the spec of Style.
with Types; use Types;
package Stylesw is
--------------------------
-- Style Check Switches --
--------------------------
-- These flags are used to control the details of the style checking
-- options. The default values shown here correspond to no style checking.
-- If any of these values is set to a non-default value, then
-- Opt.Style_Check is set True to activate calls to this package.
-- The actual mechanism for setting these switches to other than default
-- values is via the Set_Style_Check_Options procedure or through a call to
-- Set_Default_Style_Check_Options. They should not be set directly in any
-- other manner.
Style_Check_Array_Attribute_Index : Boolean := False;
-- This can be set True by using the -gnatyA switch. If it is True then
-- index numbers for array attributes (like Length) are required to be
-- absent for one-dimensional arrays and present for multi-dimensional
-- array attribute references.
Style_Check_Attribute_Casing : Boolean := False;
-- This can be set True by using the -gnatya switch. If it is True, then
-- attribute names (including keywords such as digits used as attribute
-- names) must be in mixed case.
Style_Check_Blanks_At_End : Boolean := False;
-- This can be set True by using the -gnatyb switch. If it is True, then
-- spaces at the end of lines are not permitted.
Style_Check_Blank_Lines : Boolean := False;
-- This can be set True by using the -gnatyu switch. If it is True, then
-- multiple blank lines are not permitted, and there may not be a blank
-- line at the end of the file.
Style_Check_Boolean_And_Or : Boolean := False;
-- This can be set True by using the -gnatyB switch. If it is True, then
-- the use of AND THEN/OR ELSE rather than AND/OR is required except for
-- the following cases:
--
-- a) Both operands are simple Boolean constants or variables
-- b) Both operands are of a modular type
-- c) Both operands are of an array type
Style_Check_Comments : Boolean := False;
-- This can be set True by using the -gnatyc switch. If it is True, then
-- comments are style checked as follows:
--
-- All comments must be at the start of the line, or the first minus must
-- be preceded by at least one space.
--
-- For a comment that is not at the start of a line, the only requirement
-- is that a space follow the comment characters.
--
-- For a comment that is at the start of the line, one of the following
-- conditions must hold:
--
-- The comment characters are the only non-blank characters on the line
--
-- The comment characters are followed by an exclamation point (the
-- sequence --! is used by gnatprep for marking deleted lines).
--
-- The comment characters are followed by two space characters if
-- Comment_Spacing = 2, else by one character if Comment_Spacing = 1.
--
-- The line consists entirely of minus signs
--
-- The comment characters are followed by a single space, and the last
-- two characters on the line are also comment characters.
--
-- Note: the reason for the last two conditions is to allow "boxed"
-- comments where only a single space separates the comment characters.
Style_Check_Comments_Spacing : Nat range 1 .. 2;
-- Spacing required for comments, valid only if Style_Check_Comments true.
Style_Check_DOS_Line_Terminator : Boolean := False;
-- This can be set true by using the -gnatyd switch. If it is True, then
-- the line terminator must be a single LF, without an associated CR (e.g.
-- DOS line terminator sequence CR/LF not allowed).
Style_Check_End_Labels : Boolean := False;
-- This can be set True by using the -gnatye switch. If it is True, then
-- optional END labels must always be present.
Style_Check_Form_Feeds : Boolean := False;
-- This can be set True by using the -gnatyf switch. If it is True, then
-- form feeds and vertical tabs are not allowed in the source text.
Style_Check_Horizontal_Tabs : Boolean := False;
-- This can be set True by using the -gnatyh switch. If it is True, then
-- horizontal tabs are not allowed in source text.
Style_Check_If_Then_Layout : Boolean := False;
-- This can be set True by using the -gnatyi switch. If it is True, then a
-- THEN keyword must either appear on the same line as the IF, or on a line
-- all on its own.
--
-- This permits one of two styles for IF-THEN layout. Either the IF and
-- THEN keywords are on the same line, where the condition is short enough,
-- or the conditions are continued over to the lines following the IF and
-- the THEN stands on its own. For example:
--
-- if X > Y then
--
-- if X > Y
-- and then Y < Z
-- then
--
-- if X > Y and then Z > 0
-- then
--
-- are allowed, but
--
-- if X > Y
-- and then B > C then
--
-- is not allowed.
Style_Check_Indentation : Column_Number range 0 .. 9 := 0;
-- This can be set non-zero by using the -gnaty? (? a digit) switch. If
-- it is non-zero it activates indentation checking with the indicated
-- indentation value. A value of zero turns off checking. The requirement
-- is that any new statement, line comment, declaration or keyword such
-- as END, start on a column that is a multiple of the indentation value.
Style_Check_Keyword_Casing : Boolean := False;
-- This can be set True by using the -gnatyk switch. If it is True, then
-- keywords are required to be in all lower case. This rule does not apply
-- to keywords such as digits appearing as an attribute name.
Style_Check_Layout : Boolean := False;
-- This can be set True by using the -gnatyl switch. If it is True, it
-- activates checks that constructs are indented as suggested by the
-- examples in the RM syntax, e.g. that the ELSE keyword must line up
-- with the IF keyword.
Style_Check_Max_Line_Length : Boolean := False;
-- This can be set True by using the -gnatym/M switches. If it is True, it
-- activates checking for a maximum line length of Style_Max_Line_Length
-- characters.
Style_Check_Max_Nesting_Level : Boolean := False;
-- This can be set True by using -gnatyLnnn with a value other than zero
-- (a value of zero resets it to False). If True, it activates checking
-- the maximum nesting level against Style_Max_Nesting_Level.
Style_Check_Missing_Overriding : Boolean := False;
-- This can be set True by using the -gnatyO switch. If it is True, then
-- "overriding" is required in subprogram declarations and bodies where
-- appropriate. Note that "not overriding" is never required.
Style_Check_Mode_In : Boolean := False;
-- This can be set True by using -gnatyI. If True, it activates checking
-- that mode IN is not used on its own (since it is the default).
Style_Check_Order_Subprograms : Boolean := False;
-- This can be set True by using the -gnatyo switch. If it is True, then
-- names of subprogram bodies must be in alphabetical order (not taking
-- casing into account).
Style_Check_Pragma_Casing : Boolean := False;
-- This can be set True by using the -gnatyp switch. If it is True, then
-- pragma names must use mixed case.
Style_Check_References : Boolean := False;
-- This can be set True by using the -gnatyr switch. If it is True, then
-- all references to declared identifiers are checked. The requirement
-- is that casing of the reference be the same as the casing of the
-- corresponding declaration.
Style_Check_Separate_Stmt_Lines : Boolean := False;
-- This can be set True by using the -gnatyS switch. If it is TRUE,
-- then for the case of keywords THEN (not preceded by AND) or ELSE (not
-- preceded by OR) which introduce a conditionally executed statement
-- sequence, there must be no tokens on the same line as the keyword, so
-- that coverage testing can clearly identify execution of the statement
-- sequence. A comment is permitted, as is THEN ABORT or a PRAGMA keyword
-- after ELSE (a common style to specify the condition for the ELSE).
Style_Check_Specs : Boolean := False;
-- This can be set True by using the -gnatys switches. If it is True, then
-- separate specs are required to be present for all procedures except
-- parameterless library level procedures. The exception means that typical
-- main programs do not require separate specs.
Style_Check_Standard : Boolean := False;
-- This can be set True by using the -gnatyn switch. If it is True, then
-- any references to names in Standard have to be cased in a manner that
-- is consistent with the Ada RM (usually Mixed case, as in Long_Integer)
-- but there are some exceptions (e.g. NUL, ASCII).
Style_Check_Tokens : Boolean := False;
-- This can be set True by using the -gnatyt switch. If it is True, then
-- the style check that requires canonical spacing between various
-- punctuation tokens as follows:
--
-- ABS and NOT must be followed by a space
--
-- => must be surrounded by spaces
--
-- <> must be preceded by a space or left paren
--
-- Binary operators other than ** must be surrounded by spaces.
--
-- There is no restriction on the layout of the ** binary operator.
--
-- Colon must be surrounded by spaces
--
-- Colon-equal (assignment) must be surrounded by spaces
--
-- Comma must be the first non-blank character on the line, or be
-- immediately preceded by a non-blank character, and must be followed
-- by a blank.
--
-- A space must precede a left paren following a digit or letter, and a
-- right paren must not be followed by a space (it can be at the end of
-- the line).
--
-- A right paren must either be the first non-blank character on a line,
-- or it must be preceded by a non-blank character.
--
-- A semicolon must not be preceded by a blank, and must not be followed
-- by a non-blank character.
--
-- A unary plus or minus may not be followed by a space
--
-- There must be one blank (and no other white space) between NOT and IN
--
-- A vertical bar must be surrounded by spaces
--
-- Note that a requirement that a token be preceded by a space is met by
-- placing the token at the start of the line, and similarly a requirement
-- that a token be followed by a space is met by placing the token at
-- the end of the line. Note that in the case where horizontal tabs are
-- permitted, a horizontal tab is acceptable for meeting the requirement
-- for a space.
Style_Check_Xtra_Parens : Boolean := False;
-- This can be set True by using the -gnatyx switch. If true, then it is
-- not allowed to enclose entire expressions in tests in parentheses
-- (C style), e.g. if (x = y) then ... is not allowed.
Style_Max_Line_Length : Int := 0;
-- Value used to check maximum line length. Gets reset as a result of
-- use of -gnatym or -gnatyMnnn switches. This value is only read if
-- Style_Check_Max_Line_Length is True.
Style_Max_Nesting_Level : Int := 0;
-- Value used to check maximum nesting level. Gets reset as a result
-- of use of the -gnatyLnnn switch. This value is only read if
-- Style_Check_Max_Nesting_Level is True.
-----------------
-- Subprograms --
-----------------
function RM_Column_Check return Boolean;
-- Determines whether style checking is active and the RM column check
-- mode is set requiring checking of RM format layout.
procedure Set_Default_Style_Check_Options;
-- This procedure is called to set the default style checking options in
-- response to a -gnaty switch with no suboptions or from -gnatyy.
procedure Set_GNAT_Style_Check_Options;
-- This procedure is called to set the default style checking options for
-- GNAT units (as set by -gnatg or -gnatyg).
Style_Msg_Buf : String (1 .. 80);
Style_Msg_Len : Natural;
-- Used to return
procedure Set_Style_Check_Options
(Options : String;
OK : out Boolean;
Err_Col : out Natural);
-- This procedure is called to set the style check options that correspond
-- to the characters in the given Options string. If all options are valid,
-- they are set in an additive manner: any previous options are retained
-- unless overridden, unless a minus is encountered, and then subsequent
-- style switches are subtracted from the current set.
--
-- If all options given are valid, then OK is True, Err_Col is set to
-- Options'Last + 1, and Style_Msg_Buf/Style_Msg_Len are unchanged.
--
-- If an invalid character is found, then OK is False on exit, and Err_Col
-- is the index in options of the bad character. In this case Style_Msg_Len
-- is set and Style_Msg_Buf (1 .. Style_Msg_Len) has a detailed message
-- describing the error.
procedure Set_Style_Check_Options (Options : String);
-- Like the above procedure, but used when the Options string is known to
-- be valid. This is for example appropriate for calls where the string was
-- obtained by Save_Style_Check_Options.
procedure Reset_Style_Check_Options;
-- Sets all style check options to off
subtype Style_Check_Options is String (1 .. 64);
-- Long enough string to hold all options from Save call below
procedure Save_Style_Check_Options (Options : out Style_Check_Options);
-- Sets Options to represent current selection of options. This set can be
-- restored by first calling Reset_Style_Check_Options, and then calling
-- Set_Style_Check_Options with the Options string.
end Stylesw;
|
package Bases.Test_Data.Tests.Recruit_Container is
end Bases.Test_Data.Tests.Recruit_Container;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Testsuite Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2009, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package body Unicode_Data_File_Utilities is
-----------
-- Parse --
-----------
function Parse (Text : String) return Wide_Wide_String is
First : Positive := Text'First;
Last : Natural;
Result : Wide_Wide_String (1 .. Text'Length / 4);
Last_Result : Natural := 0;
procedure Scan;
----------
-- Scan --
----------
procedure Scan is
begin
while First < Text'Last
and then Text (First) = ' '
loop
First := First + 1;
end loop;
Last := First - 1;
while Last < Text'Last loop
Last := Last + 1;
if Text (Last) not in '0' .. '9'
and then Text (Last) not in 'A' .. 'F'
then
Last := Last - 1;
exit;
end if;
end loop;
end Scan;
begin
while First < Text'Last loop
Scan;
Last_Result := Last_Result + 1;
Result (Last_Result) :=
Wide_Wide_Character'Val
(Integer'Value ("16#" & Text (First .. Last) & "#"));
First := Last + 1;
end loop;
return Result (1 .. Last_Result);
end Parse;
end Unicode_Data_File_Utilities;
|
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2004 Dmitriy Anisimkov --
-- --
-- Open source license information is in the zlib.ads file. --
----------------------------------------------------------------
--
-- $Id: buffer_demo.adb $
-- This demo program provided by Dr Steve Sangwine <sjs@essex.ac.uk>
--
-- Demonstration of a problem with Zlib-Ada (already fixed) when a buffer
-- of exactly the correct size is used for decompressed data, and the last
-- few bytes passed in to Zlib are checksum bytes.
-- This program compresses a string of text, and then decompresses the
-- compressed text into a buffer of the same size as the original text.
with Ada.Streams; use Ada.Streams;
with Ada.Text_IO;
with ZLib; use ZLib;
procedure Buffer_Demo is
EOL : Character renames ASCII.LF;
Text : constant String
:= "Four score and seven years ago our fathers brought forth," & EOL &
"upon this continent, a new nation, conceived in liberty," & EOL &
"and dedicated to the proposition that `all men are created equal'.";
Source : Stream_Element_Array (1 .. Text'Length);
for Source'Address use Text'Address;
begin
Ada.Text_IO.Put (Text);
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Uncompressed size : " & Positive'Image (Text'Length) & " bytes");
declare
Compressed_Data : Stream_Element_Array (1 .. Text'Length);
L : Stream_Element_Offset;
begin
Compress : declare
Compressor : Filter_Type;
I : Stream_Element_Offset;
begin
Deflate_Init (Compressor);
-- Compress the whole of T at once.
Translate (Compressor, Source, I, Compressed_Data, L, Finish);
pragma Assert (I = Source'Last);
Close (Compressor);
Ada.Text_IO.Put_Line
("Compressed size : "
& Stream_Element_Offset'Image (L) & " bytes");
end Compress;
-- Now we decompress the data, passing short blocks of data to Zlib
-- (because this demonstrates the problem - the last block passed will
-- contain checksum information and there will be no output, only a
-- check inside Zlib that the checksum is correct).
Decompress : declare
Decompressor : Filter_Type;
Uncompressed_Data : Stream_Element_Array (1 .. Text'Length);
Block_Size : constant := 4;
-- This makes sure that the last block contains
-- only Adler checksum data.
P : Stream_Element_Offset := Compressed_Data'First - 1;
O : Stream_Element_Offset;
begin
Inflate_Init (Decompressor);
loop
Translate
(Decompressor,
Compressed_Data
(P + 1 .. Stream_Element_Offset'Min (P + Block_Size, L)),
P,
Uncompressed_Data
(Total_Out (Decompressor) + 1 .. Uncompressed_Data'Last),
O,
No_Flush);
Ada.Text_IO.Put_Line
("Total in : " & Count'Image (Total_In (Decompressor)) &
", out : " & Count'Image (Total_Out (Decompressor)));
exit when P = L;
end loop;
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Decompressed text matches original text : "
& Boolean'Image (Uncompressed_Data = Source));
end Decompress;
end;
end Buffer_Demo;
|
------------------------------------------------------------------------------
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- This is a demo of the features available on the STM32F4-DISCOVERY board.
--
-- Tilt the board and the LED closer to the ground will light up. Press the
-- blue button to enter sound mode where a two tone audio is played in the
-- headphone jack. Press the black button to reset.
with Ada.Real_Time; use Ada.Real_Time;
with HAL; use HAL;
with STM32.Board; use STM32.Board;
with STM32.User_Button;
with LIS3DSH; use LIS3DSH;
with HAL.Audio; use HAL.Audio;
with Simple_Synthesizer;
with CS43L22;
procedure Main is
Values : LIS3DSH.Axes_Accelerations;
Threshold_High : constant LIS3DSH.Axis_Acceleration := 200;
Threshold_Low : constant LIS3DSH.Axis_Acceleration := -200;
procedure My_Delay (Milli : Natural);
procedure My_Delay (Milli : Natural) is
begin
delay until Clock + Milliseconds (Milli);
end My_Delay;
Synth : Simple_Synthesizer.Synthesizer;
Audio_Data : Audio_Buffer (1 .. 128);
begin
Initialize_LEDs;
STM32.User_Button.Initialize;
Initialize_Audio;
Synth.Set_Frequency (STM32.Board.Audio_Rate);
STM32.Board.Audio_DAC.Set_Volume (60);
Initialize_Accelerometer;
Accelerometer.Configure
(Output_DataRate => Data_Rate_100Hz,
Axes_Enable => XYZ_Enabled,
SPI_Wire => Serial_Interface_4Wire,
Self_Test => Self_Test_Normal,
Full_Scale => Fullscale_2g,
Filter_BW => Filter_800Hz);
if Accelerometer.Device_Id /= I_Am_LIS3DSH then
All_LEDs_On;
My_Delay (100);
All_LEDs_Off;
My_Delay (100);
else
loop
Accelerometer.Get_Accelerations (Values);
if abs Values.X > abs Values.Y then
if Values.X > Threshold_High then
STM32.Board.Red_LED.Set;
elsif Values.X < Threshold_Low then
STM32.Board.Green_LED.Set;
end if;
My_Delay (10);
else
if Values.Y > Threshold_High then
STM32.Board.Orange_LED.Set;
elsif Values.Y < Threshold_Low then
STM32.Board.Blue_LED.Set;
end if;
My_Delay (10);
end if;
if STM32.User_Button.Has_Been_Pressed then
-- Go to the sound loop
exit;
end if;
All_LEDs_Off;
end loop;
end if;
STM32.Board.Audio_DAC.Play;
loop
for Cnt in 1 .. 1_000 loop
if Cnt < 500 then
Synth.Set_Note_Frequency (440.0);
All_LEDs_On;
else
Synth.Set_Note_Frequency (880.0);
All_LEDs_Off;
end if;
Synth.Receive (Audio_Data);
STM32.Board.Audio_I2S.Transmit (Audio_Data);
end loop;
end loop;
end Main;
|
-- C25001A.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 ALL CHARACTER LITERALS CAN BE WRITTEN.
-- CASE A: THE BASIC CHARACTER SET.
-- TBN 3/17/86
WITH REPORT; USE REPORT;
PROCEDURE C25001A IS
BEGIN
TEST ("C25001A", "CHECK THAT EACH CHARACTER IN THE BASIC " &
"CHARACTER SET CAN BE WRITTEN");
IF CHARACTER'POS('A') /= 65 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'A'");
END IF;
IF CHARACTER'POS('B') /= 66 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'B'");
END IF;
IF CHARACTER'POS('C') /= 67 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'C'");
END IF;
IF CHARACTER'POS('D') /= 68 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'D'");
END IF;
IF CHARACTER'POS('E') /= 69 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'E'");
END IF;
IF CHARACTER'POS('F') /= 70 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'F'");
END IF;
IF CHARACTER'POS('G') /= 71 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'G'");
END IF;
IF CHARACTER'POS('H') /= 72 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'H'");
END IF;
IF CHARACTER'POS('I') /= 73 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'I'");
END IF;
IF CHARACTER'POS('J') /= 74 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'J'");
END IF;
IF CHARACTER'POS('K') /= 75 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'K'");
END IF;
IF CHARACTER'POS('L') /= 76 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'L'");
END IF;
IF CHARACTER'POS('M') /= 77 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'M'");
END IF;
IF CHARACTER'POS('N') /= 78 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'N'");
END IF;
IF CHARACTER'POS('O') /= 79 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'O'");
END IF;
IF CHARACTER'POS('P') /= 80 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'P'");
END IF;
IF CHARACTER'POS('Q') /= 81 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'Q'");
END IF;
IF CHARACTER'POS('R') /= 82 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'R'");
END IF;
IF CHARACTER'POS('S') /= 83 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'S'");
END IF;
IF CHARACTER'POS('T') /= 84 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'T'");
END IF;
IF CHARACTER'POS('U') /= 85 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'U'");
END IF;
IF CHARACTER'POS('V') /= 86 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'V'");
END IF;
IF CHARACTER'POS('W') /= 87 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'W'");
END IF;
IF CHARACTER'POS('X') /= 88 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'X'");
END IF;
IF CHARACTER'POS('Y') /= 89 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'Y'");
END IF;
IF CHARACTER'POS('Z') /= 90 THEN
FAILED ("INCORRECT POSITION NUMBER FOR 'Z'");
END IF;
IF CHARACTER'POS('0') /= 48 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '0'");
END IF;
IF CHARACTER'POS('1') /= 49 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '1'");
END IF;
IF CHARACTER'POS('2') /= 50 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '2'");
END IF;
IF CHARACTER'POS('3') /= 51 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '3'");
END IF;
IF CHARACTER'POS('4') /= 52 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '4'");
END IF;
IF CHARACTER'POS('5') /= 53 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '5'");
END IF;
IF CHARACTER'POS('6') /= 54 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '6'");
END IF;
IF CHARACTER'POS('7') /= 55 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '7'");
END IF;
IF CHARACTER'POS('8') /= 56 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '8'");
END IF;
IF CHARACTER'POS('9') /= 57 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '9'");
END IF;
IF CHARACTER'POS('"') /= 34 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '""'");
END IF;
IF CHARACTER'POS('#') /= 35 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '#'");
END IF;
IF CHARACTER'POS('&') /= 38 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '&'");
END IF;
IF CHARACTER'POS(''') /= 39 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '''");
END IF;
IF CHARACTER'POS('(') /= 40 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '('");
END IF;
IF CHARACTER'POS(')') /= 41 THEN
FAILED ("INCORRECT POSITION NUMBER FOR ')'");
END IF;
IF CHARACTER'POS('*') /= 42 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '*'");
END IF;
IF CHARACTER'POS('+') /= 43 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '+'");
END IF;
IF CHARACTER'POS(',') /= 44 THEN
FAILED ("INCORRECT POSITION NUMBER FOR ','");
END IF;
IF CHARACTER'POS('-') /= 45 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '-'");
END IF;
IF CHARACTER'POS('.') /= 46 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '.'");
END IF;
IF CHARACTER'POS('/') /= 47 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '/'");
END IF;
IF CHARACTER'POS(':') /= 58 THEN
FAILED ("INCORRECT POSITION NUMBER FOR ':'");
END IF;
IF CHARACTER'POS(';') /= 59 THEN
FAILED ("INCORRECT POSITION NUMBER FOR ';'");
END IF;
IF CHARACTER'POS('<') /= 60 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '<'");
END IF;
IF CHARACTER'POS('=') /= 61 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '='");
END IF;
IF CHARACTER'POS('>') /= 62 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '>'");
END IF;
IF CHARACTER'POS('_') /= 95 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '_'");
END IF;
IF CHARACTER'POS('|') /= 124 THEN
FAILED ("INCORRECT POSITION NUMBER FOR '|'");
END IF;
IF CHARACTER'POS(' ') /= 32 THEN
FAILED ("INCORRECT POSITION NUMBER FOR ' '");
END IF;
RESULT;
END C25001A;
|
------------------------------------------------------------------------------
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
package body Encoder_Emulator is
procedure Initialize;
-----------
-- Start --
-----------
procedure Start is
begin
Enable_Channel (Emulator_Timer, Channel_1);
Enable_Channel (Emulator_Timer, Channel_2);
end Start;
----------
-- Stop --
----------
procedure Stop is
begin
Disable_Channel (Emulator_Timer, Channel_1);
Disable_Channel (Emulator_Timer, Channel_2);
end Stop;
-------------------------------
-- Emulate_Forward_Direction --
-------------------------------
procedure Emulate_Forward_Direction is
begin
Configure_Channel_Output
(Emulator_Timer,
Channel => Channel_1,
Mode => Toggle,
State => Disable,
Pulse => Emulator_Period / 4,
Polarity => Low);
Configure_Channel_Output
(Emulator_Timer,
Channel => Channel_2,
Mode => Toggle,
State => Disable,
Pulse => (Emulator_Period * 3) / 4,
Polarity => Low);
end Emulate_Forward_Direction;
--------------------------------
-- Emulate_Backward_Direction --
--------------------------------
procedure Emulate_Backward_Direction is
begin
Configure_Channel_Output
(Emulator_Timer,
Channel => Channel_1,
Mode => Toggle,
State => Disable,
Pulse => (Emulator_Period * 3) / 4,
Polarity => Low);
Configure_Channel_Output
(Emulator_Timer,
Channel => Channel_2,
Mode => Toggle,
State => Disable,
Pulse => Emulator_Period / 4,
Polarity => Low);
end Emulate_Backward_Direction;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Enable_Clock (Emulator_Points);
Enable_Clock (Emulator_Timer);
Configure_IO
(Emulator_Points,
(Mode => Mode_AF,
AF => Emulator_AF,
Resistors => Pull_Up,
AF_Output_Type => Push_Pull,
AF_Speed => Speed_100MHz));
Configure
(Emulator_Timer,
Prescaler => 0,
Period => Emulator_Period,
Clock_Divisor => Div1,
Counter_Mode => Up);
Enable (Emulator_Timer);
Emulate_Forward_Direction;
end Initialize;
begin
Initialize;
end Encoder_Emulator;
|
-- This spec has been automatically generated from STM32L4x5.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_LPMS_Field is HAL.UInt3;
subtype CR1_VOS_Field is HAL.UInt2;
-- Power control register 1
type CR1_Register is record
-- Low-power mode selection
LPMS : CR1_LPMS_Field := 16#0#;
-- unspecified
Reserved_3_7 : HAL.UInt5 := 16#0#;
-- Disable backup domain write protection
DBP : Boolean := False;
-- Voltage scaling range selection
VOS : CR1_VOS_Field := 16#1#;
-- unspecified
Reserved_11_13 : HAL.UInt3 := 16#0#;
-- Low-power run
LPR : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register use record
LPMS at 0 range 0 .. 2;
Reserved_3_7 at 0 range 3 .. 7;
DBP at 0 range 8 .. 8;
VOS at 0 range 9 .. 10;
Reserved_11_13 at 0 range 11 .. 13;
LPR at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
subtype CR2_PLS_Field is HAL.UInt3;
-- CR2_PVME array
type CR2_PVME_Field_Array is array (1 .. 4) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for CR2_PVME
type CR2_PVME_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PVME as a value
Val : HAL.UInt4;
when True =>
-- PVME as an array
Arr : CR2_PVME_Field_Array;
end case;
end record
with Unchecked_Union, Size => 4;
for CR2_PVME_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- Power control register 2
type CR2_Register is record
-- Power voltage detector enable
PVDE : Boolean := False;
-- Power voltage detector level selection
PLS : CR2_PLS_Field := 16#0#;
-- Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V
PVME : CR2_PVME_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_8_8 : HAL.Bit := 16#0#;
-- VDDIO2 Independent I/Os supply valid
IOSV : Boolean := False;
-- VDDUSB USB supply valid
USV : Boolean := False;
-- unspecified
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register use record
PVDE at 0 range 0 .. 0;
PLS at 0 range 1 .. 3;
PVME at 0 range 4 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
IOSV at 0 range 9 .. 9;
USV at 0 range 10 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
-- CR3_EWUP array
type CR3_EWUP_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for CR3_EWUP
type CR3_EWUP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EWUP as a value
Val : HAL.UInt5;
when True =>
-- EWUP as an array
Arr : CR3_EWUP_Field_Array;
end case;
end record
with Unchecked_Union, Size => 5;
for CR3_EWUP_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power control register 3
type CR3_Register is record
-- Enable Wakeup pin WKUP1
EWUP : CR3_EWUP_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- SRAM2 retention in Standby mode
RRS : Boolean := False;
-- unspecified
Reserved_9_9 : HAL.Bit := 16#0#;
-- Apply pull-up and pull-down configuration
APC : Boolean := False;
-- unspecified
Reserved_11_14 : HAL.UInt4 := 16#0#;
-- Enable internal wakeup line
EWF : Boolean := True;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR3_Register use record
EWUP at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
RRS at 0 range 8 .. 8;
Reserved_9_9 at 0 range 9 .. 9;
APC at 0 range 10 .. 10;
Reserved_11_14 at 0 range 11 .. 14;
EWF at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- CR4_WP array
type CR4_WP_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for CR4_WP
type CR4_WP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- WP as a value
Val : HAL.UInt5;
when True =>
-- WP as an array
Arr : CR4_WP_Field_Array;
end case;
end record
with Unchecked_Union, Size => 5;
for CR4_WP_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power control register 4
type CR4_Register is record
-- Wakeup pin WKUP1 polarity
WP : CR4_WP_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- VBAT battery charging enable
VBE : Boolean := False;
-- VBAT battery charging resistor selection
VBRS : Boolean := False;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR4_Register use record
WP at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
VBE at 0 range 8 .. 8;
VBRS at 0 range 9 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
-- SR1_CWUF array
type SR1_CWUF_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for SR1_CWUF
type SR1_CWUF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CWUF as a value
Val : HAL.UInt5;
when True =>
-- CWUF as an array
Arr : SR1_CWUF_Field_Array;
end case;
end record
with Unchecked_Union, Size => 5;
for SR1_CWUF_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power status register 1
type SR1_Register is record
-- Read-only. Wakeup flag 1
CWUF : SR1_CWUF_Field;
-- unspecified
Reserved_5_7 : HAL.UInt3;
-- Read-only. Standby flag
CSBF : Boolean;
-- unspecified
Reserved_9_14 : HAL.UInt6;
-- Read-only. Wakeup flag internal
WUFI : Boolean;
-- unspecified
Reserved_16_31 : HAL.UInt16;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR1_Register use record
CWUF at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
CSBF at 0 range 8 .. 8;
Reserved_9_14 at 0 range 9 .. 14;
WUFI at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SR2_PVMO array
type SR2_PVMO_Field_Array is array (1 .. 4) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for SR2_PVMO
type SR2_PVMO_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PVMO as a value
Val : HAL.UInt4;
when True =>
-- PVMO as an array
Arr : SR2_PVMO_Field_Array;
end case;
end record
with Unchecked_Union, Size => 4;
for SR2_PVMO_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- Power status register 2
type SR2_Register is record
-- unspecified
Reserved_0_7 : HAL.UInt8;
-- Read-only. Low-power regulator started
REGLPS : Boolean;
-- Read-only. Low-power regulator flag
REGLPF : Boolean;
-- Read-only. Voltage scaling flag
VOSF : Boolean;
-- Read-only. Power voltage detector output
PVDO : Boolean;
-- Read-only. Peripheral voltage monitoring output: VDDUSB vs. 1.2 V
PVMO : SR2_PVMO_Field;
-- unspecified
Reserved_16_31 : HAL.UInt16;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR2_Register use record
Reserved_0_7 at 0 range 0 .. 7;
REGLPS at 0 range 8 .. 8;
REGLPF at 0 range 9 .. 9;
VOSF at 0 range 10 .. 10;
PVDO at 0 range 11 .. 11;
PVMO at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SCR_WUF array
type SCR_WUF_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for SCR_WUF
type SCR_WUF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- WUF as a value
Val : HAL.UInt5;
when True =>
-- WUF as an array
Arr : SCR_WUF_Field_Array;
end case;
end record
with Unchecked_Union, Size => 5;
for SCR_WUF_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power status clear register
type SCR_Register is record
-- Write-only. Clear wakeup flag 1
WUF : SCR_WUF_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Write-only. Clear standby flag
SBF : Boolean := False;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SCR_Register use record
WUF at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
SBF at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- PUCRA_PU array
type PUCRA_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRA_PU
type PUCRA_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRA_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRA_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port A pull-up control register
type PUCRA_Register is record
-- Port A pull-up bit y (y=0..15)
PU : PUCRA_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRA_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRA_PD array
type PDCRA_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRA_PD
type PDCRA_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRA_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRA_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port A pull-down control register
type PDCRA_Register is record
-- Port A pull-down bit y (y=0..15)
PD : PDCRA_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRA_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRB_PU array
type PUCRB_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRB_PU
type PUCRB_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRB_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRB_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port B pull-up control register
type PUCRB_Register is record
-- Port B pull-up bit y (y=0..15)
PU : PUCRB_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRB_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRB_PD array
type PDCRB_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRB_PD
type PDCRB_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRB_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRB_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port B pull-down control register
type PDCRB_Register is record
-- Port B pull-down bit y (y=0..15)
PD : PDCRB_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRB_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRC_PU array
type PUCRC_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRC_PU
type PUCRC_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRC_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRC_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port C pull-up control register
type PUCRC_Register is record
-- Port C pull-up bit y (y=0..15)
PU : PUCRC_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRC_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRC_PD array
type PDCRC_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRC_PD
type PDCRC_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRC_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRC_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port C pull-down control register
type PDCRC_Register is record
-- Port C pull-down bit y (y=0..15)
PD : PDCRC_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRC_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRD_PU array
type PUCRD_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRD_PU
type PUCRD_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRD_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRD_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port D pull-up control register
type PUCRD_Register is record
-- Port D pull-up bit y (y=0..15)
PU : PUCRD_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRD_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRD_PD array
type PDCRD_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRD_PD
type PDCRD_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRD_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRD_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port D pull-down control register
type PDCRD_Register is record
-- Port D pull-down bit y (y=0..15)
PD : PDCRD_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRD_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRE_PU array
type PUCRE_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRE_PU
type PUCRE_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRE_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRE_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port E pull-up control register
type PUCRE_Register is record
-- Port E pull-up bit y (y=0..15)
PU : PUCRE_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRE_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRE_PD array
type PDCRE_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRE_PD
type PDCRE_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRE_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRE_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port E pull-down control register
type PDCRE_Register is record
-- Port E pull-down bit y (y=0..15)
PD : PDCRE_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRE_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRF_PU array
type PUCRF_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRF_PU
type PUCRF_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRF_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRF_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port F pull-up control register
type PUCRF_Register is record
-- Port F pull-up bit y (y=0..15)
PU : PUCRF_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRF_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRF_PD array
type PDCRF_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRF_PD
type PDCRF_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRF_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRF_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port F pull-down control register
type PDCRF_Register is record
-- Port F pull-down bit y (y=0..15)
PD : PDCRF_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRF_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRG_PU array
type PUCRG_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRG_PU
type PUCRG_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt16;
when True =>
-- PU as an array
Arr : PUCRG_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRG_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port G pull-up control register
type PUCRG_Register is record
-- Port G pull-up bit y (y=0..15)
PU : PUCRG_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRG_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRG_PD array
type PDCRG_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRG_PD
type PDCRG_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt16;
when True =>
-- PD as an array
Arr : PDCRG_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRG_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port G pull-down control register
type PDCRG_Register is record
-- Port G pull-down bit y (y=0..15)
PD : PDCRG_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRG_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRH_PU array
type PUCRH_PU_Field_Array is array (0 .. 1) of Boolean
with Component_Size => 1, Size => 2;
-- Type definition for PUCRH_PU
type PUCRH_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PU as a value
Val : HAL.UInt2;
when True =>
-- PU as an array
Arr : PUCRH_PU_Field_Array;
end case;
end record
with Unchecked_Union, Size => 2;
for PUCRH_PU_Field use record
Val at 0 range 0 .. 1;
Arr at 0 range 0 .. 1;
end record;
-- Power Port H pull-up control register
type PUCRH_Register is record
-- Port H pull-up bit y (y=0..1)
PU : PUCRH_PU_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRH_Register use record
PU at 0 range 0 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-- PDCRH_PD array
type PDCRH_PD_Field_Array is array (0 .. 1) of Boolean
with Component_Size => 1, Size => 2;
-- Type definition for PDCRH_PD
type PDCRH_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PD as a value
Val : HAL.UInt2;
when True =>
-- PD as an array
Arr : PDCRH_PD_Field_Array;
end case;
end record
with Unchecked_Union, Size => 2;
for PDCRH_PD_Field use record
Val at 0 range 0 .. 1;
Arr at 0 range 0 .. 1;
end record;
-- Power Port H pull-down control register
type PDCRH_Register is record
-- Port H pull-down bit y (y=0..1)
PD : PDCRH_PD_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRH_Register use record
PD at 0 range 0 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Power control
type PWR_Peripheral is record
-- Power control register 1
CR1 : aliased CR1_Register;
-- Power control register 2
CR2 : aliased CR2_Register;
-- Power control register 3
CR3 : aliased CR3_Register;
-- Power control register 4
CR4 : aliased CR4_Register;
-- Power status register 1
SR1 : aliased SR1_Register;
-- Power status register 2
SR2 : aliased SR2_Register;
-- Power status clear register
SCR : aliased SCR_Register;
-- Power Port A pull-up control register
PUCRA : aliased PUCRA_Register;
-- Power Port A pull-down control register
PDCRA : aliased PDCRA_Register;
-- Power Port B pull-up control register
PUCRB : aliased PUCRB_Register;
-- Power Port B pull-down control register
PDCRB : aliased PDCRB_Register;
-- Power Port C pull-up control register
PUCRC : aliased PUCRC_Register;
-- Power Port C pull-down control register
PDCRC : aliased PDCRC_Register;
-- Power Port D pull-up control register
PUCRD : aliased PUCRD_Register;
-- Power Port D pull-down control register
PDCRD : aliased PDCRD_Register;
-- Power Port E pull-up control register
PUCRE : aliased PUCRE_Register;
-- Power Port E pull-down control register
PDCRE : aliased PDCRE_Register;
-- Power Port F pull-up control register
PUCRF : aliased PUCRF_Register;
-- Power Port F pull-down control register
PDCRF : aliased PDCRF_Register;
-- Power Port G pull-up control register
PUCRG : aliased PUCRG_Register;
-- Power Port G pull-down control register
PDCRG : aliased PDCRG_Register;
-- Power Port H pull-up control register
PUCRH : aliased PUCRH_Register;
-- Power Port H pull-down control register
PDCRH : aliased PDCRH_Register;
end record
with Volatile;
for PWR_Peripheral use record
CR1 at 16#0# range 0 .. 31;
CR2 at 16#4# range 0 .. 31;
CR3 at 16#8# range 0 .. 31;
CR4 at 16#C# range 0 .. 31;
SR1 at 16#10# range 0 .. 31;
SR2 at 16#14# range 0 .. 31;
SCR at 16#18# range 0 .. 31;
PUCRA at 16#20# range 0 .. 31;
PDCRA at 16#24# range 0 .. 31;
PUCRB at 16#28# range 0 .. 31;
PDCRB at 16#2C# range 0 .. 31;
PUCRC at 16#30# range 0 .. 31;
PDCRC at 16#34# range 0 .. 31;
PUCRD at 16#38# range 0 .. 31;
PDCRD at 16#3C# range 0 .. 31;
PUCRE at 16#40# range 0 .. 31;
PDCRE at 16#44# range 0 .. 31;
PUCRF at 16#48# range 0 .. 31;
PDCRF at 16#4C# range 0 .. 31;
PUCRG at 16#50# range 0 .. 31;
PDCRG at 16#54# range 0 .. 31;
PUCRH at 16#58# range 0 .. 31;
PDCRH at 16#5C# range 0 .. 31;
end record;
-- Power control
PWR_Periph : aliased PWR_Peripheral
with Import, Address => System'To_Address (16#40007000#);
end STM32_SVD.PWR;
|
with Ada.Unchecked_Conversion;
with Ada.Command_Line;
with Ada.Finalization;
package body GLUT is
-- finalization - free Argv strings
--
-- RK 23 - Oct - 2006, to remove the memory leak in question.
--
type Argvz is array (0 .. 500) of aliased Interfaces.C.Strings.chars_ptr;
type Arg_Type is new Ada.Finalization.Controlled with record
v : Argvz := (others => Interfaces.C.Strings.Null_Ptr);
v_Count : Natural := 0;
end record;
overriding procedure Finalize (Self : in out Arg_Type)
is
use Interfaces.C.Strings;
begin
if Self.v (0) /= Interfaces.C.Strings.Null_Ptr then
Free (Self.v (0));
end if;
for I in 1 .. Self.v_Count loop
Free (Self.v (I));
end loop;
end Finalize;
Arg : Arg_Type;
procedure Glutinit (Argcp : access Integer;
Argv : access Interfaces.C.Strings.chars_ptr);
-- pragma Import (C, Glutinit, "glutInit", "glutInit"); -- APEX
pragma Import (StdCall, Glutinit, "glutInit"); -- GNAT/OA
-- Pure Ada method, from IBM / Rational Apex support:
-- "This procedure may be a useful replacement when porting an
-- Ada program written for Gnat, which imports argc and argv like this:
-- argc : aliased integer;
-- pragma Import (C, argc, "gnat_argc");
--
-- argv : chars_ptr_ptr;
-- pragma Import (C, argv, "gnat_argv");
-- "
-- http://www - 1.ibm.com/support/docview.wss?uid=swg21125019
procedure Init is
use Ada.Command_Line;
use Interfaces.C.Strings;
Argc : aliased Integer := Argument_Count + 1;
begin
Arg.v_Count := Argument_Count;
Arg.v (0) := New_String (Command_Name);
for I in 1 .. Arg.v_Count loop
Arg.v (I) := New_String (Argument (I));
end loop;
Glutinit (Argc'Access, Arg.v (0)'Access);
end Init;
function CreateWindow (Title : String) return Integer is
Result : Integer;
C_Title : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Title);
begin
Result := CreateWindow (C_Title);
Interfaces.C.Strings.Free (C_Title);
return Result;
end CreateWindow;
procedure InitDisplayString (Name : String) is
C_Name : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Name);
begin
InitDisplayString (C_Name);
Interfaces.C.Strings.Free (C_Name);
pragma Unreferenced (C_Name);
end InitDisplayString;
procedure SetWindowTitle (Title : String) is
C_Title : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Title);
begin
SetWindowTitle (C_Title);
Interfaces.C.Strings.Free (C_Title);
pragma Unreferenced (C_Title);
end SetWindowTitle;
procedure SetIconTitle (Title : String) is
C_Title : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Title);
begin
SetIconTitle (C_Title);
Interfaces.C.Strings.Free (C_Title);
pragma Unreferenced (C_Title);
end SetIconTitle;
procedure AddMenuEntry (Label : String; Value : Integer) is
C_Label : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Label);
begin
AddMenuEntry (C_Label, Value);
Interfaces.C.Strings.Free (C_Label);
pragma Unreferenced (C_Label);
end AddMenuEntry;
procedure AddSubMenu (Label : String; Submenu : Integer) is
C_Label : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Label);
begin
AddSubMenu (C_Label, Submenu);
Interfaces.C.Strings.Free (C_Label);
pragma Unreferenced (C_Label);
end AddSubMenu;
procedure ChangeToMenuEntry
(Item : Integer;
Label : String;
Value : Integer)
is
C_Label : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Label);
begin
ChangeToMenuEntry (Item, C_Label, Value);
Interfaces.C.Strings.Free (C_Label);
pragma Unreferenced (C_Label);
end ChangeToMenuEntry;
procedure ChangeToSubMenu
(Item : Integer;
Label : String;
Submenu : Integer)
is
C_Label : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Label);
begin
ChangeToSubMenu (Item, C_Label, Submenu);
Interfaces.C.Strings.Free (C_Label);
pragma Unreferenced (C_Label);
end ChangeToSubMenu;
function ExtensionSupported (Name : String) return Integer is
Result : Integer;
C_Name : Interfaces.C.Strings.chars_ptr
:= Interfaces.C.Strings.New_String (Name);
begin
Result := ExtensionSupported (C_Name);
Interfaces.C.Strings.Free (C_Name);
return Result;
end ExtensionSupported;
-----------------------------------------------------
-- GdM 2005 : callbacks with the 'Address attribute --
-----------------------------------------------------
-- This method is functionally identical as GNAT's Unrestricted_Access
-- but has no type safety (cf GNAT Docs)
function CreateMenu (P1 : System.Address) return Integer is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_1);
begin
return CreateMenu (Cvt (P1));
end CreateMenu;
procedure DisplayFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_2);
begin
DisplayFunc (Cvt (P1));
end DisplayFunc;
procedure ReshapeFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_3);
begin
ReshapeFunc (Cvt (P1));
end ReshapeFunc;
procedure KeyboardFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_4);
begin
KeyboardFunc (Cvt (P1));
end KeyboardFunc;
procedure KeyboardUpFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_KeyUpFunc);
begin
KeyboardUpFunc (Cvt (P1));
end KeyboardUpFunc;
procedure MouseFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_5);
begin
MouseFunc (Cvt (P1));
end MouseFunc;
procedure MotionFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_6);
begin
MotionFunc (Cvt (P1));
end MotionFunc;
procedure PassiveMotionFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_7);
begin
PassiveMotionFunc (Cvt (P1));
end PassiveMotionFunc;
procedure IdleFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_10);
begin
IdleFunc (Cvt (P1));
end IdleFunc;
procedure SpecialFunc (P1 : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_Proc_13);
begin
SpecialFunc (Cvt (P1));
end SpecialFunc;
procedure SpecialUpFunc (Func : System.Address) is
function Cvt is new Ada.Unchecked_Conversion (System.Address, Glut_SpecialUp);
begin
SpecialUpFunc (Cvt (Func));
end SpecialUpFunc;
end GLUT;
|
-- 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_set_client_info_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;
major_version : aliased Interfaces.Unsigned_32;
minor_version : aliased Interfaces.Unsigned_32;
num_versions : aliased Interfaces.Unsigned_32;
gl_str_len : aliased Interfaces.Unsigned_32;
glx_str_len : aliased Interfaces.Unsigned_32;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb
.xcb_glx_set_client_info_arb_request_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_set_client_info_arb_request_t.Item,
Element_Array => xcb.xcb_glx_set_client_info_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_set_client_info_arb_request_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_set_client_info_arb_request_t.Pointer,
Element_Array => xcb.xcb_glx_set_client_info_arb_request_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_set_client_info_arb_request_t;
|
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package ShapeMatchingTests is
type TestCase is new AUnit.Test_Cases.Test_Case with null record;
procedure Register_Tests(T: in out TestCase);
function Name(T: TestCase) return Message_String;
procedure testBasicShapes(T : in out Test_Cases.Test_Case'Class);
procedure testComplexImage(T: in out Test_Cases.Test_Case'Class);
end ShapeMatchingTests;
|
-----------------------------------------------------------------------
-- util-nullables -- Basic types that can hold a null value
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Calendar;
with Ada.Strings.Unbounded;
-- === Nullable types ===
-- Sometimes it is necessary to represent a simple data type with an optional boolean information
-- that indicates whether the value is valid or just null. The concept of nullable type is often
-- used in databases but also in JSON data representation. The <tt>Util.Nullables</tt> package
-- provides several standard type to express the null capability of a value.
--
-- By default a nullable instance is created with the null flag set.
package Util.Nullables is
use type Ada.Strings.Unbounded.Unbounded_String;
use type Ada.Calendar.Time;
DEFAULT_TIME : constant Ada.Calendar.Time;
-- ------------------------------
-- A boolean which can be null.
-- ------------------------------
type Nullable_Boolean is record
Value : Boolean := False;
Is_Null : Boolean := True;
end record;
Null_Boolean : constant Nullable_Boolean;
-- Return True if the two nullable times are identical (both null or both same value).
function "=" (Left, Right : in Nullable_Boolean) return Boolean is
(Left.Is_Null = Right.Is_Null and (Left.Is_Null or else Left.Value = Right.Value));
-- ------------------------------
-- An integer which can be null.
-- ------------------------------
type Nullable_Integer is record
Value : Integer := 0;
Is_Null : Boolean := True;
end record;
Null_Integer : constant Nullable_Integer;
-- Return True if the two nullable times are identical (both null or both same value).
function "=" (Left, Right : in Nullable_Integer) return Boolean is
(Left.Is_Null = Right.Is_Null and (Left.Is_Null or else Left.Value = Right.Value));
-- ------------------------------
-- A long which can be null.
-- ------------------------------
type Nullable_Long is record
Value : Long_Long_Integer := 0;
Is_Null : Boolean := True;
end record;
Null_Long : constant Nullable_Long;
-- Return True if the two nullable times are identical (both null or both same value).
function "=" (Left, Right : in Nullable_Long) return Boolean is
(Left.Is_Null = Right.Is_Null and (Left.Is_Null or else Left.Value = Right.Value));
-- ------------------------------
-- A string which can be null.
-- ------------------------------
type Nullable_String is record
Value : Ada.Strings.Unbounded.Unbounded_String;
Is_Null : Boolean := True;
end record;
Null_String : constant Nullable_String;
-- Return True if the two nullable times are identical (both null or both same value).
function "=" (Left, Right : in Nullable_String) return Boolean is
(Left.Is_Null = Right.Is_Null and (Left.Is_Null or else Left.Value = Right.Value));
-- ------------------------------
-- A date which can be null.
-- ------------------------------
type Nullable_Time is record
Value : Ada.Calendar.Time := DEFAULT_TIME;
Is_Null : Boolean := True;
end record;
Null_Time : constant Nullable_Time;
-- Return True if the two nullable times are identical (both null or both same time).
function "=" (Left, Right : in Nullable_Time) return Boolean is
(Left.Is_Null = Right.Is_Null and (Left.Is_Null or else Left.Value = Right.Value));
private
DEFAULT_TIME : constant Ada.Calendar.Time := Ada.Calendar.Time_Of (Year => 1901,
Month => 1,
Day => 2,
Seconds => 0.0);
Null_Boolean : constant Nullable_Boolean
:= Nullable_Boolean '(Is_Null => True,
Value => False);
Null_Integer : constant Nullable_Integer
:= Nullable_Integer '(Is_Null => True,
Value => 0);
Null_Long : constant Nullable_Long
:= Nullable_Long '(Is_Null => True,
Value => 0);
Null_String : constant Nullable_String
:= Nullable_String '(Is_Null => True,
Value => Ada.Strings.Unbounded.Null_Unbounded_String);
Null_Time : constant Nullable_Time
:= Nullable_Time '(Is_Null => True,
Value => DEFAULT_TIME);
end Util.Nullables;
|
------------------------------------------------------------------------------
-- --
-- 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_tim.c --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief timers HAL module driver. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
package body STM32.Timers is
---------------
-- Configure --
---------------
procedure Configure
(This : in out Timer;
Prescaler : UInt16;
Period : UInt32)
is
begin
This.ARR := Period;
This.Prescaler := Prescaler;
end Configure;
---------------
-- Configure --
---------------
procedure Configure
(This : in out Timer;
Prescaler : UInt16;
Period : UInt32;
Clock_Divisor : Timer_Clock_Divisor;
Counter_Mode : Timer_Counter_Alignment_Mode)
is
begin
This.ARR := Period;
This.Prescaler := Prescaler;
This.CR1.Clock_Division := Clock_Divisor;
This.CR1.Mode_And_Dir := Counter_Mode;
end Configure;
----------------------
-- Set_Counter_Mode --
----------------------
procedure Set_Counter_Mode
(This : in out Timer;
Value : Timer_Counter_Alignment_Mode)
is
begin
This.CR1.Mode_And_Dir := Value;
end Set_Counter_Mode;
------------------------
-- Set_Clock_Division --
------------------------
procedure Set_Clock_Division
(This : in out Timer;
Value : Timer_Clock_Divisor)
is
begin
This.CR1.Clock_Division := Value;
end Set_Clock_Division;
----------------------------
-- Current_Clock_Division --
----------------------------
function Current_Clock_Division (This : Timer) return Timer_Clock_Divisor is
begin
return This.CR1.Clock_Division;
end Current_Clock_Division;
---------------
-- Configure --
---------------
procedure Configure
(This : in out Timer;
Prescaler : UInt16;
Period : UInt32;
Clock_Divisor : Timer_Clock_Divisor;
Counter_Mode : Timer_Counter_Alignment_Mode;
Repetitions : UInt8)
is
begin
This.ARR := Period;
This.Prescaler := Prescaler;
This.CR1.Clock_Division := Clock_Divisor;
This.CR1.Mode_And_Dir := Counter_Mode;
This.RCR := UInt32 (Repetitions);
This.EGR := Immediate'Enum_Rep;
end Configure;
------------
-- Enable --
------------
procedure Enable (This : in out Timer) is
begin
This.CR1.Timer_Enabled := True;
end Enable;
-------------
-- Enabled --
-------------
function Enabled (This : Timer) return Boolean is
begin
return This.CR1.Timer_Enabled;
end Enabled;
------------------------
-- No_Outputs_Enabled --
------------------------
function No_Outputs_Enabled (This : Timer) return Boolean is
begin
for C in Channel_1 .. Channel_3 loop
if This.CCER (C).CCxE = Enable or This.CCER (C).CCxNE = Enable then
return False;
end if;
end loop;
-- Channel_4 doesn't have the complementary enabler and polarity bits.
-- If it did they would be in the reserved area, which is zero, so we
-- could be tricky and pretend that they exist for this function but
-- doing that would be unnecessarily subtle. The money is on clarity.
if This.CCER (Channel_4).CCxE = Enable then
return False;
end if;
return True;
end No_Outputs_Enabled;
-------------
-- Disable --
-------------
procedure Disable (This : in out Timer) is
begin
if No_Outputs_Enabled (This) then
This.CR1.Timer_Enabled := False;
end if;
end Disable;
------------------------
-- Enable_Main_Output --
------------------------
procedure Enable_Main_Output (This : in out Timer) is
begin
This.BDTR.Main_Output_Enabled := True;
end Enable_Main_Output;
-------------------------
-- Disable_Main_Output --
-------------------------
procedure Disable_Main_Output (This : in out Timer) is
begin
if No_Outputs_Enabled (This) then
This.BDTR.Main_Output_Enabled := False;
end if;
end Disable_Main_Output;
-------------------------
-- Main_Output_Enabled --
-------------------------
function Main_Output_Enabled (This : Timer) return Boolean is
begin
return This.BDTR.Main_Output_Enabled;
end Main_Output_Enabled;
-----------------
-- Set_Counter --
-----------------
procedure Set_Counter (This : in out Timer; Value : UInt16) is
begin
This.Counter := UInt32 (Value);
end Set_Counter;
-----------------
-- Set_Counter --
-----------------
procedure Set_Counter (This : in out Timer; Value : UInt32) is
begin
This.Counter := Value;
end Set_Counter;
---------------------
-- Current_Counter --
---------------------
function Current_Counter (This : Timer) return UInt32 is
begin
return This.Counter;
end Current_Counter;
--------------------
-- Set_Autoreload --
--------------------
procedure Set_Autoreload (This : in out Timer; Value : UInt32) is
begin
This.ARR := Value;
end Set_Autoreload;
------------------------
-- Current_Autoreload --
------------------------
function Current_Autoreload (This : Timer) return UInt32 is
begin
return This.ARR;
end Current_Autoreload;
----------------------
-- Enable_Interrupt --
----------------------
procedure Enable_Interrupt
(This : in out Timer;
Source : Timer_Interrupt)
is
begin
This.DIER := This.DIER or Source'Enum_Rep;
end Enable_Interrupt;
----------------------
-- Enable_Interrupt --
----------------------
procedure Enable_Interrupt
(This : in out Timer;
Sources : Timer_Interrupt_List)
is
begin
for Source of Sources loop
This.DIER := This.DIER or Source'Enum_Rep;
end loop;
end Enable_Interrupt;
-----------------------
-- Disable_Interrupt --
-----------------------
procedure Disable_Interrupt
(This : in out Timer;
Source : Timer_Interrupt)
is
begin
This.DIER := This.DIER and not Source'Enum_Rep;
end Disable_Interrupt;
-----------------------------
-- Clear_Pending_Interrupt --
-----------------------------
procedure Clear_Pending_Interrupt
(This : in out Timer;
Source : Timer_Interrupt)
is
begin
This.SR := not Source'Enum_Rep;
-- We do not, and must not, use the read-modify-write pattern because
-- it leaves a window of vulnerability open to changes to the state
-- after the read but before the write. The hardware for this register
-- is designed so that writing other bits will not change them. This is
-- indicated by the "rc_w0" notation in the status register definition.
-- See the RM, page 57 for that notation explanation.
end Clear_Pending_Interrupt;
-----------------------
-- Interrupt_Enabled --
-----------------------
function Interrupt_Enabled
(This : Timer;
Source : Timer_Interrupt)
return Boolean
is
begin
return (This.DIER and Source'Enum_Rep) = Source'Enum_Rep;
end Interrupt_Enabled;
------------
-- Status --
------------
function Status (This : Timer; Flag : Timer_Status_Flag) return Boolean is
begin
return (This.SR and Flag'Enum_Rep) = Flag'Enum_Rep;
end Status;
------------------
-- Clear_Status --
------------------
procedure Clear_Status (This : in out Timer; Flag : Timer_Status_Flag) is
begin
This.SR := not Flag'Enum_Rep;
-- We do not, and must not, use the read-modify-write pattern because
-- it leaves a window of vulnerability open to changes to the state
-- after the read but before the write. The hardware for this register
-- is designed so that writing other bits will not change them. This is
-- indicated by the "rc_w0" notation in the status register definition.
-- See the RM, page 57 for that notation explanation.
end Clear_Status;
-----------------------
-- Enable_DMA_Source --
-----------------------
procedure Enable_DMA_Source
(This : in out Timer;
Source : Timer_DMA_Source)
is
begin
This.DIER := This.DIER or Source'Enum_Rep;
end Enable_DMA_Source;
------------------------
-- Disable_DMA_Source --
------------------------
procedure Disable_DMA_Source
(This : in out Timer;
Source : Timer_DMA_Source)
is
begin
This.DIER := This.DIER and not Source'Enum_Rep;
end Disable_DMA_Source;
------------------------
-- DMA_Source_Enabled --
------------------------
function DMA_Source_Enabled
(This : Timer;
Source : Timer_DMA_Source)
return Boolean
is
begin
return (This.DIER and Source'Enum_Rep) = Source'Enum_Rep;
end DMA_Source_Enabled;
-------------------------
-- Configure_Prescaler --
-------------------------
procedure Configure_Prescaler
(This : in out Timer;
Prescaler : UInt16;
Reload_Mode : Timer_Prescaler_Reload_Mode)
is
begin
This.Prescaler := Prescaler;
This.EGR := Reload_Mode'Enum_Rep;
end Configure_Prescaler;
-------------------
-- Configure_DMA --
-------------------
procedure Configure_DMA
(This : in out Timer;
Base_Address : Timer_DMA_Base_Address;
Burst_Length : Timer_DMA_Burst_Length)
is
begin
This.DCR.Base_Address := Base_Address;
This.DCR.Burst_Length := Burst_Length;
end Configure_DMA;
--------------------------------
-- Enable_Capture_Compare_DMA --
--------------------------------
procedure Enable_Capture_Compare_DMA
(This : in out Timer)
-- TODO: note that the CCDS field description in the RM, page 550, seems
-- to indicate other than simply enabled/disabled
is
begin
This.CR2.Capture_Compare_DMA_Selection := True;
end Enable_Capture_Compare_DMA;
---------------------------------
-- Disable_Capture_Compare_DMA --
---------------------------------
procedure Disable_Capture_Compare_DMA
(This : in out Timer)
-- TODO: note that the CCDS field description in the RM, page 550, seems
-- to indicate other than simply enabled/disabled
is
begin
This.CR2.Capture_Compare_DMA_Selection := False;
end Disable_Capture_Compare_DMA;
-----------------------
-- Current_Prescaler --
-----------------------
function Current_Prescaler (This : Timer) return UInt16 is
begin
return This.Prescaler;
end Current_Prescaler;
-----------------------
-- Set_UpdateDisable --
-----------------------
procedure Set_UpdateDisable
(This : in out Timer;
To : Boolean)
is
begin
This.CR1.Update_Disable := To;
end Set_UpdateDisable;
-----------------------
-- Set_UpdateRequest --
-----------------------
procedure Set_UpdateRequest
(This : in out Timer;
Source : Timer_Update_Source)
is
begin
This.CR1.Update_Request_Source := Source /= Global;
end Set_UpdateRequest;
---------------------------
-- Select_One_Pulse_Mode --
---------------------------
procedure Select_One_Pulse_Mode
(This : in out Timer;
Mode : Timer_One_Pulse_Mode)
is
begin
This.CR1.One_Pulse_Mode := Mode;
end Select_One_Pulse_Mode;
----------------------------
-- Set_Autoreload_Preload --
----------------------------
procedure Set_Autoreload_Preload
(This : in out Timer;
To : Boolean)
is
begin
This.CR1.ARPE := To;
end Set_Autoreload_Preload;
-----------------------
-- Counter_Direction --
-----------------------
function Current_Counter_Mode
(This : Timer)
return Timer_Counter_Alignment_Mode
is
begin
if Basic_Timer (This) then
return Up;
else
return This.CR1.Mode_And_Dir;
end if;
end Current_Counter_Mode;
--------------------
-- Generate_Event --
--------------------
procedure Generate_Event
(This : in out Timer;
Source : Timer_Event_Source)
is
Temp_EGR : UInt32 := This.EGR;
begin
Temp_EGR := Temp_EGR or Source'Enum_Rep;
This.EGR := Temp_EGR;
end Generate_Event;
---------------------------
-- Select_Output_Trigger --
---------------------------
procedure Select_Output_Trigger
(This : in out Timer;
Source : Timer_Trigger_Output_Source)
is
begin
This.CR2.Master_Mode_Selection := Source;
end Select_Output_Trigger;
-----------------------
-- Select_Slave_Mode --
-----------------------
procedure Select_Slave_Mode
(This : in out Timer;
Mode : Timer_Slave_Mode)
is
begin
This.SMCR.Slave_Mode_Selection := Mode;
end Select_Slave_Mode;
------------------------------
-- Enable_Master_Slave_Mode --
------------------------------
procedure Enable_Master_Slave_Mode (This : in out Timer) is
begin
This.SMCR.Master_Slave_Mode := True;
end Enable_Master_Slave_Mode;
-------------------------------
-- Disable_Master_Slave_Mode --
-------------------------------
procedure Disable_Master_Slave_Mode (This : in out Timer) is
begin
This.SMCR.Master_Slave_Mode := False;
end Disable_Master_Slave_Mode;
--------------------------------
-- Configure_External_Trigger --
--------------------------------
procedure Configure_External_Trigger
(This : in out Timer;
Polarity : Timer_External_Trigger_Polarity;
Prescaler : Timer_External_Trigger_Prescaler;
Filter : Timer_External_Trigger_Filter)
is
begin
This.SMCR.External_Trigger_Polarity := Polarity;
This.SMCR.External_Trigger_Prescaler := Prescaler;
This.SMCR.External_Trigger_Filter := Filter;
end Configure_External_Trigger;
---------------------------------
-- Configure_As_External_Clock --
---------------------------------
procedure Configure_As_External_Clock
(This : in out Timer;
Source : Timer_Internal_Trigger_Source)
is
begin
Select_Input_Trigger (This, Source);
Select_Slave_Mode (This, External_1);
end Configure_As_External_Clock;
---------------------------------
-- Configure_As_External_Clock --
---------------------------------
procedure Configure_As_External_Clock
(This : in out Timer;
Source : Timer_External_Clock_Source;
Polarity : Timer_Input_Capture_Polarity;
Filter : Timer_Input_Capture_Filter)
is
begin
if Source = Filtered_Timer_Input_2 then
Configure_Channel_Input
(This,
Channel_2,
Polarity,
Direct_TI,
Div1, -- default prescalar zero value
Filter);
else
Configure_Channel_Input
(This,
Channel_1,
Polarity,
Direct_TI,
Div1, -- default prescalar zero value
Filter);
end if;
Select_Input_Trigger (This, Source);
Select_Slave_Mode (This, External_1);
end Configure_As_External_Clock;
------------------------------------
-- Configure_External_Clock_Mode1 --
------------------------------------
procedure Configure_External_Clock_Mode1
(This : in out Timer;
Polarity : Timer_External_Trigger_Polarity;
Prescaler : Timer_External_Trigger_Prescaler;
Filter : Timer_External_Trigger_Filter)
is
begin
Configure_External_Trigger (This, Polarity, Prescaler, Filter);
Select_Slave_Mode (This, External_1);
Select_Input_Trigger (This, External_Trigger_Input);
end Configure_External_Clock_Mode1;
------------------------------------
-- Configure_External_Clock_Mode2 --
------------------------------------
procedure Configure_External_Clock_Mode2
(This : in out Timer;
Polarity : Timer_External_Trigger_Polarity;
Prescaler : Timer_External_Trigger_Prescaler;
Filter : Timer_External_Trigger_Filter)
is
begin
Configure_External_Trigger (This, Polarity, Prescaler, Filter);
This.SMCR.External_Clock_Enable := True;
end Configure_External_Clock_Mode2;
--------------------------
-- Select_Input_Trigger --
--------------------------
procedure Select_Input_Trigger
(This : in out Timer;
Source : Timer_Trigger_Input_Source)
is
begin
This.SMCR.Trigger_Selection := Source;
end Select_Input_Trigger;
------------------------------
-- Configure_Channel_Output --
------------------------------
procedure Configure_Channel_Output
(This : in out Timer;
Channel : Timer_Channel;
Mode : Timer_Output_Compare_And_PWM_Mode;
State : Timer_Capture_Compare_State;
Pulse : UInt32;
Polarity : Timer_Output_Compare_Polarity)
is
begin
-- first disable the channel
This.CCER (Channel).CCxE := Disable;
Set_Output_Compare_Mode (This, Channel, Mode);
This.CCER (Channel).CCxE := State;
This.CCER (Channel).CCxP := Polarity'Enum_Rep;
This.CCR1_4 (Channel) := Pulse;
-- Only timers 2 and 5 have 32-bit CCR registers. The others must
-- maintain the upper half at zero. We use a precondition to ensure
-- values greater than a half-word are only specified for the proper
-- timers.
end Configure_Channel_Output;
------------------------------
-- Configure_Channel_Output --
------------------------------
procedure Configure_Channel_Output
(This : in out Timer;
Channel : Timer_Channel;
Mode : Timer_Output_Compare_And_PWM_Mode;
State : Timer_Capture_Compare_State;
Pulse : UInt32;
Polarity : Timer_Output_Compare_Polarity;
Idle_State : Timer_Capture_Compare_State;
Complementary_Polarity : Timer_Output_Compare_Polarity;
Complementary_Idle_State : Timer_Capture_Compare_State)
is
begin
-- first disable the channel
This.CCER (Channel).CCxE := Disable;
Set_Output_Compare_Mode (This, Channel, Mode);
This.CCER (Channel).CCxE := State;
This.CCER (Channel).CCxNP := Complementary_Polarity'Enum_Rep;
This.CCER (Channel).CCxP := Polarity'Enum_Rep;
case Channel is
when Channel_1 =>
This.CR2.Channel_1_Output_Idle_State := Idle_State;
This.CR2.Channel_1_Complementary_Output_Idle_State :=
Complementary_Idle_State;
when Channel_2 =>
This.CR2.Channel_2_Output_Idle_State := Idle_State;
This.CR2.Channel_2_Complementary_Output_Idle_State :=
Complementary_Idle_State;
when Channel_3 =>
This.CR2.Channel_3_Output_Idle_State := Idle_State;
This.CR2.Channel_3_Complementary_Output_Idle_State :=
Complementary_Idle_State;
when Channel_4 =>
This.CR2.Channel_4_Output_Idle_State := Idle_State;
end case;
This.CCR1_4 (Channel) := Pulse;
-- Only timers 2 and 5 have 32-bit CCR registers. The others must
-- maintain the upper half at zero. We use a precondition to ensure
-- values greater than a half-word are only specified for the proper
-- timers.
end Configure_Channel_Output;
-----------------------
-- Set_Single_Output --
-----------------------
procedure Set_Single_Output
(This : in out Timer;
Channel : Timer_Channel;
Mode : Timer_Output_Compare_And_PWM_Mode;
OC_Clear_Enabled : Boolean;
Preload_Enabled : Boolean;
Fast_Enabled : Boolean)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
Description : Channel_Output_Descriptor;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Description := (OCxMode => Mode,
OCxFast_Enable => Fast_Enabled,
OCxPreload_Enable => Preload_Enabled,
OCxClear_Enable => OC_Clear_Enabled);
Temp.Descriptors (Descriptor_Index) := (Output, Description);
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Single_Output;
-----------------------------
-- Set_Output_Compare_Mode --
-----------------------------
procedure Set_Output_Compare_Mode
(This : in out Timer;
Channel : Timer_Channel;
Mode : Timer_Output_Compare_And_PWM_Mode)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
if Temp.Descriptors (Descriptor_Index).CCxSelection /= Output then
raise Timer_Channel_Access_Error;
end if;
Temp.Descriptors (Descriptor_Index).Compare.OCxMode := Mode;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Output_Compare_Mode;
----------------------------------
-- Current_Capture_Compare_Mode --
----------------------------------
function Current_Capture_Compare_Mode
(This : Timer;
Channel : Timer_Channel)
return Timer_Capture_Compare_Modes
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
return Temp.Descriptors (Descriptor_Index).CCxSelection;
end Current_Capture_Compare_Mode;
------------------------------
-- Set_Output_Forced_Action --
------------------------------
procedure Set_Output_Forced_Action
(This : in out Timer;
Channel : Timer_Channel;
Active : Boolean)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
if Temp.Descriptors (Descriptor_Index).CCxSelection /= Output then
raise Timer_Channel_Access_Error;
end if;
if Active then
Temp.Descriptors (Descriptor_Index).Compare.OCxMode := Force_Active;
else
Temp.Descriptors (Descriptor_Index).Compare.OCxMode := Force_Inactive;
end if;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Output_Forced_Action;
-------------------------------
-- Set_Output_Preload_Enable --
-------------------------------
procedure Set_Output_Preload_Enable
(This : in out Timer;
Channel : Timer_Channel;
Enabled : Boolean)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Temp.Descriptors (Descriptor_Index).Compare.OCxPreload_Enable := Enabled;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Output_Preload_Enable;
----------------------------
-- Set_Output_Fast_Enable --
----------------------------
procedure Set_Output_Fast_Enable
(This : in out Timer;
Channel : Timer_Channel;
Enabled : Boolean)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Temp.Descriptors (Descriptor_Index).Compare.OCxFast_Enable := Enabled;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Output_Fast_Enable;
-----------------------
-- Set_Clear_Control --
-----------------------
procedure Set_Clear_Control
(This : in out Timer;
Channel : Timer_Channel;
Enabled : Boolean)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Temp.Descriptors (Descriptor_Index).Compare.OCxClear_Enable := Enabled;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Clear_Control;
--------------------
-- Enable_Channel --
--------------------
procedure Enable_Channel
(This : in out Timer;
Channel : Timer_Channel)
is
Temp_EGR : UInt32 := This.EGR;
begin
This.CCER (Channel).CCxE := Enable;
-- Trigger an event to initialize preload register
Temp_EGR := Temp_EGR or (2 ** (Timer_Channel'Pos (Channel) + 1));
This.EGR := Temp_EGR;
end Enable_Channel;
-------------------------
-- Set_Output_Polarity --
-------------------------
procedure Set_Output_Polarity
(This : in out Timer;
Channel : Timer_Channel;
Polarity : Timer_Output_Compare_Polarity)
is
begin
This.CCER (Channel).CCxP := Polarity'Enum_Rep;
end Set_Output_Polarity;
---------------------------------------
-- Set_Output_Complementary_Polarity --
---------------------------------------
procedure Set_Output_Complementary_Polarity
(This : in out Timer;
Channel : Timer_Channel;
Polarity : Timer_Output_Compare_Polarity)
is
begin
This.CCER (Channel).CCxNP := Polarity'Enum_Rep;
end Set_Output_Complementary_Polarity;
---------------------
-- Disable_Channel --
---------------------
procedure Disable_Channel
(This : in out Timer;
Channel : Timer_Channel)
is
begin
This.CCER (Channel).CCxE := Disable;
end Disable_Channel;
---------------------
-- Channel_Enabled --
---------------------
function Channel_Enabled
(This : Timer;
Channel : Timer_Channel)
return Boolean
is
begin
return This.CCER (Channel).CCxE = Enable;
end Channel_Enabled;
----------------------------------
-- Enable_Complementary_Channel --
----------------------------------
procedure Enable_Complementary_Channel
(This : in out Timer;
Channel : Timer_Channel)
is
begin
This.CCER (Channel).CCxNE := Enable;
end Enable_Complementary_Channel;
-----------------------------------
-- Disable_Complementary_Channel --
-----------------------------------
procedure Disable_Complementary_Channel
(This : in out Timer;
Channel : Timer_Channel)
is
begin
This.CCER (Channel).CCxNE := Disable;
end Disable_Complementary_Channel;
-----------------------------------
-- Complementary_Channel_Enabled --
-----------------------------------
function Complementary_Channel_Enabled
(This : Timer; Channel : Timer_Channel)
return Boolean
is
begin
return This.CCER (Channel).CCxNE = Enable;
end Complementary_Channel_Enabled;
-----------------------
-- Set_Compare_Value --
-----------------------
procedure Set_Compare_Value
(This : in out Timer;
Channel : Timer_Channel;
Word_Value : UInt32)
is
begin
This.CCR1_4 (Channel) := Word_Value;
-- Timers 2 and 5 really do have 32-bit capture/compare registers so we
-- don't need to require half-words as inputs.
end Set_Compare_Value;
-----------------------
-- Set_Compare_Value --
-----------------------
procedure Set_Compare_Value
(This : in out Timer;
Channel : Timer_Channel;
Value : UInt16)
is
begin
This.CCR1_4 (Channel) := UInt32 (Value);
-- These capture/compare registers are really only 15-bits wide, except
-- for those of timers 2 and 5. For the sake of simplicity we represent
-- all of them with full words, but only write word values when
-- appropriate. The caller has to treat them as half-word values, since
-- that's the type for the formal parameter, therefore our casting up to
-- a word value will retain the reserved upper half-word value of zero.
end Set_Compare_Value;
---------------------------
-- Current_Capture_Value --
---------------------------
function Current_Capture_Value
(This : Timer;
Channel : Timer_Channel)
return UInt32
is
begin
return This.CCR1_4 (Channel);
end Current_Capture_Value;
---------------------------
-- Current_Capture_Value --
---------------------------
function Current_Capture_Value
(This : Timer;
Channel : Timer_Channel)
return UInt16
is
begin
return UInt16 (This.CCR1_4 (Channel));
end Current_Capture_Value;
-------------------------------------
-- Write_Channel_Input_Description --
-------------------------------------
procedure Write_Channel_Input_Description
(This : in out Timer;
Channel : Timer_Channel;
Kind : Timer_Input_Capture_Selection;
Description : Channel_Input_Descriptor)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
New_Value : IO_Descriptor;
begin
case Kind is
when Direct_TI =>
New_Value := (CCxSelection => Direct_TI, Capture => Description);
when Indirect_TI =>
New_Value := (CCxSelection => Indirect_TI, Capture => Description);
when TRC =>
New_Value := (CCxSelection => TRC, Capture => Description);
end case;
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Temp.Descriptors (Descriptor_Index) := New_Value;
This.CCMR1_2 (CCMR_Index) := Temp;
end Write_Channel_Input_Description;
-------------------------
-- Set_Input_Prescaler --
-------------------------
procedure Set_Input_Prescaler
(This : in out Timer;
Channel : Timer_Channel;
Value : Timer_Input_Capture_Prescaler)
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
Temp.Descriptors (Descriptor_Index).Capture.ICxPrescaler := Value;
This.CCMR1_2 (CCMR_Index) := Temp;
end Set_Input_Prescaler;
-----------------------------
-- Current_Input_Prescaler --
-----------------------------
function Current_Input_Prescaler
(This : Timer;
Channel : Timer_Channel)
return Timer_Input_Capture_Prescaler
is
CCMR_Index : CCMRx_Index;
Descriptor_Index : Lower_Half_Index;
Temp : TIMx_CCMRx;
begin
case Channel is
when Channel_1 =>
CCMR_Index := 1;
Descriptor_Index := 1;
when Channel_2 =>
CCMR_Index := 1;
Descriptor_Index := 2;
when Channel_3 =>
CCMR_Index := 2;
Descriptor_Index := 1;
when Channel_4 =>
CCMR_Index := 2;
Descriptor_Index := 2;
end case;
Temp := This.CCMR1_2 (CCMR_Index); -- effectively get CCMR1 or CCMR2
return Temp.Descriptors (Descriptor_Index).Capture.ICxPrescaler;
end Current_Input_Prescaler;
-----------------------------
-- Configure_Channel_Input --
-----------------------------
procedure Configure_Channel_Input
(This : in out Timer;
Channel : Timer_Channel;
Polarity : Timer_Input_Capture_Polarity;
Selection : Timer_Input_Capture_Selection;
Prescaler : Timer_Input_Capture_Prescaler;
Filter : Timer_Input_Capture_Filter)
is
Input : Channel_Input_Descriptor;
begin
-- first disable the channel
This.CCER (Channel).CCxE := Disable;
Input := (ICxFilter => Filter, ICxPrescaler => Prescaler);
Write_Channel_Input_Description
(This => This,
Channel => Channel,
Kind => Selection,
Description => Input);
case Polarity is
when Rising =>
This.CCER (Channel).CCxNP := 0;
This.CCER (Channel).CCxP := 0;
when Falling =>
This.CCER (Channel).CCxNP := 0;
This.CCER (Channel).CCxP := 1;
when Both_Edges =>
This.CCER (Channel).CCxNP := 1;
This.CCER (Channel).CCxP := 1;
end case;
This.CCER (Channel).CCxE := Enable;
end Configure_Channel_Input;
---------------------------------
-- Configure_Channel_Input_PWM --
---------------------------------
procedure Configure_Channel_Input_PWM
(This : in out Timer;
Channel : Timer_Channel;
Selection : Timer_Input_Capture_Selection;
Polarity : Timer_Input_Capture_Polarity;
Prescaler : Timer_Input_Capture_Prescaler;
Filter : Timer_Input_Capture_Filter)
is
Opposite_Polarity : Timer_Input_Capture_Polarity;
Opposite_Selection : Timer_Input_Capture_Selection;
begin
Disable_Channel (This, Channel);
if Polarity = Rising then
Opposite_Polarity := Falling;
else
Opposite_Polarity := Rising;
end if;
if Selection = Indirect_TI then
Opposite_Selection := Direct_TI;
else
Opposite_Selection := Indirect_TI;
end if;
if Channel = Channel_1 then
Configure_Channel_Input
(This, Channel_1, Polarity, Selection, Prescaler, Filter);
Configure_Channel_Input (This,
Channel_2,
Opposite_Polarity,
Opposite_Selection,
Prescaler,
Filter);
else
Configure_Channel_Input
(This, Channel_2, Polarity, Selection, Prescaler, Filter);
Configure_Channel_Input (This,
Channel_1,
Opposite_Polarity,
Opposite_Selection,
Prescaler,
Filter);
end if;
Enable_Channel (This, Channel);
end Configure_Channel_Input_PWM;
-------------------------------
-- Enable_CC_Preload_Control --
-------------------------------
procedure Enable_CC_Preload_Control (This : in out Timer) is
begin
This.CR2.Capture_Compare_Preloaded_Control := True;
end Enable_CC_Preload_Control;
--------------------------------
-- Disable_CC_Preload_Control --
--------------------------------
procedure Disable_CC_Preload_Control (This : in out Timer) is
begin
This.CR2.Capture_Compare_Preloaded_Control := False;
end Disable_CC_Preload_Control;
------------------------
-- Select_Commutation --
------------------------
procedure Select_Commutation (This : in out Timer) is
begin
This.CR2.Capture_Compare_Control_Update_Selection := True;
end Select_Commutation;
--------------------------
-- Deselect_Commutation --
--------------------------
procedure Deselect_Commutation (This : in out Timer) is
begin
This.CR2.Capture_Compare_Control_Update_Selection := False;
end Deselect_Commutation;
--------------------
-- Configure_BDTR --
--------------------
procedure Configure_BDTR
(This : in out Timer;
Automatic_Output_Enabled : Boolean;
Break_Polarity : Timer_Break_Polarity;
Break_Enabled : Boolean;
Off_State_Selection_Run_Mode : Bit;
Off_State_Selection_Idle_Mode : Bit;
Lock_Configuration : Timer_Lock_Level;
Deadtime_Generator : UInt8)
is
begin
This.BDTR.Automatic_Output_Enabled := Automatic_Output_Enabled;
This.BDTR.Break_Polarity := Break_Polarity;
This.BDTR.Break_Enable := Break_Enabled;
This.BDTR.Off_State_Selection_Run_Mode := Off_State_Selection_Run_Mode;
This.BDTR.Off_State_Selection_Idle_Mode := Off_State_Selection_Idle_Mode;
This.BDTR.Lock := Lock_Configuration;
This.BDTR.Deadtime_Generator := Deadtime_Generator;
end Configure_BDTR;
---------------------------------
-- Configure_Timer_2_Remapping --
---------------------------------
-- procedure Configure_Timer_2_Remapping
-- (This : in out Timer;
-- Option : Timer_2_Remapping_Options)
-- is
-- begin
-- This.Options.ITR1_RMP := Option;
-- end Configure_Timer_2_Remapping;
---------------------------------
-- Configure_Timer_5_Remapping --
---------------------------------
-- procedure Configure_Timer_5_Remapping
-- (This : in out Timer;
-- Option : Timer_5_Remapping_Options)
-- is
-- begin
-- This.Options.TI4_RMP := Option;
-- end Configure_Timer_5_Remapping;
----------------------------------
-- Configure_Timer_11_Remapping --
----------------------------------
-- procedure Configure_Timer_11_Remapping
-- (This : in out Timer;
-- Option : Timer_11_Remapping_Options)
-- is
-- begin
-- This.Options.TI1_RMP := Option;
-- end Configure_Timer_11_Remapping;
---------------------------------
-- Configure_Encoder_Interface --
---------------------------------
procedure Configure_Encoder_Interface
(This : in out Timer;
Mode : Timer_Encoder_Mode;
IC1_Polarity : Timer_Input_Capture_Polarity;
IC2_Polarity : Timer_Input_Capture_Polarity)
is
begin
This.SMCR.Slave_Mode_Selection := Mode;
Write_Channel_Input_Description
(This,
Channel => Channel_1,
Kind => Direct_TI,
Description => Channel_Input_Descriptor'(ICxFilter => 0,
ICxPrescaler => Div1));
Write_Channel_Input_Description
(This,
Channel => Channel_2,
Kind => Direct_TI,
Description => Channel_Input_Descriptor'(ICxFilter => 0,
ICxPrescaler => Div1));
case IC1_Polarity is
when Rising =>
This.CCER (Channel_1).CCxNP := 0;
This.CCER (Channel_1).CCxP := 0;
when Falling =>
This.CCER (Channel_1).CCxNP := 0;
This.CCER (Channel_1).CCxP := 1;
when Both_Edges =>
This.CCER (Channel_1).CCxNP := 1;
This.CCER (Channel_1).CCxP := 1;
end case;
case IC2_Polarity is
when Rising =>
This.CCER (Channel_2).CCxNP := 0;
This.CCER (Channel_2).CCxP := 0;
when Falling =>
This.CCER (Channel_2).CCxNP := 0;
This.CCER (Channel_2).CCxP := 1;
when Both_Edges =>
This.CCER (Channel_2).CCxNP := 1;
This.CCER (Channel_2).CCxP := 1;
end case;
end Configure_Encoder_Interface;
------------------------
-- Enable_Hall_Sensor --
------------------------
procedure Enable_Hall_Sensor
(This : in out Timer)
is
begin
This.CR2.TI1_Selection := True;
end Enable_Hall_Sensor;
-------------------------
-- Disable_Hall_Sensor --
-------------------------
procedure Disable_Hall_Sensor
(This : in out Timer)
is
begin
This.CR2.TI1_Selection := False;
end Disable_Hall_Sensor;
end STM32.Timers;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 5 0 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 50
package System.Pack_50 is
pragma Preelaborate;
Bits : constant := 50;
type Bits_50 is mod 2 ** Bits;
for Bits_50'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_50
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_50 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_50
(Arr : System.Address;
N : Natural;
E : Bits_50;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
function GetU_50
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_50 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned. This version
-- is used when Arr may represent an unaligned address.
procedure SetU_50
(Arr : System.Address;
N : Natural;
E : Bits_50;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value. This version
-- is used when Arr may represent an unaligned address
end System.Pack_50;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T . R E G I S T R Y --
-- --
-- S p e c --
-- --
-- Copyright (C) 2001-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/>. --
-- --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- The registry is a Windows database to store key/value pair. It is used
-- to keep Windows operation system and applications configuration options.
-- The database is a hierarchal set of key and for each key a value can
-- be associated. This package provides high level routines to deal with
-- the Windows registry. For full registry API, but at a lower level of
-- abstraction, refer to the Win32.Winreg package provided with the
-- Win32Ada binding. For example this binding handle only key values of
-- type Standard.String.
-- This package is specific to the NT version of GNAT, and is not available
-- on any other platforms.
package GNAT.Registry is
type HKEY is private;
-- HKEY is a handle to a registry key, including standard registry keys:
-- HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER,
-- HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA.
HKEY_CLASSES_ROOT : constant HKEY;
HKEY_CURRENT_USER : constant HKEY;
HKEY_CURRENT_CONFIG : constant HKEY;
HKEY_LOCAL_MACHINE : constant HKEY;
HKEY_USERS : constant HKEY;
HKEY_PERFORMANCE_DATA : constant HKEY;
type Key_Mode is
(Read_Only, Read_Write, -- operates on 32bit view of the registry
Read_Only_64, Read_Write_64); -- operates on 64bit view of the registry
-- Access mode for the registry key. The *_64 are only meaningful on
-- Windows 64bit and ignored on Windows 32bit where _64 are equivalent to
-- the non 64bit versions.
Registry_Error : exception;
-- Registry_Error is raises by all routines below if a problem occurs
-- (key cannot be opened, key cannot be found etc).
function Create_Key
(From_Key : HKEY;
Sub_Key : String;
Mode : Key_Mode := Read_Write) return HKEY;
-- Open or create a key (named Sub_Key) in the Windows registry database.
-- The key will be created under key From_Key. It returns the key handle.
-- From_Key must be a valid handle to an already opened key or one of
-- the standard keys identified by HKEY declarations above.
function Open_Key
(From_Key : HKEY;
Sub_Key : String;
Mode : Key_Mode := Read_Only) return HKEY;
-- Return a registry key handle for key named Sub_Key opened under key
-- From_Key. It is possible to open a key at any level in the registry
-- tree in a single call to Open_Key.
procedure Close_Key (Key : HKEY);
-- Close registry key handle. All resources used by Key are released
function Key_Exists (From_Key : HKEY; Sub_Key : String) return Boolean;
-- Returns True if Sub_Key is defined under From_Key in the registry
function Query_Value
(From_Key : HKEY;
Sub_Key : String;
Expand : Boolean := False) return String;
-- Returns the registry key's value associated with Sub_Key in From_Key
-- registry key. If Expand is set to True and the Sub_Key is a
-- REG_EXPAND_SZ the returned value will have the %name% variables
-- replaced by the corresponding environment variable value.
procedure Set_Value
(From_Key : HKEY;
Sub_Key : String;
Value : String;
Expand : Boolean := False);
-- Add the pair (Sub_Key, Value) into From_Key registry key.
-- By default the value created is of type REG_SZ, unless
-- Expand is True in which case it is of type REG_EXPAND_SZ
procedure Delete_Key (From_Key : HKEY; Sub_Key : String);
-- Remove Sub_Key from the registry key From_Key
procedure Delete_Value (From_Key : HKEY; Sub_Key : String);
-- Remove the named value Sub_Key from the registry key From_Key
generic
with procedure Action
(Index : Positive;
Key : HKEY;
Key_Name : String;
Quit : in out Boolean);
procedure For_Every_Key (From_Key : HKEY; Recursive : Boolean := False);
-- Iterates over all the keys registered under From_Key, recursively if
-- Recursive is set to True. Index will be set to 1 for the first key and
-- will be incremented by one in each iteration. The current key of an
-- iteration is set in Key, and its name - in Key_Name. Quit can be set
-- to True to stop iteration; its initial value is False.
generic
with procedure Action
(Index : Positive;
Sub_Key : String;
Value : String;
Quit : in out Boolean);
procedure For_Every_Key_Value (From_Key : HKEY; Expand : Boolean := False);
-- Iterates over all the pairs (Sub_Key, Value) registered under
-- From_Key. Index will be set to 1 for the first key and will be
-- incremented by one in each iteration. Quit can be set to True to
-- stop iteration; its initial value is False.
--
-- Key value that are not of type string (i.e. not REG_SZ / REG_EXPAND_SZ)
-- are skipped. In this case, the iterator behaves exactly as if the key
-- were not present. Note that you must use the Win32.Winreg API to deal
-- with this case. Furthermore, if Expand is set to True and the Sub_Key
-- is a REG_EXPAND_SZ the returned value will have the %name% variables
-- replaced by the corresponding environment variable value.
--
-- This iterator can be used in conjunction with For_Every_Key in
-- order to analyze all subkeys and values of a given registry key.
private
type HKEY is mod 2 ** Standard'Address_Size;
HKEY_CLASSES_ROOT : constant HKEY := 16#80000000#;
HKEY_CURRENT_USER : constant HKEY := 16#80000001#;
HKEY_LOCAL_MACHINE : constant HKEY := 16#80000002#;
HKEY_USERS : constant HKEY := 16#80000003#;
HKEY_PERFORMANCE_DATA : constant HKEY := 16#80000004#;
HKEY_CURRENT_CONFIG : constant HKEY := 16#80000005#;
end GNAT.Registry;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 4 0 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 40
package System.Pack_40 is
pragma Preelaborate;
Bits : constant := 40;
type Bits_40 is mod 2 ** Bits;
for Bits_40'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_40
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_40 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_40
(Arr : System.Address;
N : Natural;
E : Bits_40;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
function GetU_40
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_40 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned. This version
-- is used when Arr may represent an unaligned address.
procedure SetU_40
(Arr : System.Address;
N : Natural;
E : Bits_40;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value. This version
-- is used when Arr may represent an unaligned address
end System.Pack_40;
|
-----------------------------------------------------------------------
-- asf-views -- Views
-- Copyright (C) 2011, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
package body ASF.Views is
-- ------------------------------
-- Source line information
-- ------------------------------
-- ------------------------------
-- Create a <b>File_Info</b> record to identify the file whose path is <b>Path</b>
-- and whose relative path portion starts at <b>Relative_Position</b>.
-- ------------------------------
function Create_File_Info (Path : in String;
Relative_Position : in Natural) return File_Info_Access is
begin
return new File_Info '(Length => Path'Length,
Path => Path,
Relative_Pos => Relative_Position - Path'First + 1);
end Create_File_Info;
-- ------------------------------
-- Get the relative path name
-- ------------------------------
function Relative_Path (File : in File_Info) return String is
begin
return File.Path (File.Relative_Pos .. File.Path'Last);
end Relative_Path;
-- ------------------------------
-- Get the line number
-- ------------------------------
function Line (Info : Line_Info) return Natural is
begin
return Info.Line;
end Line;
-- ------------------------------
-- Get the source file
-- ------------------------------
function File (Info : Line_Info) return String is
begin
return Info.File.Path;
end File;
end ASF.Views;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . S I G N A L S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2003-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides operations for querying and setting the blocked
-- status of signals.
-- This package is supported only on targets where Ada.Interrupts.Interrupt_ID
-- corresponds to software signals on the target, and where System.Interrupts
-- provides the ability to block and unblock signals.
with Ada.Interrupts;
package GNAT.Signals is
procedure Block_Signal (Signal : Ada.Interrupts.Interrupt_ID);
-- Block "Signal" at the process level
procedure Unblock_Signal (Signal : Ada.Interrupts.Interrupt_ID);
-- Unblock "Signal" at the process level
function Is_Blocked (Signal : Ada.Interrupts.Interrupt_ID) return Boolean;
-- "Signal" blocked at the process level?
end GNAT.Signals;
|
-------------------------------------------------------------------------------
-- Fichier : display_shell.adb
-- Auteur : MOUDDENE Hamza & CAZES Noa
-- Objectif : Spécification du package Display_Shell
-- Crée : Dimanche Nov 25 2019
--------------------------------------------------------------------------------
with Arbre_Genealogique; use Arbre_Genealogique;
with Registre; use Registre;
package Display_Shell is
-- Nom : Init_Bar.
-- Sémantique : Afficher la barre d'initialisation.
procedure Init_Bar;
-- Nom : Display_Menu.
-- Sémantique : Afficher le menu principal.
procedure Display_Menu;
-- Nom : Display_TREE_IN_FOREST.
-- Sémantique : Afficher une erreur quand l'arbre existe déja dans la foret.
procedure Display_TREE_IN_FOREST;
-- Nom : Display_EXCEPTION.
-- Sémantique : Afficher un message quand une fonction ou procedure lève une exception.
-- Paramètres :
-- Message -- Le message qui sera afficher.
-- Restart -- 1 si on redémarre le programme, 0 si on redémarre l'option.
procedure Display_Exception (Message : in String; Restart : in Integer);
-- Nom : Display_Menu.
-- Sémantique : Afficher un message quand l'exéctuion d'une procédure ou fonction réussit.
-- Paramètres :
-- Message -- Le message qui sera afficher.
procedure Display_Success (Message : in String);
-- Nom : Display_Success_Minimal_Tree_Ceation.
-- Sémantique : Afficher un message quand la création de l'arbre minimal réussit.
procedure Display_Success_Minimal_Tree_Ceation;
-- Nom : Display_ARBRE_NON_VIDE_EXCEPTION.
-- Sémantique : Afficher un message quand creer arbre minimal lève l'exception ARBRE_NON_VIDE_EXCEPTION.
procedure Display_ARBRE_NON_VIDE_EXCEPTION;
-- Nom : Display_Success_Add_Parent.
-- Sémantique : Afficher un message quand ajouter parent réussit.
procedure Display_Success_Add_Parent;
-- Nom : Display_ARBRE_VIDE_EXCEPTION.
-- Sémantique : Afficher un message quand ajouter parent lève l'exception ARBRE_VIDE_EXCEPTION.
-- Paramètres :
-- Message -- Le message qui sera afficher.
-- Restart -- 1 si on redémarre le programme, 0 si on redémarre l'option.
procedure Display_ARBRE_VIDE_EXCEPTION (Message : in String; Restart : in Integer);
-- Nom : Display_DEUX_PARENTS_PRESENTS_EXCEPTION.
-- Sémantique : Afficher un message quand ajouter parent lève l'exception DEUX_PARENTS_PRESENTS_EXCEPTION.
procedure Display_DEUX_PARENTS_PRESENTS_EXCEPTION;
-- Nom : Display_ID_ABSENT_EXCEPTION.
-- Sémantique : Afficher un message quand une fonction ou procedure lève l'exception ID_ABSENT_EXCEPTION.
-- Paramètres :
-- Message -- Le message qui sera afficher.
-- Restart -- 1 si on redémarre le programme, 0 si on redémarre l'option.
procedure Display_ID_ABSENT_EXCEPTION (Message : in String; Restart : in Integer);
-- Nom : Display_Number_Ancestors.
-- Sémantique : Afficher le nombre d'ancetres d'un individu donné.
-- Paramètres :
-- Ab -- L'Ab qui contient l'ID qu'on va afficher le nombre des ses ancetres.
-- ID -- l'ID qu'on va afficher le nombre des ses ancetres.
procedure Display_Number_Ancestors (Ab : in T_ABG; ID : in Integer);
-- Nom : Display_Title_Set.
-- Semantique : Afficher un message descriptif de l'ensemble affiché sur le terminal.
-- Paramètres :
-- Generation -- La Génération des ancestres.
procedure Display_Title_Set (Message : in String; Generation : in Integer);
-- Nom : Display_Is_Homonym.
-- Semantique : Afficher Vrai si deux individus n et m ont un ou plusieurs
-- ancêtres homonymes, sinon faux.
-- Paramètres :
-- Is_Homonym -- L'existence des homonymes.
procedure Display_Is_Homonym (Is_Homonym : in Boolean);
-- Nom : Afficher_Donnee
-- Sémantique : Afficher la donnée associée à un identifiant dans le registre
-- Paramètres :
-- Registre -- L'état civil.
-- ID -- l'ID de l'individu qu'on cherche à afficher son registre.
procedure Afficher_Donnee(Registre : in T_Registre; ID : in Integer);
-- Nom : Display_ABSENT_TREE_EXCEPTION.
-- Sémantique : Afficher un message quand une fonction ou procedure lève l'exception ABSENT_TREE_EXCEPTION.
-- Paramètres :
-- Message -- Le message qui sera afficher.
procedure Display_ABSENT_TREE_EXCEPTION (Message : in String);
-- Nom : End_Bar.
-- Semantique : Afficher la barre de fin d'exécution.
procedure End_Bar;
end Display_Shell;
|
-- Copyright 2012-2015 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
procedure Update_Small (S : in out Small) is
begin
null;
end Update_Small;
end Pck;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Generic_Collections;
package AMF.UML.Write_Variable_Actions.Collections is
pragma Preelaborate;
package UML_Write_Variable_Action_Collections is
new AMF.Generic_Collections
(UML_Write_Variable_Action,
UML_Write_Variable_Action_Access);
type Set_Of_UML_Write_Variable_Action is
new UML_Write_Variable_Action_Collections.Set with null record;
Empty_Set_Of_UML_Write_Variable_Action : constant Set_Of_UML_Write_Variable_Action;
type Ordered_Set_Of_UML_Write_Variable_Action is
new UML_Write_Variable_Action_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_UML_Write_Variable_Action : constant Ordered_Set_Of_UML_Write_Variable_Action;
type Bag_Of_UML_Write_Variable_Action is
new UML_Write_Variable_Action_Collections.Bag with null record;
Empty_Bag_Of_UML_Write_Variable_Action : constant Bag_Of_UML_Write_Variable_Action;
type Sequence_Of_UML_Write_Variable_Action is
new UML_Write_Variable_Action_Collections.Sequence with null record;
Empty_Sequence_Of_UML_Write_Variable_Action : constant Sequence_Of_UML_Write_Variable_Action;
private
Empty_Set_Of_UML_Write_Variable_Action : constant Set_Of_UML_Write_Variable_Action
:= (UML_Write_Variable_Action_Collections.Set with null record);
Empty_Ordered_Set_Of_UML_Write_Variable_Action : constant Ordered_Set_Of_UML_Write_Variable_Action
:= (UML_Write_Variable_Action_Collections.Ordered_Set with null record);
Empty_Bag_Of_UML_Write_Variable_Action : constant Bag_Of_UML_Write_Variable_Action
:= (UML_Write_Variable_Action_Collections.Bag with null record);
Empty_Sequence_Of_UML_Write_Variable_Action : constant Sequence_Of_UML_Write_Variable_Action
:= (UML_Write_Variable_Action_Collections.Sequence with null record);
end AMF.UML.Write_Variable_Actions.Collections;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Examples Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.IRIs;
with Put_Line;
with XML.SAX.Input_Sources.Streams.Files;
package body Events_Printers is
use type League.Strings.Universal_String;
function Image (Item : XML.SAX.Locators.SAX_Locator)
return League.Strings.Universal_String;
----------------
-- Characters --
----------------
overriding procedure Characters
(Self : in out Events_Printer;
Text : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Characters) " & Image (Self.Locator) & ": '" & Text & "'");
end Characters;
-------------
-- Comment --
-------------
overriding procedure Comment
(Self : in out Events_Printer;
Text : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line (">>> (Comment) " & Image (Self.Locator) & ": '" & Text & "'");
end Comment;
-----------------
-- End_Element --
-----------------
overriding procedure End_Element
(Self : in out Events_Printer;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (End_Element) "
& Image (Self.Locator)
& ": '"
& Namespace_URI
& "' '"
& Local_Name
& "' '"
& Qualified_Name
& "'");
end End_Element;
------------------------
-- End_Prefix_Mapping --
------------------------
overriding procedure End_Prefix_Mapping
(Self : in out Events_Printer;
Prefix : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (End_Prefix_Mapping) "
& Image (Self.Locator)
& ": '"
& Prefix
& "'");
end End_Prefix_Mapping;
-----------
-- Error --
-----------
overriding procedure Error
(Self : in out Events_Printer;
Occurrence : XML.SAX.Parse_Exceptions.SAX_Parse_Exception;
Success : in out Boolean) is
begin
Put_Line
(">>> (Error) "
& Image (Self.Locator)
& ": '"
& Occurrence.Message
& "'");
end Error;
------------------
-- Error_String --
------------------
overriding function Error_String
(Self : Events_Printer)
return League.Strings.Universal_String is
begin
return X : League.Strings.Universal_String;
end Error_String;
---------------------------------
-- External_Entity_Declaration --
---------------------------------
overriding procedure External_Entity_Declaration
(Self : in out Events_Printer;
Name : League.Strings.Universal_String;
Public_Id : League.Strings.Universal_String;
System_Id : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (External_Entity_Declaration) "
& Image (Self.Locator)
& ": '"
& Name & "' => '" & Public_Id & "' '" & System_Id & "'");
end External_Entity_Declaration;
-----------------
-- Fatal_Error --
-----------------
overriding procedure Fatal_Error
(Self : in out Events_Printer;
Occurrence : XML.SAX.Parse_Exceptions.SAX_Parse_Exception) is
begin
Put_Line
(">>> (Fatal_Error) "
& Image (Self.Locator)
& ": '"
& Occurrence.Message
& "'");
end Fatal_Error;
--------------------------
-- Ignorable_Whitespace --
--------------------------
overriding procedure Ignorable_Whitespace
(Self : in out Events_Printer;
Text : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Ignorable_Whitespace) "
& Image (Self.Locator)
& ": '"
& Text
& "'");
end Ignorable_Whitespace;
-----------
-- Image --
-----------
function Image (Item : XML.SAX.Locators.SAX_Locator)
return League.Strings.Universal_String
is
L : constant Wide_Wide_String := Natural'Wide_Wide_Image (Item.Line);
C : constant Wide_Wide_String := Natural'Wide_Wide_Image (Item.Column);
begin
return
League.Strings.To_Universal_String
(L (L'First + 1 .. L'Last)
& ':'
& C (C'First + 1 .. C'Last));
end Image;
---------------------------------
-- Internal_Entity_Declaration --
---------------------------------
overriding procedure Internal_Entity_Declaration
(Self : in out Events_Printer;
Name : League.Strings.Universal_String;
Value : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Internal_Entity_Declaration) "
& Image (Self.Locator)
& ": '"
& Name
& "' => '"
& Value
& "'");
end Internal_Entity_Declaration;
----------------------------
-- Processing_Instruction --
----------------------------
overriding procedure Processing_Instruction
(Self : in out Events_Printer;
Target : League.Strings.Universal_String;
Data : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Processing_Instruction) "
& Image (Self.Locator)
& ": '"
& Target
& "' '"
& Data
& "'");
end Processing_Instruction;
--------------------
-- Resolve_Entity --
--------------------
overriding procedure Resolve_Entity
(Self : in out Events_Printer;
Name : League.Strings.Universal_String;
Public_Id : League.Strings.Universal_String;
Base_URI : League.Strings.Universal_String;
System_Id : League.Strings.Universal_String;
Source : out XML.SAX.Input_Sources.SAX_Input_Source_Access;
Success : in out Boolean)
is
use XML.SAX.Input_Sources.Streams.Files;
begin
Source := new File_Input_Source;
File_Input_Source'Class (Source.all).Open_By_URI
(League.IRIs.From_Universal_String (Base_URI).Resolve
(League.IRIs.From_Universal_String (System_Id)).To_Universal_String);
end Resolve_Entity;
--------------------------
-- Set_Document_Locator --
--------------------------
overriding procedure Set_Document_Locator
(Self : in out Events_Printer;
Locator : XML.SAX.Locators.SAX_Locator) is
begin
Self.Locator := Locator;
end Set_Document_Locator;
-------------------
-- Start_Element --
-------------------
overriding procedure Start_Element
(Self : in out Events_Printer;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Attributes : XML.SAX.Attributes.SAX_Attributes;
Success : in out Boolean) is
begin
Put_Line
(">>> (Start_Element) "
& Image (Self.Locator)
& ": '"
& Namespace_URI
& "' '"
& Local_Name
& "' '"
& Qualified_Name
& "'");
for J in 1 .. Attributes.Length loop
Put_Line
(" '" & Attributes.Namespace_URI (J)
& "' '" & Attributes.Local_Name (J)
& "' '" & Attributes.Qualified_Name (J)
& "' '" & Attributes.Value (J) & "'");
end loop;
end Start_Element;
--------------------------
-- Start_Prefix_Mapping --
--------------------------
overriding procedure Start_Prefix_Mapping
(Self : in out Events_Printer;
Prefix : League.Strings.Universal_String;
Namespace_URI : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Start_Prefix_Mapping) "
& Image (Self.Locator)
& ": '"
& Prefix
& "' => '"
& Namespace_URI
& "'");
end Start_Prefix_Mapping;
---------------------------------
-- Unparsed_Entity_Declaration --
---------------------------------
overriding procedure Unparsed_Entity_Declaration
(Self : in out Events_Printer;
Name : League.Strings.Universal_String;
Public_Id : League.Strings.Universal_String;
System_Id : League.Strings.Universal_String;
Notation_Name : League.Strings.Universal_String;
Success : in out Boolean) is
begin
Put_Line
(">>> (Unparsed_Entity_Declaration) "
& Image (Self.Locator)
& ": '"
& Name
& "' => '"
& Public_Id
& "' '"
& System_Id
& "' '"
& Notation_Name
& "'");
end Unparsed_Entity_Declaration;
-------------
-- Warning --
-------------
overriding procedure Warning
(Self : in out Events_Printer;
Occurrence : XML.SAX.Parse_Exceptions.SAX_Parse_Exception;
Success : in out Boolean) is
begin
Put_Line
(">>> (Warning) "
& Image (Self.Locator)
& ": '"
& Occurrence.Message
& "'");
end Warning;
end Events_Printers;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
-- type Number_Of_Tests_T is ?
-- type Test_Score_Total_T is ?
-- Number_Of_Tests : Number_Of_Tests_T;
-- Test_Score_Total : Test_Score_Total_T;
-- type Degrees_T is ?
-- Angle : Degrees_T;
-- type Cymk_T is ?
-- Color : Cymk_T;
begin
Put_Line ("Basic Types");
-- assignment
-- Number_Of_Tests := ?
-- Test_Score_Total := ?
-- Angle := ?
-- Color := ?
-- Put_Line (Number_Of_Tests_T'Image(Number_Of_Tests));
-- Put_Line (Test_Score_Total_T'Image(Test_Score_Total));
-- Put_Line (Angle_T'Image(Angle));
-- Put_Line (Color_T'Image(Color));
-- operations / attributes
-- Test_Score_Total := ? -- Divide total score by number of tests
-- Angle := ? -- Add 359 to the initial value
-- Color := ? -- Set to value prior to last possible value
-- Put_Line (Test_Score_Total'Image);
-- Put_Line (Angle'Image);
-- Put_Line (Color'Image);
end Main;
--Implementation
|
generic
Max_Elements : Positive;
type Number is digits <>;
package Moving is
procedure Add_Number (N : Number);
function Moving_Average (N : Number) return Number;
function Get_Average return Number;
end Moving;
|
with Ada.Numerics.Discrete_Random;
with Ada.Streams.Stream_IO;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Hashing;
with Ada.Containers.Vectors;
package body Benchmark_S_Graph_2 is
package Skill renames Graph_2.Api;
use Graph_2;
use Skill;
type State_Type is access Skill_State;
State : State_Type;
String_Black : String_Access;
String_Red : String_Access;
procedure Create (N : Integer; File_Name : String) is
function Hash is new Hashing.Discrete_Hash (Integer);
type Objects_Type is array (0 .. N-1) of Node_Type_Access;
type Objects_Type_Access is access Objects_Type;
Objects : Objects_Type_Access := new Objects_Type;
procedure Free is new Ada.Unchecked_Deallocation (Objects_Type, Objects_Type_Access);
begin
String_Black := new String'("black");
String_Red := new String'("red");
State := new Skill_State;
Skill.Create (State);
for I in 0 .. N-1 loop
declare
Name : String_Access := String_Black;
Edges : Node_Edges_Set.Set;
begin
if 0 = I mod 2 then
Name := String_Red;
end if;
Objects (I) := New_Node (State, Name, Edges);
end;
end loop;
for I in 0 .. N-1 loop
declare
X : Node_Type_Access := Objects (I);
Edges : Node_Edges_Set.Set := X.Get_Edges;
J : Integer := 0;
begin
while (50 >= N and then N > Integer (Edges.Length)) or else (50 < N and then 50 > Integer (Edges.Length)) loop
J := J + 1;
declare
A : Integer := Integer (Hash (N + I + J, 13371)) mod N;
begin
-- Ada.Text_IO.Put_Line (A'Img);
-- Ada.Text_IO.Put_Line (Node_Edges_Set.Has_Element (Edges.Find (Objects (A)))'Img);
--Edges.Insert (Objects (A));
if not Edges.Contains (Objects (A)) then
Edges.Insert (Objects (A));
-- Ada.Text_IO.Put_Line (A'Img);
end if;
end;
end loop;
-- Ada.Text_IO.Put_Line ("l: " & Edges.Length'Img);
X.Set_Edges (Edges);
end;
end loop;
Free (Objects);
end Create;
procedure Write (N : Integer; File_Name : String) is
package ASS_IO renames Ada.Streams.Stream_IO;
File : ASS_IO.File_Type;
Stream : ASS_IO.Stream_Access;
procedure Free is new Ada.Unchecked_Deallocation (Node_Type_Array, Node_Type_Accesses);
Objects : Node_Type_Accesses := Skill.Get_Nodes (State);
begin
ASS_IO.Create (File, ASS_IO.Out_File, File_Name);
Stream := ASS_IO.Stream (File);
for Object of Objects.all loop
Node_Type'Output (Stream, Object.all);
end loop;
ASS_IO.Close (File);
Free (Objects);
end Write;
procedure Read (N : Integer; File_Name : String) is
package ASS_IO renames Ada.Streams.Stream_IO;
File : ASS_IO.File_Type;
Stream : ASS_IO.Stream_Access;
package Vector is new Ada.Containers.Vectors (Positive, Node_Type);
Storage_Pool : Vector.Vector;
begin
ASS_IO.Open (File, ASS_IO.In_File, File_Name);
Stream := ASS_IO.Stream (File);
while not ASS_IO.End_Of_File (File) loop
declare
X : Node_Type := Node_Type'Input (Stream);
begin
Storage_Pool.Append (X);
declare
use Node_Edges_Set;
procedure Iterate (Position : Cursor) is
X : Node_Type_Access := Element (Position);
begin
null;
-- Ada.Text_IO.Put_Line ("--> " & X.all.Get_Skill_Id'Img);
end Iterate;
begin
-- Ada.Text_IO.Put_Line (X.Get_Skill_Id'Img);
X.Get_Edges.Iterate (Iterate'Access);
end;
end;
end loop;
ASS_IO.Close (File);
end Read;
procedure Reset (N : Integer; File_Name : String) is
procedure Free is new Ada.Unchecked_Deallocation (Skill_State, State_Type);
procedure Free is new Ada.Unchecked_Deallocation (String, String_Access);
begin
Skill.Close (State);
Free (String_Black);
Free (String_Red);
Free (State);
end Reset;
end Benchmark_S_Graph_2;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
package GL.Tessellation is
pragma Preelaborate;
use GL.Types;
procedure Set_Patch_Vertices (Value : Int);
procedure Set_Patch_Default_Inner_Level (Values : Single_Array);
procedure Set_Patch_Default_Outer_Level (Values : Single_Array);
end GL.Tessellation;
|
pragma License (Unrestricted);
-- extended unit
package Ada.Numerics.Distributions is
-- Some kinds of distributions of random numers.
pragma Pure;
-- Simple distributions
generic
type Source is mod <>;
type Target is (<>);
function Linear_Discrete (X : Source) return Target;
-- [0,1]
generic
type Source is mod <>;
type Target is digits <>;
function Linear_Float_0_To_1 (X : Source) return Target'Base;
-- [0,1)
generic
type Source is mod <>;
type Target is digits <>;
function Linear_Float_0_To_Less_Than_1 (X : Source) return Target'Base;
-- (0,1)
generic
type Source is mod <>;
type Target is digits <>;
function Linear_Float_Greater_Than_0_To_Less_Than_1 (X : Source)
return Target'Base;
-- -log(0,1] = [0,inf), RM A.5.2(53/2)
generic
type Source is mod <>;
type Target is digits <>;
function Exponentially_Float (X : Source) return Target'Base;
-- Simple distributions for random number
generic
type Source is mod <>;
type Target is (<>);
type Generator (<>) is limited private;
with function Get (Gen : aliased in out Generator) return Source;
function Linear_Discrete_Random (Gen : aliased in out Generator)
return Target;
-- Strict uniform distributions for random number
generic
type Source is mod <>;
type Target is (<>);
type Generator (<>) is limited private;
with function Get (Gen : aliased in out Generator) return Source;
function Uniform_Discrete_Random (Gen : aliased in out Generator)
return Target;
-- [0,1]
generic
type Source is mod <>;
type Target is digits <>;
type Generator (<>) is limited private;
with function Get (Gen : aliased in out Generator) return Source;
function Uniform_Float_Random_0_To_1 (Gen : aliased in out Generator)
return Target;
-- [0,1)
generic
type Source is mod <>;
type Target is digits <>;
type Generator (<>) is limited private;
with function Get (Gen : aliased in out Generator) return Source;
function Uniform_Float_Random_0_To_Less_Than_1 (
Gen : aliased in out Generator)
return Target;
-- (0,1)
generic
type Source is mod <>;
type Target is digits <>;
type Generator (<>) is limited private;
with function Get (Gen : aliased in out Generator) return Source;
function Uniform_Float_Random_Greater_Than_0_To_Less_Than_1 (
Gen : aliased in out Generator)
return Target;
end Ada.Numerics.Distributions;
|
-----------------------------------------------------------------------
-- views.nodes.jsf -- JSF Core Tag Library
-- Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Beans.Objects;
with ASF.Converters;
with ASF.Converters.Dates;
with ASF.Validators.Texts;
with ASF.Validators.Numbers;
with ASF.Components.Holders;
with ASF.Components.Core.Views;
package body ASF.Views.Nodes.Jsf is
-- Get the date conversion global format.
function Get_Format (Node : in Convert_Date_Time_Tag_Node;
Context : in Contexts.Facelets.Facelet_Context'Class)
return ASF.Converters.Dates.Format_Type;
-- Get a dateStyle or a timeStyle attribute value.
function Get_Date_Style (Node : in Convert_Date_Time_Tag_Node;
Name : in String;
Attr : in Tag_Attribute_Access;
Context : in Contexts.Facelets.Facelet_Context'Class)
return ASF.Converters.Dates.Style_Type;
-- ------------------------------
-- Converter Tag
-- ------------------------------
-- ------------------------------
-- Create the Converter Tag
-- ------------------------------
function Create_Converter_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Views.Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Converter_Tag_Node_Access := new Converter_Tag_Node;
Conv : constant Tag_Attribute_Access := Find_Attribute (Attributes,
"converterId");
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
if Conv = null then
Node.Error ("Missing 'converterId' attribute");
else
Node.Converter := EL.Objects.To_Object (Conv.Value);
end if;
return Node.all'Access;
end Create_Converter_Tag_Node;
-- ------------------------------
-- Build the component tree from the tag node and attach it as
-- the last child of the given parent. Calls recursively the
-- method to create children. Get the specified converter and
-- add it to the parent component. This operation does not create any
-- new UIComponent.
-- ------------------------------
overriding
procedure Build_Components (Node : access Converter_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
use ASF.Components.Holders;
use type ASF.Converters.Converter_Access;
Cvt : constant Converters.Converter_Access := Context.Get_Converter (Node.Converter);
begin
if not (Parent.all in Value_Holder'Class) then
Node.Error ("Parent component is not an instance of Value_Holder");
return;
end if;
if Cvt = null then
Node.Error ("Converter was not found");
return;
end if;
declare
VH : constant access Value_Holder'Class := Value_Holder'Class (Parent.all)'Access;
begin
VH.Set_Converter (Converter => Cvt);
end;
end Build_Components;
-- ------------------------------
-- Convert Date Time Tag
-- ------------------------------
-- ------------------------------
-- Create the Converter Tag
-- ------------------------------
function Create_Convert_Date_Time_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Convert_Date_Time_Tag_Node_Access := new Convert_Date_Time_Tag_Node;
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
Node.Date_Style := Find_Attribute (Attributes, "dateStyle");
Node.Time_Style := Find_Attribute (Attributes, "timeStyle");
Node.Locale := Find_Attribute (Attributes, "locale");
Node.Pattern := Find_Attribute (Attributes, "pattern");
Node.Format := Find_Attribute (Attributes, "type");
return Node.all'Access;
end Create_Convert_Date_Time_Tag_Node;
-- Get a dateStyle or a timeStyle attribute value.
function Get_Date_Style (Node : in Convert_Date_Time_Tag_Node;
Name : in String;
Attr : in Tag_Attribute_Access;
Context : in Contexts.Facelets.Facelet_Context'Class)
return ASF.Converters.Dates.Style_Type is
Style : constant String := Get_Value (Attr, Context, "");
begin
if Style = "default" or Style = "" then
return ASF.Converters.Dates.DEFAULT;
elsif Style = "short" then
return ASF.Converters.Dates.SHORT;
elsif Style = "medium" then
return ASF.Converters.Dates.MEDIUM;
elsif Style = "long" then
return ASF.Converters.Dates.LONG;
elsif Style = "full" then
return ASF.Converters.Dates.FULL;
else
Node.Error ("Invalid attribute {0}: {1}", Name, Style);
return ASF.Converters.Dates.DEFAULT;
end if;
end Get_Date_Style;
-- Get the date conversion global format.
function Get_Format (Node : in Convert_Date_Time_Tag_Node;
Context : in Contexts.Facelets.Facelet_Context'Class)
return ASF.Converters.Dates.Format_Type is
Format : constant String := Get_Value (Node.Format, Context, "");
begin
if Format = "both" then
return ASF.Converters.Dates.BOTH;
elsif Format = "time" then
return ASF.Converters.Dates.TIME;
elsif Format = "date" then
return ASF.Converters.Dates.DATE;
else
Node.Error ("Invalid attribute type: {0}", Format);
return ASF.Converters.Dates.BOTH;
end if;
end Get_Format;
-- ------------------------------
-- Build the component tree from the tag node and attach it as
-- the last child of the given parent. Calls recursively the
-- method to create children. Get the specified converter and
-- add it to the parent component. This operation does not create any
-- new UIComponent.
-- ------------------------------
overriding
procedure Build_Components (Node : access Convert_Date_Time_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
use ASF.Components.Holders;
use ASF.Converters;
C : ASF.Converters.Dates.Date_Converter_Access;
Locale : constant String := Get_Value (Node.Locale, Context, "");
begin
if not (Parent.all in Value_Holder'Class) then
Node.Error ("Parent component is not an instance of Value_Holder");
return;
end if;
if Node.Pattern /= null then
C := Dates.Create_Date_Converter (Date => Converters.Dates.DEFAULT,
Time => Converters.Dates.DEFAULT,
Format => Converters.Dates.CONVERTER_PATTERN,
Locale => Locale,
Pattern => Get_Value (Node.Pattern, Context, ""));
elsif Node.Format /= null then
C := Dates.Create_Date_Converter (Date => Get_Date_Style (Node.all, "dateStyle",
Node.Date_Style, Context),
Time => Get_Date_Style (Node.all, "timeStyle",
Node.Time_Style, Context),
Format => Get_Format (Node.all, Context),
Locale => Locale,
Pattern => "");
elsif Node.Date_Style /= null then
C := Dates.Create_Date_Converter (Date => Get_Date_Style (Node.all, "dateStyle",
Node.Date_Style, Context),
Time => Converters.Dates.DEFAULT,
Format => Converters.Dates.DATE,
Locale => Locale,
Pattern => "");
elsif Node.Time_Style /= null then
C := Dates.Create_Date_Converter (Date => Converters.Dates.DEFAULT,
Time => Get_Date_Style (Node.all, "timeStyle",
Node.Time_Style, Context),
Format => ASF.Converters.Dates.TIME,
Locale => Locale,
Pattern => "");
else
C := Dates.Create_Date_Converter (Date => Converters.Dates.DEFAULT,
Time => Converters.Dates.DEFAULT,
Format => ASF.Converters.Dates.BOTH,
Locale => Locale,
Pattern => "");
end if;
declare
VH : constant access Value_Holder'Class
:= Value_Holder'Class (Parent.all)'Access;
begin
VH.Set_Converter (Converter => C.all'Access);
end;
end Build_Components;
-- ------------------------------
-- Validator Tag
-- ------------------------------
-- ------------------------------
-- Create the Validator Tag
-- ------------------------------
function Create_Validator_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Views.Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Validator_Tag_Node_Access := new Validator_Tag_Node;
Vid : constant Tag_Attribute_Access := Find_Attribute (Attributes,
"validatorId");
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
if Vid = null then
Node.Error ("Missing 'validatorId' attribute");
else
Node.Validator := EL.Objects.To_Object (Vid.Value);
end if;
return Node.all'Access;
end Create_Validator_Tag_Node;
-- ------------------------------
-- Get the specified validator and add it to the parent component.
-- This operation does not create any new UIComponent.
-- ------------------------------
overriding
procedure Build_Components (Node : access Validator_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
use ASF.Components.Holders;
use type ASF.Validators.Validator_Access;
V : Validators.Validator_Access;
Shared : Boolean;
begin
if not (Parent.all in Editable_Value_Holder'Class) then
Node.Error ("Parent component is not an instance of Editable_Value_Holder");
return;
end if;
Validator_Tag_Node'Class (Node.all).Get_Validator (Context, V, Shared);
if V = null then
Node.Error ("Validator was not found");
return;
end if;
declare
VH : constant access Editable_Value_Holder'Class
:= Editable_Value_Holder'Class (Parent.all)'Access;
begin
VH.Add_Validator (Validator => V, Shared => Shared);
end;
end Build_Components;
-- ------------------------------
-- Get the validator instance that corresponds to the validator tag.
-- Returns in <b>Validator</b> the instance if it exists and indicate
-- in <b>Shared</b> whether it must be freed or not when the component is deleted.
-- ------------------------------
procedure Get_Validator (Node : in Validator_Tag_Node;
Context : in out Contexts.Facelets.Facelet_Context'Class;
Validator : out Validators.Validator_Access;
Shared : out Boolean) is
begin
Validator := Context.Get_Validator (Node.Validator);
Shared := True;
end Get_Validator;
-- ------------------------------
-- Range Validator Tag
-- ------------------------------
-- Create the Range_Validator Tag
function Create_Range_Validator_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Range_Validator_Tag_Node_Access := new Range_Validator_Tag_Node;
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
Node.Minimum := Find_Attribute (Attributes, "minimum");
Node.Maximum := Find_Attribute (Attributes, "maximum");
if Node.Minimum = null and Node.Maximum = null then
Node.Error ("Missing 'minimum' or 'maximum' attribute");
end if;
return Node.all'Access;
end Create_Range_Validator_Tag_Node;
-- Get the validator instance that corresponds to the range validator.
-- Returns in <b>Validator</b> the validator instance if it exists and indicate
-- in <b>Shared</b> whether it must be freed or not when the component is deleted.
overriding
procedure Get_Validator (Node : in Range_Validator_Tag_Node;
Context : in out Contexts.Facelets.Facelet_Context'Class;
Validator : out Validators.Validator_Access;
Shared : out Boolean) is
use type ASF.Validators.Validator_Access;
Min : Long_Long_Integer := Long_Long_Integer'First;
Max : Long_Long_Integer := Long_Long_Integer'Last;
begin
-- Get the minimum and maximum attributes.
begin
if Node.Minimum /= null then
Min := EL.Objects.To_Long_Long_Integer (Get_Value (Node.Minimum.all, Context));
end if;
if Node.Maximum /= null then
Max := EL.Objects.To_Long_Long_Integer (Get_Value (Node.Maximum.all, Context));
end if;
exception
when Constraint_Error =>
Node.Error ("Invalid minimum or maximum value");
end;
Shared := False;
if Max < Min then
Node.Error ("Minimum ({0}) should be less than maximum ({1})",
Long_Long_Integer'Image (Min), Long_Long_Integer'Image (Max));
return;
end if;
Validator := Validators.Numbers.Create_Range_Validator (Minimum => Min,
Maximum => Max);
end Get_Validator;
-- ------------------------------
-- Length Validator Tag
-- ------------------------------
-- ------------------------------
-- Create the Length_Validator Tag. Verifies that the XML node defines
-- the <b>minimum</b> or the <b>maximum</b> or both attributes.
-- ------------------------------
function Create_Length_Validator_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Length_Validator_Tag_Node_Access := new Length_Validator_Tag_Node;
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
Node.Minimum := Find_Attribute (Attributes, "minimum");
Node.Maximum := Find_Attribute (Attributes, "maximum");
if Node.Minimum = null and Node.Maximum = null then
Node.Error ("Missing 'minimum' or 'maximum' attribute");
end if;
return Node.all'Access;
end Create_Length_Validator_Tag_Node;
-- ------------------------------
-- Get the validator instance that corresponds to the validator tag.
-- Returns in <b>Validator</b> the instance if it exists and indicate
-- in <b>Shared</b> whether it must be freed or not when the component is deleted.
-- ------------------------------
overriding
procedure Get_Validator (Node : in Length_Validator_Tag_Node;
Context : in out Contexts.Facelets.Facelet_Context'Class;
Validator : out Validators.Validator_Access;
Shared : out Boolean) is
use type ASF.Validators.Validator_Access;
Min : Natural := 0;
Max : Natural := Natural'Last;
begin
-- Get the minimum and maximum attributes.
begin
if Node.Minimum /= null then
Min := Natural (EL.Objects.To_Integer (Get_Value (Node.Minimum.all, Context)));
end if;
if Node.Maximum /= null then
Max := Natural (EL.Objects.To_Integer (Get_Value (Node.Maximum.all, Context)));
end if;
exception
when Constraint_Error =>
Node.Error ("Invalid minimum or maximum value");
end;
Shared := False;
if Max < Min then
Node.Error ("Minimum ({0}) should be less than maximum ({1})",
Natural'Image (Min), Natural'Image (Max));
return;
end if;
Validator := Validators.Texts.Create_Length_Validator (Minimum => Min,
Maximum => Max);
end Get_Validator;
-- ------------------------------
-- Attribute Tag
-- ------------------------------
-- ------------------------------
-- Create the Attribute Tag
-- ------------------------------
function Create_Attribute_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Views.Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Attr : constant Tag_Attribute_Access := Find_Attribute (Attributes, "name");
Node : Attribute_Tag_Node_Access;
begin
Node := new Attribute_Tag_Node;
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
Node.Attr_Name := Attr;
Node.Value := Find_Attribute (Attributes, "value");
if Node.Attr_Name = null then
Node.Error ("Missing 'name' attribute");
else
Node.Attr.Name := Attr.Value;
end if;
if Node.Value = null then
Node.Error ("Missing 'value' attribute");
end if;
return Node.all'Access;
end Create_Attribute_Tag_Node;
-- ------------------------------
-- Build the component tree from the tag node and attach it as
-- the last child of the given parent. Calls recursively the
-- method to create children.
-- Adds the attribute to the component node.
-- This operation does not create any new UIComponent.
-- ------------------------------
overriding
procedure Build_Components (Node : access Attribute_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
use EL.Expressions;
begin
if Node.Attr_Name /= null and Node.Value /= null then
if Node.Value.Binding /= null then
declare
Expr : constant EL.Expressions.Expression
:= ASF.Views.Nodes.Reduce_Expression (Node.Value.all, Context);
begin
Parent.Set_Attribute (Def => Node.Attr'Access, Value => Expr);
end;
else
Parent.Set_Attribute (Def => Node.Attr'Access,
Value => Get_Value (Node.Value.all, Context));
end if;
end if;
end Build_Components;
-- ------------------------------
-- Facet Tag
-- ------------------------------
-- ------------------------------
-- Create the Facet Tag
-- ------------------------------
function Create_Facet_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Views.Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Facet_Tag_Node_Access := new Facet_Tag_Node;
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
Node.Facet_Name := Find_Attribute (Attributes, "name");
if Node.Facet_Name = null then
Node.Error ("Missing 'name' attribute");
end if;
return Node.all'Access;
end Create_Facet_Tag_Node;
-- ------------------------------
-- Build the component tree from the tag node and attach it as
-- the facet component of the given parent. Calls recursively the
-- method to create children.
-- ------------------------------
overriding
procedure Build_Components (Node : access Facet_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
Facet : constant UIComponent_Access := new UIComponent;
Name : constant Util.Beans.Objects.Object := Get_Value (Node.Facet_Name.all, Context);
begin
Node.Build_Children (Facet, Context);
Parent.Add_Facet (Util.Beans.Objects.To_String (Name), Facet.all'Access, Node);
end Build_Components;
-- ------------------------------
-- Metadata Tag
-- ------------------------------
-- ------------------------------
-- Create the Metadata Tag
-- ------------------------------
function Create_Metadata_Tag_Node (Binding : in Binding_Access;
Line : in Views.Line_Info;
Parent : in Views.Nodes.Tag_Node_Access;
Attributes : in Views.Nodes.Tag_Attribute_Array_Access)
return Views.Nodes.Tag_Node_Access is
use ASF.Views.Nodes;
Node : constant Metadata_Tag_Node_Access := new Metadata_Tag_Node;
begin
Initialize (Node.all'Access, Binding, Line, Parent, Attributes);
return Node.all'Access;
end Create_Metadata_Tag_Node;
-- ------------------------------
-- Build the component tree from the tag node and attach it as a metadata information
-- facet for the UIView parent component.
-- ------------------------------
overriding
procedure Build_Components (Node : access Metadata_Tag_Node;
Parent : in UIComponent_Access;
Context : in out Contexts.Facelets.Facelet_Context'Class) is
use ASF.Components.Core.Views;
begin
if not (Parent.all in UIView'Class) then
Node.Error ("Parent component of <f:metadata> must be a <f:view>");
return;
end if;
declare
UI : constant UIViewMetaData_Access := new UIViewMetaData;
begin
UIView'Class (Parent.all).Set_Metadata (UI, Node);
Build_Attributes (UI.all, Node.all, Context);
UI.Initialize (UI.Get_Context.all);
Node.Build_Children (UI.all'Access, Context);
end;
end Build_Components;
end ASF.Views.Nodes.Jsf;
|
with Ada.Text_IO;
with Ada.Long_Long_Integer_Text_IO;
with PrimeInstances;
package body Problem_15 is
package IO renames Ada.Text_IO;
procedure Solve is
package Positive_Primes renames PrimeInstances.Positive_Primes;
primes : constant Positive_Primes.Sieve := Positive_Primes.Generate_Sieve(40);
type Factor_Array is Array (2 .. primes(primes'Last)) of Natural;
function Factor_Factorial(num : in Integer) return Factor_Array is
result : Factor_Array;
begin
for index in result'Range loop
result(index) := 0;
end loop;
for const_number in 2 .. num loop
declare
number : Positive := const_number;
begin
for index in primes'Range loop
declare
prime : constant Positive := primes(index);
begin
while number mod prime = 0 loop
result(prime) := result(prime) + 1;
number := number / prime;
end loop;
end;
end loop;
end;
end loop;
return result;
end Factor_Factorial;
factor_40 : Factor_Array := Factor_Factorial(40);
factor_20 : constant Factor_Array := Factor_Factorial(20);
result : Long_Long_Integer := 1;
begin
for index in Factor_Array'Range loop
factor_40(index) := factor_40(index) - 2*factor_20(index);
if factor_40(index) > 0 then
result := result * Long_Long_Integer(index**factor_40(index));
end if;
end loop;
-- This problem is 40!/(20!20!). I was too lazy to either write division for my bignums or write the routines
-- that would factorize the numbers and cancel common factors.
Ada.Long_Long_Integer_Text_IO.Put(result);
IO.New_Line;
end Solve;
end Problem_15;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with system;
package soc.rng
with spark_mode => on
is
-----------------------------------
-- RNG control register (RNG_CR) --
-----------------------------------
type t_RNG_CR is record
reserved_0_1 : bits_2;
RNGEN : boolean;
IE : boolean;
end record
with volatile_full_access, size => 32;
for t_RNG_CR use record
reserved_0_1 at 0 range 0 .. 1;
RNGEN at 0 range 2 .. 2; -- RNG is enabled
IE at 0 range 3 .. 3; -- RNG Interrupt is enabled
end record;
----------------------------------
-- RNG status register (RNG_SR) --
----------------------------------
type t_RNG_SR is record
DRDY : boolean; -- Data ready
CECS : boolean; -- Clock error current status
SECS : boolean; -- Seed error current status
reserved_3_4 : bits_2;
CEIS : boolean; -- Clock error interrupt status
SEIS : boolean; -- Seed error interrupt status
end record
with volatile_full_access, size => 32;
for t_RNG_SR use record
DRDY at 0 range 0 .. 0;
CECS at 0 range 1 .. 1;
SECS at 0 range 2 .. 2;
reserved_3_4 at 0 range 3 .. 4;
CEIS at 0 range 5 .. 5;
SEIS at 0 range 6 .. 6;
end record;
--------------------------------
-- RNG data register (RNG_DR) --
--------------------------------
type t_RNG_DR is record
RNDATA : unsigned_32; -- Random data
end record
with volatile_full_access, size => 32;
--------------------
-- RNG peripheral --
--------------------
type t_RNG_peripheral is record
CR : t_RNG_CR;
SR : t_RNG_SR;
DR : t_RNG_DR;
end record
with volatile;
for t_RNG_peripheral use record
CR at 16#00# range 0 .. 31;
SR at 16#04# range 0 .. 31;
DR at 16#08# range 0 .. 31;
end record;
RNG : t_RNG_peripheral
with
import,
volatile,
address => system'to_address(16#5006_0800#);
procedure init
(success : out boolean);
procedure random
(rand : out unsigned_32;
success : out boolean);
end soc.rng;
|
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden --
-- --
pragma Ada_2012;
with Ada.Containers.Hashed_Sets;
with Ada.Finalization;
with Ada.Unchecked_Conversion;
with Skill.Types;
with Ada.Containers;
-- sets used by skill; those are basically ada hashed sets with template aware boxing
generic
type T is private;
with function Hash (Element : T) return Ada.Containers.Hash_Type is <>;
with function Equals (Left, Right : T) return Boolean is <>;
with function "=" (Left, Right : T) return Boolean is <>;
package Skill.Containers.Sets is
pragma Warnings (Off);
use Skill.Types;
function Cast is new Ada.Unchecked_Conversion (Box, T);
function Cast is new Ada.Unchecked_Conversion (T, Box);
package HS is new Ada.Containers.Hashed_Sets (T, Hash, Equals, "=");
type Iterator_T is new Set_Iterator_T with record
Cursor : Hs.Cursor;
end record;
function Has_Next (This : access Iterator_T) return Boolean is
(Hs.Has_Element(This.Cursor));
function Next (This : access Iterator_T) return Skill.Types.Box;
procedure Free (This : access Iterator_T);
type Set_T is new Boxed_Set_T with record
This : HS.Set;
end record;
type Ref is access Set_T;
procedure Add (This : access Set_T; V : Skill.Types.Box);
function Contains
(This : access Set_T;
V : Skill.Types.Box) return Boolean is
(This.This.Contains (Cast (V)));
function Length
(This : access Set_T) return Natural is
(Natural (This.This.Length));
overriding
function Iterator (This : access Set_T) return Set_Iterator is
(new Iterator_T'(Cursor => This.This.First));
-- create a new container
function Make return Ref;
-- turn a box into a container of right type
function Unboxed is new Ada.Unchecked_Conversion (Box, Ref);
end Skill.Containers.Sets;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.