CombinedText
stringlengths
4
3.42M
with Ada.Assertions; use Ada.Assertions; with Interfaces.C; use Interfaces.C; with Rejuvenation; use Rejuvenation; with Rejuvenation.File_Utils; use Rejuvenation.File_Utils; with Rejuvenation.Indentation; use Rejuvenation.Indentation; with Rejuvenation.Navigation; use Rejuvenation.Navigation; with Rejuvenation.Nested; use Rejuvenation.Nested; with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations; with Rejuvenation.String_Utils; use Rejuvenation.String_Utils; package body Rejuvenation.Pretty_Print is procedure Surround_Node_By_Pretty_Print_Section (T_R : in out Text_Rewrite'Class; Node : Ada_Node'Class) is function Predicate (Node : Ada_Node'Class) return Boolean; function Predicate (Node : Ada_Node'Class) return Boolean -- workaround for https://gt3-prod-1.adacore.com/#/tickets/UB17-034 -- not only look for node on separate lines, -- but also require a particular kind is begin return Node.Kind in Ada_Stmt | Ada_Stmt_List | Ada_Basic_Decl | Ada_Compilation_Unit and then Node_On_Separate_Lines (Node); end Predicate; Ctx : constant Ada_Node := Get_Reflexive_Ancestor (Node, Predicate'Access); begin T_R.Prepend (Ctx, Pretty_Print_On, Before => Trivia_On_Same_Line); T_R.Append (Ctx, Pretty_Print_Off, After => Trivia_On_Same_Line); end Surround_Node_By_Pretty_Print_Section; procedure Turn_Pretty_Printing_Initially_Off (T_R : in out Text_Rewrite_Unit) is Unit : constant Analysis_Unit := T_R.Get_Unit; begin T_R.Prepend (Unit.Root, Pretty_Print_Off, All_Trivia, Unit.Get_Charset); end Turn_Pretty_Printing_Initially_Off; procedure Turn_Pretty_Printing_Initially_Off (Filename : String) is Original_Content : constant String := Get_String_From_File (Filename); begin Write_String_To_File (Pretty_Print_Off & Original_Content, Filename); end Turn_Pretty_Printing_Initially_Off; procedure Remove_Cr_Cr_Lf (Filename : String); procedure Remove_Cr_Cr_Lf (Filename : String) -- repair gnatpp screwed up -- see https://gt3-prod-1.adacore.com/#/tickets/U617-042 is Contents : constant String := Get_String_From_File (Filename); Final_Contents : constant String := Replace_All (Contents, ASCII.CR & ASCII.CR & ASCII.LF, ASCII.CR & ASCII.LF); begin Write_String_To_File (Final_Contents, Filename); end Remove_Cr_Cr_Lf; procedure Remove_Nested_Pretty_Print_Flags (Filename : String); procedure Remove_Nested_Pretty_Print_Flags (Filename : String) is Contents : constant String := Get_String_From_File (Filename); Final_Contents : constant String := Remove_Nested_Flags (Contents, Pretty_Print_On, Pretty_Print_Off, 1); begin Write_String_To_File (Final_Contents, Filename); end Remove_Nested_Pretty_Print_Flags; procedure Pretty_Print_Sections (Filename : String; Projectname : String) is function Sys (Arg : char_array) return Integer; pragma Import (C, Sys, "system"); Command : constant String := "gnatpp" & " -P " & Projectname & " --pp-on=" & Flag_On & " --pp-off=" & Flag_Off & " " & Filename; Ret_Val : Integer; begin Remove_Nested_Pretty_Print_Flags (Filename); declare Original_Content : constant String := Get_String_From_File (Filename); Original_Last_Char : constant Character := Original_Content (Original_Content'Last); begin Ret_Val := Sys (To_C (Command)); Assert (Check => Ret_Val = 0, Message => "System call to gnatpp returned " & Ret_Val'Image); declare Current_Content : constant String := Get_String_From_File (Filename); Current_Last_Char : constant Character := Current_Content (Current_Content'Last); begin if Current_Last_Char /= Original_Last_Char then -- correct GNATPP bug (additional LF at end of file) Write_String_To_File (Current_Content (Current_Content'First .. Current_Content'Last - 1), Filename); end if; end; end; Remove_Cr_Cr_Lf (Filename); end Pretty_Print_Sections; procedure Remove_Pretty_Print_Flags (Filename : String) is Contents : constant String := Get_String_From_File (Filename); New_Contents : constant String := Replace_All (Replace_All (Replace_All (Replace_All (Contents, Pretty_Print_On, ""), Alt_Pretty_Print_On, ""), Pretty_Print_Off, ""), Alt_Pretty_Print_Off, ""); begin Write_String_To_File (New_Contents, Filename); end Remove_Pretty_Print_Flags; end Rejuvenation.Pretty_Print;
with iconv.Generic_Strings; package iconv.Strings is new Generic_Strings (Character, String, "LATIN1"); -- Encoding / decoding between String and various encodings. pragma Preelaborate (iconv.Strings);
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Slim.Messages.aude is type Aude_Message is new Message with private; -- Tell the client to enable/disable the audio outputs. procedure Enable_Output (Self : in out Aude_Message); private subtype Byte is Ada.Streams.Stream_Element; type Aude_Message is new Base_Message (Max_8 => 2, Max_16 => 0, Max_32 => 0, Max_64 => 0) with null record; overriding function Read (Data : not null access League.Stream_Element_Vectors.Stream_Element_Vector) return Aude_Message; overriding procedure Write (Self : Aude_Message; Tag : out Message_Tag; Data : out League.Stream_Element_Vectors.Stream_Element_Vector); overriding procedure Visit (Self : not null access Aude_Message; Visiter : in out Slim.Message_Visiters.Visiter'Class); end Slim.Messages.aude;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- U I N T P -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- 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 Output; use Output; with Tree_IO; use Tree_IO; package body Uintp is ------------------------ -- Local Declarations -- ------------------------ Uint_Int_First : Uint := Uint_0; -- Uint value containing Int'First value, set by Initialize. The initial -- value of Uint_0 is used for an assertion check that ensures that this -- value is not used before it is initialized. This value is used in the -- UI_Is_In_Int_Range predicate, and it is right that this is a host -- value, since the issue is host representation of integer values. Uint_Int_Last : Uint; -- Uint value containing Int'Last value set by Initialize. UI_Power_2 : array (Int range 0 .. 64) of Uint; -- This table is used to memoize exponentiations by powers of 2. The Nth -- entry, if set, contains the Uint value 2 ** N. Initially UI_Power_2_Set -- is zero and only the 0'th entry is set, the invariant being that all -- entries in the range 0 .. UI_Power_2_Set are initialized. UI_Power_2_Set : Nat; -- Number of entries set in UI_Power_2; UI_Power_10 : array (Int range 0 .. 64) of Uint; -- This table is used to memoize exponentiations by powers of 10 in the -- same manner as described above for UI_Power_2. UI_Power_10_Set : Nat; -- Number of entries set in UI_Power_10; Uints_Min : Uint; Udigits_Min : Int; -- These values are used to make sure that the mark/release mechanism -- does not destroy values saved in the U_Power tables. Whenever an -- entry is made in the U_Power tables, Uints_Min and Udigits_Min are -- updated to protect the entry, and Release never cuts back beyond -- these minimum values. Int_0 : constant Int := 0; Int_1 : constant Int := 1; Int_2 : constant Int := 2; -- These values are used in some cases where the use of numeric literals -- would cause ambiguities (integer vs Uint). ----------------------- -- Local Subprograms -- ----------------------- function Direct (U : Uint) return Boolean; pragma Inline (Direct); -- Returns True if U is represented directly function Direct_Val (U : Uint) return Int; -- U is a Uint for is represented directly. The returned result -- is the value represented. function GCD (Jin, Kin : Int) return Int; -- Compute GCD of two integers. Assumes that Jin >= Kin >= 0 procedure Image_Out (Input : Uint; To_Buffer : Boolean; Format : UI_Format); -- Common processing for UI_Image and UI_Write, To_Buffer is set -- True for UI_Image, and false for UI_Write, and Format is copied -- from the Format parameter to UI_Image or UI_Write. procedure Init_Operand (UI : Uint; Vec : out UI_Vector); pragma Inline (Init_Operand); -- This procedure puts the value of UI into the vector in canonical -- multiple precision format. The parameter should be of the correct -- size as determined by a previous call to N_Digits (UI). The first -- digit of Vec contains the sign, all other digits are always non- -- negative. Note that the input may be directly represented, and in -- this case Vec will contain the corresponding one or two digit value. function Least_Sig_Digit (Arg : Uint) return Int; pragma Inline (Least_Sig_Digit); -- Returns the Least Significant Digit of Arg quickly. When the given -- Uint is less than 2**15, the value returned is the input value, in -- this case the result may be negative. It is expected that any use -- will mask off unnecessary bits. This is used for finding Arg mod B -- where B is a power of two. Hence the actual base is irrelevent as -- long as it is a power of two. procedure Most_Sig_2_Digits (Left : Uint; Right : Uint; Left_Hat : out Int; Right_Hat : out Int); -- Returns leading two significant digits from the given pair of Uint's. -- Mathematically: returns Left / (Base ** K) and Right / (Base ** K) -- where K is as small as possible S.T. Right_Hat < Base * Base. -- It is required that Left > Right for the algorithm to work. function N_Digits (Input : Uint) return Int; pragma Inline (N_Digits); -- Returns number of "digits" in a Uint function Sum_Digits (Left : Uint; Sign : Int) return Int; -- If Sign = 1 return the sum of the "digits" of Abs (Left). If the -- total has more then one digit then return Sum_Digits of total. function Sum_Double_Digits (Left : Uint; Sign : Int) return Int; -- Same as above but work in New_Base = Base * Base function Vector_To_Uint (In_Vec : UI_Vector; Negative : Boolean) return Uint; -- Functions that calculate values in UI_Vectors, call this function -- to create and return the Uint value. In_Vec contains the multiple -- precision (Base) representation of a non-negative value. Leading -- zeroes are permitted. Negative is set if the desired result is -- the negative of the given value. The result will be either the -- appropriate directly represented value, or a table entry in the -- proper canonical format is created and returned. -- -- Note that Init_Operand puts a signed value in the result vector, -- but Vector_To_Uint is always presented with a non-negative value. -- The processing of signs is something that is done by the caller -- before calling Vector_To_Uint. ------------ -- Direct -- ------------ function Direct (U : Uint) return Boolean is begin return Int (U) <= Int (Uint_Direct_Last); end Direct; ---------------- -- Direct_Val -- ---------------- function Direct_Val (U : Uint) return Int is begin pragma Assert (Direct (U)); return Int (U) - Int (Uint_Direct_Bias); end Direct_Val; --------- -- GCD -- --------- function GCD (Jin, Kin : Int) return Int is J, K, Tmp : Int; begin pragma Assert (Jin >= Kin); pragma Assert (Kin >= Int_0); J := Jin; K := Kin; while K /= Uint_0 loop Tmp := J mod K; J := K; K := Tmp; end loop; return J; end GCD; --------------- -- Image_Out -- --------------- procedure Image_Out (Input : Uint; To_Buffer : Boolean; Format : UI_Format) is Marks : constant Uintp.Save_Mark := Uintp.Mark; Base : Uint; Ainput : Uint; Digs_Output : Natural := 0; -- Counts digits output. In hex mode, but not in decimal mode, we -- put an underline after every four hex digits that are output. Exponent : Natural := 0; -- If the number is too long to fit in the buffer, we switch to an -- approximate output format with an exponent. This variable records -- the exponent value. function Better_In_Hex return Boolean; -- Determines if it is better to generate digits in base 16 (result -- is true) or base 10 (result is false). The choice is purely a -- matter of convenience and aesthetics, so it does not matter which -- value is returned from a correctness point of view. procedure Image_Char (C : Character); -- Internal procedure to output one character procedure Image_Exponent (N : Natural); -- Output non-zero exponent. Note that we only use the exponent -- form in the buffer case, so we know that To_Buffer is true. procedure Image_Uint (U : Uint); -- Internal procedure to output characters of non-negative Uint ------------------- -- Better_In_Hex -- ------------------- function Better_In_Hex return Boolean is T16 : constant Uint := Uint_2 ** Int'(16); A : Uint; begin A := UI_Abs (Input); -- Small values up to 2**16 can always be in decimal if A < T16 then return False; end if; -- Otherwise, see if we are a power of 2 or one less than a power -- of 2. For the moment these are the only cases printed in hex. if A mod Uint_2 = Uint_1 then A := A + Uint_1; end if; loop if A mod T16 /= Uint_0 then return False; else A := A / T16; end if; exit when A < T16; end loop; while A > Uint_2 loop if A mod Uint_2 /= Uint_0 then return False; else A := A / Uint_2; end if; end loop; return True; end Better_In_Hex; ---------------- -- Image_Char -- ---------------- procedure Image_Char (C : Character) is begin if To_Buffer then if UI_Image_Length + 6 > UI_Image_Max then Exponent := Exponent + 1; else UI_Image_Length := UI_Image_Length + 1; UI_Image_Buffer (UI_Image_Length) := C; end if; else Write_Char (C); end if; end Image_Char; -------------------- -- Image_Exponent -- -------------------- procedure Image_Exponent (N : Natural) is begin if N >= 10 then Image_Exponent (N / 10); end if; UI_Image_Length := UI_Image_Length + 1; UI_Image_Buffer (UI_Image_Length) := Character'Val (Character'Pos ('0') + N mod 10); end Image_Exponent; ---------------- -- Image_Uint -- ---------------- procedure Image_Uint (U : Uint) is H : array (Int range 0 .. 15) of Character := "0123456789ABCDEF"; begin if U >= Base then Image_Uint (U / Base); end if; if Digs_Output = 4 and then Base = Uint_16 then Image_Char ('_'); Digs_Output := 0; end if; Image_Char (H (UI_To_Int (U rem Base))); Digs_Output := Digs_Output + 1; end Image_Uint; -- Start of processing for Image_Out begin if Input = No_Uint then Image_Char ('?'); return; end if; UI_Image_Length := 0; if Input < Uint_0 then Image_Char ('-'); Ainput := -Input; else Ainput := Input; end if; if Format = Hex or else (Format = Auto and then Better_In_Hex) then Base := Uint_16; Image_Char ('1'); Image_Char ('6'); Image_Char ('#'); Image_Uint (Ainput); Image_Char ('#'); else Base := Uint_10; Image_Uint (Ainput); end if; if Exponent /= 0 then UI_Image_Length := UI_Image_Length + 1; UI_Image_Buffer (UI_Image_Length) := 'E'; Image_Exponent (Exponent); end if; Uintp.Release (Marks); end Image_Out; ------------------- -- Init_Operand -- ------------------- procedure Init_Operand (UI : Uint; Vec : out UI_Vector) is Loc : Int; begin if Direct (UI) then Vec (1) := Direct_Val (UI); if Vec (1) >= Base then Vec (2) := Vec (1) rem Base; Vec (1) := Vec (1) / Base; end if; else Loc := Uints.Table (UI).Loc; for J in 1 .. Uints.Table (UI).Length loop Vec (J) := Udigits.Table (Loc + J - 1); end loop; end if; end Init_Operand; ---------------- -- Initialize -- ---------------- procedure Initialize is begin Uints.Init; Udigits.Init; Uint_Int_First := UI_From_Int (Int'First); Uint_Int_Last := UI_From_Int (Int'Last); UI_Power_2 (0) := Uint_1; UI_Power_2_Set := 0; UI_Power_10 (0) := Uint_1; UI_Power_10_Set := 0; Uints_Min := Uints.Last; Udigits_Min := Udigits.Last; end Initialize; --------------------- -- Least_Sig_Digit -- --------------------- function Least_Sig_Digit (Arg : Uint) return Int is V : Int; begin if Direct (Arg) then V := Direct_Val (Arg); if V >= Base then V := V mod Base; end if; -- Note that this result may be negative return V; else return Udigits.Table (Uints.Table (Arg).Loc + Uints.Table (Arg).Length - 1); end if; end Least_Sig_Digit; ---------- -- Mark -- ---------- function Mark return Save_Mark is begin return (Save_Uint => Uints.Last, Save_Udigit => Udigits.Last); end Mark; ----------------------- -- Most_Sig_2_Digits -- ----------------------- procedure Most_Sig_2_Digits (Left : Uint; Right : Uint; Left_Hat : out Int; Right_Hat : out Int) is begin pragma Assert (Left >= Right); if Direct (Left) then Left_Hat := Direct_Val (Left); Right_Hat := Direct_Val (Right); return; else declare L1 : constant Int := Udigits.Table (Uints.Table (Left).Loc); L2 : constant Int := Udigits.Table (Uints.Table (Left).Loc + 1); begin -- It is not so clear what to return when Arg is negative??? Left_Hat := abs (L1) * Base + L2; end; end if; declare Length_L : constant Int := Uints.Table (Left).Length; Length_R : Int; R1 : Int; R2 : Int; T : Int; begin if Direct (Right) then T := Direct_Val (Left); R1 := abs (T / Base); R2 := T rem Base; Length_R := 2; else R1 := abs (Udigits.Table (Uints.Table (Right).Loc)); R2 := Udigits.Table (Uints.Table (Right).Loc + 1); Length_R := Uints.Table (Right).Length; end if; if Length_L = Length_R then Right_Hat := R1 * Base + R2; elsif Length_L = Length_R + Int_1 then Right_Hat := R1; else Right_Hat := 0; end if; end; end Most_Sig_2_Digits; --------------- -- N_Digits -- --------------- -- Note: N_Digits returns 1 for No_Uint function N_Digits (Input : Uint) return Int is begin if Direct (Input) then if Direct_Val (Input) >= Base then return 2; else return 1; end if; else return Uints.Table (Input).Length; end if; end N_Digits; -------------- -- Num_Bits -- -------------- function Num_Bits (Input : Uint) return Nat is Bits : Nat; Num : Nat; begin if UI_Is_In_Int_Range (Input) then Num := UI_To_Int (Input); Bits := 0; else Bits := Base_Bits * (Uints.Table (Input).Length - 1); Num := abs (Udigits.Table (Uints.Table (Input).Loc)); end if; while Types.">" (Num, 0) loop Num := Num / 2; Bits := Bits + 1; end loop; return Bits; end Num_Bits; --------- -- pid -- --------- procedure pid (Input : Uint) is begin UI_Write (Input, Decimal); Write_Eol; end pid; --------- -- pih -- --------- procedure pih (Input : Uint) is begin UI_Write (Input, Hex); Write_Eol; end pih; ------------- -- Release -- ------------- procedure Release (M : Save_Mark) is begin Uints.Set_Last (Uint'Max (M.Save_Uint, Uints_Min)); Udigits.Set_Last (Int'Max (M.Save_Udigit, Udigits_Min)); end Release; ---------------------- -- Release_And_Save -- ---------------------- procedure Release_And_Save (M : Save_Mark; UI : in out Uint) is begin if Direct (UI) then Release (M); else declare UE_Len : Pos := Uints.Table (UI).Length; UE_Loc : Int := Uints.Table (UI).Loc; UD : Udigits.Table_Type (1 .. UE_Len) := Udigits.Table (UE_Loc .. UE_Loc + UE_Len - 1); begin Release (M); Uints.Increment_Last; UI := Uints.Last; Uints.Table (UI) := (UE_Len, Udigits.Last + 1); for J in 1 .. UE_Len loop Udigits.Increment_Last; Udigits.Table (Udigits.Last) := UD (J); end loop; end; end if; end Release_And_Save; procedure Release_And_Save (M : Save_Mark; UI1, UI2 : in out Uint) is begin if Direct (UI1) then Release_And_Save (M, UI2); elsif Direct (UI2) then Release_And_Save (M, UI1); else declare UE1_Len : Pos := Uints.Table (UI1).Length; UE1_Loc : Int := Uints.Table (UI1).Loc; UD1 : Udigits.Table_Type (1 .. UE1_Len) := Udigits.Table (UE1_Loc .. UE1_Loc + UE1_Len - 1); UE2_Len : Pos := Uints.Table (UI2).Length; UE2_Loc : Int := Uints.Table (UI2).Loc; UD2 : Udigits.Table_Type (1 .. UE2_Len) := Udigits.Table (UE2_Loc .. UE2_Loc + UE2_Len - 1); begin Release (M); Uints.Increment_Last; UI1 := Uints.Last; Uints.Table (UI1) := (UE1_Len, Udigits.Last + 1); for J in 1 .. UE1_Len loop Udigits.Increment_Last; Udigits.Table (Udigits.Last) := UD1 (J); end loop; Uints.Increment_Last; UI2 := Uints.Last; Uints.Table (UI2) := (UE2_Len, Udigits.Last + 1); for J in 1 .. UE2_Len loop Udigits.Increment_Last; Udigits.Table (Udigits.Last) := UD2 (J); end loop; end; end if; end Release_And_Save; ---------------- -- Sum_Digits -- ---------------- -- This is done in one pass -- Mathematically: assume base congruent to 1 and compute an equivelent -- integer to Left. -- If Sign = -1 return the alternating sum of the "digits". -- D1 - D2 + D3 - D4 + D5 . . . -- (where D1 is Least Significant Digit) -- Mathematically: assume base congruent to -1 and compute an equivelent -- integer to Left. -- This is used in Rem and Base is assumed to be 2 ** 15 -- Note: The next two functions are very similar, any style changes made -- to one should be reflected in both. These would be simpler if we -- worked base 2 ** 32. function Sum_Digits (Left : Uint; Sign : Int) return Int is begin pragma Assert (Sign = Int_1 or Sign = Int (-1)); -- First try simple case; if Direct (Left) then declare Tmp_Int : Int := Direct_Val (Left); begin if Tmp_Int >= Base then Tmp_Int := (Tmp_Int / Base) + Sign * (Tmp_Int rem Base); -- Now Tmp_Int is in [-(Base - 1) .. 2 * (Base - 1)] if Tmp_Int >= Base then -- Sign must be 1. Tmp_Int := (Tmp_Int / Base) + 1; end if; -- Now Tmp_Int is in [-(Base - 1) .. (Base - 1)] end if; return Tmp_Int; end; -- Otherwise full circuit is needed else declare L_Length : Int := N_Digits (Left); L_Vec : UI_Vector (1 .. L_Length); Tmp_Int : Int; Carry : Int; Alt : Int; begin Init_Operand (Left, L_Vec); L_Vec (1) := abs L_Vec (1); Tmp_Int := 0; Carry := 0; Alt := 1; for J in reverse 1 .. L_Length loop Tmp_Int := Tmp_Int + Alt * (L_Vec (J) + Carry); -- Tmp_Int is now between [-2 * Base + 1 .. 2 * Base - 1], -- since old Tmp_Int is between [-(Base - 1) .. Base - 1] -- and L_Vec is in [0 .. Base - 1] and Carry in [-1 .. 1] if Tmp_Int >= Base then Tmp_Int := Tmp_Int - Base; Carry := 1; elsif Tmp_Int <= -Base then Tmp_Int := Tmp_Int + Base; Carry := -1; else Carry := 0; end if; -- Tmp_Int is now between [-Base + 1 .. Base - 1] Alt := Alt * Sign; end loop; Tmp_Int := Tmp_Int + Alt * Carry; -- Tmp_Int is now between [-Base .. Base] if Tmp_Int >= Base then Tmp_Int := Tmp_Int - Base + Alt * Sign * 1; elsif Tmp_Int <= -Base then Tmp_Int := Tmp_Int + Base + Alt * Sign * (-1); end if; -- Now Tmp_Int is in [-(Base - 1) .. (Base - 1)] return Tmp_Int; end; end if; end Sum_Digits; ----------------------- -- Sum_Double_Digits -- ----------------------- -- Note: This is used in Rem, Base is assumed to be 2 ** 15 function Sum_Double_Digits (Left : Uint; Sign : Int) return Int is begin -- First try simple case; pragma Assert (Sign = Int_1 or Sign = Int (-1)); if Direct (Left) then return Direct_Val (Left); -- Otherwise full circuit is needed else declare L_Length : Int := N_Digits (Left); L_Vec : UI_Vector (1 .. L_Length); Most_Sig_Int : Int; Least_Sig_Int : Int; Carry : Int; J : Int; Alt : Int; begin Init_Operand (Left, L_Vec); L_Vec (1) := abs L_Vec (1); Most_Sig_Int := 0; Least_Sig_Int := 0; Carry := 0; Alt := 1; J := L_Length; while J > Int_1 loop Least_Sig_Int := Least_Sig_Int + Alt * (L_Vec (J) + Carry); -- Least is in [-2 Base + 1 .. 2 * Base - 1] -- Since L_Vec in [0 .. Base - 1] and Carry in [-1 .. 1] -- and old Least in [-Base + 1 .. Base - 1] if Least_Sig_Int >= Base then Least_Sig_Int := Least_Sig_Int - Base; Carry := 1; elsif Least_Sig_Int <= -Base then Least_Sig_Int := Least_Sig_Int + Base; Carry := -1; else Carry := 0; end if; -- Least is now in [-Base + 1 .. Base - 1] Most_Sig_Int := Most_Sig_Int + Alt * (L_Vec (J - 1) + Carry); -- Most is in [-2 Base + 1 .. 2 * Base - 1] -- Since L_Vec in [0 .. Base - 1] and Carry in [-1 .. 1] -- and old Most in [-Base + 1 .. Base - 1] if Most_Sig_Int >= Base then Most_Sig_Int := Most_Sig_Int - Base; Carry := 1; elsif Most_Sig_Int <= -Base then Most_Sig_Int := Most_Sig_Int + Base; Carry := -1; else Carry := 0; end if; -- Most is now in [-Base + 1 .. Base - 1] J := J - 2; Alt := Alt * Sign; end loop; if J = Int_1 then Least_Sig_Int := Least_Sig_Int + Alt * (L_Vec (J) + Carry); else Least_Sig_Int := Least_Sig_Int + Alt * Carry; end if; if Least_Sig_Int >= Base then Least_Sig_Int := Least_Sig_Int - Base; Most_Sig_Int := Most_Sig_Int + Alt * 1; elsif Least_Sig_Int <= -Base then Least_Sig_Int := Least_Sig_Int + Base; Most_Sig_Int := Most_Sig_Int + Alt * (-1); end if; if Most_Sig_Int >= Base then Most_Sig_Int := Most_Sig_Int - Base; Alt := Alt * Sign; Least_Sig_Int := Least_Sig_Int + Alt * 1; -- cannot overflow again elsif Most_Sig_Int <= -Base then Most_Sig_Int := Most_Sig_Int + Base; Alt := Alt * Sign; Least_Sig_Int := Least_Sig_Int + Alt * (-1); -- cannot overflow again. end if; return Most_Sig_Int * Base + Least_Sig_Int; end; end if; end Sum_Double_Digits; --------------- -- Tree_Read -- --------------- procedure Tree_Read is begin Uints.Tree_Read; Udigits.Tree_Read; Tree_Read_Int (Int (Uint_Int_First)); Tree_Read_Int (Int (Uint_Int_Last)); Tree_Read_Int (UI_Power_2_Set); Tree_Read_Int (UI_Power_10_Set); Tree_Read_Int (Int (Uints_Min)); Tree_Read_Int (Udigits_Min); for J in 0 .. UI_Power_2_Set loop Tree_Read_Int (Int (UI_Power_2 (J))); end loop; for J in 0 .. UI_Power_10_Set loop Tree_Read_Int (Int (UI_Power_10 (J))); end loop; end Tree_Read; ---------------- -- Tree_Write -- ---------------- procedure Tree_Write is begin Uints.Tree_Write; Udigits.Tree_Write; Tree_Write_Int (Int (Uint_Int_First)); Tree_Write_Int (Int (Uint_Int_Last)); Tree_Write_Int (UI_Power_2_Set); Tree_Write_Int (UI_Power_10_Set); Tree_Write_Int (Int (Uints_Min)); Tree_Write_Int (Udigits_Min); for J in 0 .. UI_Power_2_Set loop Tree_Write_Int (Int (UI_Power_2 (J))); end loop; for J in 0 .. UI_Power_10_Set loop Tree_Write_Int (Int (UI_Power_10 (J))); end loop; end Tree_Write; ------------- -- UI_Abs -- ------------- function UI_Abs (Right : Uint) return Uint is begin if Right < Uint_0 then return -Right; else return Right; end if; end UI_Abs; ------------- -- UI_Add -- ------------- function UI_Add (Left : Int; Right : Uint) return Uint is begin return UI_Add (UI_From_Int (Left), Right); end UI_Add; function UI_Add (Left : Uint; Right : Int) return Uint is begin return UI_Add (Left, UI_From_Int (Right)); end UI_Add; function UI_Add (Left : Uint; Right : Uint) return Uint is begin -- Simple cases of direct operands and addition of zero if Direct (Left) then if Direct (Right) then return UI_From_Int (Direct_Val (Left) + Direct_Val (Right)); elsif Int (Left) = Int (Uint_0) then return Right; end if; elsif Direct (Right) and then Int (Right) = Int (Uint_0) then return Left; end if; -- Otherwise full circuit is needed declare L_Length : Int := N_Digits (Left); R_Length : Int := N_Digits (Right); L_Vec : UI_Vector (1 .. L_Length); R_Vec : UI_Vector (1 .. R_Length); Sum_Length : Int; Tmp_Int : Int; Carry : Int; Borrow : Int; X_Bigger : Boolean := False; Y_Bigger : Boolean := False; Result_Neg : Boolean := False; begin Init_Operand (Left, L_Vec); Init_Operand (Right, R_Vec); -- At least one of the two operands is in multi-digit form. -- Calculate the number of digits sufficient to hold result. if L_Length > R_Length then Sum_Length := L_Length + 1; X_Bigger := True; else Sum_Length := R_Length + 1; if R_Length > L_Length then Y_Bigger := True; end if; end if; -- Make copies of the absolute values of L_Vec and R_Vec into -- X and Y both with lengths equal to the maximum possibly -- needed. This makes looping over the digits much simpler. declare X : UI_Vector (1 .. Sum_Length); Y : UI_Vector (1 .. Sum_Length); Tmp_UI : UI_Vector (1 .. Sum_Length); begin for J in 1 .. Sum_Length - L_Length loop X (J) := 0; end loop; X (Sum_Length - L_Length + 1) := abs L_Vec (1); for J in 2 .. L_Length loop X (J + (Sum_Length - L_Length)) := L_Vec (J); end loop; for J in 1 .. Sum_Length - R_Length loop Y (J) := 0; end loop; Y (Sum_Length - R_Length + 1) := abs R_Vec (1); for J in 2 .. R_Length loop Y (J + (Sum_Length - R_Length)) := R_Vec (J); end loop; if (L_Vec (1) < Int_0) = (R_Vec (1) < Int_0) then -- Same sign so just add Carry := 0; for J in reverse 1 .. Sum_Length loop Tmp_Int := X (J) + Y (J) + Carry; if Tmp_Int >= Base then Tmp_Int := Tmp_Int - Base; Carry := 1; else Carry := 0; end if; X (J) := Tmp_Int; end loop; return Vector_To_Uint (X, L_Vec (1) < Int_0); else -- Find which one has bigger magnitude if not (X_Bigger or Y_Bigger) then for J in L_Vec'Range loop if abs L_Vec (J) > abs R_Vec (J) then X_Bigger := True; exit; elsif abs R_Vec (J) > abs L_Vec (J) then Y_Bigger := True; exit; end if; end loop; end if; -- If they have identical magnitude, just return 0, else -- swap if necessary so that X had the bigger magnitude. -- Determine if result is negative at this time. Result_Neg := False; if not (X_Bigger or Y_Bigger) then return Uint_0; elsif Y_Bigger then if R_Vec (1) < Int_0 then Result_Neg := True; end if; Tmp_UI := X; X := Y; Y := Tmp_UI; else if L_Vec (1) < Int_0 then Result_Neg := True; end if; end if; -- Subtract Y from the bigger X Borrow := 0; for J in reverse 1 .. Sum_Length loop Tmp_Int := X (J) - Y (J) + Borrow; if Tmp_Int < Int_0 then Tmp_Int := Tmp_Int + Base; Borrow := -1; else Borrow := 0; end if; X (J) := Tmp_Int; end loop; return Vector_To_Uint (X, Result_Neg); end if; end; end; end UI_Add; -------------------------- -- UI_Decimal_Digits_Hi -- -------------------------- function UI_Decimal_Digits_Hi (U : Uint) return Nat is begin -- The maximum value of a "digit" is 32767, which is 5 decimal -- digits, so an N_Digit number could take up to 5 times this -- number of digits. This is certainly too high for large -- numbers but it is not worth worrying about. return 5 * N_Digits (U); end UI_Decimal_Digits_Hi; -------------------------- -- UI_Decimal_Digits_Lo -- -------------------------- function UI_Decimal_Digits_Lo (U : Uint) return Nat is begin -- The maximum value of a "digit" is 32767, which is more than four -- decimal digits, but not a full five digits. The easily computed -- minimum number of decimal digits is thus 1 + 4 * the number of -- digits. This is certainly too low for large numbers but it is -- not worth worrying about. return 1 + 4 * (N_Digits (U) - 1); end UI_Decimal_Digits_Lo; ------------ -- UI_Div -- ------------ function UI_Div (Left : Int; Right : Uint) return Uint is begin return UI_Div (UI_From_Int (Left), Right); end UI_Div; function UI_Div (Left : Uint; Right : Int) return Uint is begin return UI_Div (Left, UI_From_Int (Right)); end UI_Div; function UI_Div (Left, Right : Uint) return Uint is begin pragma Assert (Right /= Uint_0); -- Cases where both operands are represented directly if Direct (Left) and then Direct (Right) then return UI_From_Int (Direct_Val (Left) / Direct_Val (Right)); end if; declare L_Length : constant Int := N_Digits (Left); R_Length : constant Int := N_Digits (Right); Q_Length : constant Int := L_Length - R_Length + 1; L_Vec : UI_Vector (1 .. L_Length); R_Vec : UI_Vector (1 .. R_Length); D : Int; Remainder : Int; Tmp_Divisor : Int; Carry : Int; Tmp_Int : Int; Tmp_Dig : Int; begin -- Result is zero if left operand is shorter than right if L_Length < R_Length then return Uint_0; end if; Init_Operand (Left, L_Vec); Init_Operand (Right, R_Vec); -- Case of right operand is single digit. Here we can simply divide -- each digit of the left operand by the divisor, from most to least -- significant, carrying the remainder to the next digit (just like -- ordinary long division by hand). if R_Length = Int_1 then Remainder := 0; Tmp_Divisor := abs R_Vec (1); declare Quotient : UI_Vector (1 .. L_Length); begin for J in L_Vec'Range loop Tmp_Int := Remainder * Base + abs L_Vec (J); Quotient (J) := Tmp_Int / Tmp_Divisor; Remainder := Tmp_Int rem Tmp_Divisor; end loop; return Vector_To_Uint (Quotient, (L_Vec (1) < Int_0 xor R_Vec (1) < Int_0)); end; end if; -- The possible simple cases have been exhausted. Now turn to the -- algorithm D from the section of Knuth mentioned at the top of -- this package. Algorithm_D : declare Dividend : UI_Vector (1 .. L_Length + 1); Divisor : UI_Vector (1 .. R_Length); Quotient : UI_Vector (1 .. Q_Length); Divisor_Dig1 : Int; Divisor_Dig2 : Int; Q_Guess : Int; begin -- [ NORMALIZE ] (step D1 in the algorithm). First calculate the -- scale d, and then multiply Left and Right (u and v in the book) -- by d to get the dividend and divisor to work with. D := Base / (abs R_Vec (1) + 1); Dividend (1) := 0; Dividend (2) := abs L_Vec (1); for J in 3 .. L_Length + Int_1 loop Dividend (J) := L_Vec (J - 1); end loop; Divisor (1) := abs R_Vec (1); for J in Int_2 .. R_Length loop Divisor (J) := R_Vec (J); end loop; if D > Int_1 then -- Multiply Dividend by D Carry := 0; for J in reverse Dividend'Range loop Tmp_Int := Dividend (J) * D + Carry; Dividend (J) := Tmp_Int rem Base; Carry := Tmp_Int / Base; end loop; -- Multiply Divisor by d. Carry := 0; for J in reverse Divisor'Range loop Tmp_Int := Divisor (J) * D + Carry; Divisor (J) := Tmp_Int rem Base; Carry := Tmp_Int / Base; end loop; end if; -- Main loop of long division algorithm. Divisor_Dig1 := Divisor (1); Divisor_Dig2 := Divisor (2); for J in Quotient'Range loop -- [ CALCULATE Q (hat) ] (step D3 in the algorithm). Tmp_Int := Dividend (J) * Base + Dividend (J + 1); -- Initial guess if Dividend (J) = Divisor_Dig1 then Q_Guess := Base - 1; else Q_Guess := Tmp_Int / Divisor_Dig1; end if; -- Refine the guess while Divisor_Dig2 * Q_Guess > (Tmp_Int - Q_Guess * Divisor_Dig1) * Base + Dividend (J + 2) loop Q_Guess := Q_Guess - 1; end loop; -- [ MULTIPLY & SUBTRACT] (step D4). Q_Guess * Divisor is -- subtracted from the remaining dividend. Carry := 0; for K in reverse Divisor'Range loop Tmp_Int := Dividend (J + K) - Q_Guess * Divisor (K) + Carry; Tmp_Dig := Tmp_Int rem Base; Carry := Tmp_Int / Base; if Tmp_Dig < Int_0 then Tmp_Dig := Tmp_Dig + Base; Carry := Carry - 1; end if; Dividend (J + K) := Tmp_Dig; end loop; Dividend (J) := Dividend (J) + Carry; -- [ TEST REMAINDER ] & [ ADD BACK ] (steps D5 and D6) -- Here there is a slight difference from the book: the last -- carry is always added in above and below (cancelling each -- other). In fact the dividend going negative is used as -- the test. -- If the Dividend went negative, then Q_Guess was off by -- one, so it is decremented, and the divisor is added back -- into the relevant portion of the dividend. if Dividend (J) < Int_0 then Q_Guess := Q_Guess - 1; Carry := 0; for K in reverse Divisor'Range loop Tmp_Int := Dividend (J + K) + Divisor (K) + Carry; if Tmp_Int >= Base then Tmp_Int := Tmp_Int - Base; Carry := 1; else Carry := 0; end if; Dividend (J + K) := Tmp_Int; end loop; Dividend (J) := Dividend (J) + Carry; end if; -- Finally we can get the next quotient digit Quotient (J) := Q_Guess; end loop; return Vector_To_Uint (Quotient, (L_Vec (1) < Int_0 xor R_Vec (1) < Int_0)); end Algorithm_D; end; end UI_Div; ------------ -- UI_Eq -- ------------ function UI_Eq (Left : Int; Right : Uint) return Boolean is begin return not UI_Ne (UI_From_Int (Left), Right); end UI_Eq; function UI_Eq (Left : Uint; Right : Int) return Boolean is begin return not UI_Ne (Left, UI_From_Int (Right)); end UI_Eq; function UI_Eq (Left : Uint; Right : Uint) return Boolean is begin return not UI_Ne (Left, Right); end UI_Eq; -------------- -- UI_Expon -- -------------- function UI_Expon (Left : Int; Right : Uint) return Uint is begin return UI_Expon (UI_From_Int (Left), Right); end UI_Expon; function UI_Expon (Left : Uint; Right : Int) return Uint is begin return UI_Expon (Left, UI_From_Int (Right)); end UI_Expon; function UI_Expon (Left : Int; Right : Int) return Uint is begin return UI_Expon (UI_From_Int (Left), UI_From_Int (Right)); end UI_Expon; function UI_Expon (Left : Uint; Right : Uint) return Uint is begin pragma Assert (Right >= Uint_0); -- Any value raised to power of 0 is 1 if Right = Uint_0 then return Uint_1; -- 0 to any positive power is 0. elsif Left = Uint_0 then return Uint_0; -- 1 to any power is 1 elsif Left = Uint_1 then return Uint_1; -- Any value raised to power of 1 is that value elsif Right = Uint_1 then return Left; -- Cases which can be done by table lookup elsif Right <= Uint_64 then -- 2 ** N for N in 2 .. 64 if Left = Uint_2 then declare Right_Int : constant Int := Direct_Val (Right); begin if Right_Int > UI_Power_2_Set then for J in UI_Power_2_Set + Int_1 .. Right_Int loop UI_Power_2 (J) := UI_Power_2 (J - Int_1) * Int_2; Uints_Min := Uints.Last; Udigits_Min := Udigits.Last; end loop; UI_Power_2_Set := Right_Int; end if; return UI_Power_2 (Right_Int); end; -- 10 ** N for N in 2 .. 64 elsif Left = Uint_10 then declare Right_Int : constant Int := Direct_Val (Right); begin if Right_Int > UI_Power_10_Set then for J in UI_Power_10_Set + Int_1 .. Right_Int loop UI_Power_10 (J) := UI_Power_10 (J - Int_1) * Int (10); Uints_Min := Uints.Last; Udigits_Min := Udigits.Last; end loop; UI_Power_10_Set := Right_Int; end if; return UI_Power_10 (Right_Int); end; end if; end if; -- If we fall through, then we have the general case (see Knuth 4.6.3) declare N : Uint := Right; Squares : Uint := Left; Result : Uint := Uint_1; M : constant Uintp.Save_Mark := Uintp.Mark; begin loop if (Least_Sig_Digit (N) mod Int_2) = Int_1 then Result := Result * Squares; end if; N := N / Uint_2; exit when N = Uint_0; Squares := Squares * Squares; end loop; Uintp.Release_And_Save (M, Result); return Result; end; end UI_Expon; ------------------ -- UI_From_Dint -- ------------------ function UI_From_Dint (Input : Dint) return Uint is begin if Dint (Min_Direct) <= Input and then Input <= Dint (Max_Direct) then return Uint (Dint (Uint_Direct_Bias) + Input); -- For values of larger magnitude, compute digits into a vector and -- call Vector_To_Uint. else declare Max_For_Dint : constant := 5; -- Base is defined so that 5 Uint digits is sufficient -- to hold the largest possible Dint value. V : UI_Vector (1 .. Max_For_Dint); Temp_Integer : Dint; begin for J in V'Range loop V (J) := 0; end loop; Temp_Integer := Input; for J in reverse V'Range loop V (J) := Int (abs (Temp_Integer rem Dint (Base))); Temp_Integer := Temp_Integer / Dint (Base); end loop; return Vector_To_Uint (V, Input < Dint'(0)); end; end if; end UI_From_Dint; ----------------- -- UI_From_Int -- ----------------- function UI_From_Int (Input : Int) return Uint is begin if Min_Direct <= Input and then Input <= Max_Direct then return Uint (Int (Uint_Direct_Bias) + Input); -- For values of larger magnitude, compute digits into a vector and -- call Vector_To_Uint. else declare Max_For_Int : constant := 3; -- Base is defined so that 3 Uint digits is sufficient -- to hold the largest possible Int value. V : UI_Vector (1 .. Max_For_Int); Temp_Integer : Int; begin for J in V'Range loop V (J) := 0; end loop; Temp_Integer := Input; for J in reverse V'Range loop V (J) := abs (Temp_Integer rem Base); Temp_Integer := Temp_Integer / Base; end loop; return Vector_To_Uint (V, Input < Int_0); end; end if; end UI_From_Int; ------------ -- UI_GCD -- ------------ -- Lehmer's algorithm for GCD. -- The idea is to avoid using multiple precision arithmetic wherever -- possible, substituting Int arithmetic instead. See Knuth volume II, -- Algorithm L (page 329). -- We use the same notation as Knuth (U_Hat standing for the obvious!) function UI_GCD (Uin, Vin : Uint) return Uint is U, V : Uint; -- Copies of Uin and Vin U_Hat, V_Hat : Int; -- The most Significant digits of U,V A, B, C, D, T, Q, Den1, Den2 : Int; Tmp_UI : Uint; Marks : constant Uintp.Save_Mark := Uintp.Mark; Iterations : Integer := 0; begin pragma Assert (Uin >= Vin); pragma Assert (Vin >= Uint_0); U := Uin; V := Vin; loop Iterations := Iterations + 1; if Direct (V) then if V = Uint_0 then return U; else return UI_From_Int (GCD (Direct_Val (V), UI_To_Int (U rem V))); end if; end if; Most_Sig_2_Digits (U, V, U_Hat, V_Hat); A := 1; B := 0; C := 0; D := 1; loop -- We might overflow and get division by zero here. This just -- means we can not take the single precision step Den1 := V_Hat + C; Den2 := V_Hat + D; exit when (Den1 * Den2) = Int_0; -- Compute Q, the trial quotient Q := (U_Hat + A) / Den1; exit when Q /= ((U_Hat + B) / Den2); -- A single precision step Euclid step will give same answer as -- a multiprecision one. T := A - (Q * C); A := C; C := T; T := B - (Q * D); B := D; D := T; T := U_Hat - (Q * V_Hat); U_Hat := V_Hat; V_Hat := T; end loop; -- Take a multiprecision Euclid step if B = Int_0 then -- No single precision steps take a regular Euclid step. Tmp_UI := U rem V; U := V; V := Tmp_UI; else -- Use prior single precision steps to compute this Euclid step. -- Fixed bug 1415-008 spends 80% of its time working on this -- step. Perhaps we need a special case Int / Uint dot -- product to speed things up. ??? -- Alternatively we could increase the single precision -- iterations to handle Uint's of some small size ( <5 -- digits?). Then we would have more iterations on small Uint. -- Fixed bug 1415-008 only gets 5 (on average) single -- precision iterations per large iteration. ??? Tmp_UI := (UI_From_Int (A) * U) + (UI_From_Int (B) * V); V := (UI_From_Int (C) * U) + (UI_From_Int (D) * V); U := Tmp_UI; end if; -- If the operands are very different in magnitude, the loop -- will generate large amounts of short-lived data, which it is -- worth removing periodically. if Iterations > 100 then Release_And_Save (Marks, U, V); Iterations := 0; end if; end loop; end UI_GCD; ------------ -- UI_Ge -- ------------ function UI_Ge (Left : Int; Right : Uint) return Boolean is begin return not UI_Lt (UI_From_Int (Left), Right); end UI_Ge; function UI_Ge (Left : Uint; Right : Int) return Boolean is begin return not UI_Lt (Left, UI_From_Int (Right)); end UI_Ge; function UI_Ge (Left : Uint; Right : Uint) return Boolean is begin return not UI_Lt (Left, Right); end UI_Ge; ------------ -- UI_Gt -- ------------ function UI_Gt (Left : Int; Right : Uint) return Boolean is begin return UI_Lt (Right, UI_From_Int (Left)); end UI_Gt; function UI_Gt (Left : Uint; Right : Int) return Boolean is begin return UI_Lt (UI_From_Int (Right), Left); end UI_Gt; function UI_Gt (Left : Uint; Right : Uint) return Boolean is begin return UI_Lt (Right, Left); end UI_Gt; --------------- -- UI_Image -- --------------- procedure UI_Image (Input : Uint; Format : UI_Format := Auto) is begin Image_Out (Input, True, Format); end UI_Image; ------------------------- -- UI_Is_In_Int_Range -- ------------------------- function UI_Is_In_Int_Range (Input : Uint) return Boolean is begin -- Make sure we don't get called before Initialize pragma Assert (Uint_Int_First /= Uint_0); if Direct (Input) then return True; else return Input >= Uint_Int_First and then Input <= Uint_Int_Last; end if; end UI_Is_In_Int_Range; ------------ -- UI_Le -- ------------ function UI_Le (Left : Int; Right : Uint) return Boolean is begin return not UI_Lt (Right, UI_From_Int (Left)); end UI_Le; function UI_Le (Left : Uint; Right : Int) return Boolean is begin return not UI_Lt (UI_From_Int (Right), Left); end UI_Le; function UI_Le (Left : Uint; Right : Uint) return Boolean is begin return not UI_Lt (Right, Left); end UI_Le; ------------ -- UI_Lt -- ------------ function UI_Lt (Left : Int; Right : Uint) return Boolean is begin return UI_Lt (UI_From_Int (Left), Right); end UI_Lt; function UI_Lt (Left : Uint; Right : Int) return Boolean is begin return UI_Lt (Left, UI_From_Int (Right)); end UI_Lt; function UI_Lt (Left : Uint; Right : Uint) return Boolean is begin -- Quick processing for identical arguments if Int (Left) = Int (Right) then return False; -- Quick processing for both arguments directly represented elsif Direct (Left) and then Direct (Right) then return Int (Left) < Int (Right); -- At least one argument is more than one digit long else declare L_Length : constant Int := N_Digits (Left); R_Length : constant Int := N_Digits (Right); L_Vec : UI_Vector (1 .. L_Length); R_Vec : UI_Vector (1 .. R_Length); begin Init_Operand (Left, L_Vec); Init_Operand (Right, R_Vec); if L_Vec (1) < Int_0 then -- First argument negative, second argument non-negative if R_Vec (1) >= Int_0 then return True; -- Both arguments negative else if L_Length /= R_Length then return L_Length > R_Length; elsif L_Vec (1) /= R_Vec (1) then return L_Vec (1) < R_Vec (1); else for J in 2 .. L_Vec'Last loop if L_Vec (J) /= R_Vec (J) then return L_Vec (J) > R_Vec (J); end if; end loop; return False; end if; end if; else -- First argument non-negative, second argument negative if R_Vec (1) < Int_0 then return False; -- Both arguments non-negative else if L_Length /= R_Length then return L_Length < R_Length; else for J in L_Vec'Range loop if L_Vec (J) /= R_Vec (J) then return L_Vec (J) < R_Vec (J); end if; end loop; return False; end if; end if; end if; end; end if; end UI_Lt; ------------ -- UI_Max -- ------------ function UI_Max (Left : Int; Right : Uint) return Uint is begin return UI_Max (UI_From_Int (Left), Right); end UI_Max; function UI_Max (Left : Uint; Right : Int) return Uint is begin return UI_Max (Left, UI_From_Int (Right)); end UI_Max; function UI_Max (Left : Uint; Right : Uint) return Uint is begin if Left >= Right then return Left; else return Right; end if; end UI_Max; ------------ -- UI_Min -- ------------ function UI_Min (Left : Int; Right : Uint) return Uint is begin return UI_Min (UI_From_Int (Left), Right); end UI_Min; function UI_Min (Left : Uint; Right : Int) return Uint is begin return UI_Min (Left, UI_From_Int (Right)); end UI_Min; function UI_Min (Left : Uint; Right : Uint) return Uint is begin if Left <= Right then return Left; else return Right; end if; end UI_Min; ------------- -- UI_Mod -- ------------- function UI_Mod (Left : Int; Right : Uint) return Uint is begin return UI_Mod (UI_From_Int (Left), Right); end UI_Mod; function UI_Mod (Left : Uint; Right : Int) return Uint is begin return UI_Mod (Left, UI_From_Int (Right)); end UI_Mod; function UI_Mod (Left : Uint; Right : Uint) return Uint is Urem : constant Uint := Left rem Right; begin if (Left < Uint_0) = (Right < Uint_0) or else Urem = Uint_0 then return Urem; else return Right + Urem; end if; end UI_Mod; ------------ -- UI_Mul -- ------------ function UI_Mul (Left : Int; Right : Uint) return Uint is begin return UI_Mul (UI_From_Int (Left), Right); end UI_Mul; function UI_Mul (Left : Uint; Right : Int) return Uint is begin return UI_Mul (Left, UI_From_Int (Right)); end UI_Mul; function UI_Mul (Left : Uint; Right : Uint) return Uint is begin -- Simple case of single length operands if Direct (Left) and then Direct (Right) then return UI_From_Dint (Dint (Direct_Val (Left)) * Dint (Direct_Val (Right))); end if; -- Otherwise we have the general case (Algorithm M in Knuth) declare L_Length : constant Int := N_Digits (Left); R_Length : constant Int := N_Digits (Right); L_Vec : UI_Vector (1 .. L_Length); R_Vec : UI_Vector (1 .. R_Length); Neg : Boolean; begin Init_Operand (Left, L_Vec); Init_Operand (Right, R_Vec); Neg := (L_Vec (1) < Int_0) xor (R_Vec (1) < Int_0); L_Vec (1) := abs (L_Vec (1)); R_Vec (1) := abs (R_Vec (1)); Algorithm_M : declare Product : UI_Vector (1 .. L_Length + R_Length); Tmp_Sum : Int; Carry : Int; begin for J in Product'Range loop Product (J) := 0; end loop; for J in reverse R_Vec'Range loop Carry := 0; for K in reverse L_Vec'Range loop Tmp_Sum := L_Vec (K) * R_Vec (J) + Product (J + K) + Carry; Product (J + K) := Tmp_Sum rem Base; Carry := Tmp_Sum / Base; end loop; Product (J) := Carry; end loop; return Vector_To_Uint (Product, Neg); end Algorithm_M; end; end UI_Mul; ------------ -- UI_Ne -- ------------ function UI_Ne (Left : Int; Right : Uint) return Boolean is begin return UI_Ne (UI_From_Int (Left), Right); end UI_Ne; function UI_Ne (Left : Uint; Right : Int) return Boolean is begin return UI_Ne (Left, UI_From_Int (Right)); end UI_Ne; function UI_Ne (Left : Uint; Right : Uint) return Boolean is begin -- Quick processing for identical arguments. Note that this takes -- care of the case of two No_Uint arguments. if Int (Left) = Int (Right) then return False; end if; -- See if left operand directly represented if Direct (Left) then -- If right operand directly represented then compare if Direct (Right) then return Int (Left) /= Int (Right); -- Left operand directly represented, right not, must be unequal else return True; end if; -- Right operand directly represented, left not, must be unequal elsif Direct (Right) then return True; end if; -- Otherwise both multi-word, do comparison declare Size : constant Int := N_Digits (Left); Left_Loc : Int; Right_Loc : Int; begin if Size /= N_Digits (Right) then return True; end if; Left_Loc := Uints.Table (Left).Loc; Right_Loc := Uints.Table (Right).Loc; for J in Int_0 .. Size - Int_1 loop if Udigits.Table (Left_Loc + J) /= Udigits.Table (Right_Loc + J) then return True; end if; end loop; return False; end; end UI_Ne; ---------------- -- UI_Negate -- ---------------- function UI_Negate (Right : Uint) return Uint is begin -- Case where input is directly represented. Note that since the -- range of Direct values is non-symmetrical, the result may not -- be directly represented, this is taken care of in UI_From_Int. if Direct (Right) then return UI_From_Int (-Direct_Val (Right)); -- Full processing for multi-digit case. Note that we cannot just -- copy the value to the end of the table negating the first digit, -- since the range of Direct values is non-symmetrical, so we can -- have a negative value that is not Direct whose negation can be -- represented directly. else declare R_Length : constant Int := N_Digits (Right); R_Vec : UI_Vector (1 .. R_Length); Neg : Boolean; begin Init_Operand (Right, R_Vec); Neg := R_Vec (1) > Int_0; R_Vec (1) := abs R_Vec (1); return Vector_To_Uint (R_Vec, Neg); end; end if; end UI_Negate; ------------- -- UI_Rem -- ------------- function UI_Rem (Left : Int; Right : Uint) return Uint is begin return UI_Rem (UI_From_Int (Left), Right); end UI_Rem; function UI_Rem (Left : Uint; Right : Int) return Uint is begin return UI_Rem (Left, UI_From_Int (Right)); end UI_Rem; function UI_Rem (Left, Right : Uint) return Uint is Sign : Int; Tmp : Int; subtype Int1_12 is Integer range 1 .. 12; begin pragma Assert (Right /= Uint_0); if Direct (Right) then if Direct (Left) then return UI_From_Int (Direct_Val (Left) rem Direct_Val (Right)); else -- Special cases when Right is less than 13 and Left is larger -- larger than one digit. All of these algorithms depend on the -- base being 2 ** 15 We work with Abs (Left) and Abs(Right) -- then multiply result by Sign (Left) if (Right <= Uint_12) and then (Right >= Uint_Minus_12) then if (Left < Uint_0) then Sign := -1; else Sign := 1; end if; -- All cases are listed, grouped by mathematical method -- It is not inefficient to do have this case list out -- of order since GCC sorts the cases we list. case Int1_12 (abs (Direct_Val (Right))) is when 1 => return Uint_0; -- Powers of two are simple AND's with LS Left Digit -- GCC will recognise these constants as powers of 2 -- and replace the rem with simpler operations where -- possible. -- Least_Sig_Digit might return Negative numbers. when 2 => return UI_From_Int ( Sign * (Least_Sig_Digit (Left) mod 2)); when 4 => return UI_From_Int ( Sign * (Least_Sig_Digit (Left) mod 4)); when 8 => return UI_From_Int ( Sign * (Least_Sig_Digit (Left) mod 8)); -- Some number theoretical tricks: -- If B Rem Right = 1 then -- Left Rem Right = Sum_Of_Digits_Base_B (Left) Rem Right -- Note: 2^32 mod 3 = 1 when 3 => return UI_From_Int ( Sign * (Sum_Double_Digits (Left, 1) rem Int (3))); -- Note: 2^15 mod 7 = 1 when 7 => return UI_From_Int ( Sign * (Sum_Digits (Left, 1) rem Int (7))); -- Note: 2^32 mod 5 = -1 -- Alternating sums might be negative, but rem is always -- positive hence we must use mod here. when 5 => Tmp := Sum_Double_Digits (Left, -1) mod Int (5); return UI_From_Int (Sign * Tmp); -- Note: 2^15 mod 9 = -1 -- Alternating sums might be negative, but rem is always -- positive hence we must use mod here. when 9 => Tmp := Sum_Digits (Left, -1) mod Int (9); return UI_From_Int (Sign * Tmp); -- Note: 2^15 mod 11 = -1 -- Alternating sums might be negative, but rem is always -- positive hence we must use mod here. when 11 => Tmp := Sum_Digits (Left, -1) mod Int (11); return UI_From_Int (Sign * Tmp); -- Now resort to Chinese Remainder theorem -- to reduce 6, 10, 12 to previous special cases -- There is no reason we could not add more cases -- like these if it proves useful. -- Perhaps we should go up to 16, however -- I have no "trick" for 13. -- To find u mod m we: -- Pick m1, m2 S.T. -- GCD(m1, m2) = 1 AND m = (m1 * m2). -- Next we pick (Basis) M1, M2 small S.T. -- (M1 mod m1) = (M2 mod m2) = 1 AND -- (M1 mod m2) = (M2 mod m1) = 0 -- So u mod m = (u1 * M1 + u2 * M2) mod m -- Where u1 = (u mod m1) AND u2 = (u mod m2); -- Under typical circumstances the last mod m -- can be done with a (possible) single subtraction. -- m1 = 2; m2 = 3; M1 = 3; M2 = 4; when 6 => Tmp := 3 * (Least_Sig_Digit (Left) rem 2) + 4 * (Sum_Double_Digits (Left, 1) rem 3); return UI_From_Int (Sign * (Tmp rem 6)); -- m1 = 2; m2 = 5; M1 = 5; M2 = 6; when 10 => Tmp := 5 * (Least_Sig_Digit (Left) rem 2) + 6 * (Sum_Double_Digits (Left, -1) mod 5); return UI_From_Int (Sign * (Tmp rem 10)); -- m1 = 3; m2 = 4; M1 = 4; M2 = 9; when 12 => Tmp := 4 * (Sum_Double_Digits (Left, 1) rem 3) + 9 * (Least_Sig_Digit (Left) rem 4); return UI_From_Int (Sign * (Tmp rem 12)); end case; end if; -- Else fall through to general case. -- ???This needs to be improved. We have the Rem when we do the -- Div. Div throws it away! -- The special case Length (Left) = Length(right) = 1 in Div -- looks slow. It uses UI_To_Int when Int should suffice. ??? end if; end if; return Left - (Left / Right) * Right; end UI_Rem; ------------ -- UI_Sub -- ------------ function UI_Sub (Left : Int; Right : Uint) return Uint is begin return UI_Add (Left, -Right); end UI_Sub; function UI_Sub (Left : Uint; Right : Int) return Uint is begin return UI_Add (Left, -Right); end UI_Sub; function UI_Sub (Left : Uint; Right : Uint) return Uint is begin if Direct (Left) and then Direct (Right) then return UI_From_Int (Direct_Val (Left) - Direct_Val (Right)); else return UI_Add (Left, -Right); end if; end UI_Sub; ---------------- -- UI_To_Int -- ---------------- function UI_To_Int (Input : Uint) return Int is begin if Direct (Input) then return Direct_Val (Input); -- Case of input is more than one digit else declare In_Length : constant Int := N_Digits (Input); In_Vec : UI_Vector (1 .. In_Length); Ret_Int : Int; begin -- Uints of more than one digit could be outside the range for -- Ints. Caller should have checked for this if not certain. -- Fatal error to attempt to convert from value outside Int'Range. pragma Assert (UI_Is_In_Int_Range (Input)); -- Otherwise, proceed ahead, we are OK Init_Operand (Input, In_Vec); Ret_Int := 0; -- Calculate -|Input| and then negates if value is positive. -- This handles our current definition of Int (based on -- 2s complement). Is it secure enough? for Idx in In_Vec'Range loop Ret_Int := Ret_Int * Base - abs In_Vec (Idx); end loop; if In_Vec (1) < Int_0 then return Ret_Int; else return -Ret_Int; end if; end; end if; end UI_To_Int; -------------- -- UI_Write -- -------------- procedure UI_Write (Input : Uint; Format : UI_Format := Auto) is begin Image_Out (Input, False, Format); end UI_Write; --------------------- -- Vector_To_Uint -- --------------------- function Vector_To_Uint (In_Vec : UI_Vector; Negative : Boolean) return Uint is Size : Int; Val : Int; begin -- The vector can contain leading zeros. These are not stored in the -- table, so loop through the vector looking for first non-zero digit for J in In_Vec'Range loop if In_Vec (J) /= Int_0 then -- The length of the value is the length of the rest of the vector Size := In_Vec'Last - J + 1; -- One digit value can always be represented directly if Size = Int_1 then if Negative then return Uint (Int (Uint_Direct_Bias) - In_Vec (J)); else return Uint (Int (Uint_Direct_Bias) + In_Vec (J)); end if; -- Positive two digit values may be in direct representation range elsif Size = Int_2 and then not Negative then Val := In_Vec (J) * Base + In_Vec (J + 1); if Val <= Max_Direct then return Uint (Int (Uint_Direct_Bias) + Val); end if; end if; -- The value is outside the direct representation range and -- must therefore be stored in the table. Expand the table -- to contain the count and tigis. The index of the new table -- entry will be returned as the result. Uints.Increment_Last; Uints.Table (Uints.Last).Length := Size; Uints.Table (Uints.Last).Loc := Udigits.Last + 1; Udigits.Increment_Last; if Negative then Udigits.Table (Udigits.Last) := -In_Vec (J); else Udigits.Table (Udigits.Last) := +In_Vec (J); end if; for K in 2 .. Size loop Udigits.Increment_Last; Udigits.Table (Udigits.Last) := In_Vec (J + K - 1); end loop; return Uints.Last; end if; end loop; -- Dropped through loop only if vector contained all zeros return Uint_0; end Vector_To_Uint; end Uintp;
package Loop_Optimization8_Pkg2 is type Array_T is array (Natural range <>) of Integer; type Obj_T (Length : Natural) is record Elements : Array_T (1 .. Length); end record; type T is access Obj_T; function Length (Set : T) return Natural; function Index (Set : T; Position : Natural) return Integer; pragma Inline (Length, Index); end Loop_Optimization8_Pkg2;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- Based on ft6x06.h from MCD Application Team with Ada.Real_Time; use Ada.Real_Time; with Ada.Unchecked_Conversion; with STM32.Board; use STM32.Board; with STM32.Device; use STM32.Device; with STM32.I2C; use STM32.I2C; with STM32.Setup; -- with STM32.GPIO; use STM32.GPIO; with HAL.Touch_Panel; use HAL.Touch_Panel; with FT6x06; use FT6x06; package body Touch_Panel_FT6x06 is procedure TP_Init_Pins; -- Initializes the Touch Panel GPIO pins --------------- -- Init_Pins -- --------------- procedure TP_Init_Pins is begin null; -- Enable_Clock (TP_INT); -- -- Configure_IO (TP_INT, -- (Speed => Speed_50MHz, -- Mode => Mode_In, -- Output_Type => Open_Drain, -- Resistors => Pull_Up)); -- Configure_Trigger (TP_INT, STM32.EXTI.Interrupt_Falling_Edge); -- Lock (TP_INT); end TP_Init_Pins; ---------------- -- Initialize -- ---------------- function Initialize (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation := HAL.Framebuffer.Default) return Boolean is begin TP_Init_Pins; if not TP_I2C.Port_Enabled then STM32.Setup.Setup_I2C_Master (Port => TP_I2C, SDA => TP_I2C_SDA, SCL => TP_I2C_SCL, SDA_AF => TP_I2C_SDA_AF, SCL_AF => TP_I2C_SCL_AF, Clock_Speed => 100_000); end if; -- Wait at least 200ms after power up before accessing the TP registers delay until Clock + Milliseconds (200); if This.Check_Id then This.TP_Set_Use_Interrupts (False); This.Set_Orientation (Orientation); return True; else return False; end if; end Initialize; ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation := HAL.Framebuffer.Default) is begin if not This.Initialize (Orientation) then raise Constraint_Error with "Cannot initialize the touch panel"; end if; end Initialize; --------------------- -- Set_Orientation -- --------------------- procedure Set_Orientation (This : in out Touch_Panel; Orientation : HAL.Framebuffer.Display_Orientation) is begin case Orientation is when HAL.Framebuffer.Default | HAL.Framebuffer.Landscape => This.Set_Bounds (LCD_Natural_Width, LCD_Natural_Height, Invert_Y); when HAL.Framebuffer.Portrait => This.Set_Bounds (LCD_Natural_Width, LCD_Natural_Height, Swap_XY); end case; end Set_Orientation; end Touch_Panel_FT6x06;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S C A N S -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body Scans is ------------------------ -- Restore_Scan_State -- ------------------------ procedure Restore_Scan_State (Saved_State : in Saved_Scan_State) is begin Scan_Ptr := Saved_State.Save_Scan_Ptr; Token := Saved_State.Save_Token; Token_Ptr := Saved_State.Save_Token_Ptr; Current_Line_Start := Saved_State.Save_Current_Line_Start; Start_Column := Saved_State.Save_Start_Column; Checksum := Saved_State.Save_Checksum; First_Non_Blank_Location := Saved_State.Save_First_Non_Blank_Location; Token_Node := Saved_State.Save_Token_Node; Token_Name := Saved_State.Save_Token_Name; Prev_Token := Saved_State.Save_Prev_Token; Prev_Token_Ptr := Saved_State.Save_Prev_Token_Ptr; end Restore_Scan_State; --------------------- -- Save_Scan_State -- --------------------- procedure Save_Scan_State (Saved_State : out Saved_Scan_State) is begin Saved_State.Save_Scan_Ptr := Scan_Ptr; Saved_State.Save_Token := Token; Saved_State.Save_Token_Ptr := Token_Ptr; Saved_State.Save_Current_Line_Start := Current_Line_Start; Saved_State.Save_Start_Column := Start_Column; Saved_State.Save_Checksum := Checksum; Saved_State.Save_First_Non_Blank_Location := First_Non_Blank_Location; Saved_State.Save_Token_Node := Token_Node; Saved_State.Save_Token_Name := Token_Name; Saved_State.Save_Prev_Token := Prev_Token; Saved_State.Save_Prev_Token_Ptr := Prev_Token_Ptr; end Save_Scan_State; end Scans;
with Ada.Containers.Hashed_Maps; with Ada.Strings.Hash; with Ada.Strings.Unbounded; with Ada.Text_IO; -- @description -- This package provide a set of sub-programs to parse and configure environment variable from a file. -- -- Environment variables in file shall have the following format: Key=Value -- The value can be single quoted or doubly quoted. If this is the case, they are removed in the result value. -- Values that contains "\n" (in string format) are converted to Line Feed if it surronded by double quoted. package Dotenv is use Ada.Strings.Unbounded, Ada.Text_IO; function Hash (Key : Unbounded_String) return Ada.Containers.Hash_Type is (Ada.Strings.Hash (To_String (Key))); function Equivalent_Key (Left, Right : Unbounded_String) return Boolean is (Left = Right); package Environment_Variable_Map is new Ada.Containers.Hashed_Maps (Key_Type => Unbounded_String, Element_Type => Unbounded_String, Hash => Hash, Equivalent_Keys => Equivalent_Key); use Environment_Variable_Map; DEFAULT_DEBUG_VALUE : constant Boolean := False; -- The parameter "wcem=8" indicates that we want to open a file in -- UTF-8 format (which can therefore contain accents) DEFAULT_FILE_FORM_VALUE : constant String := "wcem=8"; DEFAULT_FILENAME : constant String := ".env"; DEFAULT_OVERWRITE_VALUE : constant Boolean := False; -- For example, if we have the following environment variables: -- - FIRSTNAME=John -- - LASTNAME=Doe -- - HELLO=Hello ${FIRSTNAME} $LASTNAME -- Then the final value of HELLO will be "Hello John Doe" if Interpolation is True DEFAULT_INTERPOLATE_VALUE : constant Boolean := False; DOTENV_CONFIG_DEBUG : constant String := "DOTENV_CONFIG_DEBUG"; DOTENV_CONFIG_FILE_FORM : constant String := "DOTENV_CONFIG_FILE_FORM"; DOTENV_CONFIG_INTERPOLATE : constant String := "DOTENV_CONFIG_INTERPOLATE"; DOTENV_CONFIG_OVERWRITE : constant String := "DOTENV_CONFIG_OVERWRITE"; DOTENV_CONFIG_PATH : constant String := "DOTENV_CONFIG_PATH"; -- Read a file to find environment variable. -- @param File File to read -- @param Debug True to show debug information, False otherwise. Default: DEFAULT_DEBUG_VALUE -- @return Return a map that contains in key, the environment name, and in value the environment value. function Parse (File : File_Type; Debug : Boolean := DEFAULT_DEBUG_VALUE) return Map; -- Read a file to find environment variable. -- @param Path File to read -- @param Debug True to show debug information, False otherwise. Default to: DEFAULT_DEBUG_VALUE -- @return Return a map that contains in key, the environment name, and in value the environment value. function Parse (Path : String; Debug : Boolean := DEFAULT_DEBUG_VALUE) return Map; -- Interpolate Value using elements provided by Env_Var and Environment Variable. -- For example, if we have the following environment variables: -- - FIRSTNAME=John -- - LASTNAME=Doe -- - HELLO=Hello ${FIRSTNAME} $LASTNAME -- Then the final value of HELLO will be: Hello John Doe -- @param Env_Var Contains element that can be used in interpolation -- @param Value Value to interpolate -- @param Overwrite True to overwrite existing environment variable, False otherwise. -- Default: DEFAULT_OVERWRITE_VALUE -- Example: if we have the following environment variable: -- - GREETING=Hello -- - FIRSTNAME=John -- Env_Var content: -- - FIRSTNAME=Jane -- - LASTNAME=Doe -- And the Value: $GREETING ${FIRSTNAME} $LASTNAME -- If Overwrite is True, then the return will be: Hello Jane Doe -- If Overwrite is False, then the return will be: Hello John Doe -- @return Retuns the interpolated value function Interpolate_Element (Env_Var : Map; Value : String; Overwrite : Boolean) return String; -- Interpolate all values of the given map -- @param Overwrite True to overwrite existing environment variable, False otherwise. -- Default: DEFAULT_OVERWRITE_VALUE -- Example: if we have the following environment variable: -- - GREETING=Hello -- - FIRSTNAME=John -- Env_Var content: -- - FIRSTNAME=Jane -- - LASTNAME=Doe -- And the Value: $GREETING ${FIRSTNAME} $LASTNAME -- If Overwrite is True, then the return will be: Hello Jane Doe -- If Overwrite is False, then the return will be: Hello John Doe procedure Interpolate (Overwrite : Boolean; Debug : Boolean; Env_Var : in out Map); -- Configure environment variables. -- @param Overwrite True to overwrite existing environment variable, False otherwise. -- Default: DEFAULT_OVERWRITE_VALUE -- @param Debug True to show debug information, False otherwise. Default: DEFAULT_DEBUG_VALUE -- @param Path path to the environment file. If no Path provided, this procedure try to solve the name in the -- following way: -- - If DOTENV_CONFIG_PATH environment variable is set, it use it -- - Find a '.env' file in the current working directory -- - Find a '.env' file in the execution directory -- @param File_Form Set Form to file, like encoding, etc. Default: DEFAULT_FILE_FORM_VALUE -- @exception Ada.Directories.Name_Error Throwed when no valid path found for environment variable file. procedure Config (Overwrite : Boolean; Debug : Boolean; Interpolate : Boolean; Path : String := ""; File_Form : String := ""); -- Configure environment variables. -- This procedure check if DOTENV_CONFIG_OVERWRITE is set, otherwise it uses DEFAULT_OVERWRITE_VALUE. -- If the value of DOTENV_CONFIG_OVERWRITE is invalid, it uses ; -- This procedure check if DOTENV_CONFIG_DEBUG is set, otherwise it uses DEFAULT_DEBUG_VALUE. -- If the value of DEFAULT_DEBUG_VALUE is invalid, it uses DEFAULT_DEBUG_VALUE; -- @param Path path to the environment file. If no Path provided, this procedure try to solve the name in the -- following way: -- - If DOTENV_CONFIG_PATH environment variable is set, it use it -- - Find a '.env' file in the current working directory -- - Find a '.env' file in the execution directory -- @param File_Form Set Form to file, like encoding, etc. Default: DEFAULT_FILE_FORM_VALUE -- @exception Ada.Directories.Name_Error Throwed when no valid path found for environment variable file. procedure Config (Path : String := ""; File_Form : String := ""); -- Configure environment variables. -- This procedure check if DOTENV_CONFIG_DEBUG is set, otherwise it uses DEFAULT_DEBUG_VALUE. -- If the value of DEFAULT_DEBUG_VALUE is invalid, it uses DEFAULT_DEBUG_VALUE; -- @param Overwrite True to overwrite existing environment variable, False otherwise. -- Default: DEFAULT_OVERWRITE_VALUE -- @param Path path to the environment file. If no Path provided, this procedure try to solve the name in the -- following way: -- - If DOTENV_CONFIG_PATH environment variable is set, it use it -- - Find a '.env' file in the current working directory -- - Find a '.env' file in the execution directory -- @param File_Form Set Form to file, like encoding, etc. Default: DEFAULT_FILE_FORM_VALUE -- @exception Ada.Directories.Name_Error Throwed when no valid path found for environment variable file. procedure Config_Overwrite (Overwrite : Boolean; Path : String := ""; File_Form : String := ""); -- Configure environment variables. -- This procedure check if DOTENV_CONFIG_OVERWRITE is set, otherwise it uses DEFAULT_OVERWRITE_VALUE. -- If the value of DOTENV_CONFIG_OVERWRITE is invalid, it uses DEFAULT_OVERWRITE_VALUE; -- @param Debug True to show debug information, False otherwise. Default: DEFAULT_DEBUG_VALUE -- @param Path path to the environment file. If no Path provided, this procedure try to solve the name in the -- following way: -- - If DOTENV_CONFIG_PATH environment variable is set, it use it -- - Find a '.env' file in the current working directory -- - Find a '.env' file in the execution directory -- @param File_Form Set Form to file, like encoding, etc. Default: DEFAULT_FILE_FORM_VALUE -- @exception Ada.Directories.Name_Error Throwed when no valid path found for environment variable file. procedure Config_Debug (Debug : Boolean; Path : String := ""; File_Form : String := ""); -- Configure environment variables. -- This procedure check if DOTENV_CONFIG_OVERWRITE is set, otherwise it uses DEFAULT_OVERWRITE_VALUE. -- If the value of DOTENV_CONFIG_OVERWRITE is invalid, it uses DEFAULT_OVERWRITE_VALUE; -- @param Interpolate True to interpolate values, False otherwise. Default: DEFAULT_INTERPOLATE_VALUE -- For example, if we have the following environment variables: -- - FIRSTNAME=John -- - LASTNAME=Doe -- - HELLO=Hello ${FIRSTNAME} $LASTNAME -- Then the value of final HELLO will be: Hello John Doe -- @param Path path to the environment file. If no Path provided, this procedure try to solve the name in the -- following way: -- - If DOTENV_CONFIG_PATH environment variable is set, it use it -- - Find a '.env' file in the current working directory -- - Find a '.env' file in the execution directory -- @param File_Form Set Form to file, like encoding, etc. Default: DEFAULT_FILE_FORM_VALUE -- @exception Ada.Directories.Name_Error Throwed when no valid path found for environment variable file. procedure Config_Interpolate (Interpolate : Boolean; Path : String := ""; File_Form : String := ""); end Dotenv;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2022, 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. -- -- -- ------------------------------------------------------------------------------ -- A demonstration of a higher-level USART interface using streams. In -- particular, the serial port is presented as a stream type, so these ports -- can be used with stream attributes to send values or arbitrary types, not -- just characters or Strings. -- Polling is used within the procedures to determine when characters are sent -- and received. with Ada.Streams; with Ada.Real_Time; use Ada.Real_Time; package Serial_IO.Streaming is pragma Elaborate_Body; type Serial_Port (Device : not null access Peripheral_Descriptor) is new Ada.Streams.Root_Stream_Type with private; procedure Initialize_Hardware (This : out Serial_Port); procedure Configure (This : in out Serial_Port; Baud_Rate : Baud_Rates; Parity : Parities := No_Parity; Data_Bits : Word_Lengths := Word_Length_8; End_Bits : Stop_Bits := Stopbits_1; Control : Flow_Control := No_Flow_Control); procedure Set_Read_Timeout (This : in out Serial_Port; Wait : Time_Span); -- Stream attributes that call Read (below) can either wait indefinitely or -- can be set to return any current values received after a given interval. -- If the value Time_Span_Last is passed to Wait, the effect is essentially to wait -- forever, i.e., blocking. That is also the effect if this routine is -- never called. overriding procedure Read (This : in out Serial_Port; Buffer : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset); overriding procedure Write (This : in out Serial_Port; Buffer : Ada.Streams.Stream_Element_Array); private type Serial_Port (Device : access Peripheral_Descriptor) is new Ada.Streams.Root_Stream_Type with record Timeout : Time_Span := Time_Span_Last; end record; procedure Await_Send_Ready (This : USART) with Inline; procedure Await_Data_Available (This : USART; Timeout : Time_Span := Time_Span_Last; Timed_Out : out Boolean) with Inline; use Ada.Streams; function Last_Index (First : Stream_Element_Offset; Count : Long_Integer) return Stream_Element_Offset with Inline; end Serial_IO.Streaming;
with Lv; use Lv; with Lv.Style; with Lv.Area; package Lv.Objx.Cont is subtype Instance is Obj_T; type Layout_T is (Layout_Off, Layout_Center, Layout_Col_L, -- Column left align Layout_Col_M, -- Column middle align Layout_Col_R, -- Column right align Layout_Row_T, -- Row top align Layout_Row_M, -- Row middle align Layout_Row_B, -- Row bottom align Layout_Pretty, -- Put as many object as possible in row and begin a new row Layout_Grid); -- Align same-sized object into a grid -- Create a container objects -- @param par pointer to an object, it will be the parent of the new container -- @param copy pointer to a container object, if not NULL then the new object will be copied from it -- @return pointer to the created container function Create (Parent : Obj_T; Copy : Obj_T) return Instance; ---------------------- -- Setter functions -- ---------------------- -- Set a layout on a container -- @param self pointer to a container object -- @param layout a layout from 'lv_cont_layout_t' procedure Set_Layout (Self : Instance; Layout : Layout_T); -- Enable the horizontal or vertical fit. -- The container size will be set to involve the children horizontally or vertically. -- @param self pointer to a container object -- @param hor_en true: enable the horizontal fit -- @param ver_en true: enable the vertical fit procedure Set_Fit (Self : Instance; Hor_En : U_Bool; Ver_En : U_Bool); -- Set the style of a container -- @param self pointer to a container object -- @param style pointer to the new style procedure Set_Style (Self : Instance; Style : access Lv.Style.Style); ---------------------- -- Getter functions -- ---------------------- -- Get the layout of a container -- @param self pointer to container object -- @return the layout from 'lv_cont_layout_t' function Layout (Self : Instance) return Layout_T; -- Get horizontal fit enable attribute of a container -- @param self pointer to a container object -- @return true: horizontal fit is enabled; false: disabled function Hor_Fit (Self : Instance) return U_Bool; -- Get vertical fit enable attribute of a container -- @param self pointer to a container object -- @return true: vertical fit is enabled; false: disabled function Ver_Fit (Self : Instance) return U_Bool; -- Get that width reduced by the horizontal padding. Useful if a layout is used. -- @param self pointer to a container object -- @return the width which still fits into the container function Fit_Width (Self : Instance) return Lv.Area.Coord_T; -- Get that height reduced by the vertical padding. Useful if a layout is used. -- @param self pointer to a container object -- @return the height which still fits into the container function Fit_Height (Self : Instance) return Lv.Area.Coord_T; -- Get the style of a container -- @param self pointer to a container object -- @return pointer to the container's style function Style (Self : Instance) return access Lv.Style.Style; ------------- -- Imports -- ------------- pragma Import (C, Create, "lv_cont_create"); pragma Import (C, Set_Layout, "lv_cont_set_layout"); pragma Import (C, Set_Fit, "lv_cont_set_fit"); pragma Import (C, Set_Style, "lv_cont_set_style_inline"); pragma Import (C, Layout, "lv_cont_get_layout"); pragma Import (C, Hor_Fit, "lv_cont_get_hor_fit"); pragma Import (C, Ver_Fit, "lv_cont_get_ver_fit"); pragma Import (C, Fit_Width, "lv_cont_get_fit_width"); pragma Import (C, Fit_Height, "lv_cont_get_fit_height"); pragma Import (C, Style, "lv_cont_get_style_inline"); for Layout_T'Size use 8; for Layout_T use (Layout_Off => 0, Layout_Center => 1, Layout_Col_L => 2, Layout_Col_M => 3, Layout_Col_R => 4, Layout_Row_T => 5, Layout_Row_M => 6, Layout_Row_B => 7, Layout_Pretty => 8, Layout_Grid => 9); end Lv.Objx.Cont;
-- 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. with Orka.Rendering.Buffers; with Orka.Resources.Locations; with Orka.Transforms.Singles.Matrices; private with GL.Low_Level.Enums; private with Orka.Rendering.Programs.Uniforms; package Orka.Rendering.Debug.Coordinate_Axes is pragma Preelaborate; package Transforms renames Orka.Transforms.Singles.Matrices; type Coordinate_Axes is tagged private; function Create_Coordinate_Axes (Location : Resources.Locations.Location_Ptr) return Coordinate_Axes; procedure Render (Object : in out Coordinate_Axes; View, Proj : Transforms.Matrix4; Transforms, Sizes : Rendering.Buffers.Bindable_Buffer'Class) with Pre => Transforms.Length > 0 and Sizes.Length in 1 | Transforms.Length; -- Render three coordinates axes for each transform -- -- The buffer Transforms, containing the transform matrices, must -- contain n matrices for n coordinate axes. This buffer controls how -- many coordinate axes are rendered. -- -- The buffer Sizes must contain one or n singles. private package LE renames GL.Low_Level.Enums; type Coordinate_Axes is tagged record Program : Rendering.Programs.Program; Uniform_Visible : Programs.Uniforms.Uniform (LE.Bool_Type); Uniform_View : Programs.Uniforms.Uniform (LE.Single_Matrix4); Uniform_Proj : Programs.Uniforms.Uniform (LE.Single_Matrix4); end record; end Orka.Rendering.Debug.Coordinate_Axes;
-- C47002C.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 VALUES BELONGING TO EACH CLASS OF TYPE CAN BE WRITTEN AS -- THE OPERANDS OF QUALIFIED EXPRESSIONS. -- THIS TEST IS FOR ARRAY, RECORD, AND ACCESS TYPES. -- RJW 7/23/86 WITH REPORT; USE REPORT; PROCEDURE C47002C IS BEGIN TEST( "C47002C", "CHECK THAT VALUES HAVING ARRAY, RECORD, AND " & "ACCESS TYPES CAN BE WRITTEN AS THE OPERANDS " & "OF QUALIFIED EXPRESSIONS" ); DECLARE -- ARRAY TYPES. TYPE ARR IS ARRAY (POSITIVE RANGE <>) OF INTEGER; SUBTYPE ARR1 IS ARR (1 .. 1); SUBTYPE ARR5 IS ARR (1 .. 5); TYPE NARR IS NEW ARR; SUBTYPE NARR2 IS NARR (2 .. 2); TYPE TARR IS ARRAY (NATURAL RANGE <>, NATURAL RANGE <>) OF INTEGER; SUBTYPE TARR15 IS TARR (1 .. 1, 1 .. 5); SUBTYPE TARR51 IS TARR (1 .. 5, 1 .. 1); TYPE NTARR IS NEW TARR; SUBTYPE NTARR26 IS NTARR (2 .. 6, 2 .. 6); FUNCTION F (X : ARR) RETURN ARR IS BEGIN RETURN X; END; FUNCTION F (X : NARR) RETURN NARR IS BEGIN RETURN X; END; FUNCTION F (X : TARR) RETURN TARR IS BEGIN RETURN X; END; FUNCTION F (X : NTARR) RETURN NTARR IS BEGIN RETURN X; END; BEGIN IF F (ARR1'(OTHERS => 0))'LAST /= 1 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE ARR1" ); END IF; IF F (ARR5'(OTHERS => 0))'LAST /= 5 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE ARR5" ); END IF; IF F (NARR2'(OTHERS => 0))'FIRST /= 2 OR F (NARR2'(OTHERS => 0))'LAST /= 2 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE NARR2" ); END IF; IF F (TARR15'(OTHERS => (OTHERS => 0)))'LAST /= 1 OR F (TARR15'(OTHERS => (OTHERS => 0)))'LAST (2) /= 5 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE TARR15" ); END IF; IF F (TARR51'(OTHERS => (OTHERS => 0)))'LAST /= 5 OR F (TARR51'(OTHERS => (OTHERS => 0)))'LAST (2) /= 1 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE TARR51" ); END IF; IF F (NTARR26'(OTHERS => (OTHERS => 0)))'FIRST /= 2 OR F (NTARR26'(OTHERS => (OTHERS => 0)))'LAST /= 6 OR F (NTARR26'(OTHERS => (OTHERS => 0)))'FIRST (2) /= 2 OR F (NTARR26'(OTHERS => (OTHERS => 0)))'LAST (2) /= 6 THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE NTARR26" ); END IF; END; DECLARE -- RECORD TYPES. TYPE GENDER IS (MALE, FEMALE, NEUTER); TYPE MAN IS RECORD AGE : POSITIVE; END RECORD; TYPE WOMAN IS RECORD AGE : POSITIVE; END RECORD; TYPE ANDROID IS NEW MAN; FUNCTION F (X: WOMAN) RETURN GENDER IS BEGIN RETURN FEMALE; END F; FUNCTION F (X: MAN) RETURN GENDER IS BEGIN RETURN MALE; END F; FUNCTION F (X : ANDROID) RETURN GENDER IS BEGIN RETURN NEUTER; END F; BEGIN IF F (MAN'(AGE => 23)) /= MALE THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE MAN" ); END IF; IF F (WOMAN'(AGE => 38)) /= FEMALE THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE WOMAN" ); END IF; IF F (ANDROID'(AGE => 2001)) /= NEUTER THEN FAILED ( "INCORRECT RESULTS FOR TYPE ANDRIOD" ); END IF; END; DECLARE -- ACCESS TYPES. TYPE CODE IS (OLD, BRANDNEW, WRECK); TYPE CAR (D : CODE) IS RECORD NULL; END RECORD; TYPE KEY IS ACCESS CAR; TYPE KEY_OLD IS ACCESS CAR (OLD); KO : KEY_OLD := NEW CAR'(D => OLD); TYPE KEY_WRECK IS ACCESS CAR (WRECK); TYPE KEY_CARD IS NEW KEY; KC : KEY_CARD := NEW CAR'(D => BRANDNEW); FUNCTION F (X : KEY_OLD) RETURN CODE IS BEGIN RETURN OLD; END F; FUNCTION F (X : KEY_WRECK) RETURN CODE IS BEGIN RETURN WRECK; END F; FUNCTION F (X : KEY_CARD) RETURN CODE IS BEGIN RETURN BRANDNEW; END F; BEGIN IF KEY_OLD'(KO) /= KO THEN FAILED ( "INCORRECT RESULTS FOR TYPE KEY_OLD - 1" ); END IF; IF KEY_CARD'(KC) /= KC THEN FAILED ( "INCORRECT RESULTS FOR TYPE KEY_CARD - 1" ); END IF; IF F (KEY_OLD'(NULL)) /= OLD THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE KEY_OLD - 2" ); END IF; IF F (KEY_WRECK'(NULL)) /= WRECK THEN FAILED ( "INCORRECT RESULTS FOR SUBTYPE KEY_WRECK" ); END IF; IF F (KEY_CARD'(NULL)) /= BRANDNEW THEN FAILED ( "INCORRECT RESULTS FOR TYPE KEY_CARD - 2" ); END IF; END; RESULT; END C47002C;
with ada.text_io,ada.integer_text_io,display,game_types ; use ada.text_io,game_types ; package body game_functions is function initialize_cells return game_types.array_of_cell is cells : game_types.array_of_cell := (others => (others => game_types.DEAD)) ; initial_coordonates : game_types.coordinates := (x => 25, y => 50) ; begining_of_line : integer ; c : character ; f : file_type ; begin open(f,in_file,"cells.life") ; begining_of_line := initial_coordonates.y ; while not end_of_file(f) loop get(f,c) ; --if end_of_line(f) then -- skip_line(f); --end if; if c = '#' then skip_line(f) ; else if c = '*' then cells(initial_coordonates.x,initial_coordonates.y) := game_types.ALIVE ; end if ; initial_coordonates.y := initial_coordonates.y + 1 ; if end_of_line(f) then initial_coordonates.x := initial_coordonates.x + 1 ; initial_coordonates.y := begining_of_line ; end if ; end if ; end loop ; close(f) ; return cells ; end initialize_cells ; function evolve_cells(cells : game_types.array_of_cell) return game_types.array_of_cell is function is_on_screen_frontier(i,j : integer) return boolean is begin if i = display.screen'first(1) or i = display.screen'last(1) or j = display.screen'first(2) or j = display.screen'last(2) then return true ; else return false ; end if ; end is_on_screen_frontier ; function get_live_neighbour_count(cells : game_types.array_of_cell ; i,j : integer) return integer is count : integer := 0 ; begin if not is_on_screen_frontier(i,j) then for k in i-1..i+1 loop for l in j-1..j+1 loop if k /= i or l /= j then if cells(k,l) = ALIVE then count := count + 1 ; end if; end if ; end loop ; end loop ; end if ; return count ; end get_live_neighbour_count ; procedure compute_next_cell_state(i,j : integer ; cells : game_types.array_of_cell ; new_cells : in out game_types.array_of_cell) is count : integer ; begin count := get_live_neighbour_count(cells,i,j) ; if cells(i,j) = ALIVE then if count < 2 or count > 3 then new_cells(i,j) := DEAD ; elsif count = 2 or count = 3 then new_cells(i,j) := ALIVE ; end if ; elsif cells(i,j) = DEAD then if count = 3 then new_cells(i,j) := ALIVE ; end if ; end if ; end compute_next_cell_state ; new_cells : game_types.array_of_cell := (others => (others => DEAD)) ; begin for i in cells'range(1) loop for j in cells'range(2) loop compute_next_cell_state(i,j,cells,new_cells) ; end loop ; end loop ; return new_cells ; end evolve_cells ; procedure render_game(cells : game_types.array_of_cell) is screen : display.grid := (others => (others => false)) ; begin for i in cells'range(1) loop for j in cells'range(2) loop if cells(i,j) = game_types.ALIVE then screen(i,j) := true ; end if ; end loop ; end loop ; display.render(screen) ; end render_game ; end game_functions ;
-- Copyright 2012-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/>. package Classes is type Point is record X : Integer; Y : Integer; end record; type Shape is abstract tagged null record; type Shape_Access is access all Shape'Class; type Drawable is interface; type Drawable_Access is access all Drawable'Class; procedure Draw (D : Drawable) is abstract; type Circle is new Shape and Drawable with record Center : Point; Radius : Natural; end record; procedure Draw (R : Circle); My_Circle : Circle := ((1, 2), 3); My_Shape : Shape'Class := Shape'Class (My_Circle); My_Drawable : Drawable'Class := Drawable'Class (My_Circle); S_Access : Shape_Access := new Circle'(My_Circle); D_Access : Drawable_Access := new Circle'(My_Circle); type R (MS : Shape_Access; MD : Drawable_Access) is record E : Integer; end record; MR : R := (MS => S_Access, MD => D_Access, E => 42); type Shape_Array is array (1 .. 4) of Shape_Access; type Drawable_Array is array (1 .. 4) of Drawable_Access; S_Array : Shape_Array := (others => S_Access); D_Array : Drawable_Array := (others => D_Access); end Classes;
-- C85006D.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT A COMPONENT OR SLICE OF A VARIABLE CREATED BY A -- GENERIC 'IN OUT' FORMAL PARAMETER CAN BE RENAMED AND HAS THE -- CORRECT VALUE, AND THAT THE NEW NAME CAN BE USED IN AN ASSIGNMENT -- STATEMENT AND PASSED ON AS AN ACTUAL SUBPROGRAM OR ENTRY 'IN OUT' -- OR 'OUT' PARAMETER, AND AS AN ACTUAL GENERIC 'IN OUT' PARAMETER, -- AND THAT WHEN THE VALUE OF THE RENAMED VARIABLE IS CHANGED, -- THE NEW VALUE IS REFLECTED BY THE VALUE OF THE NEW NAME. -- HISTORY: -- JET 03/22/88 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; PROCEDURE C85006D IS TYPE ARRAY1 IS ARRAY (POSITIVE RANGE <>) OF INTEGER; TYPE RECORD1 (D : INTEGER) IS RECORD FIELD1 : INTEGER := 1; END RECORD; TYPE POINTER1 IS ACCESS INTEGER; PACKAGE PACK1 IS TYPE PRIVY IS PRIVATE; ZERO : CONSTANT PRIVY; ONE : CONSTANT PRIVY; TWO : CONSTANT PRIVY; THREE : CONSTANT PRIVY; FOUR : CONSTANT PRIVY; FIVE : CONSTANT PRIVY; FUNCTION IDENT (I : PRIVY) RETURN PRIVY; FUNCTION NEXT (I : PRIVY) RETURN PRIVY; PRIVATE TYPE PRIVY IS RANGE 0..127; ZERO : CONSTANT PRIVY := 0; ONE : CONSTANT PRIVY := 1; TWO : CONSTANT PRIVY := 2; THREE : CONSTANT PRIVY := 3; FOUR : CONSTANT PRIVY := 4; FIVE : CONSTANT PRIVY := 5; END PACK1; TASK TYPE TASK1 IS ENTRY ASSIGN (J : IN INTEGER); ENTRY VALU (J : OUT INTEGER); ENTRY NEXT; ENTRY STOP; END TASK1; TYPE ARR_INT IS ARRAY(POSITIVE RANGE <>) OF INTEGER; TYPE ARR_ARR IS ARRAY(POSITIVE RANGE <>) OF ARRAY1(1..3); TYPE ARR_REC IS ARRAY(POSITIVE RANGE <>) OF RECORD1(1); TYPE ARR_PTR IS ARRAY(POSITIVE RANGE <>) OF POINTER1; TYPE ARR_PVT IS ARRAY(POSITIVE RANGE <>) OF PACK1.PRIVY; TYPE ARR_TSK IS ARRAY(POSITIVE RANGE <>) OF TASK1; TYPE REC_TYPE IS RECORD RI1 : INTEGER := 0; RA1 : ARRAY1(1..3) := (OTHERS => 0); RR1 : RECORD1(1) := (D => 1, FIELD1 => 0); RP1 : POINTER1 := NEW INTEGER'(0); RV1 : PACK1.PRIVY := PACK1.ZERO; RT1 : TASK1; END RECORD; DREC : REC_TYPE; DAI1 : ARR_INT(1..8) := (OTHERS => 0); DAA1 : ARR_ARR(1..8) := (OTHERS => (OTHERS => 0)); DAR1 : ARR_REC(1..8) := (OTHERS => (D => 1, FIELD1 => 0)); DAP1 : ARR_PTR(1..8) := (OTHERS => NEW INTEGER'(0)); DAV1 : ARR_PVT(1..8) := (OTHERS => PACK1.ZERO); DAT1 : ARR_TSK(1..8); GENERIC REC : IN OUT REC_TYPE; AI1 : IN OUT ARR_INT; AA1 : IN OUT ARR_ARR; AR1 : IN OUT ARR_REC; AP1 : IN OUT ARR_PTR; AV1 : IN OUT ARR_PVT; AT1 : IN OUT ARR_TSK; PACKAGE GENERIC1 IS END GENERIC1; FUNCTION IDENT (P : POINTER1) RETURN POINTER1 IS BEGIN IF EQUAL (3,3) THEN RETURN P; ELSE RETURN NULL; END IF; END IDENT; PACKAGE BODY PACK1 IS FUNCTION IDENT (I : PRIVY) RETURN PRIVY IS BEGIN IF EQUAL(3,3) THEN RETURN I; ELSE RETURN PRIVY'(0); END IF; END IDENT; FUNCTION NEXT (I : PRIVY) RETURN PRIVY IS BEGIN RETURN I+1; END NEXT; END PACK1; PACKAGE BODY GENERIC1 IS XRI1 : INTEGER RENAMES REC.RI1; XRA1 : ARRAY1 RENAMES REC.RA1; XRR1 : RECORD1 RENAMES REC.RR1; XRP1 : POINTER1 RENAMES REC.RP1; XRV1 : PACK1.PRIVY RENAMES REC.RV1; XRT1 : TASK1 RENAMES REC.RT1; XAI1 : ARR_INT RENAMES AI1(1..3); XAA1 : ARR_ARR RENAMES AA1(2..4); XAR1 : ARR_REC RENAMES AR1(3..5); XAP1 : ARR_PTR RENAMES AP1(4..6); XAV1 : ARR_PVT RENAMES AV1(5..7); XAT1 : ARR_TSK RENAMES AT1(6..8); TASK TYPE TASK2 IS ENTRY ENTRY1 (TRI1 : OUT INTEGER; TRA1 : OUT ARRAY1; TRR1 : OUT RECORD1; TRP1 : IN OUT POINTER1; TRV1 : IN OUT PACK1.PRIVY; TRT1 : IN OUT TASK1; TAI1 : OUT ARR_INT; TAA1 : OUT ARR_ARR; TAR1 : OUT ARR_REC; TAP1 : IN OUT ARR_PTR; TAV1 : IN OUT ARR_PVT; TAT1 : IN OUT ARR_TSK); END TASK2; CHK_TASK : TASK2; I : INTEGER; GENERIC GRI1 : IN OUT INTEGER; GRA1 : IN OUT ARRAY1; GRR1 : IN OUT RECORD1; GRP1 : IN OUT POINTER1; GRV1 : IN OUT PACK1.PRIVY; GRT1 : IN OUT TASK1; GAI1 : IN OUT ARR_INT; GAA1 : IN OUT ARR_ARR; GAR1 : IN OUT ARR_REC; GAP1 : IN OUT ARR_PTR; GAV1 : IN OUT ARR_PVT; GAT1 : IN OUT ARR_TSK; PACKAGE GENERIC2 IS END GENERIC2; PACKAGE BODY GENERIC2 IS BEGIN GRI1 := GRI1 + 1; GRA1 := (GRA1(1)+1, GRA1(2)+1, GRA1(3)+1); GRR1 := (D => 1, FIELD1 => GRR1.FIELD1+1); GRP1 := NEW INTEGER'(GRP1.ALL + 1); GRV1 := PACK1.NEXT(GRV1); GRT1.NEXT; GAI1 := (OTHERS => GAI1(GAI1'FIRST) + 1); GAA1 := (OTHERS => (OTHERS => GAA1(GAA1'FIRST)(1) + 1)); GAR1 := (OTHERS => (D => 1, FIELD1 => (GAR1(GAR1'FIRST).FIELD1 + 1))); GAP1 := (OTHERS => NEW INTEGER'(GAP1(GAP1'FIRST).ALL + 1)); FOR J IN GAV1'RANGE LOOP GAV1(J) := PACK1.NEXT(GAV1(J)); END LOOP; FOR J IN GAT1'RANGE LOOP GAT1(J).NEXT; END LOOP; END GENERIC2; PROCEDURE PROC1 (PRI1 : IN OUT INTEGER; PRA1 : IN OUT ARRAY1; PRR1 : IN OUT RECORD1; PRP1 : OUT POINTER1; PRV1 : OUT PACK1.PRIVY; PRT1 : IN OUT TASK1; PAI1 : IN OUT ARR_INT; PAA1 : IN OUT ARR_ARR; PAR1 : IN OUT ARR_REC; PAP1 : OUT ARR_PTR; PAV1 : OUT ARR_PVT; PAT1 : IN OUT ARR_TSK) IS BEGIN PRI1 := PRI1 + 1; PRA1 := (PRA1(1)+1, PRA1(2)+1, PRA1(3)+1); PRR1 := (D => 1, FIELD1 => PRR1.FIELD1 + 1); PRP1 := NEW INTEGER'(REC.RP1.ALL + 1); PRV1 := PACK1.NEXT(REC.RV1); PRT1.NEXT; PAI1 := (OTHERS => PAI1(PAI1'FIRST) + 1); PAA1 := (OTHERS => (OTHERS => PAA1(PAA1'FIRST)(1) + 1)); PAR1 := (OTHERS => (D => 1, FIELD1 => (PAR1(PAR1'FIRST).FIELD1 + 1))); PAP1 := (OTHERS => NEW INTEGER'(AP1(PAP1'FIRST).ALL + 1)); FOR J IN PAV1'RANGE LOOP PAV1(J) := PACK1.NEXT(AV1(J)); END LOOP; FOR J IN PAT1'RANGE LOOP PAT1(J).NEXT; END LOOP; END PROC1; TASK BODY TASK2 IS BEGIN ACCEPT ENTRY1 (TRI1 : OUT INTEGER; TRA1 : OUT ARRAY1; TRR1 : OUT RECORD1; TRP1 : IN OUT POINTER1; TRV1 : IN OUT PACK1.PRIVY; TRT1: IN OUT TASK1; TAI1 : OUT ARR_INT; TAA1 : OUT ARR_ARR; TAR1 : OUT ARR_REC; TAP1 : IN OUT ARR_PTR; TAV1 : IN OUT ARR_PVT; TAT1 : IN OUT ARR_TSK) DO TRI1 := REC.RI1 + 1; TRA1 := (REC.RA1(1)+1, REC.RA1(2)+1, REC.RA1(3)+1); TRR1 := (D => 1, FIELD1 => REC.RR1.FIELD1 + 1); TRP1 := NEW INTEGER'(TRP1.ALL + 1); TRV1 := PACK1.NEXT(TRV1); TRT1.NEXT; TAI1 := (OTHERS => AI1(TAI1'FIRST) + 1); TAA1 := (OTHERS => (OTHERS => AA1(TAA1'FIRST)(1) + 1)); TAR1 := (OTHERS => (D => 1, FIELD1 => (AR1(TAR1'FIRST).FIELD1 + 1))); TAP1 := (OTHERS => NEW INTEGER'(TAP1(TAP1'FIRST).ALL + 1)); FOR J IN TAV1'RANGE LOOP TAV1(J) := PACK1.NEXT(TAV1(J)); END LOOP; FOR J IN TAT1'RANGE LOOP TAT1(J).NEXT; END LOOP; END ENTRY1; END TASK2; PACKAGE GENPACK2 IS NEW GENERIC2 (XRI1, XRA1, XRR1, XRP1, XRV1, XRT1, XAI1, XAA1, XAR1, XAP1, XAV1, XAT1); BEGIN IF XRI1 /= IDENT_INT(1) THEN FAILED ("INCORRECT VALUE OF XRI1 (1)"); END IF; IF XRA1 /= (IDENT_INT(1),IDENT_INT(1),IDENT_INT(1)) THEN FAILED ("INCORRECT VALUE OF XRA1 (1)"); END IF; IF XRR1 /= (D => 1, FIELD1 => IDENT_INT(1)) THEN FAILED ("INCORRECT VALUE OF XRR1 (1)"); END IF; IF XRP1 /= IDENT(REC.RP1) OR XRP1.ALL /= IDENT_INT(1) THEN FAILED ("INCORRECT VALUE OF XRP1 (1)"); END IF; IF PACK1."/=" (XRV1, PACK1.IDENT(PACK1.ONE)) THEN FAILED ("INCORRECT VALUE OF XRV1 (1)"); END IF; XRT1.VALU(I); IF I /= IDENT_INT(1) THEN FAILED ("INCORRECT RETURN VALUE OF XRT1.VALU (1)"); END IF; FOR J IN XAI1'RANGE LOOP IF XAI1(J) /= IDENT_INT(1) THEN FAILED ("INCORRECT VALUE OF XAI1(" & INTEGER'IMAGE(J) & ") (1)"); END IF; END LOOP; FOR J IN XAA1'RANGE LOOP IF XAA1(J) /= (IDENT_INT(1),IDENT_INT(1),IDENT_INT(1)) THEN FAILED ("INCORRECT VALUE OF XAA1(" & INTEGER'IMAGE(J) & ") (1)"); END IF; END LOOP; FOR J IN XAR1'RANGE LOOP IF XAR1(J) /= (D => 1, FIELD1 => IDENT_INT(1)) THEN FAILED ("INCORRECT VALUE OF XAR1(" & INTEGER'IMAGE(J) & ") (1)"); END IF; END LOOP; FOR J IN XAP1'RANGE LOOP IF XAP1(J) /= IDENT(AP1(J)) OR XAP1(J).ALL /= IDENT_INT(1) THEN FAILED ("INCORRECT VALUE OF XAP1(" & INTEGER'IMAGE(J) & ") (1)"); END IF; END LOOP; FOR J IN XAV1'RANGE LOOP IF PACK1."/=" (XAV1(J), PACK1.IDENT(PACK1.ONE)) THEN FAILED ("INCORRECT VALUE OF XAV1(" & INTEGER'IMAGE(J) & ") (1)"); END IF; END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).VALU(I); IF I /= IDENT_INT(1) THEN FAILED ("INCORRECT RETURN VALUE FROM XAT1(" & INTEGER'IMAGE(J) & ").VALU (1)"); END IF; END LOOP; PROC1 (XRI1, XRA1, XRR1, XRP1, XRV1, XRT1, XAI1, XAA1, XAR1, XAP1, XAV1, XAT1); IF XRI1 /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE OF XRI1 (2)"); END IF; IF XRA1 /= (IDENT_INT(2),IDENT_INT(2),IDENT_INT(2)) THEN FAILED ("INCORRECT VALUE OF XRA1 (2)"); END IF; IF XRR1 /= (D => 1, FIELD1 => IDENT_INT(2)) THEN FAILED ("INCORRECT VALUE OF XRR1 (2)"); END IF; IF XRP1 /= IDENT(REC.RP1) OR XRP1.ALL /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE OF XRP1 (2)"); END IF; IF PACK1."/=" (XRV1, PACK1.IDENT(PACK1.TWO)) THEN FAILED ("INCORRECT VALUE OF XRV1 (2)"); END IF; XRT1.VALU(I); IF I /= IDENT_INT(2) THEN FAILED ("INCORRECT RETURN VALUE FROM XRT1.VALU (2)"); END IF; FOR J IN XAI1'RANGE LOOP IF XAI1(J) /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE OF XAI1(" & INTEGER'IMAGE(J) & ") (2)"); END IF; END LOOP; FOR J IN XAA1'RANGE LOOP IF XAA1(J) /= (IDENT_INT(2),IDENT_INT(2),IDENT_INT(2)) THEN FAILED ("INCORRECT VALUE OF XAA1(" & INTEGER'IMAGE(J) & ") (2)"); END IF; END LOOP; FOR J IN XAR1'RANGE LOOP IF XAR1(J) /= (D => 1, FIELD1 => IDENT_INT(2)) THEN FAILED ("INCORRECT VALUE OF XAR1(" & INTEGER'IMAGE(J) & ") (2)"); END IF; END LOOP; FOR J IN XAP1'RANGE LOOP IF XAP1(J) /= IDENT(AP1(J)) OR XAP1(J).ALL /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE OF XAP1(" & INTEGER'IMAGE(J) & ") (2)"); END IF; END LOOP; FOR J IN XAV1'RANGE LOOP IF PACK1."/=" (XAV1(J), PACK1.IDENT(PACK1.TWO)) THEN FAILED ("INCORRECT VALUE OF XAV1(" & INTEGER'IMAGE(J) & ") (2)"); END IF; END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).VALU(I); IF I /= IDENT_INT(2) THEN FAILED ("INCORRECT RETURN VALUE FROM XAT1(" & INTEGER'IMAGE(J) & ").VALU (2)"); END IF; END LOOP; CHK_TASK.ENTRY1(XRI1, XRA1, XRR1, XRP1, XRV1, XRT1, XAI1, XAA1, XAR1, XAP1, XAV1, XAT1); IF XRI1 /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE OF XRI1 (3)"); END IF; IF XRA1 /= (IDENT_INT(3),IDENT_INT(3),IDENT_INT(3)) THEN FAILED ("INCORRECT VALUE OF XRA1 (3)"); END IF; IF XRR1 /= (D => 1, FIELD1 => IDENT_INT(3)) THEN FAILED ("INCORRECT VALUE OF XRR1 (3)"); END IF; IF XRP1 /= IDENT(REC.RP1) OR XRP1.ALL /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE OF XRP1 (3)"); END IF; IF PACK1."/=" (XRV1, PACK1.IDENT(PACK1.THREE)) THEN FAILED ("INCORRECT VALUE OF XRV1 (3)"); END IF; XRT1.VALU(I); IF I /= IDENT_INT(3) THEN FAILED ("INCORRECT RETURN VALUE OF XRT1.VALU (3)"); END IF; FOR J IN XAI1'RANGE LOOP IF XAI1(J) /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE OF XAI1(" & INTEGER'IMAGE(J) & ") (3)"); END IF; END LOOP; FOR J IN XAA1'RANGE LOOP IF XAA1(J) /= (IDENT_INT(3),IDENT_INT(3),IDENT_INT(3)) THEN FAILED ("INCORRECT VALUE OF XAA1(" & INTEGER'IMAGE(J) & ") (3)"); END IF; END LOOP; FOR J IN XAR1'RANGE LOOP IF XAR1(J) /= (D => 1, FIELD1 => IDENT_INT(3)) THEN FAILED ("INCORRECT VALUE OF XAR1(" & INTEGER'IMAGE(J) & ") (3)"); END IF; END LOOP; FOR J IN XAP1'RANGE LOOP IF XAP1(J) /= IDENT(AP1(J)) OR XAP1(J).ALL /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE OF XAP1(" & INTEGER'IMAGE(J) & ") (3)"); END IF; END LOOP; FOR J IN XAV1'RANGE LOOP IF PACK1."/=" (XAV1(J), PACK1.IDENT(PACK1.THREE)) THEN FAILED ("INCORRECT VALUE OF XAV1(" & INTEGER'IMAGE(J) & ") (3)"); END IF; END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).VALU(I); IF I /= IDENT_INT(3) THEN FAILED ("INCORRECT RETURN VALUE FROM XAT1(" & INTEGER'IMAGE(J) & ").VALU (3)"); END IF; END LOOP; XRI1 := XRI1 + 1; XRA1 := (XRA1(1)+1, XRA1(2)+1, XRA1(3)+1); XRR1 := (D => 1, FIELD1 => XRR1.FIELD1 + 1); XRP1 := NEW INTEGER'(XRP1.ALL + 1); XRV1 := PACK1.NEXT(XRV1); XRT1.NEXT; XAI1 := (OTHERS => XAI1(XAI1'FIRST) + 1); XAA1 := (OTHERS => (OTHERS => XAA1(XAA1'FIRST)(1) + 1)); XAR1 := (OTHERS => (D => 1, FIELD1 => (XAR1(XAR1'FIRST).FIELD1 + 1))); XAP1 := (OTHERS => NEW INTEGER'(XAP1(XAP1'FIRST).ALL + 1)); FOR J IN XAV1'RANGE LOOP XAV1(J) := PACK1.NEXT(XAV1(J)); END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).NEXT; END LOOP; IF XRI1 /= IDENT_INT(4) THEN FAILED ("INCORRECT VALUE OF XRI1 (4)"); END IF; IF XRA1 /= (IDENT_INT(4),IDENT_INT(4),IDENT_INT(4)) THEN FAILED ("INCORRECT VALUE OF XRA1 (4)"); END IF; IF XRR1 /= (D => 1, FIELD1 => IDENT_INT(4)) THEN FAILED ("INCORRECT VALUE OF XRR1 (4)"); END IF; IF XRP1 /= IDENT(REC.RP1) OR XRP1.ALL /= IDENT_INT(4) THEN FAILED ("INCORRECT VALUE OF XRP1 (4)"); END IF; IF PACK1."/=" (XRV1, PACK1.IDENT(PACK1.FOUR)) THEN FAILED ("INCORRECT VALUE OF XRV1 (4)"); END IF; XRT1.VALU(I); IF I /= IDENT_INT(4) THEN FAILED ("INCORRECT RETURN VALUE OF XRT1.VALU (4)"); END IF; FOR J IN XAI1'RANGE LOOP IF XAI1(J) /= IDENT_INT(4) THEN FAILED ("INCORRECT VALUE OF XAI1(" & INTEGER'IMAGE(J) & ") (4)"); END IF; END LOOP; FOR J IN XAA1'RANGE LOOP IF XAA1(J) /= (IDENT_INT(4),IDENT_INT(4),IDENT_INT(4)) THEN FAILED ("INCORRECT VALUE OF XAA1(" & INTEGER'IMAGE(J) & ") (4)"); END IF; END LOOP; FOR J IN XAR1'RANGE LOOP IF XAR1(J) /= (D => 1, FIELD1 => IDENT_INT(4)) THEN FAILED ("INCORRECT VALUE OF XAR1(" & INTEGER'IMAGE(J) & ") (4)"); END IF; END LOOP; FOR J IN XAP1'RANGE LOOP IF XAP1(J) /= IDENT(AP1(J)) OR XAP1(J).ALL /= IDENT_INT(4) THEN FAILED ("INCORRECT VALUE OF XAP1(" & INTEGER'IMAGE(J) & ") (4)"); END IF; END LOOP; FOR J IN XAV1'RANGE LOOP IF PACK1."/=" (XAV1(J), PACK1.IDENT(PACK1.FOUR)) THEN FAILED ("INCORRECT VALUE OF XAV1(" & INTEGER'IMAGE(J) & ") (4)"); END IF; END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).VALU(I); IF I /= IDENT_INT(4) THEN FAILED ("INCORRECT RETURN VALUE FROM XAT1(" & INTEGER'IMAGE(J) & ").VALU (4)"); END IF; END LOOP; REC.RI1 := REC.RI1 + 1; REC.RA1 := (REC.RA1(1)+1, REC.RA1(2)+1, REC.RA1(3)+1); REC.RR1 := (D => 1, FIELD1 => REC.RR1.FIELD1 + 1); REC.RP1 := NEW INTEGER'(REC.RP1.ALL + 1); REC.RV1 := PACK1.NEXT(REC.RV1); REC.RT1.NEXT; AI1 := (OTHERS => AI1(XAI1'FIRST) + 1); AA1 := (OTHERS => (OTHERS => AA1(XAA1'FIRST)(1) + 1)); AR1 := (OTHERS => (D => 1, FIELD1 => (AR1(XAR1'FIRST).FIELD1 + 1))); AP1 := (OTHERS => NEW INTEGER'(AP1(XAP1'FIRST).ALL + 1)); FOR J IN XAV1'RANGE LOOP AV1(J) := PACK1.NEXT(AV1(J)); END LOOP; FOR J IN XAT1'RANGE LOOP AT1(J).NEXT; END LOOP; IF XRI1 /= IDENT_INT(5) THEN FAILED ("INCORRECT VALUE OF XRI1 (5)"); END IF; IF XRA1 /= (IDENT_INT(5),IDENT_INT(5),IDENT_INT(5)) THEN FAILED ("INCORRECT VALUE OF XRA1 (5)"); END IF; IF XRR1 /= (D => 1, FIELD1 => IDENT_INT(5)) THEN FAILED ("INCORRECT VALUE OF XRR1 (5)"); END IF; IF XRP1 /= IDENT(REC.RP1) OR XRP1.ALL /= IDENT_INT(5) THEN FAILED ("INCORRECT VALUE OF XRP1 (5)"); END IF; IF PACK1."/=" (XRV1, PACK1.IDENT(PACK1.FIVE)) THEN FAILED ("INCORRECT VALUE OF XRV1 (5)"); END IF; XRT1.VALU(I); IF I /= IDENT_INT(5) THEN FAILED ("INCORRECT RETURN VALUE OF XRT1.VALU (5)"); END IF; FOR J IN XAI1'RANGE LOOP IF XAI1(J) /= IDENT_INT(5) THEN FAILED ("INCORRECT VALUE OF XAI1(" & INTEGER'IMAGE(J) & ") (5)"); END IF; END LOOP; FOR J IN XAA1'RANGE LOOP IF XAA1(J) /= (IDENT_INT(5),IDENT_INT(5),IDENT_INT(5)) THEN FAILED ("INCORRECT VALUE OF XAA1(" & INTEGER'IMAGE(J) & ") (5)"); END IF; END LOOP; FOR J IN XAR1'RANGE LOOP IF XAR1(J) /= (D => 1, FIELD1 => IDENT_INT(5)) THEN FAILED ("INCORRECT VALUE OF XAR1(" & INTEGER'IMAGE(J) & ") (5)"); END IF; END LOOP; FOR J IN XAP1'RANGE LOOP IF XAP1(J) /= IDENT(AP1(J)) OR XAP1(J).ALL /= IDENT_INT(5) THEN FAILED ("INCORRECT VALUE OF XAP1(" & INTEGER'IMAGE(J) & ") (5)"); END IF; END LOOP; FOR J IN XAV1'RANGE LOOP IF PACK1."/=" (XAV1(J), PACK1.IDENT(PACK1.FIVE)) THEN FAILED ("INCORRECT VALUE OF XAV1(" & INTEGER'IMAGE(J) & ") (5)"); END IF; END LOOP; FOR J IN XAT1'RANGE LOOP XAT1(J).VALU(I); IF I /= IDENT_INT(5) THEN FAILED ("INCORRECT RETURN VALUE FROM XAT1(" & INTEGER'IMAGE(J) & ").VALU (5)"); END IF; END LOOP; END GENERIC1; TASK BODY TASK1 IS TASK_VALUE : INTEGER := 0; ACCEPTING_ENTRIES : BOOLEAN := TRUE; BEGIN WHILE ACCEPTING_ENTRIES LOOP SELECT ACCEPT ASSIGN (J : IN INTEGER) DO TASK_VALUE := J; END ASSIGN; OR ACCEPT VALU (J : OUT INTEGER) DO J := TASK_VALUE; END VALU; OR ACCEPT NEXT DO TASK_VALUE := TASK_VALUE + 1; END NEXT; OR ACCEPT STOP DO ACCEPTING_ENTRIES := FALSE; END STOP; END SELECT; END LOOP; END TASK1; BEGIN TEST ("C85006D", "CHECK THAT A COMPONENT OR SLICE OF A VARIABLE " & "CREATED BY A GENERIC 'IN OUT' FORMAL " & "PARAMETER CAN BE RENAMED AND HAS THE CORRECT " & "VALUE, AND THAT THE NEW NAME CAN BE USED IN " & "AN ASSIGNMENT STATEMENT AND PASSED ON AS AN " & "ACTUAL SUBPROGRAM OR ENTRY 'IN OUT' OR 'OUT' " & "PARAMETER, AND AS AN ACTUAL GENERIC 'IN OUT' " & "PARAMETER, AND THAT WHEN THE VALUE OF THE " & "RENAMED VARIABLE IS CHANGED, THE NEW VALUE IS " & "REFLECTED BY THE VALUE OF THE NEW NAME"); DECLARE PACKAGE GENPACK IS NEW GENERIC1 (DREC, DAI1, DAA1, DAR1, DAP1, DAV1, DAT1); BEGIN NULL; END; DREC.RT1.STOP; FOR I IN DAT1'RANGE LOOP DAT1(I).STOP; END LOOP; RESULT; END C85006D;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLOBE_3D; package Arrow_P is procedure Create (object : in out GLOBE_3D.p_Object_3D; object_scale : GLOBE_3D.Real; centre : GLOBE_3D.Point_3D); end Arrow_P;
<?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>relu_array_array_ap_fixed_32u_relu_config16_s</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>64</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>data_V_data_0_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>data_V_data_1_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>data_V_data_2_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>data_V_data_3_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[3].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>data_V_data_4_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[4].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>data_V_data_5_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[5].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>data_V_data_6_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[6].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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>8</id> <name>data_V_data_7_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[7].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>data_V_data_8_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[8].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>data_V_data_9_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[9].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_11"> <Value> <Obj> <type>1</type> <id>11</id> <name>data_V_data_10_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[10].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_12"> <Value> <Obj> <type>1</type> <id>12</id> <name>data_V_data_11_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[11].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_13"> <Value> <Obj> <type>1</type> <id>13</id> <name>data_V_data_12_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[12].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_14"> <Value> <Obj> <type>1</type> <id>14</id> <name>data_V_data_13_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[13].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_15"> <Value> <Obj> <type>1</type> <id>15</id> <name>data_V_data_14_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[14].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_16"> <Value> <Obj> <type>1</type> <id>16</id> <name>data_V_data_15_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[15].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_17"> <Value> <Obj> <type>1</type> <id>17</id> <name>data_V_data_16_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[16].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_18"> <Value> <Obj> <type>1</type> <id>18</id> <name>data_V_data_17_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[17].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_19"> <Value> <Obj> <type>1</type> <id>19</id> <name>data_V_data_18_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[18].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_20"> <Value> <Obj> <type>1</type> <id>20</id> <name>data_V_data_19_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[19].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_21"> <Value> <Obj> <type>1</type> <id>21</id> <name>data_V_data_20_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[20].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_22"> <Value> <Obj> <type>1</type> <id>22</id> <name>data_V_data_21_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[21].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_23"> <Value> <Obj> <type>1</type> <id>23</id> <name>data_V_data_22_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[22].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_24"> <Value> <Obj> <type>1</type> <id>24</id> <name>data_V_data_23_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[23].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_25"> <Value> <Obj> <type>1</type> <id>25</id> <name>data_V_data_24_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[24].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_26"> <Value> <Obj> <type>1</type> <id>26</id> <name>data_V_data_25_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[25].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_27"> <Value> <Obj> <type>1</type> <id>27</id> <name>data_V_data_26_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[26].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_28"> <Value> <Obj> <type>1</type> <id>28</id> <name>data_V_data_27_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[27].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_29"> <Value> <Obj> <type>1</type> <id>29</id> <name>data_V_data_28_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[28].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_30"> <Value> <Obj> <type>1</type> <id>30</id> <name>data_V_data_29_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[29].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_31"> <Value> <Obj> <type>1</type> <id>31</id> <name>data_V_data_30_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[30].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_32"> <Value> <Obj> <type>1</type> <id>32</id> <name>data_V_data_31_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>data.V.data[31].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</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="_33"> <Value> <Obj> <type>1</type> <id>33</id> <name>res_V_data_0_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_34"> <Value> <Obj> <type>1</type> <id>34</id> <name>res_V_data_1_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_35"> <Value> <Obj> <type>1</type> <id>35</id> <name>res_V_data_2_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_36"> <Value> <Obj> <type>1</type> <id>36</id> <name>res_V_data_3_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[3].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_37"> <Value> <Obj> <type>1</type> <id>37</id> <name>res_V_data_4_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[4].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_38"> <Value> <Obj> <type>1</type> <id>38</id> <name>res_V_data_5_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[5].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_39"> <Value> <Obj> <type>1</type> <id>39</id> <name>res_V_data_6_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[6].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_40"> <Value> <Obj> <type>1</type> <id>40</id> <name>res_V_data_7_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[7].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_41"> <Value> <Obj> <type>1</type> <id>41</id> <name>res_V_data_8_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[8].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_42"> <Value> <Obj> <type>1</type> <id>42</id> <name>res_V_data_9_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[9].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_43"> <Value> <Obj> <type>1</type> <id>43</id> <name>res_V_data_10_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[10].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_44"> <Value> <Obj> <type>1</type> <id>44</id> <name>res_V_data_11_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[11].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_45"> <Value> <Obj> <type>1</type> <id>45</id> <name>res_V_data_12_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[12].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_46"> <Value> <Obj> <type>1</type> <id>46</id> <name>res_V_data_13_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[13].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_47"> <Value> <Obj> <type>1</type> <id>47</id> <name>res_V_data_14_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[14].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_48"> <Value> <Obj> <type>1</type> <id>48</id> <name>res_V_data_15_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[15].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_49"> <Value> <Obj> <type>1</type> <id>49</id> <name>res_V_data_16_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[16].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_50"> <Value> <Obj> <type>1</type> <id>50</id> <name>res_V_data_17_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[17].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_51"> <Value> <Obj> <type>1</type> <id>51</id> <name>res_V_data_18_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[18].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_52"> <Value> <Obj> <type>1</type> <id>52</id> <name>res_V_data_19_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[19].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_53"> <Value> <Obj> <type>1</type> <id>53</id> <name>res_V_data_20_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[20].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_54"> <Value> <Obj> <type>1</type> <id>54</id> <name>res_V_data_21_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[21].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_55"> <Value> <Obj> <type>1</type> <id>55</id> <name>res_V_data_22_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[22].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_56"> <Value> <Obj> <type>1</type> <id>56</id> <name>res_V_data_23_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[23].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_57"> <Value> <Obj> <type>1</type> <id>57</id> <name>res_V_data_24_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[24].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_58"> <Value> <Obj> <type>1</type> <id>58</id> <name>res_V_data_25_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[25].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_59"> <Value> <Obj> <type>1</type> <id>59</id> <name>res_V_data_26_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[26].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_60"> <Value> <Obj> <type>1</type> <id>60</id> <name>res_V_data_27_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[27].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_61"> <Value> <Obj> <type>1</type> <id>61</id> <name>res_V_data_28_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[28].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_62"> <Value> <Obj> <type>1</type> <id>62</id> <name>res_V_data_29_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[29].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_63"> <Value> <Obj> <type>1</type> <id>63</id> <name>res_V_data_30_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[30].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_64"> <Value> <Obj> <type>1</type> <id>64</id> <name>res_V_data_31_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>res.V.data[31].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>137</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_65"> <Value> <Obj> <type>0</type> <id>129</id> <name>_ln60</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>60</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>275</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>131</id> <name>i_0</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>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>277</item> <item>278</item> <item>279</item> <item>280</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>132</id> <name>icmp_ln60</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>60</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>281</item> <item>283</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.48</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>134</id> <name>i</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName>i</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>284</item> <item>286</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.87</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>135</id> <name>_ln60</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>287</item> <item>288</item> <item>289</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="_70"> <Value> <Obj> <type>0</type> <id>140</id> <name>empty_63</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>288</bitwidth> </Value> <oprand_edges> <count>33</count> <item_version>0</item_version> <item>291</item> <item>292</item> <item>293</item> <item>294</item> <item>295</item> <item>296</item> <item>297</item> <item>298</item> <item>299</item> <item>300</item> <item>301</item> <item>302</item> <item>303</item> <item>304</item> <item>305</item> <item>306</item> <item>307</item> <item>308</item> <item>309</item> <item>310</item> <item>311</item> <item>312</item> <item>313</item> <item>314</item> <item>315</item> <item>316</item> <item>317</item> <item>318</item> <item>319</item> <item>320</item> <item>321</item> <item>322</item> <item>323</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.63</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>141</id> <name>tmp_data_V_0</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>324</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>142</id> <name>tmp_data_V_1</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>325</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>143</id> <name>tmp_data_V_2</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>326</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>144</id> <name>tmp_data_V_3</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>327</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>145</id> <name>tmp_data_V_4</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>328</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>146</id> <name>tmp_data_V_5</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>329</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>147</id> <name>tmp_data_V_6</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>330</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>148</id> <name>tmp_data_V_7</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>331</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>149</id> <name>tmp_data_V_8</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>332</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>150</id> <name>tmp_data_V_9</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>333</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>151</id> <name>tmp_data_V_10</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>334</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>152</id> <name>tmp_data_V_11</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>335</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>153</id> <name>tmp_data_V_12</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>336</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>154</id> <name>tmp_data_V_13</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>337</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>155</id> <name>tmp_data_V_14</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>338</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>156</id> <name>tmp_data_V_15</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>339</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>157</id> <name>tmp_data_V_16</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>340</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>158</id> <name>tmp_data_V_17</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>341</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_89"> <Value> <Obj> <type>0</type> <id>159</id> <name>tmp_data_V_1837</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>342</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>160</id> <name>tmp_data_V_19</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>343</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_91"> <Value> <Obj> <type>0</type> <id>161</id> <name>tmp_data_V_20</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>344</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>162</id> <name>tmp_data_V_21</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>345</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>163</id> <name>tmp_data_V_22</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>346</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>164</id> <name>tmp_data_V_23</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>347</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_95"> <Value> <Obj> <type>0</type> <id>165</id> <name>tmp_data_V_24</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>348</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_96"> <Value> <Obj> <type>0</type> <id>166</id> <name>tmp_data_V_25</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>349</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_97"> <Value> <Obj> <type>0</type> <id>167</id> <name>tmp_data_V_26</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>350</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_98"> <Value> <Obj> <type>0</type> <id>168</id> <name>tmp_data_V_27</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>351</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>34</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_99"> <Value> <Obj> <type>0</type> <id>169</id> <name>tmp_data_V_28</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>352</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_100"> <Value> <Obj> <type>0</type> <id>170</id> <name>tmp_data_V_29</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>353</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_101"> <Value> <Obj> <type>0</type> <id>171</id> <name>tmp_data_V_30</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>354</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>37</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_102"> <Value> <Obj> <type>0</type> <id>172</id> <name>tmp_data_V_31</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>9</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>355</item> </oprand_edges> <opcode>extractvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>38</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_103"> <Value> <Obj> <type>0</type> <id>173</id> <name>icmp_ln1494</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>356</item> <item>358</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>39</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_104"> <Value> <Obj> <type>0</type> <id>174</id> <name>trunc_ln</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>360</item> <item>361</item> <item>363</item> <item>365</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>40</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_105"> <Value> <Obj> <type>0</type> <id>175</id> <name>tmp_data_0_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>366</item> <item>367</item> <item>369</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>41</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_106"> <Value> <Obj> <type>0</type> <id>176</id> <name>icmp_ln1494_1</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>370</item> <item>371</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>42</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_107"> <Value> <Obj> <type>0</type> <id>177</id> <name>trunc_ln708_1</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>372</item> <item>373</item> <item>374</item> <item>375</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>43</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_108"> <Value> <Obj> <type>0</type> <id>178</id> <name>tmp_data_1_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>376</item> <item>377</item> <item>378</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>44</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_109"> <Value> <Obj> <type>0</type> <id>179</id> <name>icmp_ln1494_2</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>379</item> <item>380</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>45</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_110"> <Value> <Obj> <type>0</type> <id>180</id> <name>trunc_ln708_2</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>381</item> <item>382</item> <item>383</item> <item>384</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>46</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_111"> <Value> <Obj> <type>0</type> <id>181</id> <name>tmp_data_2_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>385</item> <item>386</item> <item>387</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>47</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_112"> <Value> <Obj> <type>0</type> <id>182</id> <name>icmp_ln1494_3</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>388</item> <item>389</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>48</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_113"> <Value> <Obj> <type>0</type> <id>183</id> <name>trunc_ln708_3</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>390</item> <item>391</item> <item>392</item> <item>393</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>49</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_114"> <Value> <Obj> <type>0</type> <id>184</id> <name>tmp_data_3_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[3].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>394</item> <item>395</item> <item>396</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>50</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_115"> <Value> <Obj> <type>0</type> <id>185</id> <name>icmp_ln1494_4</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>397</item> <item>398</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>51</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_116"> <Value> <Obj> <type>0</type> <id>186</id> <name>trunc_ln708_4</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>399</item> <item>400</item> <item>401</item> <item>402</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>52</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_117"> <Value> <Obj> <type>0</type> <id>187</id> <name>tmp_data_4_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[4].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>403</item> <item>404</item> <item>405</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>53</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_118"> <Value> <Obj> <type>0</type> <id>188</id> <name>icmp_ln1494_5</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>406</item> <item>407</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>54</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_119"> <Value> <Obj> <type>0</type> <id>189</id> <name>trunc_ln708_5</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>408</item> <item>409</item> <item>410</item> <item>411</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>55</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_120"> <Value> <Obj> <type>0</type> <id>190</id> <name>tmp_data_5_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[5].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>412</item> <item>413</item> <item>414</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>56</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_121"> <Value> <Obj> <type>0</type> <id>191</id> <name>icmp_ln1494_6</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>415</item> <item>416</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>57</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_122"> <Value> <Obj> <type>0</type> <id>192</id> <name>trunc_ln708_6</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>417</item> <item>418</item> <item>419</item> <item>420</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>58</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_123"> <Value> <Obj> <type>0</type> <id>193</id> <name>tmp_data_6_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[6].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>421</item> <item>422</item> <item>423</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>59</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_124"> <Value> <Obj> <type>0</type> <id>194</id> <name>icmp_ln1494_7</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>424</item> <item>425</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>60</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_125"> <Value> <Obj> <type>0</type> <id>195</id> <name>trunc_ln708_7</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>426</item> <item>427</item> <item>428</item> <item>429</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>61</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_126"> <Value> <Obj> <type>0</type> <id>196</id> <name>tmp_data_7_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[7].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>430</item> <item>431</item> <item>432</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>62</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_127"> <Value> <Obj> <type>0</type> <id>197</id> <name>icmp_ln1494_8</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>433</item> <item>434</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>63</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_128"> <Value> <Obj> <type>0</type> <id>198</id> <name>trunc_ln708_8</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>435</item> <item>436</item> <item>437</item> <item>438</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>64</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_129"> <Value> <Obj> <type>0</type> <id>199</id> <name>tmp_data_8_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[8].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>439</item> <item>440</item> <item>441</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>65</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_130"> <Value> <Obj> <type>0</type> <id>200</id> <name>icmp_ln1494_9</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>442</item> <item>443</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>66</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_131"> <Value> <Obj> <type>0</type> <id>201</id> <name>trunc_ln708_9</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>444</item> <item>445</item> <item>446</item> <item>447</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>67</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_132"> <Value> <Obj> <type>0</type> <id>202</id> <name>tmp_data_9_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[9].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>448</item> <item>449</item> <item>450</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>68</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_133"> <Value> <Obj> <type>0</type> <id>203</id> <name>icmp_ln1494_10</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>451</item> <item>452</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>69</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_134"> <Value> <Obj> <type>0</type> <id>204</id> <name>trunc_ln708_s</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>453</item> <item>454</item> <item>455</item> <item>456</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>70</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_135"> <Value> <Obj> <type>0</type> <id>205</id> <name>tmp_data_10_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[10].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>457</item> <item>458</item> <item>459</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>71</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_136"> <Value> <Obj> <type>0</type> <id>206</id> <name>icmp_ln1494_11</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>460</item> <item>461</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>72</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_137"> <Value> <Obj> <type>0</type> <id>207</id> <name>trunc_ln708_10</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>462</item> <item>463</item> <item>464</item> <item>465</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>73</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_138"> <Value> <Obj> <type>0</type> <id>208</id> <name>tmp_data_11_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[11].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>466</item> <item>467</item> <item>468</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>74</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_139"> <Value> <Obj> <type>0</type> <id>209</id> <name>icmp_ln1494_12</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>469</item> <item>470</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>75</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_140"> <Value> <Obj> <type>0</type> <id>210</id> <name>trunc_ln708_11</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>471</item> <item>472</item> <item>473</item> <item>474</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>76</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_141"> <Value> <Obj> <type>0</type> <id>211</id> <name>tmp_data_12_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[12].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>475</item> <item>476</item> <item>477</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>77</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_142"> <Value> <Obj> <type>0</type> <id>212</id> <name>icmp_ln1494_13</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>478</item> <item>479</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>78</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_143"> <Value> <Obj> <type>0</type> <id>213</id> <name>trunc_ln708_12</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>480</item> <item>481</item> <item>482</item> <item>483</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>79</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_144"> <Value> <Obj> <type>0</type> <id>214</id> <name>tmp_data_13_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[13].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>484</item> <item>485</item> <item>486</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>80</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_145"> <Value> <Obj> <type>0</type> <id>215</id> <name>icmp_ln1494_14</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>487</item> <item>488</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>81</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_146"> <Value> <Obj> <type>0</type> <id>216</id> <name>trunc_ln708_13</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>489</item> <item>490</item> <item>491</item> <item>492</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>82</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_147"> <Value> <Obj> <type>0</type> <id>217</id> <name>tmp_data_14_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[14].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>493</item> <item>494</item> <item>495</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>83</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_148"> <Value> <Obj> <type>0</type> <id>218</id> <name>icmp_ln1494_15</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>496</item> <item>497</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>84</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_149"> <Value> <Obj> <type>0</type> <id>219</id> <name>trunc_ln708_14</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>498</item> <item>499</item> <item>500</item> <item>501</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>85</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_150"> <Value> <Obj> <type>0</type> <id>220</id> <name>tmp_data_15_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[15].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>502</item> <item>503</item> <item>504</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>86</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_151"> <Value> <Obj> <type>0</type> <id>221</id> <name>icmp_ln1494_16</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>505</item> <item>506</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>87</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_152"> <Value> <Obj> <type>0</type> <id>222</id> <name>trunc_ln708_15</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>507</item> <item>508</item> <item>509</item> <item>510</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>88</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_153"> <Value> <Obj> <type>0</type> <id>223</id> <name>tmp_data_16_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[16].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>511</item> <item>512</item> <item>513</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>89</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_154"> <Value> <Obj> <type>0</type> <id>224</id> <name>icmp_ln1494_17</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>514</item> <item>515</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>90</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_155"> <Value> <Obj> <type>0</type> <id>225</id> <name>trunc_ln708_16</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>516</item> <item>517</item> <item>518</item> <item>519</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>91</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_156"> <Value> <Obj> <type>0</type> <id>226</id> <name>tmp_data_17_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[17].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>520</item> <item>521</item> <item>522</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>92</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_157"> <Value> <Obj> <type>0</type> <id>227</id> <name>icmp_ln1494_18</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>523</item> <item>524</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>93</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_158"> <Value> <Obj> <type>0</type> <id>228</id> <name>trunc_ln708_17</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>525</item> <item>526</item> <item>527</item> <item>528</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>94</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_159"> <Value> <Obj> <type>0</type> <id>229</id> <name>tmp_data_18_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[18].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>529</item> <item>530</item> <item>531</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>95</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_160"> <Value> <Obj> <type>0</type> <id>230</id> <name>icmp_ln1494_19</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>532</item> <item>533</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>96</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_161"> <Value> <Obj> <type>0</type> <id>231</id> <name>trunc_ln708_18</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>534</item> <item>535</item> <item>536</item> <item>537</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>97</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_162"> <Value> <Obj> <type>0</type> <id>232</id> <name>tmp_data_19_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[19].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>538</item> <item>539</item> <item>540</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>98</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_163"> <Value> <Obj> <type>0</type> <id>233</id> <name>icmp_ln1494_20</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>541</item> <item>542</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>99</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_164"> <Value> <Obj> <type>0</type> <id>234</id> <name>trunc_ln708_19</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>543</item> <item>544</item> <item>545</item> <item>546</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>100</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_165"> <Value> <Obj> <type>0</type> <id>235</id> <name>tmp_data_20_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[20].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>547</item> <item>548</item> <item>549</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>101</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_166"> <Value> <Obj> <type>0</type> <id>236</id> <name>icmp_ln1494_21</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>550</item> <item>551</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>102</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_167"> <Value> <Obj> <type>0</type> <id>237</id> <name>trunc_ln708_20</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>552</item> <item>553</item> <item>554</item> <item>555</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>103</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_168"> <Value> <Obj> <type>0</type> <id>238</id> <name>tmp_data_21_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[21].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>556</item> <item>557</item> <item>558</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>104</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_169"> <Value> <Obj> <type>0</type> <id>239</id> <name>icmp_ln1494_22</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>559</item> <item>560</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>105</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_170"> <Value> <Obj> <type>0</type> <id>240</id> <name>trunc_ln708_21</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>561</item> <item>562</item> <item>563</item> <item>564</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>106</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_171"> <Value> <Obj> <type>0</type> <id>241</id> <name>tmp_data_22_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[22].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>565</item> <item>566</item> <item>567</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>107</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_172"> <Value> <Obj> <type>0</type> <id>242</id> <name>icmp_ln1494_23</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>568</item> <item>569</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>108</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_173"> <Value> <Obj> <type>0</type> <id>243</id> <name>trunc_ln708_22</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>570</item> <item>571</item> <item>572</item> <item>573</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>109</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_174"> <Value> <Obj> <type>0</type> <id>244</id> <name>tmp_data_23_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[23].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>574</item> <item>575</item> <item>576</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>110</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_175"> <Value> <Obj> <type>0</type> <id>245</id> <name>icmp_ln1494_24</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>577</item> <item>578</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>111</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_176"> <Value> <Obj> <type>0</type> <id>246</id> <name>trunc_ln708_23</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>579</item> <item>580</item> <item>581</item> <item>582</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>112</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_177"> <Value> <Obj> <type>0</type> <id>247</id> <name>tmp_data_24_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[24].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>583</item> <item>584</item> <item>585</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>113</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_178"> <Value> <Obj> <type>0</type> <id>248</id> <name>icmp_ln1494_25</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>586</item> <item>587</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>114</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_179"> <Value> <Obj> <type>0</type> <id>249</id> <name>trunc_ln708_24</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>588</item> <item>589</item> <item>590</item> <item>591</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>115</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_180"> <Value> <Obj> <type>0</type> <id>250</id> <name>tmp_data_25_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[25].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>592</item> <item>593</item> <item>594</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>116</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_181"> <Value> <Obj> <type>0</type> <id>251</id> <name>icmp_ln1494_26</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>595</item> <item>596</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>117</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_182"> <Value> <Obj> <type>0</type> <id>252</id> <name>trunc_ln708_25</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>597</item> <item>598</item> <item>599</item> <item>600</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>118</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_183"> <Value> <Obj> <type>0</type> <id>253</id> <name>tmp_data_26_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[26].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>601</item> <item>602</item> <item>603</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>119</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_184"> <Value> <Obj> <type>0</type> <id>254</id> <name>icmp_ln1494_27</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>604</item> <item>605</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>120</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_185"> <Value> <Obj> <type>0</type> <id>255</id> <name>trunc_ln708_26</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>606</item> <item>607</item> <item>608</item> <item>609</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>121</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_186"> <Value> <Obj> <type>0</type> <id>256</id> <name>tmp_data_27_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[27].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>610</item> <item>611</item> <item>612</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>122</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_187"> <Value> <Obj> <type>0</type> <id>257</id> <name>icmp_ln1494_28</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>613</item> <item>614</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>123</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_188"> <Value> <Obj> <type>0</type> <id>258</id> <name>trunc_ln708_27</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>615</item> <item>616</item> <item>617</item> <item>618</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>124</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_189"> <Value> <Obj> <type>0</type> <id>259</id> <name>tmp_data_28_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[28].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>619</item> <item>620</item> <item>621</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>125</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_190"> <Value> <Obj> <type>0</type> <id>260</id> <name>icmp_ln1494_29</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>622</item> <item>623</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>126</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_191"> <Value> <Obj> <type>0</type> <id>261</id> <name>trunc_ln708_28</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>624</item> <item>625</item> <item>626</item> <item>627</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>127</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_192"> <Value> <Obj> <type>0</type> <id>262</id> <name>tmp_data_29_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[29].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>628</item> <item>629</item> <item>630</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>128</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_193"> <Value> <Obj> <type>0</type> <id>263</id> <name>icmp_ln1494_30</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>631</item> <item>632</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>129</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_194"> <Value> <Obj> <type>0</type> <id>264</id> <name>trunc_ln708_29</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>633</item> <item>634</item> <item>635</item> <item>636</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>130</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_195"> <Value> <Obj> <type>0</type> <id>265</id> <name>tmp_data_30_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[30].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>637</item> <item>638</item> <item>639</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>131</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_196"> <Value> <Obj> <type>0</type> <id>266</id> <name>icmp_ln1494_31</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</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>640</item> <item>641</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.66</m_delay> <m_topoIndex>132</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_197"> <Value> <Obj> <type>0</type> <id>267</id> <name>trunc_ln708_30</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>642</item> <item>643</item> <item>644</item> <item>645</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>133</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_198"> <Value> <Obj> <type>0</type> <id>268</id> <name>tmp_data_31_V</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data[31].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>646</item> <item>647</item> <item>648</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.24</m_delay> <m_topoIndex>134</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_199"> <Value> <Obj> <type>0</type> <id>269</id> <name>res_V_data_0_V_write_ln73</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>73</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>65</count> <item_version>0</item_version> <item>650</item> <item>651</item> <item>652</item> <item>653</item> <item>654</item> <item>655</item> <item>656</item> <item>657</item> <item>658</item> <item>659</item> <item>660</item> <item>661</item> <item>662</item> <item>663</item> <item>664</item> <item>665</item> <item>666</item> <item>667</item> <item>668</item> <item>669</item> <item>670</item> <item>671</item> <item>672</item> <item>673</item> <item>674</item> <item>675</item> <item>676</item> <item>677</item> <item>678</item> <item>679</item> <item>680</item> <item>681</item> <item>682</item> <item>683</item> <item>684</item> <item>685</item> <item>686</item> <item>687</item> <item>688</item> <item>689</item> <item>690</item> <item>691</item> <item>692</item> <item>693</item> <item>694</item> <item>695</item> <item>696</item> <item>697</item> <item>698</item> <item>699</item> <item>700</item> <item>701</item> <item>702</item> <item>703</item> <item>704</item> <item>705</item> <item>706</item> <item>707</item> <item>708</item> <item>709</item> <item>710</item> <item>711</item> <item>712</item> <item>713</item> <item>714</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>3.63</m_delay> <m_topoIndex>135</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_200"> <Value> <Obj> <type>0</type> <id>271</id> <name>_ln60</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>60</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>715</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>136</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_201"> <Value> <Obj> <type>0</type> <id>273</id> <name>_ln75</name> <fileName>firmware/nnet_utils/nnet_activation_stream.h</fileName> <fileDirectory>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</fileDirectory> <lineNumber>75</lineNumber> <contextFuncName>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/data/armita/Andy/platform_ml_models/eembc/CIFAR10_ResNetv1/my-hls-test-quantized-tiny2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>firmware/nnet_utils/nnet_activation_stream.h</first> <second>relu&amp;lt;nnet::array&amp;lt;ap_fixed&amp;lt;9, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, nnet::array&amp;lt;ap_fixed&amp;lt;8, 6, 5, 3, 0&amp;gt;, 32&amp;gt;, relu_config16&amp;gt;</second> </first> <second>75</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>137</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_202"> <Value> <Obj> <type>2</type> <id>276</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="_203"> <Value> <Obj> <type>2</type> <id>282</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="_204"> <Value> <Obj> <type>2</type> <id>285</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> <item class_id_reference="16" object_id="_205"> <Value> <Obj> <type>2</type> <id>357</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>9</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_206"> <Value> <Obj> <type>2</type> <id>362</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>1</content> </item> <item class_id_reference="16" object_id="_207"> <Value> <Obj> <type>2</type> <id>364</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>8</content> </item> <item class_id_reference="16" object_id="_208"> <Value> <Obj> <type>2</type> <id>368</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> </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="_209"> <Obj> <type>3</type> <id>130</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>129</item> </node_objs> </item> <item class_id_reference="18" object_id="_210"> <Obj> <type>3</type> <id>136</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>131</item> <item>132</item> <item>134</item> <item>135</item> </node_objs> </item> <item class_id_reference="18" object_id="_211"> <Obj> <type>3</type> <id>272</id> <name>ReLUActLoop</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>131</count> <item_version>0</item_version> <item>140</item> <item>141</item> <item>142</item> <item>143</item> <item>144</item> <item>145</item> <item>146</item> <item>147</item> <item>148</item> <item>149</item> <item>150</item> <item>151</item> <item>152</item> <item>153</item> <item>154</item> <item>155</item> <item>156</item> <item>157</item> <item>158</item> <item>159</item> <item>160</item> <item>161</item> <item>162</item> <item>163</item> <item>164</item> <item>165</item> <item>166</item> <item>167</item> <item>168</item> <item>169</item> <item>170</item> <item>171</item> <item>172</item> <item>173</item> <item>174</item> <item>175</item> <item>176</item> <item>177</item> <item>178</item> <item>179</item> <item>180</item> <item>181</item> <item>182</item> <item>183</item> <item>184</item> <item>185</item> <item>186</item> <item>187</item> <item>188</item> <item>189</item> <item>190</item> <item>191</item> <item>192</item> <item>193</item> <item>194</item> <item>195</item> <item>196</item> <item>197</item> <item>198</item> <item>199</item> <item>200</item> <item>201</item> <item>202</item> <item>203</item> <item>204</item> <item>205</item> <item>206</item> <item>207</item> <item>208</item> <item>209</item> <item>210</item> <item>211</item> <item>212</item> <item>213</item> <item>214</item> <item>215</item> <item>216</item> <item>217</item> <item>218</item> <item>219</item> <item>220</item> <item>221</item> <item>222</item> <item>223</item> <item>224</item> <item>225</item> <item>226</item> <item>227</item> <item>228</item> <item>229</item> <item>230</item> <item>231</item> <item>232</item> <item>233</item> <item>234</item> <item>235</item> <item>236</item> <item>237</item> <item>238</item> <item>239</item> <item>240</item> <item>241</item> <item>242</item> <item>243</item> <item>244</item> <item>245</item> <item>246</item> <item>247</item> <item>248</item> <item>249</item> <item>250</item> <item>251</item> <item>252</item> <item>253</item> <item>254</item> <item>255</item> <item>256</item> <item>257</item> <item>258</item> <item>259</item> <item>260</item> <item>261</item> <item>262</item> <item>263</item> <item>264</item> <item>265</item> <item>266</item> <item>267</item> <item>268</item> <item>269</item> <item>271</item> </node_objs> </item> <item class_id_reference="18" object_id="_212"> <Obj> <type>3</type> <id>274</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>273</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>401</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_213"> <id>275</id> <edge_type>2</edge_type> <source_obj>136</source_obj> <sink_obj>129</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_214"> <id>277</id> <edge_type>1</edge_type> <source_obj>276</source_obj> <sink_obj>131</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_215"> <id>278</id> <edge_type>2</edge_type> <source_obj>130</source_obj> <sink_obj>131</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_216"> <id>279</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>131</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_217"> <id>280</id> <edge_type>2</edge_type> <source_obj>272</source_obj> <sink_obj>131</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_218"> <id>281</id> <edge_type>1</edge_type> <source_obj>131</source_obj> <sink_obj>132</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_219"> <id>283</id> <edge_type>1</edge_type> <source_obj>282</source_obj> <sink_obj>132</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_220"> <id>284</id> <edge_type>1</edge_type> <source_obj>131</source_obj> <sink_obj>134</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_221"> <id>286</id> <edge_type>1</edge_type> <source_obj>285</source_obj> <sink_obj>134</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_222"> <id>287</id> <edge_type>1</edge_type> <source_obj>132</source_obj> <sink_obj>135</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_223"> <id>288</id> <edge_type>2</edge_type> <source_obj>272</source_obj> <sink_obj>135</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_224"> <id>289</id> <edge_type>2</edge_type> <source_obj>274</source_obj> <sink_obj>135</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_225"> <id>292</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_226"> <id>293</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_227"> <id>294</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_228"> <id>295</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_229"> <id>296</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_230"> <id>297</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_231"> <id>298</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_232"> <id>299</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_233"> <id>300</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_234"> <id>301</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_235"> <id>302</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_236"> <id>303</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_237"> <id>304</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_238"> <id>305</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_239"> <id>306</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_240"> <id>307</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_241"> <id>308</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_242"> <id>309</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_243"> <id>310</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_244"> <id>311</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_245"> <id>312</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_246"> <id>313</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_247"> <id>314</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_248"> <id>315</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_249"> <id>316</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_250"> <id>317</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_251"> <id>318</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_252"> <id>319</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_253"> <id>320</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_254"> <id>321</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_255"> <id>322</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_256"> <id>323</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>140</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_257"> <id>324</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>141</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_258"> <id>325</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>142</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_259"> <id>326</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>143</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_260"> <id>327</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>144</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_261"> <id>328</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>145</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_262"> <id>329</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>146</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_263"> <id>330</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>147</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_264"> <id>331</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>148</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_265"> <id>332</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>149</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_266"> <id>333</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>150</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_267"> <id>334</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>151</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_268"> <id>335</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>152</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_269"> <id>336</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>153</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_270"> <id>337</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>154</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_271"> <id>338</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>155</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_272"> <id>339</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>156</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_273"> <id>340</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>157</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_274"> <id>341</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>158</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_275"> <id>342</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>159</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_276"> <id>343</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>160</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_277"> <id>344</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>161</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_278"> <id>345</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>162</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_279"> <id>346</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>163</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_280"> <id>347</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>164</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_281"> <id>348</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>165</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_282"> <id>349</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>166</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_283"> <id>350</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>167</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_284"> <id>351</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>168</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_285"> <id>352</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>169</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_286"> <id>353</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>170</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_287"> <id>354</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>171</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_288"> <id>355</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>172</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_289"> <id>356</id> <edge_type>1</edge_type> <source_obj>141</source_obj> <sink_obj>173</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_290"> <id>358</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>173</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_291"> <id>361</id> <edge_type>1</edge_type> <source_obj>141</source_obj> <sink_obj>174</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_292"> <id>363</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>174</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_293"> <id>365</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>174</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_294"> <id>366</id> <edge_type>1</edge_type> <source_obj>173</source_obj> <sink_obj>175</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_295"> <id>367</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>175</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_296"> <id>369</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>175</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_297"> <id>370</id> <edge_type>1</edge_type> <source_obj>142</source_obj> <sink_obj>176</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_298"> <id>371</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>176</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_299"> <id>373</id> <edge_type>1</edge_type> <source_obj>142</source_obj> <sink_obj>177</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_300"> <id>374</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>177</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_301"> <id>375</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>177</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_302"> <id>376</id> <edge_type>1</edge_type> <source_obj>176</source_obj> <sink_obj>178</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_303"> <id>377</id> <edge_type>1</edge_type> <source_obj>177</source_obj> <sink_obj>178</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_304"> <id>378</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>178</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_305"> <id>379</id> <edge_type>1</edge_type> <source_obj>143</source_obj> <sink_obj>179</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_306"> <id>380</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>179</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_307"> <id>382</id> <edge_type>1</edge_type> <source_obj>143</source_obj> <sink_obj>180</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_308"> <id>383</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>180</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_309"> <id>384</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>180</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_310"> <id>385</id> <edge_type>1</edge_type> <source_obj>179</source_obj> <sink_obj>181</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_311"> <id>386</id> <edge_type>1</edge_type> <source_obj>180</source_obj> <sink_obj>181</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_312"> <id>387</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>181</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_313"> <id>388</id> <edge_type>1</edge_type> <source_obj>144</source_obj> <sink_obj>182</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_314"> <id>389</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>182</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_315"> <id>391</id> <edge_type>1</edge_type> <source_obj>144</source_obj> <sink_obj>183</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_316"> <id>392</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>183</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_317"> <id>393</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>183</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_318"> <id>394</id> <edge_type>1</edge_type> <source_obj>182</source_obj> <sink_obj>184</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_319"> <id>395</id> <edge_type>1</edge_type> <source_obj>183</source_obj> <sink_obj>184</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_320"> <id>396</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>184</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_321"> <id>397</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>185</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_322"> <id>398</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>185</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_323"> <id>400</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>186</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_324"> <id>401</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>186</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_325"> <id>402</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>186</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_326"> <id>403</id> <edge_type>1</edge_type> <source_obj>185</source_obj> <sink_obj>187</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_327"> <id>404</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>187</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_328"> <id>405</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>187</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_329"> <id>406</id> <edge_type>1</edge_type> <source_obj>146</source_obj> <sink_obj>188</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_330"> <id>407</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>188</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_331"> <id>409</id> <edge_type>1</edge_type> <source_obj>146</source_obj> <sink_obj>189</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_332"> <id>410</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>189</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_333"> <id>411</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>189</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_334"> <id>412</id> <edge_type>1</edge_type> <source_obj>188</source_obj> <sink_obj>190</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_335"> <id>413</id> <edge_type>1</edge_type> <source_obj>189</source_obj> <sink_obj>190</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_336"> <id>414</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>190</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_337"> <id>415</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>191</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_338"> <id>416</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>191</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_339"> <id>418</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>192</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_340"> <id>419</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>192</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_341"> <id>420</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>192</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_342"> <id>421</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>193</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_343"> <id>422</id> <edge_type>1</edge_type> <source_obj>192</source_obj> <sink_obj>193</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_344"> <id>423</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>193</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_345"> <id>424</id> <edge_type>1</edge_type> <source_obj>148</source_obj> <sink_obj>194</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_346"> <id>425</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>194</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_347"> <id>427</id> <edge_type>1</edge_type> <source_obj>148</source_obj> <sink_obj>195</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_348"> <id>428</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>195</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_349"> <id>429</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>195</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_350"> <id>430</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>196</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_351"> <id>431</id> <edge_type>1</edge_type> <source_obj>195</source_obj> <sink_obj>196</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_352"> <id>432</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>196</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_353"> <id>433</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>197</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_354"> <id>434</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>197</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_355"> <id>436</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>198</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_356"> <id>437</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>198</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_357"> <id>438</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>198</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_358"> <id>439</id> <edge_type>1</edge_type> <source_obj>197</source_obj> <sink_obj>199</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_359"> <id>440</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>199</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_360"> <id>441</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>199</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_361"> <id>442</id> <edge_type>1</edge_type> <source_obj>150</source_obj> <sink_obj>200</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_362"> <id>443</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>200</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_363"> <id>445</id> <edge_type>1</edge_type> <source_obj>150</source_obj> <sink_obj>201</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_364"> <id>446</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>201</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_365"> <id>447</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>201</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_366"> <id>448</id> <edge_type>1</edge_type> <source_obj>200</source_obj> <sink_obj>202</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_367"> <id>449</id> <edge_type>1</edge_type> <source_obj>201</source_obj> <sink_obj>202</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_368"> <id>450</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>202</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_369"> <id>451</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>203</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_370"> <id>452</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>203</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_371"> <id>454</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>204</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_372"> <id>455</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>204</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_373"> <id>456</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>204</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_374"> <id>457</id> <edge_type>1</edge_type> <source_obj>203</source_obj> <sink_obj>205</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_375"> <id>458</id> <edge_type>1</edge_type> <source_obj>204</source_obj> <sink_obj>205</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_376"> <id>459</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>205</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_377"> <id>460</id> <edge_type>1</edge_type> <source_obj>152</source_obj> <sink_obj>206</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_378"> <id>461</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>206</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_379"> <id>463</id> <edge_type>1</edge_type> <source_obj>152</source_obj> <sink_obj>207</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_380"> <id>464</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>207</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_381"> <id>465</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>207</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_382"> <id>466</id> <edge_type>1</edge_type> <source_obj>206</source_obj> <sink_obj>208</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_383"> <id>467</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>208</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_384"> <id>468</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>208</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_385"> <id>469</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>209</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_386"> <id>470</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>209</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_387"> <id>472</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>210</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_388"> <id>473</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>210</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_389"> <id>474</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>210</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_390"> <id>475</id> <edge_type>1</edge_type> <source_obj>209</source_obj> <sink_obj>211</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_391"> <id>476</id> <edge_type>1</edge_type> <source_obj>210</source_obj> <sink_obj>211</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_392"> <id>477</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>211</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_393"> <id>478</id> <edge_type>1</edge_type> <source_obj>154</source_obj> <sink_obj>212</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_394"> <id>479</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>212</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_395"> <id>481</id> <edge_type>1</edge_type> <source_obj>154</source_obj> <sink_obj>213</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_396"> <id>482</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>213</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_397"> <id>483</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>213</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_398"> <id>484</id> <edge_type>1</edge_type> <source_obj>212</source_obj> <sink_obj>214</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_399"> <id>485</id> <edge_type>1</edge_type> <source_obj>213</source_obj> <sink_obj>214</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_400"> <id>486</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>214</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_401"> <id>487</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>215</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_402"> <id>488</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>215</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_403"> <id>490</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>216</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_404"> <id>491</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>216</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_405"> <id>492</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>216</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_406"> <id>493</id> <edge_type>1</edge_type> <source_obj>215</source_obj> <sink_obj>217</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_407"> <id>494</id> <edge_type>1</edge_type> <source_obj>216</source_obj> <sink_obj>217</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_408"> <id>495</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>217</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_409"> <id>496</id> <edge_type>1</edge_type> <source_obj>156</source_obj> <sink_obj>218</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_410"> <id>497</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>218</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_411"> <id>499</id> <edge_type>1</edge_type> <source_obj>156</source_obj> <sink_obj>219</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_412"> <id>500</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>219</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_413"> <id>501</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>219</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_414"> <id>502</id> <edge_type>1</edge_type> <source_obj>218</source_obj> <sink_obj>220</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_415"> <id>503</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>220</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_416"> <id>504</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>220</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_417"> <id>505</id> <edge_type>1</edge_type> <source_obj>157</source_obj> <sink_obj>221</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_418"> <id>506</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>221</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_419"> <id>508</id> <edge_type>1</edge_type> <source_obj>157</source_obj> <sink_obj>222</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_420"> <id>509</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>222</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_421"> <id>510</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>222</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_422"> <id>511</id> <edge_type>1</edge_type> <source_obj>221</source_obj> <sink_obj>223</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_423"> <id>512</id> <edge_type>1</edge_type> <source_obj>222</source_obj> <sink_obj>223</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_424"> <id>513</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>223</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_425"> <id>514</id> <edge_type>1</edge_type> <source_obj>158</source_obj> <sink_obj>224</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_426"> <id>515</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>224</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_427"> <id>517</id> <edge_type>1</edge_type> <source_obj>158</source_obj> <sink_obj>225</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_428"> <id>518</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>225</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_429"> <id>519</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>225</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_430"> <id>520</id> <edge_type>1</edge_type> <source_obj>224</source_obj> <sink_obj>226</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_431"> <id>521</id> <edge_type>1</edge_type> <source_obj>225</source_obj> <sink_obj>226</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_432"> <id>522</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>226</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_433"> <id>523</id> <edge_type>1</edge_type> <source_obj>159</source_obj> <sink_obj>227</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_434"> <id>524</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>227</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_435"> <id>526</id> <edge_type>1</edge_type> <source_obj>159</source_obj> <sink_obj>228</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_436"> <id>527</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>228</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_437"> <id>528</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>228</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_438"> <id>529</id> <edge_type>1</edge_type> <source_obj>227</source_obj> <sink_obj>229</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_439"> <id>530</id> <edge_type>1</edge_type> <source_obj>228</source_obj> <sink_obj>229</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_440"> <id>531</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>229</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_441"> <id>532</id> <edge_type>1</edge_type> <source_obj>160</source_obj> <sink_obj>230</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_442"> <id>533</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>230</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_443"> <id>535</id> <edge_type>1</edge_type> <source_obj>160</source_obj> <sink_obj>231</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_444"> <id>536</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>231</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_445"> <id>537</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>231</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_446"> <id>538</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>232</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_447"> <id>539</id> <edge_type>1</edge_type> <source_obj>231</source_obj> <sink_obj>232</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_448"> <id>540</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>232</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_449"> <id>541</id> <edge_type>1</edge_type> <source_obj>161</source_obj> <sink_obj>233</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_450"> <id>542</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>233</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_451"> <id>544</id> <edge_type>1</edge_type> <source_obj>161</source_obj> <sink_obj>234</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_452"> <id>545</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>234</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_453"> <id>546</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>234</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_454"> <id>547</id> <edge_type>1</edge_type> <source_obj>233</source_obj> <sink_obj>235</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_455"> <id>548</id> <edge_type>1</edge_type> <source_obj>234</source_obj> <sink_obj>235</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_456"> <id>549</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>235</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_457"> <id>550</id> <edge_type>1</edge_type> <source_obj>162</source_obj> <sink_obj>236</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_458"> <id>551</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>236</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_459"> <id>553</id> <edge_type>1</edge_type> <source_obj>162</source_obj> <sink_obj>237</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_460"> <id>554</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>237</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_461"> <id>555</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>237</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_462"> <id>556</id> <edge_type>1</edge_type> <source_obj>236</source_obj> <sink_obj>238</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_463"> <id>557</id> <edge_type>1</edge_type> <source_obj>237</source_obj> <sink_obj>238</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_464"> <id>558</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>238</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_465"> <id>559</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>239</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_466"> <id>560</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>239</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_467"> <id>562</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>240</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_468"> <id>563</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>240</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_469"> <id>564</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>240</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_470"> <id>565</id> <edge_type>1</edge_type> <source_obj>239</source_obj> <sink_obj>241</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_471"> <id>566</id> <edge_type>1</edge_type> <source_obj>240</source_obj> <sink_obj>241</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_472"> <id>567</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>241</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_473"> <id>568</id> <edge_type>1</edge_type> <source_obj>164</source_obj> <sink_obj>242</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_474"> <id>569</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>242</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_475"> <id>571</id> <edge_type>1</edge_type> <source_obj>164</source_obj> <sink_obj>243</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_476"> <id>572</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>243</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_477"> <id>573</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>243</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_478"> <id>574</id> <edge_type>1</edge_type> <source_obj>242</source_obj> <sink_obj>244</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_479"> <id>575</id> <edge_type>1</edge_type> <source_obj>243</source_obj> <sink_obj>244</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_480"> <id>576</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>244</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_481"> <id>577</id> <edge_type>1</edge_type> <source_obj>165</source_obj> <sink_obj>245</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_482"> <id>578</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>245</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_483"> <id>580</id> <edge_type>1</edge_type> <source_obj>165</source_obj> <sink_obj>246</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_484"> <id>581</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>246</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_485"> <id>582</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>246</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_486"> <id>583</id> <edge_type>1</edge_type> <source_obj>245</source_obj> <sink_obj>247</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_487"> <id>584</id> <edge_type>1</edge_type> <source_obj>246</source_obj> <sink_obj>247</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_488"> <id>585</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>247</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_489"> <id>586</id> <edge_type>1</edge_type> <source_obj>166</source_obj> <sink_obj>248</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_490"> <id>587</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>248</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_491"> <id>589</id> <edge_type>1</edge_type> <source_obj>166</source_obj> <sink_obj>249</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_492"> <id>590</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>249</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_493"> <id>591</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>249</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_494"> <id>592</id> <edge_type>1</edge_type> <source_obj>248</source_obj> <sink_obj>250</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_495"> <id>593</id> <edge_type>1</edge_type> <source_obj>249</source_obj> <sink_obj>250</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_496"> <id>594</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>250</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_497"> <id>595</id> <edge_type>1</edge_type> <source_obj>167</source_obj> <sink_obj>251</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_498"> <id>596</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>251</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_499"> <id>598</id> <edge_type>1</edge_type> <source_obj>167</source_obj> <sink_obj>252</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_500"> <id>599</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>252</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_501"> <id>600</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>252</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_502"> <id>601</id> <edge_type>1</edge_type> <source_obj>251</source_obj> <sink_obj>253</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_503"> <id>602</id> <edge_type>1</edge_type> <source_obj>252</source_obj> <sink_obj>253</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_504"> <id>603</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>253</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_505"> <id>604</id> <edge_type>1</edge_type> <source_obj>168</source_obj> <sink_obj>254</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_506"> <id>605</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>254</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_507"> <id>607</id> <edge_type>1</edge_type> <source_obj>168</source_obj> <sink_obj>255</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_508"> <id>608</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>255</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_509"> <id>609</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>255</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_510"> <id>610</id> <edge_type>1</edge_type> <source_obj>254</source_obj> <sink_obj>256</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_511"> <id>611</id> <edge_type>1</edge_type> <source_obj>255</source_obj> <sink_obj>256</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_512"> <id>612</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>256</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_513"> <id>613</id> <edge_type>1</edge_type> <source_obj>169</source_obj> <sink_obj>257</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_514"> <id>614</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>257</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_515"> <id>616</id> <edge_type>1</edge_type> <source_obj>169</source_obj> <sink_obj>258</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_516"> <id>617</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>258</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_517"> <id>618</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>258</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_518"> <id>619</id> <edge_type>1</edge_type> <source_obj>257</source_obj> <sink_obj>259</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_519"> <id>620</id> <edge_type>1</edge_type> <source_obj>258</source_obj> <sink_obj>259</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_520"> <id>621</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>259</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_521"> <id>622</id> <edge_type>1</edge_type> <source_obj>170</source_obj> <sink_obj>260</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_522"> <id>623</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>260</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_523"> <id>625</id> <edge_type>1</edge_type> <source_obj>170</source_obj> <sink_obj>261</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_524"> <id>626</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>261</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_525"> <id>627</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>261</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_526"> <id>628</id> <edge_type>1</edge_type> <source_obj>260</source_obj> <sink_obj>262</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_527"> <id>629</id> <edge_type>1</edge_type> <source_obj>261</source_obj> <sink_obj>262</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_528"> <id>630</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>262</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_529"> <id>631</id> <edge_type>1</edge_type> <source_obj>171</source_obj> <sink_obj>263</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_530"> <id>632</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>263</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_531"> <id>634</id> <edge_type>1</edge_type> <source_obj>171</source_obj> <sink_obj>264</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_532"> <id>635</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>264</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_533"> <id>636</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>264</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_534"> <id>637</id> <edge_type>1</edge_type> <source_obj>263</source_obj> <sink_obj>265</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_535"> <id>638</id> <edge_type>1</edge_type> <source_obj>264</source_obj> <sink_obj>265</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_536"> <id>639</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>265</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_537"> <id>640</id> <edge_type>1</edge_type> <source_obj>172</source_obj> <sink_obj>266</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_538"> <id>641</id> <edge_type>1</edge_type> <source_obj>357</source_obj> <sink_obj>266</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_539"> <id>643</id> <edge_type>1</edge_type> <source_obj>172</source_obj> <sink_obj>267</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_540"> <id>644</id> <edge_type>1</edge_type> <source_obj>362</source_obj> <sink_obj>267</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_541"> <id>645</id> <edge_type>1</edge_type> <source_obj>364</source_obj> <sink_obj>267</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_542"> <id>646</id> <edge_type>1</edge_type> <source_obj>266</source_obj> <sink_obj>268</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_543"> <id>647</id> <edge_type>1</edge_type> <source_obj>267</source_obj> <sink_obj>268</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_544"> <id>648</id> <edge_type>1</edge_type> <source_obj>368</source_obj> <sink_obj>268</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_545"> <id>651</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_546"> <id>652</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_547"> <id>653</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_548"> <id>654</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_549"> <id>655</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_550"> <id>656</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_551"> <id>657</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_552"> <id>658</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_553"> <id>659</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_554"> <id>660</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_555"> <id>661</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_556"> <id>662</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_557"> <id>663</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_558"> <id>664</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_559"> <id>665</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_560"> <id>666</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_561"> <id>667</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_562"> <id>668</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_563"> <id>669</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_564"> <id>670</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_565"> <id>671</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_566"> <id>672</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_567"> <id>673</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_568"> <id>674</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_569"> <id>675</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_570"> <id>676</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_571"> <id>677</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_572"> <id>678</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_573"> <id>679</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_574"> <id>680</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_575"> <id>681</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_576"> <id>682</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_577"> <id>683</id> <edge_type>1</edge_type> <source_obj>175</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_578"> <id>684</id> <edge_type>1</edge_type> <source_obj>178</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_579"> <id>685</id> <edge_type>1</edge_type> <source_obj>181</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_580"> <id>686</id> <edge_type>1</edge_type> <source_obj>184</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_581"> <id>687</id> <edge_type>1</edge_type> <source_obj>187</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_582"> <id>688</id> <edge_type>1</edge_type> <source_obj>190</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_583"> <id>689</id> <edge_type>1</edge_type> <source_obj>193</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_584"> <id>690</id> <edge_type>1</edge_type> <source_obj>196</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_585"> <id>691</id> <edge_type>1</edge_type> <source_obj>199</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_586"> <id>692</id> <edge_type>1</edge_type> <source_obj>202</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_587"> <id>693</id> <edge_type>1</edge_type> <source_obj>205</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_588"> <id>694</id> <edge_type>1</edge_type> <source_obj>208</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_589"> <id>695</id> <edge_type>1</edge_type> <source_obj>211</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_590"> <id>696</id> <edge_type>1</edge_type> <source_obj>214</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_591"> <id>697</id> <edge_type>1</edge_type> <source_obj>217</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_592"> <id>698</id> <edge_type>1</edge_type> <source_obj>220</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_593"> <id>699</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_594"> <id>700</id> <edge_type>1</edge_type> <source_obj>226</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_595"> <id>701</id> <edge_type>1</edge_type> <source_obj>229</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_596"> <id>702</id> <edge_type>1</edge_type> <source_obj>232</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_597"> <id>703</id> <edge_type>1</edge_type> <source_obj>235</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_598"> <id>704</id> <edge_type>1</edge_type> <source_obj>238</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_599"> <id>705</id> <edge_type>1</edge_type> <source_obj>241</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_600"> <id>706</id> <edge_type>1</edge_type> <source_obj>244</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_601"> <id>707</id> <edge_type>1</edge_type> <source_obj>247</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_602"> <id>708</id> <edge_type>1</edge_type> <source_obj>250</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_603"> <id>709</id> <edge_type>1</edge_type> <source_obj>253</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_604"> <id>710</id> <edge_type>1</edge_type> <source_obj>256</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_605"> <id>711</id> <edge_type>1</edge_type> <source_obj>259</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_606"> <id>712</id> <edge_type>1</edge_type> <source_obj>262</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_607"> <id>713</id> <edge_type>1</edge_type> <source_obj>265</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_608"> <id>714</id> <edge_type>1</edge_type> <source_obj>268</source_obj> <sink_obj>269</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_609"> <id>715</id> <edge_type>2</edge_type> <source_obj>136</source_obj> <sink_obj>271</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_610"> <id>1839</id> <edge_type>2</edge_type> <source_obj>130</source_obj> <sink_obj>136</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_611"> <id>1840</id> <edge_type>2</edge_type> <source_obj>136</source_obj> <sink_obj>274</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_612"> <id>1841</id> <edge_type>2</edge_type> <source_obj>136</source_obj> <sink_obj>272</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_613"> <id>1842</id> <edge_type>2</edge_type> <source_obj>272</source_obj> <sink_obj>136</sink_obj> <is_back_edge>1</is_back_edge> </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="_614"> <mId>1</mId> <mTag>relu&lt;array,array&lt;ap_fixed,32u&gt;,relu_config16&gt;</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>67</mMinLatency> <mMaxLatency>67</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_615"> <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>130</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_616"> <mId>3</mId> <mTag>ReLUActLoop</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>136</item> <item>272</item> </basic_blocks> <mII>1</mII> <mDepth>3</mDepth> <mMinTripCount>64</mMinTripCount> <mMaxTripCount>64</mMaxTripCount> <mMinLatency>65</mMinLatency> <mMaxLatency>65</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_617"> <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>274</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>137</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>129</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>131</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>132</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>134</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>135</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>140</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>141</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>142</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>143</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>144</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>145</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>146</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>147</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>148</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>149</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>150</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>151</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>152</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>153</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>154</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>155</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>156</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>157</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>158</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>159</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>160</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>161</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>162</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>163</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>164</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>165</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>166</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>167</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>168</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>169</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>170</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>171</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>172</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>173</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>174</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>175</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>176</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>177</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>178</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>179</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>180</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>181</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>182</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>183</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>184</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>185</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>186</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>187</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>188</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>189</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>190</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>191</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>192</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>193</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>194</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>195</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>196</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>197</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>198</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>199</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>200</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>201</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>202</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>203</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>204</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>205</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>206</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>207</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>208</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>209</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>210</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>211</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>212</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>213</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>214</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>215</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>216</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>217</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>218</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>219</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>220</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>221</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>222</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>223</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>224</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>225</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>226</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>227</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>228</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>229</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>230</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>231</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>232</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>233</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>234</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>235</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>236</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>237</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>238</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>239</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>240</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>241</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>242</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>243</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>244</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>245</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>246</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>247</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>248</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>249</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>250</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>251</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>252</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>253</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>254</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>255</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>256</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>257</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>258</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>259</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>260</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>261</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>262</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>263</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>264</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>265</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>266</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>267</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>268</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>269</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>271</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>273</first> <second> <first>4</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>130</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>136</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>272</first> <second> <first>2</first> <second>3</second> </second> </item> <item> <first>274</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="1" version="0" object_id="_618"> <region_name>ReLUActLoop</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>136</item> <item>272</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>3</pipe_depth> </item> </regions> <dp_fu_nodes class_id="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
pragma License (Unrestricted); -- overridable runtime unit specialized for Windows (i386) package System.Unwind.Mapping is pragma Preelaborate; -- signal alt stack type Signal_Stack_Type is private; -- register signal handler (init.c/seh_init.c) procedure Install_Exception_Handler (SEH : Address) with Export, -- for weak linking Convention => Ada, External_Name => "__drake_install_exception_handler"; pragma No_Inline (Install_Exception_Handler); procedure Install_Task_Exception_Handler ( SEH : Address; Signal_Stack : not null access Signal_Stack_Type) with Export, Convention => Ada, External_Name => "__drake_install_task_exception_handler"; pragma No_Inline (Install_Task_Exception_Handler); procedure Reinstall_Exception_Handler with Export, Convention => Ada, External_Name => "__drake_reinstall_exception_handler"; pragma No_Inline (Reinstall_Exception_Handler); private type Signal_Stack_Type is null record; pragma Suppress_Initialization (Signal_Stack_Type); end System.Unwind.Mapping;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Examples Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- Read raw data from the file specified by the first argument in command -- line and decode it from the encoding specified by the second argument -- in the command line. Creates file specified by the third argument in -- command line and write data in the encoding specified by the forth -- argument. with Ada.Command_Line; with Ada.Characters.Conversions; with Ada.Streams.Stream_IO; with Ada.Wide_Wide_Text_IO; with League.Strings; with League.Text_Codecs; procedure Text_Codecs is File : Ada.Streams.Stream_IO.File_Type; Data : Ada.Streams.Stream_Element_Array (0 .. 16383); Last : Ada.Streams.Stream_Element_Offset; String : League.Strings.Universal_String; begin Ada.Streams.Stream_IO.Open (File, Ada.Streams.Stream_IO.In_File, Ada.Command_Line.Argument (1)); Ada.Streams.Stream_IO.Read (File, Data, Last); Ada.Streams.Stream_IO.Close (File); -- Decode text. declare Decoder : League.Text_Codecs.Text_Codec := League.Text_Codecs.Codec (League.Strings.To_Universal_String (Ada.Characters.Conversions.To_Wide_Wide_String (Ada.Command_Line.Argument (2)))); begin String := Decoder.Decode (Data (Data'First .. Last)); exception when Constraint_Error => Ada.Wide_Wide_Text_IO.Put_Line ("Decoding error"); raise; end; -- Encode text. declare Encoder : League.Text_Codecs.Text_Codec := League.Text_Codecs.Codec (League.Strings.To_Universal_String (Ada.Characters.Conversions.To_Wide_Wide_String (Ada.Command_Line.Argument (4)))); begin Ada.Streams.Stream_IO.Create (File, Ada.Streams.Stream_IO.Out_File, Ada.Command_Line.Argument (3)); Ada.Streams.Stream_IO.Write (File, Encoder.Encode (String).To_Stream_Element_Array); Ada.Streams.Stream_IO.Close (File); exception when Constraint_Error => Ada.Wide_Wide_Text_IO.Put_Line ("Encoding error"); raise; end; end Text_Codecs;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2013, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.OCL.Call_Exps; package AMF.OCL.Feature_Call_Exps is pragma Preelaborate; type OCL_Feature_Call_Exp is limited interface and AMF.OCL.Call_Exps.OCL_Call_Exp; type OCL_Feature_Call_Exp_Access is access all OCL_Feature_Call_Exp'Class; for OCL_Feature_Call_Exp_Access'Storage_Size use 0; end AMF.OCL.Feature_Call_Exps;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . T E X T _ I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Really simple implementation of System.Text_IO for systems without -- console. package body System.Text_IO is --------- -- Get -- --------- function Get return Character is begin -- Will never be called. raise Program_Error; return ASCII.NUL; end Get; ---------------- -- Initialize -- ---------------- procedure Initialize is begin Initialized := True; end Initialize; ----------------- -- Is_Rx_Ready -- ----------------- function Is_Rx_Ready return Boolean is begin return False; end Is_Rx_Ready; ----------------- -- Is_Tx_Ready -- ----------------- function Is_Tx_Ready return Boolean is begin return True; end Is_Tx_Ready; --------- -- Put -- --------- procedure Put (C : Character) is pragma Unreferenced (C); begin null; end Put; ---------------------------- -- Use_Cr_Lf_For_New_Line -- ---------------------------- function Use_Cr_Lf_For_New_Line return Boolean is begin return False; end Use_Cr_Lf_For_New_Line; end System.Text_IO;
----------------------------------------------------------------------- -- keystore-gpg_tests -- Test AKT with GPG2 -- Copyright (C) 2019, 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 Ada.Text_IO; with Ada.Directories; with Util.Test_Caller; with Util.Encoders.AES; with Util.Log.Loggers; with Util.Processes; with Util.Streams.Buffered; with Util.Streams.Pipes; with Keystore.Tests; package body Keystore.GPG_Tests is Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Keystore.GPG_Tests"); TEST_TOOL_PATH : constant String := "regtests/result/test-gpg-1.akt"; TEST_TOOL2_PATH : constant String := "regtests/result/test-gpg-2.akt"; TEST_TOOL3_PATH : constant String := "regtests/result/test-gpg-3.akt"; type User_Type is (User_1, User_2, User_3); function Tool (User : in User_Type) return String; package Caller is new Util.Test_Caller (Test, "AKT.GPG"); procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Test AKT.Commands.Create (GPG)", Test_Create'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Create (GPG++)", Test_Create_Multi_User'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Info (GPG)", Test_Info'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Password (GPG)", Test_Add_Password'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Password.Remove (GPG)", Test_Remove_Password'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Store (Update)", Test_Update_File'Access); Caller.Add_Test (Suite, "Test AKT.Commands.Store (GPG Error)", Test_GPG_Error'Access); end Add_Tests; -- ------------------------------ -- Get the tool command for a given user -- ------------------------------ function Tool (User : in User_Type) return String is Path : constant String := Util.Tests.Get_Test_Path ("regtests/files/gnupg/"); begin case User is when User_1 => return "bin/akt --config " & Path & "user1-akt.properties"; when User_2 => return "bin/akt --config " & Path & "user2-akt.properties"; when User_3 => return "bin/akt --config " & Path & "user3-akt.properties"; end case; end Tool; -- ------------------------------ -- Execute the command and get the output in a string. -- ------------------------------ procedure Execute (T : in out Test; Command : in String; Input : in String; Output : in String; Result : out Ada.Strings.Unbounded.Unbounded_String; Status : in Natural := 0) is P : aliased Util.Streams.Pipes.Pipe_Stream; Buffer : Util.Streams.Buffered.Input_Buffer_Stream; begin if Input'Length > 0 then Log.Info ("Execute: {0} < {1}", Command, Input); elsif Output'Length > 0 then Log.Info ("Execute: {0} > {1}", Command, Output); else Log.Info ("Execute: {0}", Command); end if; P.Set_Input_Stream (Input); P.Set_Output_Stream (Output); P.Open (Command, Util.Processes.READ_ALL); -- Write on the process input stream. Result := Ada.Strings.Unbounded.Null_Unbounded_String; Buffer.Initialize (P'Unchecked_Access, 8192); Buffer.Read (Result); P.Close; Ada.Text_IO.Put_Line (Ada.Strings.Unbounded.To_String (Result)); Log.Info ("Command result: {0}", Result); Util.Tests.Assert_Equals (T, Status, P.Get_Exit_Status, "Command '" & Command & "' failed"); end Execute; procedure Execute (T : in out Test; Command : in String; Result : out Ada.Strings.Unbounded.Unbounded_String; Status : in Natural := 0) is begin T.Execute (Command, "", "", Result, Status); end Execute; procedure Execute (T : in out Test; Command : in String; Expect : in String; Status : in Natural := 0) is Path : constant String := Util.Tests.Get_Test_Path ("regtests/expect/" & Expect); Output : constant String := Util.Tests.Get_Test_Path ("regtests/result/" & Expect); Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute (Command, "", Output, Result, Status); Util.Tests.Assert_Equal_Files (T, Path, Output, "Command '" & Command & "' invalid output"); end Execute; -- ------------------------------ -- Test the akt keystore creation. -- ------------------------------ procedure Test_Create (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin if Ada.Directories.Exists (Path) then Ada.Directories.Delete_File (Path); end if; -- Create keystore T.Execute (Tool (User_1) & " create -k " & Path & " --gpg akt-user1@ada-unit-test.org", Result); T.Assert (Ada.Directories.Exists (Path), "Keystore file does not exist"); -- List content => empty result T.Execute (Tool (User_1) & " list -k " & Path, Result); Util.Tests.Assert_Equals (T, "", Result, "list command failed"); -- Set property T.Execute (Tool (User_1) & " set -k " & Path & " testing my-testing-value", Result); Util.Tests.Assert_Equals (T, "", Result, "set command failed"); -- Get property T.Execute (Tool (User_1) & " get -k " & Path & " testing", Result); Util.Tests.Assert_Matches (T, "^my-testing-value", Result, "get command failed"); -- List content => one entry T.Execute (Tool (User_1) & " list -k " & Path, Result); Util.Tests.Assert_Matches (T, "^testing", Result, "list command failed"); -- Open keystore with another user GPG configuration should fail T.Execute (Tool (User_2) & " list -k " & Path, Result, 1); Util.Tests.Assert_Matches (T, "^Invalid password to unlock the keystore file", Result, "list command failed"); end Test_Create; -- ------------------------------ -- Test the akt keystore for several users each having their own GPG key. -- ------------------------------ procedure Test_Create_Multi_User (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL2_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin if Ada.Directories.Exists (Path) then Ada.Directories.Delete_File (Path); end if; -- Create keystore T.Execute (Tool (User_1) & " create -k " & Path & " --gpg akt-user1@ada-unit-test.org " & "akt-user2@ada-unit-test.org akt-user3@ada-unit-test.org", Result); T.Assert (Ada.Directories.Exists (Path), "Keystore file does not exist"); -- List content => empty result for User in User_Type'Range loop T.Execute (Tool (User) & " list -k " & Path, Result); Util.Tests.Assert_Equals (T, "", Result, "list command failed for " & User_Type'Image (User)); end loop; -- Set property T.Execute (Tool (User_1) & " set -k " & Path & " testing my-testing-value", Result); Util.Tests.Assert_Equals (T, "", Result, "set command failed"); -- Get property for User in User_Type'Range loop T.Execute (Tool (User) & " get -k " & Path & " testing", Result); Util.Tests.Assert_Matches (T, "^my-testing-value", Result, "get command failed for " & User_Type'Image (User)); end loop; -- List content => one entry for User in User_Type'Range loop T.Execute (Tool (User) & " list -k " & Path, Result); Util.Tests.Assert_Matches (T, "^testing", Result, "list command failed for " & User_Type'Image (User)); end loop; end Test_Create_Multi_User; -- ------------------------------ -- Test the akt info command on the GPG protected keystore. -- ------------------------------ procedure Test_Info (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL2_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin -- Get info about the keystore file. for User in User_Type'Range loop T.Execute (Tool (User) & " info -k " & Path, Result); Util.Tests.Assert_Matches (T, " 1 Kind.*2.*[0-9]+ .* [0-9A-F]+", Result, "info command failed for " & User_Type'Image (User)); Util.Tests.Assert_Matches (T, " 2 Kind.*2.*[0-9]+ .* [0-9A-F]+", Result, "info command failed for " & User_Type'Image (User)); Util.Tests.Assert_Matches (T, " 3 Kind.*2.*[0-9]+ .* [0-9A-F]+", Result, "info command failed for " & User_Type'Image (User)); Util.Tests.Assert_Matches (T, "Entry count: +1", Result, "invalid number of entries for " & User_Type'Image (User)); Util.Tests.Assert_Matches (T, "Key slots used: *1 2 3", Result, "invalid number of used key slots for " & User_Type'Image (User)); end loop; end Test_Info; -- ------------------------------ -- Test the akt password-add command to add a GPG key to a keystore. -- ------------------------------ procedure Test_Add_Password (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL3_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin if Ada.Directories.Exists (Path) then Ada.Directories.Delete_File (Path); end if; -- Create keystore with a password T.Execute (Tool (User_1) & " create " & Path & " -p gpg-admin -c 10:100", Result); T.Assert (Ada.Directories.Exists (Path), "Keystore file does not exist"); -- Add GPG password for User_2 T.Execute (Tool (User_2) & " password-add " & Path & " -p gpg-admin --gpg akt-user2@ada-unit-test.org", Result); -- Set property from User_2 T.Execute (Tool (User_2) & " set " & Path & " testing akt-user2-value", Result); Util.Tests.Assert_Equals (T, "", Result, "set command failed"); -- Set property from User_1 T.Execute (Tool (User_2) & " set " & Path & " -p gpg-admin testing2 akt-user1-value", Result); Util.Tests.Assert_Equals (T, "", Result, "set command failed"); end Test_Add_Password; -- ------------------------------ -- Test the akt password-remove command to remove a GPG key from the keystore. -- ------------------------------ procedure Test_Remove_Password (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL3_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin Test_Add_Password (T); -- Remove GPG key for user2 T.Execute (Tool (User_1) & " password-remove " & Path & " -p gpg-admin --slot 2", Result); -- User_2 must not have access to the keystore T.Execute (Tool (User_2) & " get " & Path & " testing2", Result, 1); Util.Tests.Assert_Matches (T, "^Invalid password to unlock the keystore file", Result, "get command returned unexpected result"); -- Try remove current key T.Execute (Tool (User_1) & " password-remove " & Path & " -p gpg-admin --slot 1", Result, 1); Util.Tests.Assert_Matches (T, "^Refusing to erase the key slot", Result, "password-remove command returned unexpected result"); T.Execute (Tool (User_1) & " password-remove " & Path & " -p gpg-admin --slot 0", Result, 1); Util.Tests.Assert_Matches (T, "^Invalid key slot number", Result, "password-remove command returned unexpected result"); -- Add again GPG password for User_2 T.Execute (Tool (User_2) & " password-add " & Path & " -p gpg-admin --gpg akt-user2@ada-unit-test.org", Result); end Test_Remove_Password; -- ------------------------------ -- Test update content with store command -- ------------------------------ procedure Test_Update_File (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL2_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute (Tool (User_2) & " store " & Path & " LICENSE.txt", Result); T.Execute (Tool (User_2) & " store " & Path & " -- LICENSE.txt", "configure", "", Result); T.Execute (Tool (User_2) & " store " & Path & " -- LICENSE.txt", "Makefile", "", Result); T.Execute (Tool (User_2) & " store " & Path & " -- LICENSE.txt", "bin/akt" & Keystore.Tests.EXE, "", Result); T.Execute (Tool (User_2) & " store " & Path & " -- LICENSE.txt", "Makefile.conf", "", Result); end Test_Update_File; -- ------------------------------ -- Test when gpg execution fails -- ------------------------------ procedure Test_GPG_Error (T : in out Test) is Config : constant String := Util.Tests.Get_Test_Path ("regtests/files/gnupg/"); Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL_PATH); Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("bin/akt --config " & Config & "bad-list-user1-akt.properties store " & Path & " -- LICENSE.txt", "Makefile.conf", "", Result, 1); Util.Tests.Assert_Matches (T, "^Invalid password to unlock the keystore file", Result, "password-set command failed"); T.Execute ("bin/akt --config " & Config & "bad-decrypt-user1-akt.properties store " & Path & " -- LICENSE.txt", "Makefile.conf", "", Result, 1); Util.Tests.Assert_Matches (T, "^Invalid password to unlock the keystore file", Result, "password-set command failed"); end Test_GPG_Error; end Keystore.GPG_Tests;
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. package body Bases.Ship.Test_Data is procedure Set_Up(Gnattest_T: in out Test) is pragma Unreferenced(Gnattest_T); begin null; end Set_Up; procedure Tear_Down(Gnattest_T: in out Test) is pragma Unreferenced(Gnattest_T); begin null; end Tear_Down; end Bases.Ship.Test_Data;
<?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>counters_out</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>p_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</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>p_read1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</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>p_read2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</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>rule0cnt_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>rule0cnt.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>rule1cnt_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>rule1cnt.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>rule2cnt_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>rule2cnt.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_7"> <Value> <Obj> <type>0</type> <id>7</id> <name>p_read_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>16</item> <item>17</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>8</id> <name>p_read_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>18</item> <item>19</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>9</id> <name>p_read_3</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>op2.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>20</item> <item>21</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>10</id> <name></name> <fileName>my_ip_hls/counters_out.cpp</fileName> <fileDirectory>C:\Users\CS\Desktop\Vivado-Projects\M3</fileDirectory> <lineNumber>7</lineNumber> <contextFuncName>counters_out</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>C:\Users\CS\Desktop\Vivado-Projects\M3</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>my_ip_hls/counters_out.cpp</first> <second>counters_out</second> </first> <second>7</second> </item> <item> <first> <first>my_ip_hls/my_ip_hls.cpp</first> <second>my_ip_hls</second> </first> <second>50</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>23</item> <item>24</item> <item>25</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>11</id> <name></name> <fileName>my_ip_hls/counters_out.cpp</fileName> <fileDirectory>C:\Users\CS\Desktop\Vivado-Projects\M3</fileDirectory> <lineNumber>8</lineNumber> <contextFuncName>counters_out</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\CS\Desktop\Vivado-Projects\M3</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>my_ip_hls/counters_out.cpp</first> <second>counters_out</second> </first> <second>8</second> </item> <item> <first> <first>my_ip_hls/my_ip_hls.cpp</first> <second>my_ip_hls</second> </first> <second>50</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>26</item> <item>27</item> <item>28</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>12</id> <name></name> <fileName>my_ip_hls/counters_out.cpp</fileName> <fileDirectory>C:\Users\CS\Desktop\Vivado-Projects\M3</fileDirectory> <lineNumber>9</lineNumber> <contextFuncName>counters_out</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\CS\Desktop\Vivado-Projects\M3</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>my_ip_hls/counters_out.cpp</first> <second>counters_out</second> </first> <second>9</second> </item> <item> <first> <first>my_ip_hls/my_ip_hls.cpp</first> <second>my_ip_hls</second> </first> <second>50</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>29</item> <item>30</item> <item>31</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>13</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </consts> <blocks class_id="16" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="17" tracking_level="1" version="0" object_id="_14"> <Obj> <type>3</type> <id>14</id> <name>counters_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></coreName> </Obj> <node_objs> <count>7</count> <item_version>0</item_version> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> </node_objs> </item> </blocks> <edges class_id="18" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="19" tracking_level="1" version="0" object_id="_15"> <id>17</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="19" object_id="_16"> <id>19</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="19" object_id="_17"> <id>21</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="19" object_id="_18"> <id>24</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="19" object_id="_19"> <id>25</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="19" object_id="_20"> <id>27</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="19" object_id="_21"> <id>28</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="19" object_id="_22"> <id>30</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="19" object_id="_23"> <id>31</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>12</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="20" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="21" tracking_level="1" version="0" object_id="_24"> <mId>1</mId> <mTag>counters_out</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>14</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="23" tracking_level="1" version="0" object_id="_25"> <states class_id="24" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="25" tracking_level="1" version="0" object_id="_26"> <id>1</id> <operations class_id="26" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="27" tracking_level="1" version="0" object_id="_27"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_28"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_29"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_30"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_31"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_32"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_33"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="28" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </transitions> </fsm> <res class_id="-1"></res> <node_label_latency class_id="30" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="31" tracking_level="0" version="0"> <first>7</first> <second class_id="32" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="33" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first>14</first> <second class_id="35" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> </bblk_ent_exit> <regions class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="37" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>16</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>22</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>28</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>34</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>42</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>50</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="40" 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>6</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>StgValue_5_write_fu_34</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>StgValue_6_write_fu_42</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>StgValue_7_write_fu_50</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>p_read_1_read_fu_16</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>p_read_2_read_fu_22</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>p_read_3_read_fu_28</first> <second> <count>1</count> <item_version>0</item_version> <item>9</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="42" 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="43" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>p_read</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> </second> </item> <item> <first>p_read1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> </second> </item> <item> <first>p_read2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> </second> </item> <item> <first>rule0cnt_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>10</item> </second> </item> </second> </item> <item> <first>rule1cnt_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>11</item> </second> </item> </second> </item> <item> <first>rule2cnt_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>12</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="45" 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>
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S E M _ S C I L -- -- -- -- B o d y -- -- -- -- Copyright (C) 2009-2012, 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. -- -- -- ------------------------------------------------------------------------------ with Einfo; use Einfo; with Nlists; use Nlists; with Rtsfind; use Rtsfind; with Sem_Aux; use Sem_Aux; with Sinfo; use Sinfo; with Stand; use Stand; with SCIL_LL; use SCIL_LL; package body Sem_SCIL is --------------------- -- Check_SCIL_Node -- --------------------- function Check_SCIL_Node (N : Node_Id) return Traverse_Result is SCIL_Node : constant Node_Id := Get_SCIL_Node (N); Ctrl_Tag : Node_Id; Ctrl_Typ : Entity_Id; begin -- For nodes that do not have SCIL node continue traversing the tree if No (SCIL_Node) then return OK; end if; case Nkind (SCIL_Node) is when N_SCIL_Dispatch_Table_Tag_Init => pragma Assert (Nkind (N) = N_Object_Declaration); null; when N_SCIL_Dispatching_Call => Ctrl_Tag := SCIL_Controlling_Tag (SCIL_Node); -- Parent of SCIL dispatching call nodes MUST be a subprogram call if Nkind (N) not in N_Subprogram_Call then raise Program_Error; -- In simple cases the controlling tag is the tag of the -- controlling argument (i.e. Obj.Tag). elsif Nkind (Ctrl_Tag) = N_Selected_Component then Ctrl_Typ := Etype (Ctrl_Tag); -- Interface types are unsupported if Is_Interface (Ctrl_Typ) or else (RTE_Available (RE_Interface_Tag) and then Ctrl_Typ = RTE (RE_Interface_Tag)) then null; else pragma Assert (Ctrl_Typ = RTE (RE_Tag)); null; end if; -- When the controlling tag of a dispatching call is an identifier -- the SCIL_Controlling_Tag attribute references the corresponding -- object or parameter declaration. Interface types are still -- unsupported. elsif Nkind_In (Ctrl_Tag, N_Object_Declaration, N_Parameter_Specification) then Ctrl_Typ := Etype (Defining_Identifier (Ctrl_Tag)); -- Interface types are unsupported. if Is_Interface (Ctrl_Typ) or else (RTE_Available (RE_Interface_Tag) and then Ctrl_Typ = RTE (RE_Interface_Tag)) or else (Is_Access_Type (Ctrl_Typ) and then Is_Interface (Available_View (Base_Type (Designated_Type (Ctrl_Typ))))) then null; else pragma Assert (Ctrl_Typ = RTE (RE_Tag) or else (Is_Access_Type (Ctrl_Typ) and then Available_View (Base_Type (Designated_Type (Ctrl_Typ))) = RTE (RE_Tag))); null; end if; -- Interface types are unsupported elsif Is_Interface (Etype (Ctrl_Tag)) then null; else pragma Assert (False); raise Program_Error; end if; return Skip; when N_SCIL_Membership_Test => -- Check contents of the boolean expression associated with the -- membership test. pragma Assert (Nkind_In (N, N_Identifier, N_And_Then, N_Or_Else, N_Expression_With_Actions) and then Etype (N) = Standard_Boolean); -- Check the entity identifier of the associated tagged type (that -- is, in testing for membership in T'Class, the entity id of the -- specific type T). -- Note: When the SCIL node is generated the private and full-view -- of the tagged types may have been swapped and hence the node -- referenced by attribute SCIL_Entity may be the private view. -- Therefore, in order to uniformly locate the full-view we use -- attribute Underlying_Type. pragma Assert (Is_Tagged_Type (Underlying_Type (SCIL_Entity (SCIL_Node)))); -- Interface types are unsupported pragma Assert (not Is_Interface (Underlying_Type (SCIL_Entity (SCIL_Node)))); -- Check the decoration of the expression that denotes the tag -- value being tested Ctrl_Tag := SCIL_Tag_Value (SCIL_Node); case Nkind (Ctrl_Tag) is -- For class-wide membership tests the SCIL tag value is the -- tag of the tested object (i.e. Obj.Tag). when N_Selected_Component => pragma Assert (Etype (Ctrl_Tag) = RTE (RE_Tag)); null; when others => pragma Assert (False); null; end case; return Skip; when others => pragma Assert (False); raise Program_Error; end case; return Skip; end Check_SCIL_Node; ------------------------- -- First_Non_SCIL_Node -- ------------------------- function First_Non_SCIL_Node (L : List_Id) return Node_Id is N : Node_Id; begin N := First (L); while Nkind (N) in N_SCIL_Node loop Next (N); end loop; return N; end First_Non_SCIL_Node; ------------------------ -- Next_Non_SCIL_Node -- ------------------------ function Next_Non_SCIL_Node (N : Node_Id) return Node_Id is Aux_N : Node_Id; begin Aux_N := Next (N); while Nkind (Aux_N) in N_SCIL_Node loop Next (Aux_N); end loop; return Aux_N; end Next_Non_SCIL_Node; end Sem_SCIL;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ A G G R -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2016, 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. -- -- -- ------------------------------------------------------------------------------ with Types; use Types; package Exp_Aggr is procedure Expand_N_Aggregate (N : Node_Id); procedure Expand_N_Delta_Aggregate (N : Node_Id); procedure Expand_N_Extension_Aggregate (N : Node_Id); function Is_Delayed_Aggregate (N : Node_Id) return Boolean; -- Returns True if N is an aggregate of some kind whose Expansion_Delayed -- flag is set (see sinfo for meaning of flag). procedure Convert_Aggr_In_Object_Decl (N : Node_Id); -- N is a N_Object_Declaration with an expression which must be an -- N_Aggregate or N_Extension_Aggregate with Expansion_Delayed. -- This procedure performs in-place aggregate assignment. procedure Convert_Aggr_In_Allocator (Alloc : Node_Id; Decl : Node_Id; Aggr : Node_Id); -- Alloc is the allocator whose expression is the aggregate Aggr. -- Decl is an N_Object_Declaration created during allocator expansion. -- This procedure performs in-place aggregate assignment into the -- temporary declared in Decl, and the allocator becomes an access to -- that temporary. procedure Convert_Aggr_In_Assignment (N : Node_Id); -- If the right-hand side of an assignment is an aggregate, expand the -- statement into a series of individual component assignments. This is -- done if there are non-static values involved in either the bounds or -- the components, and the aggregate cannot be handled as a whole by the -- backend. function Static_Array_Aggregate (N : Node_Id) return Boolean; -- N is an array aggregate that may have a component association with -- an others clause and a range. If bounds are static and the expressions -- are compile-time known constants, rewrite N as a purely positional -- aggregate, to be use to initialize variables and components of the type -- without generating elaboration code. end Exp_Aggr;
-- This spec has been automatically generated from STM32F030.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.WWDG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_T_Field is STM32_SVD.UInt7; subtype CR_WDGA_Field is STM32_SVD.Bit; -- Control register type CR_Register is record -- 7-bit counter T : CR_T_Field := 16#7F#; -- Activation bit WDGA : CR_WDGA_Field := 16#0#; -- unspecified Reserved_8_31 : STM32_SVD.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record T at 0 range 0 .. 6; WDGA at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CFR_W_Field is STM32_SVD.UInt7; subtype CFR_WDGTB_Field is STM32_SVD.UInt2; subtype CFR_EWI_Field is STM32_SVD.Bit; -- Configuration register type CFR_Register is record -- 7-bit window value W : CFR_W_Field := 16#7F#; -- Timer base WDGTB : CFR_WDGTB_Field := 16#0#; -- Early wakeup interrupt EWI : CFR_EWI_Field := 16#0#; -- unspecified Reserved_10_31 : STM32_SVD.UInt22 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFR_Register use record W at 0 range 0 .. 6; WDGTB at 0 range 7 .. 8; EWI at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; subtype SR_EWIF_Field is STM32_SVD.Bit; -- Status register type SR_Register is record -- Early wakeup interrupt flag EWIF : SR_EWIF_Field := 16#0#; -- unspecified Reserved_1_31 : STM32_SVD.UInt31 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record EWIF at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Window watchdog type WWDG_Peripheral is record -- Control register CR : aliased CR_Register; -- Configuration register CFR : aliased CFR_Register; -- Status register SR : aliased SR_Register; end record with Volatile; for WWDG_Peripheral use record CR at 16#0# range 0 .. 31; CFR at 16#4# range 0 .. 31; SR at 16#8# range 0 .. 31; end record; -- Window watchdog WWDG_Periph : aliased WWDG_Peripheral with Import, Address => System'To_Address (16#40002C00#); end STM32_SVD.WWDG;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Function_Access_Types is function Create (Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Null_Token : Program.Lexical_Elements.Lexical_Element_Access; Access_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Protected_Token : Program.Lexical_Elements.Lexical_Element_Access; Function_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Return_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Not_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; Null_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; Result_Subtype : not null Program.Elements.Element_Access) return Formal_Function_Access_Type is begin return Result : Formal_Function_Access_Type := (Not_Token => Not_Token, Null_Token => Null_Token, Access_Token => Access_Token, Protected_Token => Protected_Token, Function_Token => Function_Token, Left_Bracket_Token => Left_Bracket_Token, Parameters => Parameters, Right_Bracket_Token => Right_Bracket_Token, Return_Token => Return_Token, Not_Token_2 => Not_Token_2, Null_Token_2 => Null_Token_2, Result_Subtype => Result_Subtype, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Result_Subtype : not null Program.Elements.Element_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_Not_Null : Boolean := False; Has_Protected : Boolean := False; Has_Not_Null_2 : Boolean := False) return Implicit_Formal_Function_Access_Type is begin return Result : Implicit_Formal_Function_Access_Type := (Parameters => Parameters, Result_Subtype => Result_Subtype, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Has_Not_Null => Has_Not_Null, Has_Protected => Has_Protected, Has_Not_Null_2 => Has_Not_Null_2, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Parameters (Self : Base_Formal_Function_Access_Type) return Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access is begin return Self.Parameters; end Parameters; overriding function Result_Subtype (Self : Base_Formal_Function_Access_Type) return not null Program.Elements.Element_Access is begin return Self.Result_Subtype; end Result_Subtype; overriding function Not_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Not_Token; end Not_Token; overriding function Null_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Null_Token; end Null_Token; overriding function Access_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Access_Token; end Access_Token; overriding function Protected_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Protected_Token; end Protected_Token; overriding function Function_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Function_Token; end Function_Token; overriding function Left_Bracket_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Left_Bracket_Token; end Left_Bracket_Token; overriding function Right_Bracket_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Right_Bracket_Token; end Right_Bracket_Token; overriding function Return_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Return_Token; end Return_Token; overriding function Not_Token_2 (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Not_Token_2; end Not_Token_2; overriding function Null_Token_2 (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Null_Token_2; end Null_Token_2; overriding function Has_Not_Null (Self : Formal_Function_Access_Type) return Boolean is begin return Self.Null_Token.Assigned; end Has_Not_Null; overriding function Has_Protected (Self : Formal_Function_Access_Type) return Boolean is begin return Self.Protected_Token.Assigned; end Has_Protected; overriding function Has_Not_Null_2 (Self : Formal_Function_Access_Type) return Boolean is begin return Self.Null_Token_2.Assigned; end Has_Not_Null_2; overriding function Is_Part_Of_Implicit (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; overriding function Has_Not_Null (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Has_Not_Null; end Has_Not_Null; overriding function Has_Protected (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Has_Protected; end Has_Protected; overriding function Has_Not_Null_2 (Self : Implicit_Formal_Function_Access_Type) return Boolean is begin return Self.Has_Not_Null_2; end Has_Not_Null_2; procedure Initialize (Self : aliased in out Base_Formal_Function_Access_Type'Class) is begin for Item in Self.Parameters.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; Set_Enclosing_Element (Self.Result_Subtype, Self'Unchecked_Access); null; end Initialize; overriding function Is_Formal_Function_Access_Type_Element (Self : Base_Formal_Function_Access_Type) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Formal_Function_Access_Type_Element; overriding function Is_Formal_Access_Type_Element (Self : Base_Formal_Function_Access_Type) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Formal_Access_Type_Element; overriding function Is_Formal_Type_Definition_Element (Self : Base_Formal_Function_Access_Type) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Formal_Type_Definition_Element; overriding function Is_Definition_Element (Self : Base_Formal_Function_Access_Type) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Definition_Element; overriding procedure Visit (Self : not null access Base_Formal_Function_Access_Type; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Formal_Function_Access_Type (Self); end Visit; overriding function To_Formal_Function_Access_Type_Text (Self : aliased in out Formal_Function_Access_Type) return Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text_Access is begin return Self'Unchecked_Access; end To_Formal_Function_Access_Type_Text; overriding function To_Formal_Function_Access_Type_Text (Self : aliased in out Implicit_Formal_Function_Access_Type) return Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text_Access is pragma Unreferenced (Self); begin return null; end To_Formal_Function_Access_Type_Text; end Program.Nodes.Formal_Function_Access_Types;
with Giza.Timers; use Giza.Timers; with Ada.Real_Time; use Ada.Real_Time; with Timer_Callback; use Timer_Callback; with Giza.Windows; use Giza.Windows; with Screen_Interface; use Screen_Interface; with Giza.Widgets.Text; use Giza.Widgets.Text; with Giza.GUI; use Giza.GUI; with Giza.Colors; use Giza.Colors; with Giza.Graphics; procedure Main is Main_W : constant Window_Ref := Create; begin Screen_Interface.Initialize; Giza.GUI.Set_Context (Timer_Callback.My_Context'Access); Giza.GUI.Set_Backend (Timer_Callback.My_Backend'Access); My_Txt.Set_Foreground (Red); My_Txt.Set_Background (Forest_Green); My_Txt.Set_Size ((50, 50)); My_Txt.Set_Text (Timer_Callback.My_Str); My_Button.Set_Foreground (Black); My_Button.Set_Background (White); My_Button.Set_Size ((50, 50)); My_Button.Set_Text (Timer_Callback.Str_Button); My_Button.Set_Toggle (False); My_Toggle.Set_Foreground (Medium_Orchid); My_Toggle.Set_Background (White); My_Toggle.Set_Size ((50, 50)); My_Toggle.Set_Text (Timer_Callback.Str_Toggle); My_Toggle.Set_Toggle (True); Main_W.Set_Size ((100, 100)); Main_W.Add_Child (My_Txt'Access, (0, 0)); Main_W.Add_Child (My_Button'Access, (0, 50)); Main_W.Add_Child (My_Toggle'Access, (50, 0)); Push (Main_W); Push (ECW); Set_Timer (Timer_Callback.My_Timer'Access, Clock + Seconds (2)); Event_Loop; end Main;
-------------------------------------------------------------------------------------------------------------------- -- 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.Events.Controllers -- -- Game controller specific events. -------------------------------------------------------------------------------------------------------------------- with SDL.Events.Joysticks; package SDL.Events.Controllers is pragma Preelaborate; -- Game controller events. Axis_Motion : constant Event_Types := 16#0000_0650#; Button_Down : constant Event_Types := Axis_Motion + 1; Button_Up : constant Event_Types := Axis_Motion + 2; Device_Added : constant Event_Types := Axis_Motion + 3; Device_Removed : constant Event_Types := Axis_Motion + 4; Device_Remapped : constant Event_Types := Axis_Motion + 5; type Axes is (Invalid, Left_X, Left_Y, Right_X, Right_Y, Left_Trigger, Right_Trigger) with Convention => C; for Axes use (Invalid => -1, Left_X => 0, Left_Y => 1, Right_X => 2, Right_Y => 3, Left_Trigger => 4, Right_Trigger => 5); type Axes_Values is range -32768 .. 32767 with Convention => C, Size => 16; type Axis_Events is record Event_Type : Event_Types; -- Will be set to Axis_Motion. Time_Stamp : Time_Stamps; Which : SDL.Events.Joysticks.IDs; Axis : Axes; Padding_1 : Padding_8; Padding_2 : Padding_8; Padding_3 : Padding_8; Value : Axes_Values; Padding_4 : Padding_16; end record with Convention => C; type Buttons is (Invalid, A, B, X, Y, Back, Guide, Start, Left_Stick, Right_Stick, Left_Shoulder, Right_Shoulder, Pad_Up, -- Direction pad buttons. Pad_Down, Pad_Left, Pad_Right) with Convention => C; for Buttons use (Invalid => -1, A => 0, B => 1, X => 2, Y => 3, Back => 4, Guide => 5, Start => 6, Left_Stick => 7, Right_Stick => 8, Left_Shoulder => 9, Right_Shoulder => 10, Pad_Up => 11, Pad_Down => 12, Pad_Left => 13, Pad_Right => 14); type Button_Events is record Event_Type : Event_Types; -- Will be set to Button_Down or Button_Up. Time_Stamp : Time_Stamps; Which : SDL.Events.Joysticks.IDs; Button : Buttons; State : Button_State; Padding_1 : Padding_8; Padding_2 : Padding_8; end record with Convention => C; type Device_Events is record Event_Type : Event_Types; -- Will be set to Device_Added, Device_Removed or Device_Remapped. Time_Stamp : Time_Stamps; Which : SDL.Events.Joysticks.IDs; end record with Convention => C; private for Axis_Events use record Event_Type at 0 * SDL.Word range 0 .. 31; Time_Stamp at 1 * SDL.Word range 0 .. 31; Which at 2 * SDL.Word range 0 .. 31; Axis at 3 * SDL.Word range 0 .. 7; Padding_1 at 3 * SDL.Word range 8 .. 15; Padding_2 at 3 * SDL.Word range 16 .. 23; Padding_3 at 3 * SDL.Word range 24 .. 31; Value at 4 * SDL.Word range 0 .. 15; Padding_4 at 4 * SDL.Word range 16 .. 31; end record; for Button_Events use record Event_Type at 0 * SDL.Word range 0 .. 31; Time_Stamp at 1 * SDL.Word range 0 .. 31; Which at 2 * SDL.Word range 0 .. 31; Button at 3 * SDL.Word range 0 .. 7; State at 3 * SDL.Word range 8 .. 15; Padding_1 at 3 * SDL.Word range 16 .. 23; Padding_2 at 3 * SDL.Word range 24 .. 31; end record; for Device_Events use record Event_Type at 0 * SDL.Word range 0 .. 31; Time_Stamp at 1 * SDL.Word range 0 .. 31; Which at 2 * SDL.Word range 0 .. 31; end record; end SDL.Events.Controllers;
--***************************************************************************** --* --* PROJECT: BingAda --* --* FILE: q_bingo_help.ads --* --* AUTHOR: Javier Fuica Fernandez --* --***************************************************************************** with Gtk.Window; package Q_Bingo_Help is procedure P_Show_Window (V_Parent_Window : Gtk.Window.Gtk_Window); end Q_Bingo_Help;
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, -- and/or sell copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -- DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- -- @description -- This package define a missing restore character error. -- package LSE.Model.L_System.Error.Missing_Restore is type Instance is new LSE.Model.L_System.Error.Instance with private; -- Rule is not valid Error : exception; function Initialize (Line, Column : Positive) return Instance; overriding function Get_Error (This : Instance) return String; private type Instance is new LSE.Model.L_System.Error.Instance with record Line, Column : Positive; end record; end LSE.Model.L_System.Error.Missing_Restore;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 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 AMF.CMOF.Classes; with AMF.CMOF.Properties; with AMF.Extents; with AMF.Internals.Elements; with League.Holders; package AMF.Internals.DG_Elements is type DG_Element_Proxy is abstract limited new AMF.Internals.Elements.Element_Base with null record; overriding function Get (Self : not null access constant DG_Element_Proxy; Property : not null AMF.CMOF.Properties.CMOF_Property_Access) return League.Holders.Holder; overriding function Get_Meta_Class (Self : not null access constant DG_Element_Proxy) return AMF.CMOF.Classes.CMOF_Class_Access; -- overriding function Get_Owned_Comment -- (Self : not null access constant CMOF_Element_Proxy) -- return AMF.CMOF.Comments.Collections.Set_Of_CMOF_Comment; -- -- overriding function Get_Owned_Element -- (Self : not null access constant CMOF_Element_Proxy) -- return AMF.CMOF.Elements.Collections.Set_Of_CMOF_Element; -- -- overriding function Get_Owner -- (Self : not null access constant CMOF_Element_Proxy) -- return AMF.CMOF.Elements.CMOF_Element_Access; overriding procedure Set (Self : not null access DG_Element_Proxy; Property : not null AMF.CMOF.Properties.CMOF_Property_Access; Value : League.Holders.Holder); overriding function Extent (Self : not null access constant DG_Element_Proxy) return AMF.Extents.Extent_Access; -- overriding function Must_Be_Owned -- (Self : not null access constant DG_Element_Proxy) return Boolean; -- -- Operation Element::mustBeOwned. -- -- -- -- The query mustBeOwned() indicates whether elements of this type must -- -- have an owner. Subclasses of Element that do not require an owner must -- -- override this operation. end AMF.Internals.DG_Elements;
with impact.d3.Vector; with impact.d3.Transform; with impact.d3.Scalar, impact.d3.Matrix; with Ada.Containers; with impact.d3.solver_Constraint; use impact.d3.solver_Constraint; with interfaces.C; package body impact.d3.constraint_Solver.sequential_impulse is -- //#define COMPUTE_IMPULSE_DENOM 1 -- //It is not necessary (redundant) to refresh contact manifolds, this refresh has been moved to the collision algorithms. use Interfaces; gNumSplitImpulseRecoveries : Integer := 0; --- Utility -- procedure applyAnisotropicFriction (colObj : access impact.d3.Object.item'Class; frictionDirection : in out math.Vector_3) is use impact.d3.Vector, impact.d3.Transform, impact.d3.Matrix, Math; begin if colObj /= null and then colObj.hasAnisotropicFriction then declare -- transform to local coordinates loc_lateral : math.Vector_3 := frictionDirection * getBasis (colObj.getWorldTransform).all; friction_scaling : constant math.Vector_3 := colObj.getAnisotropicFriction; begin -- apply anisotropic friction loc_lateral := Scaled (loc_lateral, by => friction_scaling); -- ... and transform it back to global coordinates frictionDirection := getBasis (colObj.getWorldTransform).all * loc_lateral; end; end if; end applyAnisotropicFriction; --- Forge -- function to_constraint_Solver return Item is Self : Item; begin Self.m_btSeed2 := 0; return Self; end to_constraint_Solver; overriding procedure destruct (Self : in out Item) is begin null; end destruct; --- Operations -- -- procedure prepareSolve (Self : in out Item; numBodies : in Integer; -- numManifolds : in Integer) -- is -- begin -- return ; -- end; -- Sequentially applies impulses. -- overriding function solveGroup (Self : access Item; bodies : access impact.d3.Object.Vector; manifold : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint.Vector; info : in impact.d3.contact_solver_Info.Item'Class; dispatcher : in impact.d3.Dispatcher.item'Class) return math.Real is pragma Unreferenced (dispatcher); -- You need to provide at least some bodies. pragma Assert (not bodies.is_Empty); unused : math.Real; pragma Unreferenced (unused); begin unused := Self.solveGroupCacheFriendlySetup (bodies, manifold, constraints, info); unused := Self.solveGroupCacheFriendlyIterations (bodies, manifold, constraints, info); unused := Self.solveGroupCacheFriendlyFinish (bodies, manifold, constraints, info); return 0.0; end solveGroup; -- procedure allSolved (Self : in out Item; info : in impact.d3.contact_solver_Info.Item'Class) -- is -- begin -- return ; -- end; overriding procedure reset (Self : in out Item) is begin Self.m_btSeed2 := 0; end reset; function btRand2 (Self : access Item ) return interfaces.Unsigned_64 is begin Self.m_btSeed2 := (1664525 * Self.m_btSeed2 + 1013904223) and 16#ffffffff#; return Self.m_btSeed2; end btRand2; -- //See ODE: adam's all-int straightforward(?) dRandInt (0..n-1) -- function btRandInt2 (Self : access Item; n : in Integer) return Integer is -- seems good; xor-fold and modulus un : constant interfaces.Unsigned_64 := interfaces.Unsigned_64 (n); r : interfaces.Unsigned_64 := Self.btRand2; begin -- note: probably more aggressive than it needs to be -- might be -- able to get away without one or two of the innermost branches. if un <= 16#00010000# then r := r xor (Shift_Right (r, 16)); if un <= 16#00000100# then r := r xor (Shift_Right (r, 8)); if un <= 16#00000010# then r := r xor (Shift_Right (r, 4)); if un <= 16#00000004# then r := r xor (Shift_Right (r, 2)); if un <= 16#00000002# then r := r xor (Shift_Right (r, 1)); end if; end if; end if; end if; end if; return Integer (r mod un); end btRandInt2; procedure setRandSeed (Self : out Item; seed : in interfaces.Unsigned_64) is begin Self.m_btSeed2 := seed; end setRandSeed; function getRandSeed (Self : in Item) return interfaces.Unsigned_64 is begin return Self.m_btSeed2; end getRandSeed; procedure setupFrictionConstraint (Self : in out Item; solverConstraint : in out impact.d3.solver_Constraint.item; normalAxis : in math.Vector_3; solverBodyA, solverBodyB : in impact.d3.Object.rigid.View; cp : in out impact.d3.manifold_Point.item; rel_pos1, rel_pos2 : in math.Vector_3; colObj0, colObj1 : in impact.d3.Object.view; relaxation : in math.Real; desiredVelocity : in math.Real := 0.0; cfmSlip : in math.Real := 0.0) is pragma Unreferenced (Self, solverBodyA, solverBodyB); use impact.d3.Vector, impact.d3.Matrix, Math; use type impact.d3.Object.rigid.view; body0 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj0); body1 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj1); ftorqueAxis1 : math.Vector_3; vec : math.Vector_3; denom, denom0, denom1 : math.Real; begin solverConstraint.m_contactNormal := to_C (normalAxis); solverConstraint.union1.m_solverBodyA := (if body0 /= null then body0 else getFixedBody); solverConstraint.union2.m_solverBodyB := (if body1 /= null then body1 else getFixedBody); solverConstraint.m_friction := cp.m_combinedFriction; solverConstraint.m_originalContactPoint := null; solverConstraint.m_appliedImpulse := 0.0; solverConstraint.m_appliedPushImpulse := 0.0; ftorqueAxis1 := cross (rel_pos1, to_Math (solverConstraint.m_contactNormal)); solverConstraint.m_relpos1CrossNormal := to_C (ftorqueAxis1); solverConstraint.m_angularComponentA := (if body0 /= null then Scaled (body0.getInvInertiaTensorWorld * ftorqueAxis1, by => body0.getAngularFactor) else math.Vector_3'(0.0, 0.0, 0.0)); ftorqueAxis1 := cross (rel_pos2, -to_Math (solverConstraint.m_contactNormal)); solverConstraint.m_relpos2CrossNormal := to_C (ftorqueAxis1); solverConstraint.m_angularComponentB := (if body1 /= null then Scaled (body1.getInvInertiaTensorWorld * ftorqueAxis1, by => body1.getAngularFactor) else math.Vector_3'(0.0, 0.0, 0.0)); denom0 := 0.0; denom1 := 0.0; if body0 /= null then vec := cross (solverConstraint.m_angularComponentA, rel_pos1); denom0 := body0.getInvMass + dot (normalAxis, vec); end if; if body1 /= null then vec := cross (-solverConstraint.m_angularComponentB, rel_pos2); denom1 := body1.getInvMass + dot (normalAxis, vec); end if; denom := relaxation / (denom0 + denom1); solverConstraint.m_jacDiagABInv := denom; declare vel1Dotn : math.Real := dot (to_Math (solverConstraint.m_contactNormal), (if body0 /= null then body0.getLinearVelocity else (0.0, 0.0, 0.0))) + dot (to_Math (solverConstraint.m_relpos1CrossNormal), (if body0 /= null then body0.getAngularVelocity else (0.0, 0.0, 0.0))); vel2Dotn : constant math.Real := dot (-to_Math (solverConstraint.m_contactNormal), (if body1 /= null then body1.getLinearVelocity else (0.0, 0.0, 0.0))) + dot (to_Math (solverConstraint.m_relpos2CrossNormal), (if body1 /= null then body1.getAngularVelocity else (0.0, 0.0, 0.0))); rel_vel : constant math.Real := vel1Dotn + vel2Dotn; -- impact.d3.Scalar positionalError = 0.f; velocityError : constant math.Real := desiredVelocity - rel_vel; velocityImpulse : constant math.Real := velocityError * solverConstraint.m_jacDiagABInv; begin solverConstraint.m_rhs := velocityImpulse; solverConstraint.m_cfm := cfmSlip; solverConstraint.m_lowerLimit := 0.0; solverConstraint.m_upperLimit := 1.0e10; end; end setupFrictionConstraint; function addFrictionConstraint (Self : access Item; normalAxis : in math.Vector_3; solverBodyA, solverBodyB : in impact.d3.Object.rigid.View; frictionIndex : in Integer; cp : in out impact.d3.manifold_Point.item; rel_pos1, rel_pos2 : in math.Vector_3; colObj0, colObj1 : in impact.d3.Object.view; relaxation : in math.Real; desiredVelocity : in math.Real := 0.0; cfmSlip : in math.Real := 0.0) return access impact.d3.solver_Constraint.item is solverConstraint : constant impact.d3.solver_Constraint.view := new_solver_Constraint; -- Self.m_tmpSolverContactFrictionConstraintPool.expandNonInitializing; begin solverConstraint.m_frictionIndex := frictionIndex; Self.setupFrictionConstraint (solverConstraint.all, normalAxis, solverBodyA, solverBodyB, cp, rel_pos1, rel_pos2, colObj0, colObj1, relaxation, desiredVelocity, cfmSlip); Self.m_tmpSolverContactFrictionConstraintPool.append (solverConstraint); return solverConstraint; end addFrictionConstraint; procedure setupContactConstraint (Self : in out Item; solverConstraint : in out impact.d3.solver_Constraint.item; colObj0, colObj1 : in impact.d3.Object.view; cp : in out impact.d3.manifold_Point.item; infoGlobal : in impact.d3.contact_solver_Info.item'Class; vel : in out math.Vector_3; rel_vel : in out math.Real; relaxation : in out math.Real; rel_pos1, rel_pos2 : in out math.Vector_3) is use impact.d3.Transform, impact.d3.Vector, Math; use type impact.d3.Object.rigid.View; rb0 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj0); rb1 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj1); pos1 : constant math.Vector_3 := cp.getPositionWorldOnA; pos2 : constant math.Vector_3 := cp.getPositionWorldOnB; -- impact.d3.Vector rel_pos1 = pos1 - colObj0->getWorldTransform().getOrigin(); -- impact.d3.Vector rel_pos2 = pos2 - colObj1->getWorldTransform().getOrigin(); torqueAxis0, torqueAxis1 : math.Vector_3; begin rel_pos1 := pos1 - getOrigin (colObj0.getWorldTransform).all; rel_pos2 := pos2 - getOrigin (colObj1.getWorldTransform).all; relaxation := 1.0; torqueAxis0 := cross (rel_pos1, cp.m_normalWorldOnB); solverConstraint.m_angularComponentA := (if rb0 /= null then Scaled (rb0.getInvInertiaTensorWorld * torqueAxis0, by => rb0.getAngularFactor) else math.Vector_3'(0.0, 0.0, 0.0)); torqueAxis1 := cross (rel_pos2, cp.m_normalWorldOnB); solverConstraint.m_angularComponentB := (if rb1 /= null then Scaled (rb1.getInvInertiaTensorWorld * (-torqueAxis1), by => rb1.getAngularFactor) else math.Vector_3'(0.0, 0.0, 0.0)); declare vec : math.Vector_3; denom0 : math.Real := 0.0; denom1 : math.Real := 0.0; denom : math.Real; begin if rb0 /= null then vec := cross (solverConstraint.m_angularComponentA, rel_pos1); denom0 := rb0.getInvMass + dot (cp.m_normalWorldOnB, vec); end if; if rb1 /= null then vec := cross (-solverConstraint.m_angularComponentB, rel_pos2); denom1 := rb1.getInvMass + dot (cp.m_normalWorldOnB, vec); end if; denom := relaxation / (denom0 + denom1); solverConstraint.m_jacDiagABInv := denom; end; solverConstraint.m_contactNormal := to_C (cp.m_normalWorldOnB); solverConstraint.m_relpos1CrossNormal := to_C (cross (rel_pos1, cp.m_normalWorldOnB)); solverConstraint.m_relpos2CrossNormal := to_C (cross (rel_pos2, -cp.m_normalWorldOnB)); declare use impact.d3.Matrix; use type Flags; --, math.Vector_3; vel1 : constant math.Vector_3 := (if rb0 /= null then rb0.getVelocityInLocalPoint (rel_pos1) else math.Vector_3'(0.0, 0.0, 0.0)); vel2 : constant math.Vector_3 := (if rb1 /= null then rb1.getVelocityInLocalPoint (rel_pos2) else math.Vector_3'(0.0, 0.0, 0.0)); penetration, restitution : math.Real; begin vel := vel1 - vel2; rel_vel := dot (cp.m_normalWorldOnB, vel); penetration := cp.getDistance + infoGlobal.m_linearSlop; solverConstraint.m_friction := cp.m_combinedFriction; restitution := 0.0; if cp.m_lifeTime > infoGlobal.m_restingContactRestitutionThreshold then restitution := 0.0; else restitution := Self.restitutionCurve (rel_vel, cp.m_combinedRestitution); if restitution <= 0.0 then restitution := 0.0; end if; end if; -- warm starting (or zero if disabled) if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_WARMSTARTING) /= 0 then solverConstraint.m_appliedImpulse := cp.m_appliedImpulse * infoGlobal.m_warmstartingFactor; if rb0 /= null then -- tbd: check these Scaled operations are correct ... rb0.internalApplyImpulse (Scaled (to_Math (solverConstraint.m_contactNormal) * rb0.getInvMass, by => rb0.getLinearFactor), solverConstraint.m_angularComponentA, solverConstraint.m_appliedImpulse); end if; if rb1 /= null then rb1.internalApplyImpulse (Scaled (to_Math (solverConstraint.m_contactNormal) * rb1.getInvMass, by => rb1.getLinearFactor), -(solverConstraint.m_angularComponentB), -solverConstraint.m_appliedImpulse); end if; else solverConstraint.m_appliedImpulse := 0.0; end if; solverConstraint.m_appliedPushImpulse := 0.0; declare vel1Dotn : math.Real := dot (to_Math (solverConstraint.m_contactNormal), (if rb0 /= null then rb0.getLinearVelocity else math.Vector_3'(0.0, 0.0, 0.0))) + dot (to_Math (solverConstraint.m_relpos1CrossNormal), (if rb0 /= null then rb0.getAngularVelocity else math.Vector_3'(0.0, 0.0, 0.0))); vel2Dotn : constant math.Real := dot (-(to_Math (solverConstraint.m_contactNormal)), (if rb1 /= null then rb1.getLinearVelocity else math.Vector_3'(0.0, 0.0, 0.0))) + dot (to_Math (solverConstraint.m_relpos2CrossNormal), (if rb1 /= null then rb1.getAngularVelocity else math.Vector_3'(0.0, 0.0, 0.0))); rel_vel : constant math.Real := vel1Dotn + vel2Dotn; positionalError : math.Real := 0.0; velocityError : math.Real := restitution - rel_vel; -- * damping; penetrationImpulse, velocityImpulse : math.Real; begin if penetration > 0.0 then velocityError := velocityError - penetration / infoGlobal.m_timeStep; positionalError := 0.0; else positionalError := -penetration * infoGlobal.m_erp/infoGlobal.m_timeStep; end if; penetrationImpulse := positionalError * solverConstraint.m_jacDiagABInv; velocityImpulse := velocityError * solverConstraint.m_jacDiagABInv; if not infoGlobal.m_splitImpulse or else penetration > infoGlobal.m_splitImpulsePenetrationThreshold then -- combine position and velocity into rhs solverConstraint.m_rhs := penetrationImpulse + velocityImpulse; solverConstraint.m_rhsPenetration := 0.0; else -- split position and velocity into rhs and m_rhsPenetration solverConstraint.m_rhs := velocityImpulse; solverConstraint.m_rhsPenetration := penetrationImpulse; end if; solverConstraint.m_cfm := 0.0; solverConstraint.m_lowerLimit := 0.0; solverConstraint.m_upperLimit := 1.0e10; end; end; end setupContactConstraint; procedure setFrictionConstraintImpulse (Self : in out Item; solverConstraint : in out impact.d3.solver_Constraint.item; rb0, rb1 : in impact.d3.Object.rigid.View; cp : in out impact.d3.manifold_Point.item; infoGlobal : in impact.d3.contact_solver_Info.item'Class) is use impact.d3.solver_Constraint.Vectors, impact.d3.Vector, Math, math.Vectors; use type Flags, impact.d3.Object.rigid.view; frictionConstraint1 : access impact.d3.solver_Constraint.Item; frictionConstraint2 : access impact.d3.solver_Constraint.Item; begin if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_FRICTION_WARMSTARTING) /= 0 then frictionConstraint1 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solverConstraint.m_frictionIndex); if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_WARMSTARTING) /= 0 then frictionConstraint1.m_appliedImpulse := cp.m_appliedImpulseLateral1 * infoGlobal.m_warmstartingFactor; if rb0 /= null then -- tbd: check Scaled is right. rb0.internalApplyImpulse (Scaled (to_Math (frictionConstraint1.m_contactNormal) * rb0.getInvMass, by => rb0.getLinearFactor), frictionConstraint1.m_angularComponentA, frictionConstraint1.m_appliedImpulse); end if; if rb1 /= null then -- tbd: check Scaled is right. rb1.internalApplyImpulse (Scaled (to_Math (frictionConstraint1.m_contactNormal) * rb1.getInvMass, by => rb1.getLinearFactor), -frictionConstraint1.m_angularComponentB, -frictionConstraint1.m_appliedImpulse); end if; else frictionConstraint1.m_appliedImpulse := 0.0; end if; if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_2_FRICTION_DIRECTIONS) /= 0 then frictionConstraint2 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solverConstraint.m_frictionIndex + 0); -- or +1 ? if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_WARMSTARTING) /= 0 then frictionConstraint2.m_appliedImpulse := cp.m_appliedImpulseLateral2 * infoGlobal.m_warmstartingFactor; if rb0 /= null then rb0.internalApplyImpulse (to_Math (frictionConstraint2.m_contactNormal) * rb0.getInvMass, frictionConstraint2.m_angularComponentA, frictionConstraint2.m_appliedImpulse); end if; if rb1 /= null then rb1.internalApplyImpulse (to_Math (frictionConstraint2.m_contactNormal) * rb1.getInvMass, -frictionConstraint2.m_angularComponentB, -frictionConstraint2.m_appliedImpulse); end if; else frictionConstraint2.m_appliedImpulse := 0.0; end if; end if; else frictionConstraint1 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solverConstraint.m_frictionIndex + 0); -- or +1 frictionConstraint1.m_appliedImpulse := 0.0; if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_2_FRICTION_DIRECTIONS) /= 0 then frictionConstraint2 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solverConstraint.m_frictionIndex + 1); -- or +2 frictionConstraint2.m_appliedImpulse := 0.0; end if; end if; end setFrictionConstraintImpulse; function restitutionCurve (Self : access Item; rel_vel : in math.Real; restitution : in math.Real) return math.Real is pragma Unreferenced (Self); rest : constant math.Real := restitution * (-rel_vel); begin return rest; end restitutionCurve; procedure convertContact (Self : access Item; manifold : in impact.d3.Manifold.view; infoGlobal : in impact.d3.contact_solver_Info.item'Class) is use type impact.d3.Object.rigid.view; colObj0 : constant impact.d3.Object.View := impact.d3.Object.View (manifold.getBody0); colObj1 : constant impact.d3.Object.View := impact.d3.Object.View (manifold.getBody1); solverBodyA : constant impact.d3.Object.rigid.view := impact.d3.Object.rigid.View (colObj0); solverBodyB : constant impact.d3.Object.rigid.view := impact.d3.Object.rigid.View (colObj1); cp : access impact.d3.manifold_Point.item; begin -- avoid collision response between two static objects -- if (solverBodyA = null or else solverBodyA.getInvMass = 0.0) and then (solverBodyB = null or else solverBodyB.getInvMass = 0.0) then return; end if; for j in 1 .. manifold.getNumContacts loop cp := manifold.getContactPoint (j); if cp.getDistance <= manifold.getContactProcessingThreshold then declare use impact.d3.Vector, Math, math.Functions; use type Flags; rel_pos1, rel_pos2 : math.Vector_3; relaxation, rel_vel : math.Real; vel : math.Vector_3; frictionIndex : constant Integer := Integer (Self.m_tmpSolverContactConstraintPool.Length) + 1; solverConstraint : constant impact.d3.solver_Constraint.view := new_solver_Constraint; -- m_tmpSolverContactConstraintPool.expandNonInitializing(); rb0 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj0); rb1 : constant impact.d3.Object.rigid.View := impact.d3.Object.rigid.view (colObj1); lat_rel_vel : math.Real; unused : access impact.d3.solver_Constraint.item; pragma Unreferenced (unused); begin Self.m_tmpSolverContactConstraintPool.append (solverConstraint); solverConstraint.union1.m_solverBodyA := (if rb0 /= null then rb0 else getFixedBody); solverConstraint.union2.m_solverBodyB := (if rb1 /= null then rb1 else getFixedBody); solverConstraint.m_originalContactPoint := cp.all'Access; Self.setupContactConstraint (solverConstraint.all, colObj0, colObj1, cp.all, infoGlobal, vel, rel_vel, relaxation, rel_pos1, rel_pos2); -- const impact.d3.Vector& pos1 = cp.getPositionWorldOnA(); -- const impact.d3.Vector& pos2 = cp.getPositionWorldOnB(); --- setup the friction constraints solverConstraint.m_frictionIndex := Integer (Self.m_tmpSolverContactFrictionConstraintPool.Length) + 1; if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_ENABLE_FRICTION_DIRECTION_CACHING) = 0 or else not cp.m_lateralFrictionInitialized then cp.m_lateralFrictionDir1 := vel - cp.m_normalWorldOnB * rel_vel; lat_rel_vel := length2 (cp.m_lateralFrictionDir1); if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_DISABLE_VELOCITY_DEPENDENT_FRICTION_DIRECTION) = 0 and then lat_rel_vel > impact.d3.Scalar.SIMD_EPSILON then cp.m_lateralFrictionDir1 := cp.m_lateralFrictionDir1 / sqRt (lat_rel_vel); if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_2_FRICTION_DIRECTIONS) = 0 then cp.m_lateralFrictionDir2 := cross (cp.m_lateralFrictionDir1, cp.m_normalWorldOnB); normalize (cp.m_lateralFrictionDir2); -- ?? applyAnisotropicFriction (colObj0, cp.m_lateralFrictionDir2); applyAnisotropicFriction (colObj1, cp.m_lateralFrictionDir2); unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir2, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation); end if; applyAnisotropicFriction (colObj0, cp.m_lateralFrictionDir1); applyAnisotropicFriction (colObj1, cp.m_lateralFrictionDir1); unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir1, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation); cp.m_lateralFrictionInitialized := True; else -- re-calculate friction direction every frame, todo: check if this is really needed btPlaneSpace1 (cp.m_normalWorldOnB, cp.m_lateralFrictionDir1, cp.m_lateralFrictionDir2); if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_2_FRICTION_DIRECTIONS) /= 0 then applyAnisotropicFriction (colObj0, cp.m_lateralFrictionDir2); applyAnisotropicFriction (colObj1, cp.m_lateralFrictionDir2); unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir2, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation); end if; applyAnisotropicFriction (colObj0, cp.m_lateralFrictionDir1); applyAnisotropicFriction (colObj1, cp.m_lateralFrictionDir1); unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir1, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation); cp.m_lateralFrictionInitialized := True; end if; else unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir1, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation, cp.m_contactMotion1, cp.m_contactCFM1); if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_2_FRICTION_DIRECTIONS) /= 0 then unused := Self.addFrictionConstraint (cp.m_lateralFrictionDir2, solverBodyA, solverBodyB, frictionIndex, cp.all, rel_pos1, rel_pos2, colObj0, colObj1, relaxation, cp.m_contactMotion2, cp.m_contactCFM2); end if; end if; Self.setFrictionConstraintImpulse (solverConstraint.all, rb0, rb1, cp.all, infoGlobal); end; end if; end loop; end convertContact; procedure resolveSplitPenetrationImpulseCacheFriendly (Self : in out Item; body1, body2 : in impact.d3.Object.rigid.View; contactConstraint : in out impact.d3.solver_Constraint.item) is pragma Unreferenced (Self); use impact.d3.Vector, Math, math.Vectors; c : impact.d3.solver_Constraint.item renames contactConstraint; begin if c.m_rhsPenetration /= 0.0 then gNumSplitImpulseRecoveries := gNumSplitImpulseRecoveries + 1; declare deltaImpulse : math.Real := c.m_rhsPenetration - c.m_appliedPushImpulse * c.m_cfm; deltaVel1Dotn : constant math.Real := dot (to_Math (c.m_contactNormal), body1.internalGetPushVelocity.all) + dot (to_Math (c.m_relpos1CrossNormal), body1.internalGetTurnVelocity.all); deltaVel2Dotn : constant math.Real := dot (-to_Math (c.m_contactNormal), body2.internalGetPushVelocity.all) + dot (to_Math (c.m_relpos2CrossNormal), body2.internalGetTurnVelocity.all); sum : math.Real; begin deltaImpulse := deltaImpulse - deltaVel1Dotn * c.m_jacDiagABInv; deltaImpulse := deltaImpulse - deltaVel2Dotn * c.m_jacDiagABInv; sum := c.m_appliedPushImpulse + deltaImpulse; if sum < c.m_lowerLimit then deltaImpulse := c.m_lowerLimit - c.m_appliedPushImpulse; c.m_appliedPushImpulse := c.m_lowerLimit; else c.m_appliedPushImpulse := sum; end if; body1.internalApplyPushImpulse (Scaled (to_Math (c.m_contactNormal), by => body1.internalGetInvMass), c.m_angularComponentA, deltaImpulse); body2.internalApplyPushImpulse (Scaled (-to_Math (c.m_contactNormal), by => body2.internalGetInvMass), c.m_angularComponentB, deltaImpulse); end; end if; end resolveSplitPenetrationImpulseCacheFriendly; function getOrInitSolverBody (Self : in Item; the_body : access impact.d3.Object.item'Class) return Integer is pragma Unreferenced (Self, the_body); begin return 0; end getOrInitSolverBody; -- Project Gauss Seidel or the equivalent Sequential Impulse -- procedure resolveSingleConstraintRowGeneric (Self : in out Item; body1, body2 : in impact.d3.Object.rigid.View; contactConstraint : in out impact.d3.solver_Constraint.item) is pragma Unreferenced (Self); use impact.d3.Vector, Math, math.Vectors; c : impact.d3.solver_Constraint.item renames contactConstraint; deltaImpulse : math.Real := c.m_rhs - math.Real (c.m_appliedImpulse) * c.m_cfm; deltaVel1Dotn : constant math.Real := dot (to_Math (c.m_contactNormal), body1.internalGetDeltaLinearVelocity.all) + dot (to_Math (c.m_relpos1CrossNormal), body1.internalGetDeltaAngularVelocity.all); deltaVel2Dotn : constant math.Real := -dot (to_Math (c.m_contactNormal), body2.internalGetDeltaLinearVelocity.all) + dot (to_Math (c.m_relpos2CrossNormal), body2.internalGetDeltaAngularVelocity.all); sum : math.Real; begin -- const impact.d3.Scalar delta_rel_vel = deltaVel1Dotn-deltaVel2Dotn; deltaImpulse := deltaImpulse - deltaVel1Dotn * c.m_jacDiagABInv; deltaImpulse := deltaImpulse - deltaVel2Dotn * c.m_jacDiagABInv; sum := math.Real (c.m_appliedImpulse) + deltaImpulse; if sum < c.m_lowerLimit then deltaImpulse := c.m_lowerLimit - c.m_appliedImpulse; c.m_appliedImpulse := c.m_lowerLimit; elsif sum > c.m_upperLimit then deltaImpulse := c.m_upperLimit - c.m_appliedImpulse; c.m_appliedImpulse := c.m_upperLimit; else c.m_appliedImpulse := sum; end if; -- tbd: check that 'Scaled' is the correct operation below ! -- body1.internalApplyImpulse (Scaled (to_Math (c.m_contactNormal), by => body1.internalGetInvMass), c.m_angularComponentA, deltaImpulse); body2.internalApplyImpulse (Scaled (-to_Math (c.m_contactNormal), by => body2.internalGetInvMass), c.m_angularComponentB, deltaImpulse); -- -- body1.internalApplyImpulse(c.m_contactNormal*body1.internalGetInvMass(),c.m_angularComponentA,deltaImpulse); -- body2.internalApplyImpulse(-c.m_contactNormal*body2.internalGetInvMass(),c.m_angularComponentB,deltaImpulse); end resolveSingleConstraintRowGeneric; -- Project Gauss Seidel or the equivalent Sequential Impulse -- procedure resolveSingleConstraintRowLowerLimit (Self : in out Item; body1, body2 : in impact.d3.Object.rigid.View; contactConstraint : in out impact.d3.solver_Constraint.item) is pragma Unreferenced (Self); use impact.d3.Vector, math.Vectors; function "-" (the_Vector : in math.Vector_3) return math.Vector_3 -- For performance. is begin return (-the_Vector (1), -the_Vector (2), -the_Vector (3)); end; c : impact.d3.solver_Constraint.Item renames contactConstraint; deltaImpulse : math.Real := c.m_rhs - math.Real (c.m_appliedImpulse) * c.m_cfm; deltaVel1Dotn : constant math.Real := dot (to_Math (c.m_contactNormal), body1.internalGetDeltaLinearVelocity.all) + dot (to_Math (c.m_relpos1CrossNormal), body1.internalGetDeltaAngularVelocity.all); deltaVel2Dotn : constant math.Real := dot (-to_Math (c.m_contactNormal), body2.internalGetDeltaLinearVelocity.all) + dot (to_Math (c.m_relpos2CrossNormal), body2.internalGetDeltaAngularVelocity.all); sum : math.Real; begin deltaImpulse := deltaImpulse - deltaVel1Dotn * c.m_jacDiagABInv; deltaImpulse := deltaImpulse - deltaVel2Dotn * c.m_jacDiagABInv; sum := c.m_appliedImpulse + deltaImpulse; if sum < c.m_lowerLimit then deltaImpulse := c.m_lowerLimit - c.m_appliedImpulse; c.m_appliedImpulse := c.m_lowerLimit; else c.m_appliedImpulse := sum; end if; -- tbd: check Scaled is correct operation. -- body1.internalApplyImpulse (Scaled (to_Math ( c.m_contactNormal), by => body1.internalGetInvMass), c.m_angularComponentA, deltaImpulse); -- body2.internalApplyImpulse (Scaled (-to_Math (c.m_contactNormal), by => body2.internalGetInvMass), c.m_angularComponentB, deltaImpulse); body1.internalApplyImpulse (to_Math (c.m_contactNormal), c.m_angularComponentA, deltaImpulse); body2.internalApplyImpulse (-to_Math (c.m_contactNormal), c.m_angularComponentB, deltaImpulse); end resolveSingleConstraintRowLowerLimit; s_fixed : impact.d3.Object.rigid.view; function getFixedBody return impact.d3.Object.rigid.view is use type impact.d3.Object.rigid.view; begin if s_fixed = null then s_fixed := new impact.d3.Object.rigid.Item'(Object.rigid.Forge.to_rigid_Object (0.0, null, null)); end if; s_fixed.setMassProps (0.0, (0.0, 0.0, 0.0)); return s_fixed; end getFixedBody; procedure solveGroupCacheFriendlySplitImpulseIterations (Self : in out Item; bodies : access impact.d3.Object .Vector; manifoldPtr : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint.Vector; infoGlobal : in impact.d3.contact_solver_Info.item'Class) is pragma Unreferenced (bodies, manifoldPtr, constraints); -- iteration, numPoolConstraints : Integer; solveManifold : impact.d3.solver_Constraint.view; begin if infoGlobal.m_splitImpulse then -- if infoGlobal.m_solverMode and SOLVER_SIMD /= 0 then -- -- for iteration in 1 .. infoGlobal.m_numIterations -- loop -- numPoolConstraints := Integer (Self.m_tmpSolverContactConstraintPool.Lemgth); -- -- for j in 1 .. numPoolConstraints -- loop -- const impact.d3.solver_Constraint& solveManifold = m_tmpSolverContactConstraintPool[m_orderTmpConstraintPool[j]]; -- resolveSplitPenetrationSIMD(*solveManifold.m_solverBodyA,*solveManifold.m_solverBodyB,solveManifold); -- end loop; -- end loop; -- -- else for iteration in 1 .. infoGlobal.m_numIterations loop numPoolConstraints := Integer (Self.m_tmpSolverContactConstraintPool.Length); for j in 1 .. numPoolConstraints loop solveManifold := Self.m_tmpSolverContactConstraintPool.Element (Self.m_orderTmpConstraintPool.Element (j)); Self.resolveSplitPenetrationImpulseCacheFriendly (solveManifold.union1.m_solverBodyA.all'Access, solveManifold.union2.m_solverBodyB.all'Access, solveManifold.all); end loop; end loop; -- end if; end if; end solveGroupCacheFriendlySplitImpulseIterations; function solveGroupCacheFriendlyFinish (Self : in out Item; bodies : access impact.d3.Object .Vector; manifoldPtr : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint .Vector; infoGlobal : in impact.d3.contact_solver_Info .Item'Class) return math.Real is pragma Unreferenced (manifoldPtr, constraints); use type Flags, impact.d3.manifold_Point.view, impact.d3.Object.rigid.view; numPoolConstraints : Integer := Integer (Self.m_tmpSolverContactConstraintPool.Length); numBodies : constant Integer := Integer (bodies.Length); solveManifold : impact.d3.solver_Constraint.view; pt : impact.d3.manifold_Point.view; solverConstr : impact.d3.solver_Constraint.view; constr : impact.d3.Joint.view; the_Body : impact.d3.Object.rigid.view; begin for j in 1 .. numPoolConstraints loop solveManifold := Self.m_tmpSolverContactConstraintPool.Element (j); pt := impact.d3.manifold_Point.view (solveManifold.m_originalContactPoint); pragma Assert (pt /= null); pt.m_appliedImpulse := solveManifold.m_appliedImpulse; if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_USE_FRICTION_WARMSTARTING) /= 0 then pt.m_appliedImpulseLateral1 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solveManifold.m_frictionIndex).m_appliedImpulse; pt.m_appliedImpulseLateral2 := Self.m_tmpSolverContactFrictionConstraintPool.Element (solveManifold.m_frictionIndex + 1).m_appliedImpulse; end if; -- do a callback here? end loop; numPoolConstraints := Integer (Self.m_tmpSolverNonContactConstraintPool.Length); for j in 1 .. numPoolConstraints loop solverConstr := Self.m_tmpSolverNonContactConstraintPool.Element (j); constr := impact.d3.Joint.view (solverConstr.m_originalContactPoint); constr.internalSetAppliedImpulse (solverConstr.m_appliedImpulse); if abs (solverConstr.m_appliedImpulse) >= constr.getBreakingImpulseThreshold then constr.setEnabled (False); end if; end loop; if infoGlobal.m_splitImpulse then for i in 1 .. numBodies loop the_Body := impact.d3.Object.rigid.view (bodies.Element (i)); if the_Body /= null then the_Body.internalWritebackVelocity (infoGlobal.m_timeStep); end if; end loop; else for i in 1 .. numBodies loop the_Body := impact.d3.Object.rigid.view (bodies.Element (i)); if the_Body /= null then the_Body.internalWritebackVelocity; end if; end loop; end if; declare procedure clear (the_Pool : in out impact.d3.solver_Constraint.btConstraintArray) is the_Constraint : solver_Constraint.View; begin for Each in 1 .. Integer (the_Pool.Length) loop the_Constraint := the_Pool.Element (Each); free (the_Constraint); end loop; the_Pool.reserve_Capacity (0); the_Pool.clear; end clear; begin clear (Self.m_tmpSolverContactConstraintPool); clear (Self.m_tmpSolverNonContactConstraintPool); clear (Self.m_tmpSolverContactFrictionConstraintPool); end; return 0.0; end solveGroupCacheFriendlyFinish; function solveSingleIteration (Self : in out Item; iteration : in Integer; bodies : access impact.d3.Object .Vector; manifoldPtr : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint .Vector; infoGlobal : in impact.d3.contact_solver_Info .Item'Class) return math.Real is pragma Unreferenced (bodies, manifoldPtr); numConstraintPool : constant Integer := Integer (Self.m_tmpSolverContactConstraintPool.Length); numFrictionPool : constant Integer := Integer (Self.m_tmpSolverContactFrictionConstraintPool.Length); begin if (infoGlobal.m_solverMode and impact.d3.contact_solver_Info.SOLVER_RANDMIZE_ORDER) /= 0 then if (Interfaces.Unsigned_64 (iteration) and 7) = 0 then declare tmp : Integer; swapi : Integer; begin for j in 1 .. numConstraintPool loop tmp := Self.m_orderTmpConstraintPool.Element (j); swapi := Self.btRandInt2 (j) + 1; Self.m_orderTmpConstraintPool.replace_Element (j, Self.m_orderTmpConstraintPool.Element (swapi)); Self.m_orderTmpConstraintPool.replace_Element (swapi, tmp); end loop; for j in 1 .. numFrictionPool loop tmp := Self.m_orderFrictionConstraintPool.Element (j); swapi := Self.btRandInt2 (j) + 1; Self.m_orderFrictionConstraintPool.Replace_Element (j, Self.m_orderFrictionConstraintPool.Element (swapi)); Self.m_orderFrictionConstraintPool.replace_Element (swapi, tmp); end loop; end; end if; end if; -- tbd: is below needed ? -- -- if (infoGlobal.m_solverMode & SOLVER_SIMD) -- { -- -- solve all joint constraints, using SIMD, if available -- for j in 1 .. Integer (Self.m_tmpSolverNonContactConstraintPool.Length) -- loop -- impact.d3.solver_Constraint& constraint = Self.m_tmpSolverNonContactConstraintPool[j]; -- resolveSingleConstraintRowGenericSIMD(*constraint.m_solverBodyA,*constraint.m_solverBodyB,constraint); -- end loop; -- -- for j in 1 .. numConstraints -- loop -- constraints (j).solveConstraintObsolete (constraints (j).getRigidBodyA, constraints (j).getRigidBodyB, infoGlobal.m_timeStep); -- end loop; -- -- -- solve all contact constraints using SIMD, if available -- int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); -- for j in 1 .. numPoolConstraints -- looop -- const impact.d3.solver_Constraint& solveManifold = Self.m_tmpSolverContactConstraintPool[m_orderTmpConstraintPool[j]]; -- resolveSingleConstraintRowLowerLimitSIMD (*solveManifold.m_solverBodyA,*solveManifold.m_solverBodyB,solveManifold); -- -- end loop; -- -- solve all friction constraints, using SIMD, if available -- int numFrictionPoolConstraints = m_tmpSolverContactFrictionConstraintPool.size(); -- for j in 1 .. numFrictionPoolConstraints -- loop -- impact.d3.solver_Constraint& solveManifold = Self.m_tmpSolverContactFrictionConstraintPool[m_orderFrictionConstraintPool[j]]; -- impact.d3.Scalar totalImpulse = Self.m_tmpSolverContactConstraintPool[solveManifold.m_frictionIndex].m_appliedImpulse; -- -- if totalImpulse > 0.0 then -- -- solveManifold.m_lowerLimit = -(solveManifold.m_friction * totalImpulse); -- solveManifold.m_upperLimit = solveManifold.m_friction * totalImpulse; -- -- resolveSingleConstraintRowGenericSIMD (*solveManifold.m_solverBodyA, *solveManifold.m_solverBodyB, solveManifold); -- end if; -- end loop; -- } else -- { declare constraint : impact.d3.solver_Constraint.View; numPoolConstraints : Integer; solveManifold : impact.d3.solver_Constraint.view; numFrictionPoolConstraints : Integer; pragma Unreferenced (numFrictionPoolConstraints); totalImpulse : math.Real; numConstraints : constant Integer := Integer (constraints.Length); begin -- solve all joint constraints for j in 1 .. Integer (Self.m_tmpSolverNonContactConstraintPool.Length) loop constraint := Self.m_tmpSolverNonContactConstraintPool.Element (j); Self.resolveSingleConstraintRowGeneric (constraint.union1.m_solverBodyA.all'Access, constraint.union2.m_solverBodyB.all'Access, constraint.all); end loop; for j in 1 .. numConstraints loop constraints.Element (j).solveConstraintObsolete (constraints.Element (j).getRigidBodyA, constraints.Element (j).getRigidBodyB, infoGlobal.m_timeStep); end loop; -- solve all contact constraints numPoolConstraints := Integer (Self.m_tmpSolverContactConstraintPool.Length); for j in 1 .. numPoolConstraints loop solveManifold := Self.m_tmpSolverContactConstraintPool.Element (Self.m_orderTmpConstraintPool.Element (j)); Self.resolveSingleConstraintRowLowerLimit (solveManifold.union1.m_solverBodyA.all'Access, solveManifold.union2.m_solverBodyB.all'Access, solveManifold.all); end loop; -- solve all friction constraints numFrictionPoolConstraints := Integer (Self.m_tmpSolverContactFrictionConstraintPool.Length); -- TBD: add below back in *********************** for j in 1 .. 0 -- numFrictionPoolConstraints loop solveManifold := Self.m_tmpSolverContactFrictionConstraintPool.Element (Self.m_orderFrictionConstraintPool.Element (j)); totalImpulse := Self.m_tmpSolverContactConstraintPool .Element (solveManifold.m_frictionIndex + 0).m_appliedImpulse; if totalImpulse > 0.0 then solveManifold.m_lowerLimit := -(solveManifold.m_friction * totalImpulse); solveManifold.m_upperLimit := solveManifold.m_friction * totalImpulse; Self.resolveSingleConstraintRowGeneric (solveManifold.union1.m_solverBodyA.all'Access, solveManifold.union2.m_solverBodyB.all'Access, solveManifold.all); end if; end loop; end; -- } // end if return 0.0; end solveSingleIteration; function solveGroupCacheFriendlySetup (Self : in out Item; bodies : access impact.d3.Object .Vector; manifoldPtr : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint .Vector; infoGlobal : in impact.d3.contact_solver_Info .Item'Class) return math.Real is use type impact.d3.Object.rigid.view; the_Body : impact.d3.Object.rigid.view; constraint : impact.d3.Joint.view; numConstraints : constant Integer := Integer (constraints.Length); numManifolds : constant Integer := Integer (manifoldPtr.Length); numBodies : constant Integer := Integer (bodies .Length); begin if numConstraints + numManifolds = 0 then return 0.0; end if; if infoGlobal.m_splitImpulse then for i in 1 .. numBodies loop the_Body := impact.d3.Object.rigid.view (bodies.Element (i)); if the_Body /= null then the_Body.internalGetDeltaLinearVelocity.all := (0.0, 0.0, 0.0); the_Body.internalGetDeltaAngularVelocity.all := (0.0, 0.0, 0.0); the_Body.internalGetPushVelocity.all := (0.0, 0.0, 0.0); the_Body.internalGetTurnVelocity.all := (0.0, 0.0, 0.0); end if; end loop; else for i in 1 .. numBodies loop the_Body := impact.d3.Object.rigid.view (bodies.Element (i)); if the_Body /= null then the_Body.internalGetDeltaLinearVelocity.all := (0.0, 0.0, 0.0); the_Body.internalGetDeltaAngularVelocity.all := (0.0, 0.0, 0.0); end if; end loop; end if; for j in 1 .. numConstraints loop constraint := constraints.Element (j); constraint.buildJacobian; constraint.internalSetAppliedImpulse (0.0); end loop; declare use impact.d3.Joint.Vectors; totalNumRows : Integer := 0; -- i : Integer; info1 : access impact.d3.Joint.btConstraintInfo1; currentRow : Integer := 0; begin Self.m_tmpConstraintSizesPool.reserve_Capacity (ada.Containers.Count_Type (numConstraints)); -- calculate the total number of contraint rows -- for i in 1 .. numConstraints loop info1 := Self.m_tmpConstraintSizesPool.Element (i); if constraints.Element (i).isEnabled then constraints.Element (i).getInfo1 (info1.all); else info1.m_numConstraintRows := 0; info1.nub := 0; end if; totalNumRows := totalNumRows + info1.m_numConstraintRows; end loop; Self.m_tmpSolverNonContactConstraintPool.reserve_Capacity (ada.Containers.Count_Type (totalNumRows)); -- setup the impact.d3.solver_Constraints -- for i in 1 .. numConstraints loop info1 := Self.m_tmpConstraintSizesPool.Element (i); if info1.m_numConstraintRows /= 0 then pragma Assert (currentRow < totalNumRows); declare use impact.d3.solver_Constraint.Vectors; use type C.ptrdiff_t; Cursor : impact.d3.solver_Constraint.Vectors.Cursor := to_Cursor (Self.m_tmpSolverNonContactConstraintPool, currentRow); currentConstraintRow : impact.d3.solver_Constraint.view; -- := Self.m_tmpSolverNonContactConstraintPool (currentRow); constraint : constant impact.d3.Joint .view := constraints.Element (i); rbA : constant impact.d3.Object.rigid.View := constraint.getRigidBodyA; rbB : constant impact.d3.Object.rigid.View := constraint.getRigidBodyB; info2 : aliased impact.d3.Joint.btConstraintInfo2; begin for j in 1 .. info1.m_numConstraintRows loop currentConstraintRow := Element (Cursor); currentConstraintRow.all := impact.d3.solver_Constraint.null_Constraint; -- memset (&currentConstraintRow[j], 0, sizeof(impact.d3.solver_Constraint)); currentConstraintRow.m_lowerLimit := -impact.d3.Scalar.SIMD_INFINITY; currentConstraintRow.m_upperLimit := impact.d3.Scalar.SIMD_INFINITY; currentConstraintRow.m_appliedImpulse := 0.0; currentConstraintRow.m_appliedPushImpulse := 0.0; currentConstraintRow.union1.m_solverBodyA := rbA; currentConstraintRow.union2.m_solverBodyB := rbB; next (Cursor); end loop; rbA.internalGetDeltaLinearVelocity.all := (0.0, 0.0, 0.0); rbA.internalGetDeltaAngularVelocity.all := (0.0, 0.0, 0.0); rbB.internalGetDeltaLinearVelocity.all := (0.0, 0.0, 0.0); rbB.internalGetDeltaAngularVelocity.all := (0.0, 0.0, 0.0); info2.fps := 1.0 / infoGlobal.m_timeStep; info2.erp := infoGlobal.m_erp; info2.m_J1linearAxis := currentConstraintRow.m_contactNormal (0)'Access; info2.m_J1angularAxis := currentConstraintRow.m_relpos1CrossNormal (0)'Access; info2.m_J2linearAxis := null; info2.m_J2angularAxis := currentConstraintRow.m_relpos2CrossNormal (0)'Access; info2.rowskip := impact.d3.solver_Constraint.Item'Size / math.Real'Size; -- check this -- the size of impact.d3.solver_Constraint needs be a multiple of impact.d3.Scalar pragma Assert (info2.rowskip * math.Real'Size = impact.d3.solver_Constraint.Item'Size); info2.m_constraintError := currentConstraintRow.m_rhs'Access; currentConstraintRow.m_cfm := infoGlobal.m_globalCfm; info2.m_damping := infoGlobal.m_damping; info2.cfm := currentConstraintRow.m_cfm'Access; info2.m_lowerLimit := currentConstraintRow.m_lowerLimit'Access; info2.m_upperLimit := currentConstraintRow.m_upperLimit'Access; info2.m_numIterations := infoGlobal.m_numIterations; constraints.Element (i).getInfo2 (info2); -- finalize the constraint setup Cursor := to_Cursor (Self.m_tmpSolverNonContactConstraintPool, currentRow); for j in 1 .. info1.m_numConstraintRows loop declare use impact.d3.Vector, Math; solverConstraint : constant impact.d3.solver_Constraint.view := Element (Cursor); ftorqueAxis1 : math.Vector_3; ftorqueAxis2 : math.Vector_3; iMJlA, iMJaA, iMJlB, iMJaB : math.Vector_3; sum : math.Real; begin if solverConstraint.m_upperLimit >= constraints.Element (i).getBreakingImpulseThreshold then solverConstraint.m_upperLimit := constraints.Element (i).getBreakingImpulseThreshold; end if; if solverConstraint.m_lowerLimit <= -constraints.Element (i).getBreakingImpulseThreshold then solverConstraint.m_lowerLimit := -constraints.Element (i).getBreakingImpulseThreshold; end if; solverConstraint.m_originalContactPoint := constraint.all'Access; ftorqueAxis1 := to_Math (solverConstraint.m_relpos1CrossNormal); solverConstraint.m_angularComponentA := Scaled (constraint.getRigidBodyA.getInvInertiaTensorWorld * ftorqueAxis1, by => constraint.getRigidBodyA.getAngularFactor); -- tbd: check these 'Scaled' are correct operation. ftorqueAxis2 := to_Math (solverConstraint.m_relpos2CrossNormal); solverConstraint.m_angularComponentB := Scaled (constraint.getRigidBodyB.getInvInertiaTensorWorld * ftorqueAxis2, by => constraint.getRigidBodyB.getAngularFactor); iMJlA := to_Math (solverConstraint.m_contactNormal) * rbA.getInvMass; iMJaA := rbA.getInvInertiaTensorWorld * to_Math (solverConstraint.m_relpos1CrossNormal); iMJlB := to_Math (solverConstraint.m_contactNormal) * rbB.getInvMass; -- sign of normal? iMJaB := rbB.getInvInertiaTensorWorld * to_Math (solverConstraint.m_relpos2CrossNormal); sum := dot (iMJlA, to_Math (solverConstraint.m_contactNormal)) + dot (iMJaA, to_Math (solverConstraint.m_relpos1CrossNormal)) + dot (iMJlB, to_Math (solverConstraint.m_contactNormal)) + dot (iMJaB, to_Math (solverConstraint.m_relpos2CrossNormal)); solverConstraint.m_jacDiagABInv := 1.0 / sum; -- fix rhs -- todo: add force/torque accelerators declare vel1Dotn : math.Real := dot (to_Math (solverConstraint.m_contactNormal), rbA.getLinearVelocity) + dot (to_Math (solverConstraint.m_relpos1CrossNormal), rbA.getAngularVelocity); vel2Dotn : constant math.Real := dot (-to_Math (solverConstraint.m_contactNormal), rbB.getLinearVelocity) + dot (to_Math (solverConstraint.m_relpos2CrossNormal), rbB.getAngularVelocity); rel_vel : constant math.Real := vel1Dotn + vel2Dotn; restitution : constant math.Real := 0.0; positionalError : constant math.Real := solverConstraint.m_rhs; -- already filled in by getConstraintInfo2 velocityError : constant math.Real := restitution - rel_vel * info2.m_damping; penetrationImpulse : constant math.Real := positionalError * solverConstraint.m_jacDiagABInv; velocityImpulse : constant math.Real := velocityError * solverConstraint.m_jacDiagABInv; begin solverConstraint.m_rhs := penetrationImpulse + velocityImpulse; solverConstraint.m_appliedImpulse := 0.0; end; end; next (Cursor); end loop; end; end if; currentRow := currentRow + Self.m_tmpConstraintSizesPool.Element (i).m_numConstraintRows; end loop; end; declare manifold : impact.d3.Manifold.view; -- impact.d3.Object* colObj0=0,*colObj1=0; begin for i in 1 .. numManifolds loop manifold := manifoldPtr.Element (i); Self.convertContact (manifold, infoGlobal); end loop; end; declare info : impact.d3.contact_solver_Info.item'Class := infoGlobal; numConstraintPool : constant Integer := Integer (Self.m_tmpSolverContactConstraintPool.Length); numFrictionPool : constant Integer := Integer (Self.m_tmpSolverContactFrictionConstraintPool.Length); begin -- @todo: use stack allocator for such temporarily memory, same for solver bodies/constraints Self.m_orderTmpConstraintPool .set_Length (ada.Containers.Count_Type (numConstraintPool)); Self.m_orderFrictionConstraintPool.set_Length (ada.Containers.Count_Type (numFrictionPool)); for i in 1 .. numConstraintPool loop Self.m_orderTmpConstraintPool.replace_Element (i, i); end loop; for i in 1 .. numFrictionPool loop Self.m_orderFrictionConstraintPool.replace_Element (i, i); end loop; end; return 0.0; end solveGroupCacheFriendlySetup; function solveGroupCacheFriendlyIterations (Self : in out Item; bodies : access impact.d3.Object .Vector; manifoldPtr : access impact.d3.Manifold.Vector; constraints : access impact.d3.Joint .Vector; infoGlobal : in impact.d3.contact_solver_Info .Item'Class) return math.Real is -- iteration : Integer; unused : math.Real; pragma Unreferenced (unused); begin -- should traverse the contacts random order... Self.solveGroupCacheFriendlySplitImpulseIterations (bodies, -- numBodies, manifoldPtr, -- numManifolds, constraints, -- numConstraints, infoGlobal); for iteration in 1 .. infoGlobal.m_numIterations loop unused := Self.solveSingleIteration (iteration, bodies, -- numBodies, manifoldPtr, -- numManifolds, constraints, -- numConstraints, infoGlobal); end loop; return 0.0; end solveGroupCacheFriendlyIterations; end impact.d3.constraint_Solver.sequential_impulse; -- tbd: do we need these SIMD functuions below ? -- -- // Project Gauss Seidel or the equivalent Sequential Impulse -- -- void impact.d3.constraint_Solver.sequential_impulse::resolveSingleConstraintRowGenericSIMD(impact.d3.Object.rigid& body1,impact.d3.Object.rigid& body2,const impact.d3.solver_Constraint& c) -- { -- resolveSingleConstraintRowGeneric(body1,body2,c); -- } -- void impact.d3.constraint_Solver.sequential_impulse::resolveSingleConstraintRowLowerLimitSIMD(impact.d3.Object.rigid& body1,impact.d3.Object.rigid& body2,const impact.d3.solver_Constraint& c) -- { -- resolveSingleConstraintRowLowerLimit(body1,body2,c); -- } -- void impact.d3.constraint_Solver.sequential_impulse::resolveSplitPenetrationSIMD(impact.d3.Object.rigid& body1,impact.d3.Object.rigid& body2,const impact.d3.solver_Constraint& c) -- { -- resolveSplitPenetrationImpulseCacheFriendly(body1,body2,c); -- } --
with Ada.Strings.Unbounded, Ada.Text_IO, Ada.Command_Line, Ada.Directories; procedure Global_Replace is subtype U_String is Ada.Strings.Unbounded.Unbounded_String; function "+"(S: String) return U_String renames Ada.Strings.Unbounded.To_Unbounded_String; function "-"(U: U_String) return String renames Ada.Strings.Unbounded.To_String; procedure String_Replace(S: in out U_String; Pattern, Replacement: String) is -- example: if S is "Mary had a XX lamb", then String_Replace(S, "X", "little"); -- will turn S into "Mary had a littlelittle lamb" -- and String_Replace(S, "Y", "small"); will not change S Index : Natural; begin loop Index := Ada.Strings.Unbounded.Index(Source => S, Pattern => Pattern); exit when Index = 0; Ada.Strings.Unbounded.Replace_Slice (Source => S, Low => Index, High => Index+Pattern'Length-1, By => Replacement); end loop; end String_Replace; procedure File_Replace(Filename: String; Pattern, Replacement: String) is -- applies String_Rplace to each line in the file with the given Filename -- propagates any exceptions, when, e.g., the file does not exist I_File, O_File: Ada.Text_IO.File_Type; Line: U_String; Tmp_Name: String := Filename & ".tmp"; -- name of temporary file; if that file already exists, it will be overwritten begin Ada.Text_IO.Open(I_File, Ada.Text_IO.In_File, Filename); Ada.Text_IO.Create(O_File, Ada.Text_IO.Out_File, Tmp_Name); while not Ada.Text_IO.End_Of_File(I_File) loop Line := +Ada.Text_IO.Get_Line(I_File); String_Replace(Line, Pattern, Replacement); Ada.Text_IO.Put_Line(O_File, -Line); end loop; Ada.Text_IO.Close(I_File); Ada.Text_IO.Close(O_File); Ada.Directories.Delete_File(Filename); Ada.Directories.Rename(Old_Name => Tmp_Name, New_Name => Filename); end File_Replace; Pattern: String := Ada.Command_Line.Argument(1); Replacement: String := Ada.Command_Line.Argument(2); begin Ada.Text_IO.Put_Line("Replacing """ & Pattern & """ by """ & Replacement & """ in" & Integer'Image(Ada.Command_Line.Argument_Count - 2) & " files."); for I in 3 .. Ada.Command_Line.Argument_Count loop File_Replace(Ada.Command_Line.Argument(I), Pattern, Replacement); end loop; end Global_Replace;
------------------------------------------------------------------------------- -- -- FIXED TYPES -- -- Test application -- -- The MIT License (MIT) -- -- Copyright (c) 2015 Gustavo A. Hoffmann -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, including without limitation the -- rights to use, copy, modify, merge, publish, distribute, sublicense, and / -- or sell copies of the Software, and to permit persons to whom the Software -- is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -- IN THE SOFTWARE. ------------------------------------------------------------------------------- with Ada.Text_IO; use Ada.Text_IO; with Fixed_Types.Long; use Fixed_Types.Long; with Fixed_Types.Short; use Fixed_Types.Short; with Ada.Exceptions; procedure Fixed_Types_Test is procedure Fixed_Test_Long; procedure Fixed_Test_Sat_Long; procedure Fixed_Test_Short; procedure Fixed_Test_Sat_Short; procedure Fixed_Test_Long is package MIO is new Ada.Text_IO.Modular_IO (Modular_Long); package FIO is new Ada.Text_IO.Fixed_IO (Fixed_Long); package IIO is new Ada.Text_IO.Integer_IO (Integer); FL1 : Fixed_Long; FL2 : Fixed_Long; Res : Fixed_Long; procedure Print_Operation (A, B, Res : Fixed_Long; Unary_Op : Boolean; Op : String); procedure Print_Operation (A : Fixed_Long; B : Integer; Res : Fixed_Long; Unary_Op : Boolean; Op : String); procedure Print_Operation (A, B, Res : Fixed_Long; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); FIO.Put (Item => B, Fore => 3, Aft => 3, Exp => 0); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Long_To_Mod_Long (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); MIO.Put (Item => Fixed_Long_To_Mod_Long (B), Width => 12, Base => 16); Put (" = "); MIO.Put (Item => Fixed_Long_To_Mod_Long (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; procedure Print_Operation (A : Fixed_Long; B : Integer; Res : Fixed_Long; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 7); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Long_To_Mod_Long (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 12); Put (" = "); MIO.Put (Item => Fixed_Long_To_Mod_Long (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; begin Put_Line ("TEST: Fixed_Test_Long"); FL1 := 0.5 / 2**3; FL2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FL1 + FL2; Print_Operation (FL1, FL2, Res, False, " + "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := 0.25 / 2**3; FL2 := 0.5 / 2**3; for I in 0 .. 4 loop begin Res := FL1 - FL2; Print_Operation (FL1, FL2, Res, False, " - "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := -0.5 / 2**3; FL2 := 0.25 / 2**3; for I in 0 .. 4 loop begin Res := FL1 - FL2; Print_Operation (FL1, FL2, Res, False, " - "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := 0.0; FL2 := 0.25 / 2**3; for I in 0 .. 4 loop begin Res := -FL2; Print_Operation (FL1, FL2, Res, True, " - "); FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := 0.0; FL2 := -0.25 / 2**3; for I in 0 .. 4 loop begin Res := abs FL2; Print_Operation (FL1, FL2, Res, True, "abs"); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := -0.5 / 2**3; FL2 := -0.5 / 2**3; for I in 0 .. 4 loop begin Res := FL1 * FL2; Print_Operation (FL1, FL2, Res, False, " * "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := 0.5 / 2**3; FL2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FL1 * FL2; Print_Operation (FL1, FL2, Res, False, " * "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := Fixed_Long'Last; FL2 := Fixed_Long'Last; Res := FL1 * FL2; Print_Operation (FL1, FL2, Res, False, " * "); declare I1 : Integer := 1; begin FL1 := 0.25; for I in 1 .. 5 loop begin Res := FL1 * I1; Print_Operation (FL1, I1, Res, False, " * "); I1 := I1 + 1; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; end; declare I1 : Integer := -1; begin FL1 := 0.25; for I in 1 .. 5 loop begin Res := FL1 * I1; Print_Operation (FL1, I1, Res, False, " * "); I1 := I1 - 1; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; end; FL1 := 0.25 / 2**3; FL2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FL1 / FL2; Print_Operation (FL1, FL2, Res, False, " / "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FL1 := -0.25 / 2**3; FL2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FL1 / FL2; Print_Operation (FL1, FL2, Res, False, " / "); FL1 := FL1 * 2; FL2 := FL2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; Put_Line ("--------------------------------------------------------"); end Fixed_Test_Long; procedure Fixed_Test_Sat_Long is package MIO is new Ada.Text_IO.Modular_IO (Modular_Long); package FIO is new Ada.Text_IO.Fixed_IO (Fixed_Sat_Long); package IIO is new Ada.Text_IO.Integer_IO (Integer); SFL1 : Fixed_Sat_Long; SFL2 : Fixed_Sat_Long; SRes : Fixed_Sat_Long; procedure Print_Operation (A, B, Res : Fixed_Sat_Long; Unary_Op : Boolean; Op : String); procedure Print_Operation (A : Fixed_Sat_Long; B : Integer; Res : Fixed_Sat_Long; Unary_Op : Boolean; Op : String); procedure Print_Operation (A, B, Res : Fixed_Sat_Long; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); FIO.Put (Item => B, Fore => 3, Aft => 3, Exp => 0); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Sat_Long_To_Mod_Long (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); MIO.Put (Item => Fixed_Sat_Long_To_Mod_Long (B), Width => 12, Base => 16); Put (" = "); MIO.Put (Item => Fixed_Sat_Long_To_Mod_Long (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; procedure Print_Operation (A : Fixed_Sat_Long; B : Integer; Res : Fixed_Sat_Long; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 7); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Sat_Long_To_Mod_Long (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 12); Put (" = "); MIO.Put (Item => Fixed_Sat_Long_To_Mod_Long (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; begin Put_Line ("TEST: Fixed_Test_Sat_Long"); SFL1 := 0.5 / 2**3; SFL2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFL1 + SFL2; Print_Operation (SFL1, SFL2, SRes, False, " + "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := 0.25 / 2**3; SFL2 := 0.5 / 2**3; for I in 0 .. 4 loop SRes := SFL1 - SFL2; Print_Operation (SFL1, SFL2, SRes, False, " - "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := -0.5 / 2**3; SFL2 := 0.25 / 2**3; for I in 0 .. 4 loop SRes := SFL1 - SFL2; Print_Operation (SFL1, SFL2, SRes, False, " - "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := 0.0; SFL2 := 0.25 / 2**3; for I in 0 .. 4 loop SRes := -SFL2; Print_Operation (SFL1, SFL2, SRes, True, " - "); SFL2 := SFL2 * 2; end loop; SFL1 := 0.0; SFL2 := -0.25 / 2**3; for I in 0 .. 4 loop SRes := abs SFL2; Print_Operation (SFL1, SFL2, SRes, True, "abs"); SFL2 := SFL2 * 2; end loop; SFL1 := -0.5 / 2**3; SFL2 := -0.5 / 2**3; for I in 0 .. 4 loop SRes := SFL1 * SFL2; Print_Operation (SFL1, SFL2, SRes, False, " * "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := 0.5 / 2**3; SFL2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFL1 * SFL2; Print_Operation (SFL1, SFL2, SRes, False, " * "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := Fixed_Sat_Long'Last; SFL2 := Fixed_Sat_Long'Last; SRes := SFL1 * SFL2; Print_Operation (SFL1, SFL2, SRes, False, " * "); declare I1 : Integer := 1; begin SFL1 := 0.25; for I in 1 .. 5 loop SRes := SFL1 * I1; Print_Operation (SFL1, I1, SRes, False, " * "); I1 := I1 + 1; end loop; end; declare I1 : Integer := -1; begin SFL1 := 0.25; for I in 1 .. 5 loop SRes := SFL1 * I1; Print_Operation (SFL1, I1, SRes, False, " * "); I1 := I1 - 1; end loop; end; SFL1 := 0.25 / 2**3; SFL2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFL1 / SFL2; Print_Operation (SFL1, SFL2, SRes, False, " / "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; SFL1 := -0.25 / 2**3; SFL2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFL1 / SFL2; Print_Operation (SFL1, SFL2, SRes, False, " / "); SFL1 := SFL1 * 2; SFL2 := SFL2 * 2; end loop; Put_Line ("--------------------------------------------------------"); end Fixed_Test_Sat_Long; procedure Fixed_Test_Short is package MIO is new Ada.Text_IO.Modular_IO (Modular_Short); package FIO is new Ada.Text_IO.Fixed_IO (Fixed_Short); package IIO is new Ada.Text_IO.Integer_IO (Integer); FS1 : Fixed_Short; FS2 : Fixed_Short; Res : Fixed_Short; procedure Print_Operation (A, B, Res : Fixed_Short; Unary_Op : Boolean; Op : String); procedure Print_Operation (A : Fixed_Short; B : Integer; Res : Fixed_Short; Unary_Op : Boolean; Op : String); procedure Print_Operation (A, B, Res : Fixed_Short; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); FIO.Put (Item => B, Fore => 3, Aft => 3, Exp => 0); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Short_To_Mod_Short (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); MIO.Put (Item => Fixed_Short_To_Mod_Short (B), Width => 12, Base => 16); Put (" = "); MIO.Put (Item => Fixed_Short_To_Mod_Short (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; procedure Print_Operation (A : Fixed_Short; B : Integer; Res : Fixed_Short; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 7); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Short_To_Mod_Short (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 12); Put (" = "); MIO.Put (Item => Fixed_Short_To_Mod_Short (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; begin Put_Line ("TEST: Fixed_Test_Short"); FS1 := 0.5 / 2**3; FS2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FS1 + FS2; Print_Operation (FS1, FS2, Res, False, " + "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := 0.25 / 2**3; FS2 := 0.5 / 2**3; for I in 0 .. 4 loop begin Res := FS1 - FS2; Print_Operation (FS1, FS2, Res, False, " - "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := -0.5 / 2**3; FS2 := 0.25 / 2**3; for I in 0 .. 4 loop begin Res := FS1 - FS2; Print_Operation (FS1, FS2, Res, False, " - "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := 0.0; FS2 := 0.25 / 2**3; for I in 0 .. 4 loop begin Res := -FS2; Print_Operation (FS1, FS2, Res, True, " - "); FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := 0.0; FS2 := -0.25 / 2**3; for I in 0 .. 4 loop begin Res := abs FS2; Print_Operation (FS1, FS2, Res, True, "abs"); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := -0.5 / 2**3; FS2 := -0.5 / 2**3; for I in 0 .. 4 loop begin Res := FS1 * FS2; Print_Operation (FS1, FS2, Res, False, " * "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := 0.5 / 2**3; FS2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FS1 * FS2; Print_Operation (FS1, FS2, Res, False, " * "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := Fixed_Short'Last; FS2 := Fixed_Short'Last; Res := FS1 * FS2; Print_Operation (FS1, FS2, Res, False, " * "); declare I1 : Integer := 1; begin FS1 := 0.25; for I in 1 .. 5 loop begin Res := FS1 * I1; Print_Operation (FS1, I1, Res, False, " * "); I1 := I1 + 1; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; end; declare I1 : Integer := -1; begin FS1 := 0.25; for I in 1 .. 5 loop begin Res := FS1 * I1; Print_Operation (FS1, I1, Res, False, " * "); I1 := I1 - 1; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; end; FS1 := 0.25 / 2**3; FS2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FS1 / FS2; Print_Operation (FS1, FS2, Res, False, " / "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; FS1 := -0.25 / 2**3; FS2 := 0.5 / 2**3; for I in 0 .. 3 loop begin Res := FS1 / FS2; Print_Operation (FS1, FS2, Res, False, " / "); FS1 := FS1 * 2; FS2 := FS2 * 2; exception when E : others => Put_Line ("-- Exception triggered --"); Put (Ada.Exceptions.Exception_Information (E)); end; end loop; Put_Line ("--------------------------------------------------------"); end Fixed_Test_Short; procedure Fixed_Test_Sat_Short is package MIO is new Ada.Text_IO.Modular_IO (Modular_Short); package FIO is new Ada.Text_IO.Fixed_IO (Fixed_Sat_Short); package IIO is new Ada.Text_IO.Integer_IO (Integer); SFS1 : Fixed_Sat_Short; SFS2 : Fixed_Sat_Short; SRes : Fixed_Sat_Short; procedure Print_Operation (A, B, Res : Fixed_Sat_Short; Unary_Op : Boolean; Op : String); procedure Print_Operation (A : Fixed_Sat_Short; B : Integer; Res : Fixed_Sat_Short; Unary_Op : Boolean; Op : String); procedure Print_Operation (A, B, Res : Fixed_Sat_Short; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); FIO.Put (Item => B, Fore => 3, Aft => 3, Exp => 0); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Sat_Short_To_Mod_Short (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); MIO.Put (Item => Fixed_Sat_Short_To_Mod_Short (B), Width => 12, Base => 16); Put (" = "); MIO.Put (Item => Fixed_Sat_Short_To_Mod_Short (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; procedure Print_Operation (A : Fixed_Sat_Short; B : Integer; Res : Fixed_Sat_Short; Unary_Op : Boolean; Op : String) is begin if Unary_Op then Put (" "); else FIO.Put (Item => A, Fore => 3, Aft => 3, Exp => 0); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 7); Put (" = "); FIO.Put (Item => Res, Fore => 3, Aft => 3, Exp => 0); Put (" ("); if Unary_Op then Put (" "); else MIO.Put (Item => Fixed_Sat_Short_To_Mod_Short (A), Width => 12, Base => 16); end if; Put (" " & Op & " "); IIO.Put (Item => B, Width => 12); Put (" = "); MIO.Put (Item => Fixed_Sat_Short_To_Mod_Short (Res), Width => 12, Base => 16); Put (")"); New_Line; end Print_Operation; begin Put_Line ("TEST: Fixed_Test_Sat_Short"); SFS1 := 0.5 / 2**3; SFS2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFS1 + SFS2; Print_Operation (SFS1, SFS2, SRes, False, " + "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := 0.25 / 2**3; SFS2 := 0.5 / 2**3; for I in 0 .. 4 loop SRes := SFS1 - SFS2; Print_Operation (SFS1, SFS2, SRes, False, " - "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := -0.5 / 2**3; SFS2 := 0.25 / 2**3; for I in 0 .. 4 loop SRes := SFS1 - SFS2; Print_Operation (SFS1, SFS2, SRes, False, " - "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := 0.0; SFS2 := 0.25 / 2**3; for I in 0 .. 4 loop SRes := -SFS2; Print_Operation (SFS1, SFS2, SRes, True, " - "); SFS2 := SFS2 * 2; end loop; SFS1 := 0.0; SFS2 := -0.25 / 2**3; for I in 0 .. 4 loop SRes := abs SFS2; Print_Operation (SFS1, SFS2, SRes, True, "abs"); SFS2 := SFS2 * 2; end loop; SFS1 := -0.5 / 2**3; SFS2 := -0.5 / 2**3; for I in 0 .. 4 loop SRes := SFS1 * SFS2; Print_Operation (SFS1, SFS2, SRes, False, " * "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := 0.5 / 2**3; SFS2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFS1 * SFS2; Print_Operation (SFS1, SFS2, SRes, False, " * "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := Fixed_Sat_Short'Last; SFS2 := Fixed_Sat_Short'Last; SRes := SFS1 * SFS2; Print_Operation (SFS1, SFS2, SRes, False, " * "); declare I1 : Integer := 1; begin SFS1 := 0.25; for I in 1 .. 5 loop SRes := SFS1 * I1; Print_Operation (SFS1, I1, SRes, False, " * "); I1 := I1 + 1; end loop; end; declare I1 : Integer := -1; begin SFS1 := 0.25; for I in 1 .. 5 loop SRes := SFS1 * I1; Print_Operation (SFS1, I1, SRes, False, " * "); I1 := I1 - 1; end loop; end; SFS1 := 0.25 / 2**3; SFS2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFS1 / SFS2; Print_Operation (SFS1, SFS2, SRes, False, " / "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; SFS1 := -0.25 / 2**3; SFS2 := 0.5 / 2**3; for I in 0 .. 3 loop SRes := SFS1 / SFS2; Print_Operation (SFS1, SFS2, SRes, False, " / "); SFS1 := SFS1 * 2; SFS2 := SFS2 * 2; end loop; Put_Line ("--------------------------------------------------------"); end Fixed_Test_Sat_Short; begin Fixed_Test_Sat_Long; Fixed_Test_Long; Fixed_Test_Sat_Short; Fixed_Test_Short; end Fixed_Types_Test;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . I M G _ L L B -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-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. -- -- -- ------------------------------------------------------------------------------ -- Contains the routine for computing the image in based format of signed and -- unsigned integers whose size > Integer'Size for use by Text_IO.Integer_IO -- and Text_IO.Modular_IO. with System.Unsigned_Types; package System.Img_LLB is pragma Preelaborate; procedure Set_Image_Based_Long_Long_Integer (V : Long_Long_Integer; B : Natural; W : Integer; S : out String; P : in out Natural); -- Sets the signed image of V in based format, using base value B (2..16) -- starting at S (P + 1), updating P to point to the last character stored. -- The image includes a leading minus sign if necessary, but no leading -- spaces unless W is positive, in which case leading spaces are output if -- necessary to ensure that the output string is no less than W characters -- long. The caller promises that the buffer is large enough and no check -- is made for this. Constraint_Error will not necessarily be raised if -- this is violated, since it is perfectly valid to compile this unit with -- checks off. procedure Set_Image_Based_Long_Long_Unsigned (V : System.Unsigned_Types.Long_Long_Unsigned; B : Natural; W : Integer; S : out String; P : in out Natural); -- Sets the unsigned image of V in based format, using base value B (2..16) -- starting at S (P + 1), updating P to point to the last character stored. -- The image includes no leading spaces unless W is positive, in which case -- leading spaces are output if necessary to ensure that the output string -- is no less than W characters long. The caller promises that the buffer -- is large enough and no check is made for this. Constraint_Error will not -- necessarily be raised if this is violated, since it is perfectly valid -- to compile this unit with checks off). end System.Img_LLB;
-- Copyright 2008 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with Pck; use Pck; procedure Foo is My_String : constant String := "Hello World"; begin First := ASCII.NUL; Last := ASCII.NUL; Length := -1; Call_Me (My_String); -- STOP end Foo;
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * The name of the copyright holder may not be used to endorse or promote -- Products derived from this software without specific prior written -- permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY -- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with Interfaces; use Interfaces; with Keccak.Util; use Keccak.Util; package body Keccak.Generic_MonkeyWrap is Frame_Bits_00 : constant Keccak.Types.Byte := 2#00#; Frame_Bits_01 : constant Keccak.Types.Byte := 2#10#; Frame_Bits_11 : constant Keccak.Types.Byte := 2#11#; Frame_Bits_10 : constant Keccak.Types.Byte := 2#01#; Frame_Bits_0 : constant Keccak.Types.Byte := 2#0#; ------------ -- Init -- ------------ procedure Init (Ctx : out Context; Key : in Keccak.Types.Byte_Array; Nonce : in Keccak.Types.Byte_Array) is Block : Keccak.Types.Byte_Array (0 .. 1 + Key'Length + Nonce'Length); -- Combines the packed Key & Nonce. Rate : MonkeyDuplex.Rate_Bits_Number; begin -- keypack(Key, |Key| + 16) Block (0) := Key'Length + 2; Block (1 .. Key'Length) := Key; Block (Key'Length + 1) := 16#01#; Block (Key'Length + 2 .. Block'Last) := Nonce; Rate := (Block_Size_Bytes * 8) + MonkeyDuplex.Min_Padding_Bits + 2; Ctx := (Inner_Ctx => MonkeyDuplex.Start (Rate => Rate, Data => Block, Bit_Len => Block'Length * 8), Current_State => Auth_Data, In_Data => (others => 0), In_Data_Length => 0, Keystream => (others => 0), Tag_Accumulator => 0); pragma Annotate (GNATprove, False_Positive, """Block"" might not be initialized", "Block is initialised in parts, which confuses GNATprove"); end Init; ------------------------ -- Update_Auth_Data -- ------------------------ procedure Update_Auth_Data (Ctx : in out Context; Data : in Keccak.Types.Byte_Array) is Offset : Natural := 0; Remaining : Natural := Data'Length; Pos : Natural; Remaining_In_Chunk : Natural; Initial_In_Data_Length : constant Block_Byte_Count := Ctx.In_Data_Length with Ghost; begin -- Concatenate the data with the previous leftover bytes. if Ctx.In_Data_Length > 0 then Remaining_In_Chunk := Block_Size_Bytes - Ctx.In_Data_Length; if Remaining >= Remaining_In_Chunk then Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + (Remaining_In_Chunk - 1)) := Data (Data'First .. Data'First + (Remaining_In_Chunk - 1)); Offset := Offset + Remaining_In_Chunk; Remaining := Remaining - Remaining_In_Chunk; Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining_In_Chunk; pragma Assert (Ctx.In_Data_Length = Block_Size_Bytes); if Remaining > 0 then MonkeyDuplex.Step_Mute (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_00, Suffix_Bit_Length => 2); Ctx.In_Data_Length := 0; end if; else Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining - 1) := Data; Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining; Offset := Remaining; Remaining := 0; end if; end if; pragma Assert (if Remaining = 0 then Ctx.In_Data_Length >= Initial_In_Data_Length); -- Process complete blocks, but don't process last block if it is -- a complete block. while Remaining > Block_Size_Bytes loop pragma Loop_Variant (Increases => Offset, Decreases => Remaining); pragma Loop_Invariant (Ctx.In_Data_Length = 0 and Offset + Remaining = Data'Length); Pos := Data'First + Offset; MonkeyDuplex.Step_Mute (Ctx => Ctx.Inner_Ctx, In_Data => Data (Pos .. Pos + Block_Size_Bytes - 1), In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_00, Suffix_Bit_Length => 2); Offset := Offset + Block_Size_Bytes; Remaining := Remaining - Block_Size_Bytes; end loop; -- Save the last (partial or full) block. -- Even if this is a full block, we don't process it yet because we -- don't yet know if this is the last block of authenticated data or not -- which determines the suffix value to use. -- (there may be additional calls to Update_Auth_Data). if Remaining > 0 then pragma Assert (Remaining <= Block_Size_Bytes); Ctx.In_Data_Length := Remaining; Ctx.In_Data (0 .. Remaining - 1) := Data (Data'First + Offset .. Data'Last); end if; end Update_Auth_Data; ---------------------- -- Update_Encrypt -- ---------------------- procedure Update_Encrypt (Ctx : in out Context; Plaintext : in Keccak.Types.Byte_Array; Ciphertext : out Keccak.Types.Byte_Array) is Offset : Natural := 0; Remaining : Natural := Plaintext'Length; Remaining_Keystream : Natural; PT_Pos : Keccak.Types.Index_Number; CT_Pos : Keccak.Types.Index_Number; begin -- Process last block of AAD, if needed. if Ctx.Current_State = Auth_Data then -- Process final block of auth data to generate first Keystream bits. MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_01, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; Ctx.Current_State := Encrypting; end if; pragma Assert (Offset + Remaining = Plaintext'Length); -- Concatenate plaintext with leftover plaintext from previous call to Encrypt. if Ctx.In_Data_Length > 0 and Remaining > 0 then Remaining_Keystream := Block_Size_Bytes - Ctx.In_Data_Length; if Remaining_Keystream <= Plaintext'Length then -- Use all remaining keystream bytes to produce the ciphertext. for I in 0 .. Remaining_Keystream - 1 loop Ciphertext (Ciphertext'First + I) := Plaintext (Plaintext'First + I) xor Ctx.Keystream (Ctx.In_Data_Length + I); end loop; -- Concatenate the plaintext with the previous leftover plaintext PT_Pos := Plaintext'First + Offset; Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining_Keystream - 1) := Plaintext (PT_Pos .. PT_Pos + Remaining_Keystream - 1); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining_Keystream; Offset := Offset + Remaining_Keystream; Remaining := Remaining - Remaining_Keystream; else for I in 0 .. Remaining - 1 loop Ciphertext (Ciphertext'First + I) := Plaintext (Plaintext'First + I) xor Ctx.Keystream (Ctx.In_Data_Length + I); end loop; PT_Pos := Plaintext'First + Offset; Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining - 1) := Plaintext (PT_Pos .. PT_Pos + Remaining - 1); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining; Offset := Offset + Remaining; Remaining := 0; end if; end if; if Remaining > 0 then pragma Assert (Ctx.In_Data_Length in 0 | Block_Size_Bytes); if Ctx.In_Data_Length = Block_Size_Bytes then MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data (0 .. Block_Size_Bytes - 1), In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_11, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; end if; -- Process full blocks. while Remaining > Block_Size_Bytes loop pragma Loop_Variant (Increases => Offset, Decreases => Remaining); pragma Loop_Invariant (Offset + Remaining = Plaintext'Length and Ctx.In_Data_Length = 0); PT_Pos := Plaintext'First + Offset; CT_Pos := Ciphertext'First + Offset; for I in 0 .. Block_Size_Bytes - 1 loop Ciphertext (CT_Pos + I) := Plaintext (PT_Pos + I) xor Ctx.Keystream (I); end loop; MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Plaintext (PT_Pos .. PT_Pos + Block_Size_Bytes - 1), In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_11, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Offset := Offset + Block_Size_Bytes; Remaining := Remaining - Block_Size_Bytes; end loop; -- Process last block. if Remaining > 0 then PT_Pos := Plaintext'First + Offset; CT_Pos := Ciphertext'First + Offset; for I in 0 .. Remaining - 1 loop Ciphertext (CT_Pos + I) := Plaintext (PT_Pos + I) xor Ctx.Keystream (I); end loop; -- Store last partial/full block of plaintext. -- -- Even if we have a full block, we can't process it with MonkeyDuplex -- yet because we don't know if this is the last plaintext block. Ctx.In_Data (0 .. Remaining - 1) := Plaintext (PT_Pos .. Plaintext'Last); Ctx.In_Data_Length := Remaining; end if; end if; end Update_Encrypt; ---------------------- -- Update_Decrypt -- ---------------------- procedure Update_Decrypt (Ctx : in out Context; Ciphertext : in Keccak.Types.Byte_Array; Plaintext : out Keccak.Types.Byte_Array) is Offset : Natural := 0; Remaining : Natural := Plaintext'Length; Remaining_Keystream : Natural; PT_Pos : Keccak.Types.Index_Number; CT_Pos : Keccak.Types.Index_Number; begin -- Process last block of AAD, if needed. if Ctx.Current_State = Auth_Data then -- Process final block of auth data to generate first Keystream bits. MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_01, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; Ctx.Current_State := Decrypting; end if; pragma Assert (Offset + Remaining = Plaintext'Length); -- Concatenate plaintext with leftover plaintext from previous call to Encrypt. if Ctx.In_Data_Length > 0 and Remaining > 0 then Remaining_Keystream := Block_Size_Bytes - Ctx.In_Data_Length; if Remaining_Keystream <= Plaintext'Length then -- Use all remaining keystream bytes to produce the ciphertext. for I in 0 .. Remaining_Keystream - 1 loop Plaintext (Plaintext'First + I) := Ciphertext (Ciphertext'First + I) xor Ctx.Keystream (Ctx.In_Data_Length + I); end loop; -- Concatenate the plaintext with the previous leftover plaintext PT_Pos := Plaintext'First + Offset; Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining_Keystream - 1) := Plaintext (PT_Pos .. PT_Pos + Remaining_Keystream - 1); pragma Annotate (GNATprove, False_Positive, """Plaintext"" might not be initialized", "The plaintext slice used is initialized in the preceding loop"); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining_Keystream; Offset := Offset + Remaining_Keystream; Remaining := Remaining - Remaining_Keystream; else for I in 0 .. Remaining - 1 loop Plaintext (Plaintext'First + I) := Ciphertext (Ciphertext'First + I) xor Ctx.Keystream (Ctx.In_Data_Length + I); end loop; PT_Pos := Plaintext'First + Offset; Ctx.In_Data (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining - 1) := Plaintext (PT_Pos .. PT_Pos + Remaining - 1); pragma Annotate (GNATprove, False_Positive, """Plaintext"" might not be initialized", "The plaintext slice used is initialized in the preceding loop"); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining; Offset := Offset + Remaining; Remaining := 0; end if; end if; if Remaining > 0 then pragma Assert (Ctx.In_Data_Length in 0 | Block_Size_Bytes); if Ctx.In_Data_Length = Block_Size_Bytes then MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data (0 .. Block_Size_Bytes - 1), In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_11, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; end if; -- Process full blocks. while Remaining > Block_Size_Bytes loop pragma Loop_Variant (Increases => Offset, Decreases => Remaining); pragma Loop_Invariant (Offset + Remaining = Plaintext'Length and Ctx.In_Data_Length = 0); PT_Pos := Plaintext'First + Offset; CT_Pos := Ciphertext'First + Offset; for I in 0 .. Block_Size_Bytes - 1 loop Plaintext (PT_Pos + I) := Ciphertext (CT_Pos + I) xor Ctx.Keystream (I); end loop; MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Plaintext (PT_Pos .. PT_Pos + Block_Size_Bytes), In_Data_Bit_Length => Block_Size_Bytes * 8, Suffix => Frame_Bits_11, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); pragma Annotate (GNATprove, False_Positive, """Plaintext"" might not be initialized", "The plaintext slice used is initialized in the preceding loop"); Offset := Offset + Block_Size_Bytes; Remaining := Remaining - Block_Size_Bytes; end loop; -- Process last block. if Remaining > 0 then PT_Pos := Plaintext'First + Offset; CT_Pos := Ciphertext'First + Offset; for I in 0 .. Remaining - 1 loop Plaintext (PT_Pos + I) := Ciphertext (CT_Pos + I) xor Ctx.Keystream (I); end loop; -- Store last partial/full block of plaintext. -- -- Even if we have a full block, we can't process it with MonkeyDuplex -- yet because we don't know if this is the last plaintext block. Ctx.In_Data (0 .. Remaining - 1) := Plaintext (PT_Pos .. Plaintext'Last); pragma Annotate (GNATprove, False_Positive, """Plaintext"" might not be initialized", "The plaintext slice used is initialized in the preceding loop"); Ctx.In_Data_Length := Remaining; end if; end if; end Update_Decrypt; ------------------- -- Extract_Tag -- ------------------- procedure Extract_Tag (Ctx : in out Context; Tag : out Keccak.Types.Byte_Array) is Offset : Natural := 0; Remaining : Natural := Tag'Length; Pos : Keccak.Types.Index_Number; Remaining_Output : Natural; begin if Ctx.Current_State in Auth_Data | Encrypting | Decrypting then if Ctx.Current_State = Auth_Data then -- Finish auth data stage MonkeyDuplex.Step_Mute (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_01, Suffix_Bit_Length => 2); Ctx.In_Data_Length := 0; end if; -- Finish encryption/decryption stage. MonkeyDuplex.Stride (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_10, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; Ctx.Current_State := Extracting_Tag; end if; Remaining_Output := Block_Size_Bytes - Ctx.In_Data_Length; if Remaining > 0 then -- First, take from the previous leftovers. if Remaining < Remaining_Output then Tag := Ctx.Keystream (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining - 1); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining; Offset := Remaining; Remaining := 0; else Pos := Tag'First + Offset; Tag (Pos .. Pos + Remaining_Output - 1) := Ctx.Keystream (Ctx.In_Data_Length .. Ctx.In_Data_Length + Remaining_Output - 1); Ctx.In_Data_Length := Block_Size_Bytes; Offset := Offset + Remaining_Output; Remaining := Remaining - Remaining_Output; end if; -- Process full blocks while Remaining >= Block_Size_Bytes loop pragma Loop_Variant (Increases => Offset, Decreases => Remaining); pragma Loop_Invariant (Offset + Remaining = Tag'Length); Pos := Tag'First + Offset; MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => 0, Suffix => Frame_Bits_0, Suffix_Bit_Length => 1, Out_Data => Tag (Pos .. Pos + Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Offset := Offset + Block_Size_Bytes; Remaining := Remaining - Block_Size_Bytes; end loop; -- Generate last partial block if Remaining > 0 then MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => 0, Suffix => Frame_Bits_0, Suffix_Bit_Length => 1, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Tag (Tag'First + Offset .. Tag'Last) := Ctx.Keystream (0 .. Remaining - 1); Ctx.In_Data_Length := Remaining; end if; end if; end Extract_Tag; ------------------ -- Verify_Tag -- ------------------ procedure Verify_Tag (Ctx : in out Context; Tag : in Keccak.Types.Byte_Array; Valid : out Boolean) is Offset : Natural := 0; Remaining : Natural := Tag'Length; Tag_Pos : Keccak.Types.Index_Number; KS_Pos : Keccak.Types.Index_Number; Remaining_Output : Natural; begin if Ctx.Current_State in Auth_Data | Encrypting | Decrypting then if Ctx.Current_State = Auth_Data then -- Finish auth data stage MonkeyDuplex.Step_Mute (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_01, Suffix_Bit_Length => 2); Ctx.In_Data_Length := 0; end if; -- Finish encryption/decryption stage. MonkeyDuplex.Stride (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => Ctx.In_Data_Length * 8, Suffix => Frame_Bits_10, Suffix_Bit_Length => 2, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Ctx.In_Data_Length := 0; Ctx.Current_State := Verifying_Tag; Ctx.Tag_Accumulator := 0; end if; Remaining_Output := Block_Size_Bytes - Ctx.In_Data_Length; if Remaining > 0 then -- First, take from the previous leftovers. Tag_Pos := Tag'First + Offset; KS_Pos := Ctx.In_Data_Length; if Remaining < Remaining_Output then Compare (A1 => Tag (Tag_Pos .. Tag_Pos + Remaining - 1), A2 => Ctx.Keystream (KS_Pos .. KS_Pos + Remaining - 1), Accumulator => Ctx.Tag_Accumulator); Ctx.In_Data_Length := Ctx.In_Data_Length + Remaining; Offset := Remaining; Remaining := 0; else Compare (A1 => Tag (Tag_Pos .. Tag_Pos + Remaining_Output - 1), A2 => Ctx.Keystream (KS_Pos .. KS_Pos + Remaining_Output - 1), Accumulator => Ctx.Tag_Accumulator); Ctx.In_Data_Length := Block_Size_Bytes; Offset := Offset + Remaining_Output; Remaining := Remaining - Remaining_Output; end if; -- Process full blocks while Remaining >= Block_Size_Bytes loop pragma Loop_Variant (Increases => Offset, Decreases => Remaining); pragma Loop_Invariant (Offset + Remaining = Tag'Length); MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => 0, Suffix => Frame_Bits_0, Suffix_Bit_Length => 1, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Tag_Pos := Tag'First + Offset; Compare (A1 => Tag (Tag_Pos .. Tag_Pos + Block_Size_Bytes - 1), A2 => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Accumulator => Ctx.Tag_Accumulator); Offset := Offset + Block_Size_Bytes; Remaining := Remaining - Block_Size_Bytes; end loop; -- Generate last partial block if Remaining > 0 then MonkeyDuplex.Step (Ctx => Ctx.Inner_Ctx, In_Data => Ctx.In_Data, In_Data_Bit_Length => 0, Suffix => Frame_Bits_0, Suffix_Bit_Length => 1, Out_Data => Ctx.Keystream (0 .. Block_Size_Bytes - 1), Out_Data_Bit_Length => Block_Size_Bytes * 8); Tag_Pos := Tag'First + Offset; Compare (A1 => Tag (Tag_Pos .. Tag_Pos + Remaining - 1), A2 => Ctx.Keystream (0 .. Remaining - 1), Accumulator => Ctx.Tag_Accumulator); Ctx.In_Data_Length := Remaining; end if; end if; Valid := Ctx.Tag_Accumulator = 0; end Verify_Tag; ------------------- -- New_Session -- ------------------- procedure New_Session (Ctx : in out Context) is begin Ctx.Current_State := Auth_Data; Ctx.In_Data_Length := 0; Ctx.Tag_Accumulator := 0; end New_Session; end Keccak.Generic_MonkeyWrap;
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and this paragraph are -- duplicated in all such forms and that any documentation, -- advertising materials, and other materials related to such -- distribution and use acknowledge that the software was developed -- by the University of California, Irvine. The name of the -- University may not be used to endorse or promote products derived -- from this software without specific prior written permission. -- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -- TITLE integer IO -- AUTHOR: John Self (UCI) -- DESCRIPTION instantiation of integer IO generic for integers -- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/int_io.a,v 1.3 90/01/12 15:20:09 self Exp Locker: self $ with text_io; package int_io is new TEXT_IO.INTEGER_IO(INTEGER);
with ada.characters.latin_1; with logger; use logger; package body box_parts is function get_parts(box_info : box_info_t) return box_parts_t is lower_halfbox : halfbox_t; inner_halfbox : halfbox_t; upper_halfbox : halfbox_t; begin debug("Génération de la boîte"); -- Demi boite inférieure lower_halfbox := get_halfbox( box_info.width, box_info.length, -- On gère la parité ici et fait ajoute le "surplus" -- sur la boîte du bas box_info.height / 2 + box_info.height mod 2, box_info.thickness, box_info.queue_length); -- Demi boite du millieu inner_halfbox := get_halfbox( box_info.width - 2 * box_info.thickness, box_info.length - 2 * box_info.thickness, box_info.inner_height, box_info.thickness, box_info.queue_length); -- Demi boite du haut upper_halfbox := get_halfbox( box_info.width, box_info.length, box_info.height / 2, box_info.thickness, box_info.queue_length); return (lower_halfbox => lower_halfbox, inner_halfbox => inner_halfbox, upper_halfbox => upper_halfbox); end; procedure destroy(parts : in out box_parts_t) is begin destroy(parts.lower_halfbox); destroy(parts.inner_halfbox); destroy(parts.upper_halfbox); end; function to_string(box_parts : box_parts_t) return string is tab : constant character := ada.characters.latin_1.HT; lf : constant character := ada.characters.latin_1.LF; begin return "[" & lf & tab & "upper_halfbox: " & to_string(box_parts.upper_halfbox) & lf & tab & "inner_halfbox: " & to_string(box_parts.inner_halfbox) & lf & tab & "lower_halfbox: " & to_string(box_parts.lower_halfbox) & lf & "]"; end; end box_parts;
with STM32GD.GPIO.Pin; generic with package Pin is new STM32GD.GPIO.Pin (<>); package STM32GD.GPIO.Polled is pragma Preelaborate; procedure Configure_Trigger (Event : Boolean := False; Rising : Boolean := False; Falling : Boolean := False); procedure Wait_For_Trigger; procedure Clear_Trigger; function Triggered return Boolean; procedure Cancel_Wait; end STM32GD.GPIO.Polled;
with Ada.Streams; with Interfaces.C; package Resources is type Content_Access is access constant String; type Name_Access is access constant String; type Name_Array is array (Natural range <>) of Name_Access; type Format_Type is (FILE_RAW, FILE_GZIP); type Content_Type is record Name : Name_Access; Content : Content_Access; Modtime : Interfaces.C.long := 0; Format : Format_Type := FILE_RAW; end record; Null_Content : constant Content_Type; private Null_Content : constant Content_Type := (others => <>); end Resources;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . O R D E R E D _ S E T S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2021, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Iterator_Interfaces; with Ada.Containers.Helpers; private with Ada.Containers.Red_Black_Trees; private with Ada.Finalization; private with Ada.Streams; private with Ada.Strings.Text_Buffers; generic type Element_Type is private; with function "<" (Left, Right : Element_Type) return Boolean is <>; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Ordered_Sets with SPARK_Mode => Off is pragma Annotate (CodePeer, Skip_Analysis); pragma Preelaborate; pragma Remote_Types; function Equivalent_Elements (Left, Right : Element_Type) return Boolean; type Set is tagged private with Constant_Indexing => Constant_Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type; -- Aggregate => (Empty => Empty, -- Add_Unnamed => Include); pragma Preelaborable_Initialization (Set); type Cursor is private; pragma Preelaborable_Initialization (Cursor); function Has_Element (Position : Cursor) return Boolean; Empty_Set : constant Set; function Empty return Set; No_Element : constant Cursor; package Set_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); function "=" (Left, Right : Set) return Boolean; function Equivalent_Sets (Left, Right : Set) return Boolean; function To_Set (New_Item : Element_Type) return Set; function Length (Container : Set) return Count_Type; function Is_Empty (Container : Set) return Boolean; procedure Clear (Container : in out Set); function Element (Position : Cursor) return Element_Type; procedure Replace_Element (Container : in out Set; Position : Cursor; New_Item : Element_Type); procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)); type Constant_Reference_Type (Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; function Constant_Reference (Container : aliased Set; Position : Cursor) return Constant_Reference_Type; pragma Inline (Constant_Reference); procedure Assign (Target : in out Set; Source : Set); function Copy (Source : Set) return Set; procedure Move (Target : in out Set; Source : in out Set); procedure Insert (Container : in out Set; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean); procedure Insert (Container : in out Set; New_Item : Element_Type); procedure Include (Container : in out Set; New_Item : Element_Type); procedure Replace (Container : in out Set; New_Item : Element_Type); procedure Exclude (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Position : in out Cursor); procedure Delete_First (Container : in out Set); procedure Delete_Last (Container : in out Set); procedure Union (Target : in out Set; Source : Set); function Union (Left, Right : Set) return Set; function "or" (Left, Right : Set) return Set renames Union; procedure Intersection (Target : in out Set; Source : Set); function Intersection (Left, Right : Set) return Set; function "and" (Left, Right : Set) return Set renames Intersection; procedure Difference (Target : in out Set; Source : Set); function Difference (Left, Right : Set) return Set; function "-" (Left, Right : Set) return Set renames Difference; procedure Symmetric_Difference (Target : in out Set; Source : Set); function Symmetric_Difference (Left, Right : Set) return Set; function "xor" (Left, Right : Set) return Set renames Symmetric_Difference; function Overlap (Left, Right : Set) return Boolean; function Is_Subset (Subset : Set; Of_Set : Set) return Boolean; function First (Container : Set) return Cursor; function First_Element (Container : Set) return Element_Type; function Last (Container : Set) return Cursor; function Last_Element (Container : Set) return Element_Type; function Next (Position : Cursor) return Cursor; procedure Next (Position : in out Cursor); function Previous (Position : Cursor) return Cursor; procedure Previous (Position : in out Cursor); function Find (Container : Set; Item : Element_Type) return Cursor; function Floor (Container : Set; Item : Element_Type) return Cursor; function Ceiling (Container : Set; Item : Element_Type) return Cursor; function Contains (Container : Set; Item : Element_Type) return Boolean; function "<" (Left, Right : Cursor) return Boolean; function ">" (Left, Right : Cursor) return Boolean; function "<" (Left : Cursor; Right : Element_Type) return Boolean; function ">" (Left : Cursor; Right : Element_Type) return Boolean; function "<" (Left : Element_Type; Right : Cursor) return Boolean; function ">" (Left : Element_Type; Right : Cursor) return Boolean; procedure Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); procedure Reverse_Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); function Iterate (Container : Set) return Set_Iterator_Interfaces.Reversible_Iterator'class; function Iterate (Container : Set; Start : Cursor) return Set_Iterator_Interfaces.Reversible_Iterator'class; generic type Key_Type (<>) is private; with function Key (Element : Element_Type) return Key_Type; with function "<" (Left, Right : Key_Type) return Boolean is <>; package Generic_Keys is function Equivalent_Keys (Left, Right : Key_Type) return Boolean; function Key (Position : Cursor) return Key_Type; function Element (Container : Set; Key : Key_Type) return Element_Type; procedure Replace (Container : in out Set; Key : Key_Type; New_Item : Element_Type); procedure Exclude (Container : in out Set; Key : Key_Type); procedure Delete (Container : in out Set; Key : Key_Type); function Find (Container : Set; Key : Key_Type) return Cursor; function Floor (Container : Set; Key : Key_Type) return Cursor; function Ceiling (Container : Set; Key : Key_Type) return Cursor; function Contains (Container : Set; Key : Key_Type) return Boolean; procedure Update_Element_Preserving_Key (Container : in out Set; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)); type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; function Reference_Preserving_Key (Container : aliased in out Set; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Set; Key : Key_Type) return Constant_Reference_Type; function Reference_Preserving_Key (Container : aliased in out Set; Key : Key_Type) return Reference_Type; private type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Key_Access is access all Key_Type; package Impl is new Helpers.Generic_Implementation; type Reference_Control_Type is new Impl.Reference_Control_Type with record Container : Set_Access; Pos : Cursor; Old_Key : Key_Access; end record; overriding procedure Finalize (Control : in out Reference_Control_Type); pragma Inline (Finalize); type Reference_Type (Element : not null access Element_Type) is record Control : Reference_Control_Type; end record; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type); for Reference_Type'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type); for Reference_Type'Read use Read; end Generic_Keys; private pragma Inline (Next); pragma Inline (Previous); type Node_Type; type Node_Access is access Node_Type; type Node_Type is limited record Parent : Node_Access; Left : Node_Access; Right : Node_Access; Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red; Element : aliased Element_Type; end record; package Tree_Types is new Red_Black_Trees.Generic_Tree_Types (Node_Type, Node_Access); type Set is new Ada.Finalization.Controlled with record Tree : Tree_Types.Tree_Type; end record with Put_Image => Put_Image; procedure Put_Image (S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Set); overriding procedure Adjust (Container : in out Set); overriding procedure Finalize (Container : in out Set) renames Clear; use Red_Black_Trees; use Tree_Types, Tree_Types.Implementation; use Ada.Finalization; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Set); for Set'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Set); for Set'Read use Read; type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Cursor is record Container : Set_Access; Node : Node_Access; end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Cursor); for Cursor'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Cursor); for Cursor'Read use Read; subtype Reference_Control_Type is Implementation.Reference_Control_Type; -- It is necessary to rename this here, so that the compiler can find it type Constant_Reference_Type (Element : not null access constant Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type); for Constant_Reference_Type'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type); for Constant_Reference_Type'Read use Read; -- Three operations are used to optimize in the expansion of "for ... of" -- loops: the Next(Cursor) procedure in the visible part, and the following -- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for -- details. function Pseudo_Reference (Container : aliased Set'Class) return Reference_Control_Type; pragma Inline (Pseudo_Reference); -- Creates an object of type Reference_Control_Type pointing to the -- container, and increments the Lock. Finalization of this object will -- decrement the Lock. type Element_Access is access all Element_Type with Storage_Size => 0; function Get_Element_Access (Position : Cursor) return not null Element_Access; -- Returns a pointer to the element designated by Position. Empty_Set : constant Set := (Controlled with others => <>); function Empty return Set is (Empty_Set); No_Element : constant Cursor := Cursor'(null, null); type Iterator is new Limited_Controlled and Set_Iterator_Interfaces.Reversible_Iterator with record Container : Set_Access; Node : Node_Access; end record with Disable_Controlled => not T_Check; overriding procedure Finalize (Object : in out Iterator); overriding function First (Object : Iterator) return Cursor; overriding function Last (Object : Iterator) return Cursor; overriding function Next (Object : Iterator; Position : Cursor) return Cursor; overriding function Previous (Object : Iterator; Position : Cursor) return Cursor; end Ada.Containers.Ordered_Sets;
-- -- This package provides resources to handle dynamic "plugins" -- -- A plugin is an "object" that can be called dynamically at run-time to -- handle, for example, files with different format. A plugin will -- typically be a descendant of an abstract type that specifies the -- minimal interface the plugin must export. For example, a program -- that needs to load images that can be in many different formats, -- it can define an "abstract image reader" with something like -- -- type Abstract_Image_Reader is interface; -- -- function Read_Image (Filename : String) return Image -- is abstract; -- -- Successively, one can define plugins to read JPEG, GIF, PNG, ... -- as descendants of Abstract_Image_Reader. -- -- Every plugin is identified by a Plugin_ID. The actual form of -- the Plugin_ID depends on the implementation, therefore its definition -- is used as a parameter of this package. In the case of the image readers, -- the ID could be a string with the format name. -- -- Note that while an ID uniquely identifies a plugin, a plugin can -- be identified by more than an ID. For example, the plugin to read -- JPEG images could be identified by both IDs "jpg" and "jpeg" (supposing -- the IDs case insensitive) with Ada.Tags; generic type Root_Plugin_Type (<>) is abstract tagged private; -- The ancestor of all plugins, the one who specify the minimum -- plugin interface. type Plugin_Parameters (<>) is limited private; -- A type used to pass parameters to the plugin that is going to -- be built. In the "parent" of this package there are few types -- that cover the most common cases. type Plugin_ID (<>) is private; -- The ID used to identify plugins. with function "<" (L, R : Plugin_ID) return Boolean is <>; -- An ID ordering function with function Constructor (Params : not null access Plugin_Parameters) return Root_Plugin_Type is abstract; -- A "builder" for the abstract plugin. The programmer who writes -- a new plugin must define this function for the new plugin. package Plugins.Tables is procedure Register (ID : Plugin_ID; Tag : Ada.Tags.Tag) with Pre => Ada.Tags.Is_Descendant_At_Same_Level (Descendant => Tag, Ancestor => Root_Plugin_Type'Tag); -- Register a new plugin in the table by giving its ID and the Tag of the -- corresponding type. By calling this procedure more than once, one -- can register many IDs for the same plugin. function Exists (ID : Plugin_ID; Search_If_Missing : Boolean := False) return Boolean; -- Return true if a plugin with the specified ID exists. If -- Search_If_Missing is True, try to search for the plugin with the finder -- before returning false. function Get (ID : Plugin_ID; Params : not null access Plugin_Parameters; Search_If_Missing : Boolean := False) return Root_Plugin_Type'Class; -- Get a plugin with the specified ID. Raise Unknown_Plugin_ID if the -- ID does not exist. If Search_If_Missing is True, try to search -- for the plugin with the finder before raising the exception Unknown_Plugin_ID : exception; procedure For_All_Plugins (Callback : not null access procedure (ID : Plugin_ID)); -- Call the Callback with every known plugin ID. Note that in this -- case the plugin finder is not used. type Abstract_Finder is interface; -- A "finder" is an object used to search for plugins (e.g., on disk, -- in Internet, ...). The user can register new finders with the -- table. procedure Search_Plugin (Finder : in out Abstract_Finder; ID : in Plugin_ID; Success : out Boolean) is abstract; -- Search for a plugin with the given ID and set Success = True -- if found type Finder_Access is access all Abstract_Finder'Class; type Finder_ID is private; -- Every time a new finder is registered, the package assigns to -- it an ID that can be used to remove the finder No_Finder : constant Finder_ID; function Add_Finder (Finder : Finder_Access) return Finder_ID; -- Add a new finder to the table and return an ID that can be -- used to remove it procedure Remove_Finder (ID : Finder_ID); -- Remove the specified finder private type Finder_ID is new Natural; No_Finder : constant Finder_ID := Finder_ID'First; end Plugins.Tables;
-- Copyright 2007-2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with System; package Pck is type Struct is record A : Integer; B : Integer; end record; type Arr is array (1 .. 3) of Integer; procedure Call_Me (Int : Integer; Flt : Float; Bln : Boolean; Ary : Arr; -- Non scalar Chr : Character; Sad : System.Address; Rec : Struct); -- Non scalar end Pck;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . I M G _ I N T -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routines for supporting the Image attribute for -- signed integer types up to Integer, and also for conversion operations -- required in Text_IO.Integer_IO for such types. with System.Image_I; package System.Img_Int is pragma Pure; package Impl is new Image_I (Integer); procedure Image_Integer (V : Integer; S : in out String; P : out Natural) renames Impl.Image_Integer; procedure Set_Image_Integer (V : Integer; S : in out String; P : in out Natural) renames Impl.Set_Image_Integer; end System.Img_Int;
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. -------------------------------------------------------------------------------- with Vulkan.Math.Mat2x2; use Vulkan.Math.Mat2x2; -------------------------------------------------------------------------------- --< @group Vulkan Math Basic Types -------------------------------------------------------------------------------- --< @summary --< This package provides a single precision floating point vector with 2 components. -------------------------------------------------------------------------------- package Vulkan.Math.Vec2.Test is -- Test Harness for Mat2x2 regression tests procedure Test_Vec2; end Vulkan.Math.Vec2.Test;
-- Task worker -- Connects PULL socket to tcp://localhost:5557 -- Collects workloads from ventilator via that socket -- Connects PUSH socket to tcp://localhost:5558 -- Sends results to sink via that socket with Ada.Command_Line; with Ada.Text_IO; with GNAT.Formatted_String; with ZMQ; procedure TaskWork is use type GNAT.Formatted_String.Formatted_String; function Main return Ada.Command_Line.Exit_Status is begin declare Context : ZMQ.Context_Type := ZMQ.New_Context; -- Socket to receive messages on Receiver : constant ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_PULL); -- Socket to send messages to Sender : constant ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_PUSH); begin Receiver.Connect ("tcp://localhost:5557"); Sender.Connect ("tcp://localhost:5558"); -- Process tasks forever loop declare Buf : constant String := Receiver.Recv; begin Ada.Text_IO.Put (Buf &"."); -- Show progress Ada.Text_IO.Flush; delay Duration'Value (Buf) / 1000.0; -- Do the work Sender.Send (""); end; end loop; Receiver.Close; Sender.Close; Context.Term; end; return 0; end Main; begin Ada.Command_Line.Set_Exit_Status (Main); end TaskWork;
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.a_a_mpz_struct; with Interfaces.C; package gmp_c.mpz_srcptr is -- Item -- subtype Item is gmp_c.a_a_mpz_struct.Pointer; -- Items -- type Items is array (Interfaces.C.size_t range <>) of aliased gmp_c.mpz_srcptr.Item; -- Pointer -- type Pointer is access all gmp_c.mpz_srcptr.Item; -- Pointers -- type Pointers is array (Interfaces.C.size_t range <>) of aliased gmp_c.mpz_srcptr.Pointer; -- Pointer_Pointer -- type Pointer_Pointer is access all gmp_c.mpz_srcptr.Pointer; end gmp_c.mpz_srcptr;
----------------------------------------------------------------------- -- security-auth-oauth-facebook -- Facebook OAuth based authentication -- Copyright (C) 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 Security.OAuth.Clients; package Security.Auth.OAuth.Facebook is -- ------------------------------ -- OAuth Manager -- ------------------------------ -- The <b>Manager</b> provides the core operations for the OAuth authorization process. type Manager is new Security.Auth.OAuth.Manager with private; -- Initialize the authentication realm. overriding procedure Initialize (Realm : in out Manager; Params : in Parameters'Class; Provider : in String := PROVIDER_OPENID); -- Verify the OAuth access token and retrieve information about the user. overriding procedure Verify_Access_Token (Realm : in Manager; Assoc : in Association; Request : in Parameters'Class; Token : in Security.OAuth.Clients.Access_Token_Access; Result : in out Authentication); private type Manager is new Security.Auth.OAuth.Manager with record App_Access_Token : Ada.Strings.Unbounded.Unbounded_String; end record; end Security.Auth.OAuth.Facebook;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- H O S T P A R M -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package defines some system dependent parameters for GNAT. These -- are parameters that are relevant to the host machine on which the -- compiler is running, and thus this package is part of the compiler. package Hostparm is pragma Preelaborate (Hostparm); ----------------------- -- TARGET Parameters -- ----------------------- -- ??? The following should really be moved to a Target package Java_VM : constant Boolean := False; -- Set true when compiling the JGNAT tool chain (compiler, gnatmake, etc) --------------------- -- HOST Parameters -- --------------------- OpenVMS : Boolean := False; -- Set True for OpenVMS host. See also OpenVMS target boolean in -- 5vsystem.ads and OpenVMS_On_Target boolean in Targparm. This is -- not a constant, because it can be modified by -gnatdm. Normalized_CWD : constant String := "./"; -- Normalized string to access current directory Max_Line_Length : constant := 255; -- Maximum source line length. This can be set to any value up to -- 2**15 - 1, a limit imposed by the assumption that column numbers -- can be stored in 16 bits (see Types.Column_Number). A value of -- 200 is the minimum value required (RM 2.2(15)), but we use 255 -- for most GNAT targets since this is DEC Ada compatible. Max_Name_Length : constant := 1024; -- Maximum length of unit name (including all dots, and " (spec)") and -- of file names in the library, must be at least Max_Line_Length, but -- can be larger. Max_Instantiations : constant := 4000; -- Maximum number of instantiations permitted (to stop runaway cases -- of nested instantiations). These situations probably only occur in -- specially concocted test cases. Tag_Errors : constant Boolean := False; -- If set to true, then brief form error messages will be prefaced by -- the string "error:". Used as default for Opt.Unique_Error_Tag. Exclude_Missing_Objects : constant Boolean := True; -- If set to true, gnatbind will exclude from consideration all -- non-existent .o files. Max_Debug_Name_Length : constant := 256; -- If a generated qualified debug name exceeds this length, then it -- is automatically compressed, regardless of the setting of the -- Compress_Debug_Names switch controlled by -gnatC. end Hostparm;
pragma License (Unrestricted); -- implementation unit specialized for Windows with C.psdk_inc.qip_types; with C.psdk_inc.qsocket_types; with C.ws2tcpip; package System.Native_IO.Sockets is pragma Preelaborate; pragma Linker_Options ("-lws2_32"); type Port_Number is range 0 .. 16#ffff#; subtype Socket_Address is C.psdk_inc.qip_types.SOCKADDR; procedure Close_Socket (Handle : Handle_Type; Raise_On_Error : Boolean); -- Close_Ordinary without Name -- client subtype End_Point is C.ws2tcpip.struct_addrinfoW_ptr; function Resolve (Host_Name : String; Service : String) return End_Point; function Resolve (Host_Name : String; Port : Port_Number) return End_Point; procedure Connect (Handle : aliased out Handle_Type; Peer : End_Point); procedure Finalize (Item : End_Point); -- server subtype Listener is C.psdk_inc.qsocket_types.SOCKET; Invalid_Listener : constant Listener := C.psdk_inc.qsocket_types.INVALID_SOCKET; procedure Listen (Server : aliased out Listener; Port : Port_Number); procedure Accept_Socket ( Server : Listener; Handle : aliased out Handle_Type; Remote_Address : out Socket_Address); procedure Close_Listener (Server : Listener; Raise_On_Error : Boolean); end System.Native_IO.Sockets;
-- C96007A.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 APPROPRIATE EXCEPTIONS ARE RAISED FOR THE TIME_OF() -- FUNCTION IN THE PACKAGE CALENDAR. PARTICULARLY, -- (A) TIME_ERROR IS RAISED ON INVALID DATES. -- (B) CONSTRAINT_ERROR IS RAISED FOR OUT-OF-RANGE PARAMETERS. -- CPP 8/16/84 WITH CALENDAR; USE CALENDAR; WITH REPORT; USE REPORT; PROCEDURE C96007A IS BEGIN TEST ("C96007A", "CHECK THAT APPROPRIATE EXCEPTIONS ARE RAISED " & "FOR THE TIME_OF FUNCTION IN THE PACKAGE CALENDAR"); -------------------------------------------- DECLARE -- (A) BAD_TIME : TIME; BEGIN -- (A) BEGIN BAD_TIME := TIME_OF (1984, 2, 30); FAILED ("EXCEPTION NOT RAISED - 2/30 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 2/30 (A)"); END; BEGIN BAD_TIME := TIME_OF (1984, 2, 31); FAILED ("EXCEPTION NOT RAISED - 2/31 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 2/31 (A)"); END; BEGIN BAD_TIME := TIME_OF (1984, 4, 31); FAILED ("EXCEPTION NOT RAISED - 4/31 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 4/31 (A)"); END; BEGIN BAD_TIME := TIME_OF (1984, 6, 31); FAILED ("EXCEPTION NOT RAISED - 6/31 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 6/31 (A)"); END; BEGIN BAD_TIME := TIME_OF (1984, 9, 31); FAILED ("EXCEPTION NOT RAISED - 9/31 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 9/31 (A)"); END; BEGIN BAD_TIME := TIME_OF (1984, 11, 31); FAILED ("EXCEPTION NOT RAISED - 11/31 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 11/31 (A)"); END; BEGIN BAD_TIME := TIME_OF (1983, 2, 29); FAILED ("EXCEPTION NOT RAISED - 2/29 (A)"); EXCEPTION WHEN TIME_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 2/29 (A)"); END; END; -- (A) -------------------------------------------- DECLARE -- (B) BAD_TIME : TIME; BEGIN -- (B) BEGIN BAD_TIME := TIME_OF (1900, 8, 13); FAILED ("EXCEPTION NOT RAISED - 1900 (B)"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 1900 (B)"); END; BEGIN BAD_TIME := TIME_OF (2100, 8, 13); FAILED ("EXCEPTION NOT RAISED - 2100 (B)"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - 2100 (B)"); END; BEGIN BAD_TIME := TIME_OF (1984, 0, 13); FAILED ("EXCEPTION NOT RAISED - MONTH (B)1"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - MONTH (B)1"); END; BEGIN BAD_TIME := TIME_OF (1984, 13, 13); FAILED ("EXCEPTION NOT RAISED - MONTH (B)2"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - MONTH (B)2"); END; BEGIN BAD_TIME := TIME_OF (1984, 8, 0); FAILED ("EXCEPTION NOT RAISED - DAY (B)1"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - DAY (B)1"); END; BEGIN BAD_TIME := TIME_OF (19784, 8, 32); FAILED ("EXCEPTION NOT RAISED - DAY (B)2"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - DAY (B)2"); END; BEGIN BAD_TIME := TIME_OF (1984, 8, 13, -0.5); FAILED ("EXCEPTION NOT RAISED - SECONDS (B)1"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - SECONDS (B)1"); END; END; -- (B) -------------------------------------------- RESULT; END C96007A;
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h is -- unsupported macro: GST_TYPE_STATIC_PAD_TEMPLATE (gst_static_pad_template_get_type ()) -- unsupported macro: GST_TYPE_PAD_TEMPLATE (gst_pad_template_get_type ()) -- arg-macro: function GST_PAD_TEMPLATE (obj) -- return G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD_TEMPLATE,GstPadTemplate); -- arg-macro: function GST_PAD_TEMPLATE_CLASS (klass) -- return G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD_TEMPLATE,GstPadTemplateClass); -- arg-macro: function GST_IS_PAD_TEMPLATE (obj) -- return G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD_TEMPLATE); -- arg-macro: function GST_IS_PAD_TEMPLATE_CLASS (klass) -- return G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD_TEMPLATE); -- arg-macro: function GST_PAD_TEMPLATE_NAME_TEMPLATE (templ) -- return ((GstPadTemplate *)(templ)).name_template; -- arg-macro: function GST_PAD_TEMPLATE_DIRECTION (templ) -- return ((GstPadTemplate *)(templ)).direction; -- arg-macro: function GST_PAD_TEMPLATE_PRESENCE (templ) -- return ((GstPadTemplate *)(templ)).presence; -- arg-macro: function GST_PAD_TEMPLATE_CAPS (templ) -- return ((GstPadTemplate *)(templ)).caps; -- arg-macro: function GST_PAD_TEMPLATE_IS_FIXED (templ) -- return GST_OBJECT_FLAG_IS_SET(templ, GST_PAD_TEMPLATE_FIXED); -- arg-macro: procedure GST_STATIC_PAD_TEMPLATE (padname, dir, pres, caps) -- { padname, dir, pres, caps } -- GStreamer -- * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> -- * 2000 Wim Taymans <wim.taymans@chello.be> -- * -- * gstpadtemplate.h: Header for GstPadTemplate object -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Library General Public -- * License as published by the Free Software Foundation; either -- * version 2 of the License, or (at your option) any later version. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Library General Public License for more details. -- * -- * You should have received a copy of the GNU Library General Public -- * License along with this library; if not, write to the -- * Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- * Boston, MA 02111-1307, USA. -- -- FIXME: this awful circular dependency need to be resolved properly (see pad.h) --typedef struct _GstPadTemplate GstPadTemplate; type GstPadTemplateClass; type GstPadTemplateClass_u_gst_reserved_array is array (0 .. 3) of System.Address; -- subtype GstPadTemplateClass is GstPadTemplateClass; -- gst/gstpadtemplate.h:40 type GstStaticPadTemplate; --subtype GstStaticPadTemplate is u_GstStaticPadTemplate; -- gst/gstpadtemplate.h:41 --* -- * GstPadPresence: -- * @GST_PAD_ALWAYS: the pad is always available -- * @GST_PAD_SOMETIMES: the pad will become available depending on the media stream -- * @GST_PAD_REQUEST: the pad is only available on request with -- * gst_element_get_request_pad(). -- * -- * Indicates when this pad will become available. -- type GstPadPresence is (GST_PAD_ALWAYS, GST_PAD_SOMETIMES, GST_PAD_REQUEST); pragma Convention (C, GstPadPresence); -- gst/gstpadtemplate.h:64 --* -- * GST_PAD_TEMPLATE_NAME_TEMPLATE: -- * @templ: the template to query -- * -- * Get the nametemplate of the padtemplate. -- --* -- * GST_PAD_TEMPLATE_DIRECTION: -- * @templ: the template to query -- * -- * Get the #GstPadDirection of the padtemplate. -- --* -- * GST_PAD_TEMPLATE_PRESENCE: -- * @templ: the template to query -- * -- * Get the #GstPadPresence of the padtemplate. -- --* -- * GST_PAD_TEMPLATE_CAPS: -- * @templ: the template to query -- * -- * Get a handle to the padtemplate #GstCaps -- --* -- * GstPadTemplateFlags: -- * @GST_PAD_TEMPLATE_FIXED: the padtemplate has no variable properties -- * @GST_PAD_TEMPLATE_FLAG_LAST: first flag that can be used by subclasses. -- * -- * Flags for the padtemplate -- -- FIXME0.11: this is not used and the purpose is unclear -- padding subtype GstPadTemplateFlags is unsigned; GST_PAD_TEMPLATE_FIXED : constant GstPadTemplateFlags := 16; GST_PAD_TEMPLATE_FLAG_LAST : constant GstPadTemplateFlags := 256; -- gst/gstpadtemplate.h:110 --* -- * GST_PAD_TEMPLATE_IS_FIXED: -- * @templ: the template to query -- * -- * Check if the properties of the padtemplate are fixed -- --* -- * GstPadTemplate: -- * -- * The padtemplate object. -- type GstPadTemplate_u_gst_reserved_array is array (0 .. 3) of System.Address; type GstPadTemplate is record object : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObject; -- gst/gstpadtemplate.h:126 name_template : access GLIB.gchar; -- gst/gstpadtemplate.h:128 direction : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h.GstPadDirection; -- gst/gstpadtemplate.h:129 presence : aliased GstPadPresence; -- gst/gstpadtemplate.h:130 caps : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps; -- gst/gstpadtemplate.h:131 u_gst_reserved : GstPadTemplate_u_gst_reserved_array; -- gst/gstpadtemplate.h:133 end record; pragma Convention (C_Pass_By_Copy, GstPadTemplate); -- gst/gstpadtemplate.h:125 type GstPadTemplateClass is record parent_class : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObjectClass; -- gst/gstpadtemplate.h:137 pad_created : access procedure (arg1 : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h.GstPadTemplate; arg2 : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h.GstPad); -- gst/gstpadtemplate.h:140 u_gst_reserved : GstPadTemplateClass_u_gst_reserved_array; -- gst/gstpadtemplate.h:142 end record; pragma Convention (C_Pass_By_Copy, GstPadTemplateClass); -- gst/gstpadtemplate.h:136 -- signal callbacks --* -- * GstStaticPadTemplate: -- * @name_template: the name of the template -- * @direction: the direction of the template -- * @presence: the presence of the template -- * @static_caps: the caps of the template. -- * -- * Structure describing the #GstStaticPadTemplate. -- type GstStaticPadTemplate is record name_template : access GLIB.gchar; -- gst/gstpadtemplate.h:155 direction : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h.GstPadDirection; -- gst/gstpadtemplate.h:156 presence : aliased GstPadPresence; -- gst/gstpadtemplate.h:157 static_caps : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstStaticCaps; -- gst/gstpadtemplate.h:158 end record; pragma Convention (C_Pass_By_Copy, GstStaticPadTemplate); -- gst/gstpadtemplate.h:154 --* -- * GST_STATIC_PAD_TEMPLATE: -- * @padname: the name template of the pad -- * @dir: the GstPadDirection of the pad -- * @pres: the GstPadPresence of the pad -- * @caps: the GstStaticCaps of the pad -- * -- * Convenience macro to fill the values of a GstStaticPadTemplate -- * structure. -- -- templates and factories function gst_pad_template_get_type return GLIB.GType; -- gst/gstpadtemplate.h:180 pragma Import (C, gst_pad_template_get_type, "gst_pad_template_get_type"); function gst_static_pad_template_get_type return GLIB.GType; -- gst/gstpadtemplate.h:181 pragma Import (C, gst_static_pad_template_get_type, "gst_static_pad_template_get_type"); function gst_pad_template_new (name_template : access GLIB.gchar; direction : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h.GstPadDirection; presence : GstPadPresence; caps : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h.GstPadTemplate; -- gst/gstpadtemplate.h:183 pragma Import (C, gst_pad_template_new, "gst_pad_template_new"); function gst_static_pad_template_get (pad_template : access GstStaticPadTemplate) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h.GstPadTemplate; -- gst/gstpadtemplate.h:187 pragma Import (C, gst_static_pad_template_get, "gst_static_pad_template_get"); function gst_static_pad_template_get_caps (templ : access GstStaticPadTemplate) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps; -- gst/gstpadtemplate.h:188 pragma Import (C, gst_static_pad_template_get_caps, "gst_static_pad_template_get_caps"); function gst_pad_template_get_caps (templ : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h.GstPadTemplate) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps; -- gst/gstpadtemplate.h:189 pragma Import (C, gst_pad_template_get_caps, "gst_pad_template_get_caps"); procedure gst_pad_template_pad_created (templ : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h.GstPadTemplate; pad : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpad_h.GstPad); -- gst/gstpadtemplate.h:191 pragma Import (C, gst_pad_template_pad_created, "gst_pad_template_pad_created"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpadtemplate_h;
-- Copyright 2008-2016 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 type Empty is record Month : Integer; Year : Integer; end record; function Create return Wrap is begin return (E => new Empty'(Month => 8, Year => 1974)); end Create; end Pck;
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Ada.Streams; with Lzma.Check; with Lzma.Vli; limited with Lzma.Filter; with System; with Lzma.Base; package Lzma.Block is LZMA_BLOCK_HEADER_SIZE_MIN : constant := 8; -- /usr/include/lzma/block.h:68 LZMA_BLOCK_HEADER_SIZE_MAX : constant := 1024; -- /usr/include/lzma/block.h:69 -- arg-macro: function lzma_block_header_size_decode (((uint32_t)(b) + 1) * 4 -- return ((uint32_t)(b) + 1) * 4; --* -- * \file lzma/block.h -- * \brief .xz Block handling -- -- * Author: Lasse Collin -- * -- * This file has been put into the public domain. -- * You can do whatever you want with this file. -- * -- * See ../lzma.h for information about liblzma as a whole. -- --* -- * \brief Options for the Block and Block Header encoders and decoders -- * -- * Different Block handling functions use different parts of this structure. -- * Some read some members, other functions write, and some do both. Only the -- * members listed for reading need to be initialized when the specified -- * functions are called. The members marked for writing will be assigned -- * new values at some point either by calling the given function or by -- * later calls to lzma_code(). -- --* -- * \brief Block format version -- * -- * To prevent API and ABI breakages if new features are needed in -- * the Block field, a version number is used to indicate which -- * fields in this structure are in use. For now, version must always -- * be zero. With non-zero version, most Block related functions will -- * return LZMA_OPTIONS_ERROR. -- * -- * Read by: -- * - All functions that take pointer to lzma_block as argument, -- * including lzma_block_header_decode(). -- * -- * Written by: -- * - lzma_block_header_decode() -- type lzma_block_raw_check_array is array (0 .. 63) of aliased Ada.Streams.Stream_Element; type lzma_block is record version : aliased Interfaces.C.unsigned; -- /usr/include/lzma/block.h:47 header_size : aliased Interfaces.C.unsigned; -- /usr/include/lzma/block.h:67 check : aliased Lzma.Check.lzma_check; -- /usr/include/lzma/block.h:88 compressed_size : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:143 uncompressed_size : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:167 filters : access Lzma.Filter.lzma_filter; -- /usr/include/lzma/block.h:195 raw_check : aliased lzma_block_raw_check_array; -- /usr/include/lzma/block.h:212 reserved_ptr1 : System.Address; -- /usr/include/lzma/block.h:221 reserved_ptr2 : System.Address; -- /usr/include/lzma/block.h:222 reserved_ptr3 : System.Address; -- /usr/include/lzma/block.h:223 reserved_int1 : aliased Interfaces.C.unsigned; -- /usr/include/lzma/block.h:224 reserved_int2 : aliased Interfaces.C.unsigned; -- /usr/include/lzma/block.h:225 reserved_int3 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:226 reserved_int4 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:227 reserved_int5 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:228 reserved_int6 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:229 reserved_int7 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:230 reserved_int8 : aliased Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:231 reserved_enum1 : aliased Lzma.Base.lzma_reserved_enum_type; -- /usr/include/lzma/block.h:232 reserved_enum2 : aliased Lzma.Base.lzma_reserved_enum_type; -- /usr/include/lzma/block.h:233 reserved_enum3 : aliased Lzma.Base.lzma_reserved_enum_type; -- /usr/include/lzma/block.h:234 reserved_enum4 : aliased Lzma.Base.lzma_reserved_enum_type; -- /usr/include/lzma/block.h:235 reserved_bool1 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:236 reserved_bool2 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:237 reserved_bool3 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:238 reserved_bool4 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:239 reserved_bool5 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:240 reserved_bool6 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:241 reserved_bool7 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:242 reserved_bool8 : aliased Lzma.Base.lzma_bool; -- /usr/include/lzma/block.h:243 end record; pragma Convention (C_Pass_By_Copy, lzma_block); -- /usr/include/lzma/block.h:245 -- skipped anonymous struct anon_15 --* -- * \brief Size of the Block Header field -- * -- * This is always a multiple of four. -- * -- * Read by: -- * - lzma_block_header_encode() -- * - lzma_block_header_decode() -- * - lzma_block_compressed_size() -- * - lzma_block_unpadded_size() -- * - lzma_block_total_size() -- * - lzma_block_decoder() -- * - lzma_block_buffer_decode() -- * -- * Written by: -- * - lzma_block_header_size() -- * - lzma_block_buffer_encode() -- --* -- * \brief Type of integrity Check -- * -- * The Check ID is not stored into the Block Header, thus its value -- * must be provided also when decoding. -- * -- * Read by: -- * - lzma_block_header_encode() -- * - lzma_block_header_decode() -- * - lzma_block_compressed_size() -- * - lzma_block_unpadded_size() -- * - lzma_block_total_size() -- * - lzma_block_encoder() -- * - lzma_block_decoder() -- * - lzma_block_buffer_encode() -- * - lzma_block_buffer_decode() -- --* -- * \brief Size of the Compressed Data in bytes -- * -- * Encoding: If this is not LZMA_VLI_UNKNOWN, Block Header encoder -- * will store this value to the Block Header. Block encoder doesn't -- * care about this value, but will set it once the encoding has been -- * finished. -- * -- * Decoding: If this is not LZMA_VLI_UNKNOWN, Block decoder will -- * verify that the size of the Compressed Data field matches -- * compressed_size. -- * -- * Usually you don't know this value when encoding in streamed mode, -- * and thus cannot write this field into the Block Header. -- * -- * In non-streamed mode you can reserve space for this field before -- * encoding the actual Block. After encoding the data, finish the -- * Block by encoding the Block Header. Steps in detail: -- * -- * - Set compressed_size to some big enough value. If you don't know -- * better, use LZMA_VLI_MAX, but remember that bigger values take -- * more space in Block Header. -- * -- * - Call lzma_block_header_size() to see how much space you need to -- * reserve for the Block Header. -- * -- * - Encode the Block using lzma_block_encoder() and lzma_code(). -- * It sets compressed_size to the correct value. -- * -- * - Use lzma_block_header_encode() to encode the Block Header. -- * Because space was reserved in the first step, you don't need -- * to call lzma_block_header_size() anymore, because due to -- * reserving, header_size has to be big enough. If it is "too big", -- * lzma_block_header_encode() will add enough Header Padding to -- * make Block Header to match the size specified by header_size. -- * -- * Read by: -- * - lzma_block_header_size() -- * - lzma_block_header_encode() -- * - lzma_block_compressed_size() -- * - lzma_block_unpadded_size() -- * - lzma_block_total_size() -- * - lzma_block_decoder() -- * - lzma_block_buffer_decode() -- * -- * Written by: -- * - lzma_block_header_decode() -- * - lzma_block_compressed_size() -- * - lzma_block_encoder() -- * - lzma_block_decoder() -- * - lzma_block_buffer_encode() -- * - lzma_block_buffer_decode() -- --* -- * \brief Uncompressed Size in bytes -- * -- * This is handled very similarly to compressed_size above. -- * -- * uncompressed_size is needed by fewer functions than -- * compressed_size. This is because uncompressed_size isn't -- * needed to validate that Block stays within proper limits. -- * -- * Read by: -- * - lzma_block_header_size() -- * - lzma_block_header_encode() -- * - lzma_block_decoder() -- * - lzma_block_buffer_decode() -- * -- * Written by: -- * - lzma_block_header_decode() -- * - lzma_block_encoder() -- * - lzma_block_decoder() -- * - lzma_block_buffer_encode() -- * - lzma_block_buffer_decode() -- --* -- * \brief Array of filters -- * -- * There can be 1-4 filters. The end of the array is marked with -- * .id = LZMA_VLI_UNKNOWN. -- * -- * Read by: -- * - lzma_block_header_size() -- * - lzma_block_header_encode() -- * - lzma_block_encoder() -- * - lzma_block_decoder() -- * - lzma_block_buffer_encode() -- * - lzma_block_buffer_decode() -- * -- * Written by: -- * - lzma_block_header_decode(): Note that this does NOT free() -- * the old filter options structures. All unused filters[] will -- * have .id == LZMA_VLI_UNKNOWN and .options == NULL. If -- * decoding fails, all filters[] are guaranteed to be -- * LZMA_VLI_UNKNOWN and NULL. -- * -- * \note Because of the array is terminated with -- * .id = LZMA_VLI_UNKNOWN, the actual array must -- * have LZMA_FILTERS_MAX + 1 members or the Block -- * Header decoder will overflow the buffer. -- --* -- * \brief Raw value stored in the Check field -- * -- * After successful coding, the first lzma_check_size(check) bytes -- * of this array contain the raw value stored in the Check field. -- * -- * Note that CRC32 and CRC64 are stored in little endian byte order. -- * Take it into account if you display the Check values to the user. -- * -- * Written by: -- * - lzma_block_encoder() -- * - lzma_block_decoder() -- * - lzma_block_buffer_encode() -- * - lzma_block_buffer_decode() -- -- * Reserved space to allow possible future extensions without -- * breaking the ABI. You should not touch these, because the names -- * of these variables may change. These are and will never be used -- * with the currently supported options, so it is safe to leave these -- * uninitialized. -- --* -- * \brief Decode the Block Header Size field -- * -- * To decode Block Header using lzma_block_header_decode(), the size of the -- * Block Header has to be known and stored into lzma_block.header_size. -- * The size can be calculated from the first byte of a Block using this macro. -- * Note that if the first byte is 0x00, it indicates beginning of Index; use -- * this macro only when the byte is not 0x00. -- * -- * There is no encoding macro, because Block Header encoder is enough for that. -- --* -- * \brief Calculate Block Header Size -- * -- * Calculate the minimum size needed for the Block Header field using the -- * settings specified in the lzma_block structure. Note that it is OK to -- * increase the calculated header_size value as long as it is a multiple of -- * four and doesn't exceed LZMA_BLOCK_HEADER_SIZE_MAX. Increasing header_size -- * just means that lzma_block_header_encode() will add Header Padding. -- * -- * \return - LZMA_OK: Size calculated successfully and stored to -- * block->header_size. -- * - LZMA_OPTIONS_ERROR: Unsupported version, filters or -- * filter options. -- * - LZMA_PROG_ERROR: Invalid values like compressed_size == 0. -- * -- * \note This doesn't check that all the options are valid i.e. this -- * may return LZMA_OK even if lzma_block_header_encode() or -- * lzma_block_encoder() would fail. If you want to validate the -- * filter chain, consider using lzma_memlimit_encoder() which as -- * a side-effect validates the filter chain. -- function lzma_block_header_size (block : access lzma_block) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:283 pragma Import (C, lzma_block_header_size, "lzma_block_header_size"); --* -- * \brief Encode Block Header -- * -- * The caller must have calculated the size of the Block Header already with -- * lzma_block_header_size(). If a value larger than the one calculated by -- * lzma_block_header_size() is used, the Block Header will be padded to the -- * specified size. -- * -- * \param out Beginning of the output buffer. This must be -- * at least block->header_size bytes. -- * \param block Block options to be encoded. -- * -- * \return - LZMA_OK: Encoding was successful. block->header_size -- * bytes were written to output buffer. -- * - LZMA_OPTIONS_ERROR: Invalid or unsupported options. -- * - LZMA_PROG_ERROR: Invalid arguments, for example -- * block->header_size is invalid or block->filters is NULL. -- function lzma_block_header_encode (block : access constant lzma_block; c_out : access Ada.Streams.Stream_Element) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:305 pragma Import (C, lzma_block_header_encode, "lzma_block_header_encode"); --* -- * \brief Decode Block Header -- * -- * block->version should be set to the highest value supported by the -- * application; currently the only possible version is zero. This function -- * will set version to the lowest value that still supports all the features -- * required by the Block Header. -- * -- * The size of the Block Header must have already been decoded with -- * lzma_block_header_size_decode() macro and stored to block->header_size. -- * -- * block->filters must have been allocated, but they don't need to be -- * initialized (possible existing filter options are not freed). -- * -- * \param block Destination for Block options. -- * \param allocator lzma_allocator for custom allocator functions. -- * Set to NULL to use malloc() (and also free() -- * if an error occurs). -- * \param in Beginning of the input buffer. This must be -- * at least block->header_size bytes. -- * -- * \return - LZMA_OK: Decoding was successful. block->header_size -- * bytes were read from the input buffer. -- * - LZMA_OPTIONS_ERROR: The Block Header specifies some -- * unsupported options such as unsupported filters. This can -- * happen also if block->version was set to a too low value -- * compared to what would be required to properly represent -- * the information stored in the Block Header. -- * - LZMA_DATA_ERROR: Block Header is corrupt, for example, -- * the CRC32 doesn't match. -- * - LZMA_PROG_ERROR: Invalid arguments, for example -- * block->header_size is invalid or block->filters is NULL. -- function lzma_block_header_decode (block : access lzma_block; allocator : access Lzma.Base.lzma_allocator; c_in : access Ada.Streams.Stream_Element) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:343 pragma Import (C, lzma_block_header_decode, "lzma_block_header_decode"); --* -- * \brief Validate and set Compressed Size according to Unpadded Size -- * -- * Block Header stores Compressed Size, but Index has Unpadded Size. If the -- * application has already parsed the Index and is now decoding Blocks, -- * it can calculate Compressed Size from Unpadded Size. This function does -- * exactly that with error checking: -- * -- * - Compressed Size calculated from Unpadded Size must be positive integer, -- * that is, Unpadded Size must be big enough that after Block Header and -- * Check fields there's still at least one byte for Compressed Size. -- * -- * - If Compressed Size was present in Block Header, the new value -- * calculated from Unpadded Size is compared against the value -- * from Block Header. -- * -- * \note This function must be called _after_ decoding the Block Header -- * field so that it can properly validate Compressed Size if it -- * was present in Block Header. -- * -- * \return - LZMA_OK: block->compressed_size was set successfully. -- * - LZMA_DATA_ERROR: unpadded_size is too small compared to -- * block->header_size and lzma_check_size(block->check). -- * - LZMA_PROG_ERROR: Some values are invalid. For example, -- * block->header_size must be a multiple of four and -- * between 8 and 1024 inclusive. -- function lzma_block_compressed_size (block : access lzma_block; unpadded_size : Lzma.Vli.lzma_vli) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:375 pragma Import (C, lzma_block_compressed_size, "lzma_block_compressed_size"); --* -- * \brief Calculate Unpadded Size -- * -- * The Index field stores Unpadded Size and Uncompressed Size. The latter -- * can be taken directly from the lzma_block structure after coding a Block, -- * but Unpadded Size needs to be calculated from Block Header Size, -- * Compressed Size, and size of the Check field. This is where this function -- * is needed. -- * -- * \return Unpadded Size on success, or zero on error. -- function lzma_block_unpadded_size (block : access constant lzma_block) return Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:391 pragma Import (C, lzma_block_unpadded_size, "lzma_block_unpadded_size"); --* -- * \brief Calculate the total encoded size of a Block -- * -- * This is equivalent to lzma_block_unpadded_size() except that the returned -- * value includes the size of the Block Padding field. -- * -- * \return On success, total encoded size of the Block. On error, -- * zero is returned. -- function lzma_block_total_size (block : access constant lzma_block) return Lzma.Vli.lzma_vli; -- /usr/include/lzma/block.h:404 pragma Import (C, lzma_block_total_size, "lzma_block_total_size"); --* -- * \brief Initialize .xz Block encoder -- * -- * Valid actions for lzma_code() are LZMA_RUN, LZMA_SYNC_FLUSH (only if the -- * filter chain supports it), and LZMA_FINISH. -- * -- * \return - LZMA_OK: All good, continue with lzma_code(). -- * - LZMA_MEM_ERROR -- * - LZMA_OPTIONS_ERROR -- * - LZMA_UNSUPPORTED_CHECK: block->check specifies a Check ID -- * that is not supported by this buid of liblzma. Initializing -- * the encoder failed. -- * - LZMA_PROG_ERROR -- function lzma_block_encoder (strm : access Lzma.Base.lzma_stream; block : access lzma_block) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:422 pragma Import (C, lzma_block_encoder, "lzma_block_encoder"); --* -- * \brief Initialize .xz Block decoder -- * -- * Valid actions for lzma_code() are LZMA_RUN and LZMA_FINISH. Using -- * LZMA_FINISH is not required. It is supported only for convenience. -- * -- * \return - LZMA_OK: All good, continue with lzma_code(). -- * - LZMA_UNSUPPORTED_CHECK: Initialization was successful, but -- * the given Check ID is not supported, thus Check will be -- * ignored. -- * - LZMA_PROG_ERROR -- * - LZMA_MEM_ERROR -- function lzma_block_decoder (strm : access Lzma.Base.lzma_stream; block : access lzma_block) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:440 pragma Import (C, lzma_block_decoder, "lzma_block_decoder"); --* -- * \brief Calculate maximum output size for single-call Block encoding -- * -- * This is equivalent to lzma_stream_buffer_bound() but for .xz Blocks. -- * See the documentation of lzma_stream_buffer_bound(). -- function lzma_block_buffer_bound (uncompressed_size : Interfaces.C.size_t) return Interfaces.C.size_t; -- /usr/include/lzma/block.h:451 pragma Import (C, lzma_block_buffer_bound, "lzma_block_buffer_bound"); --* -- * \brief Single-call .xz Block encoder -- * -- * In contrast to the multi-call encoder initialized with -- * lzma_block_encoder(), this function encodes also the Block Header. This -- * is required to make it possible to write appropriate Block Header also -- * in case the data isn't compressible, and different filter chain has to be -- * used to encode the data in uncompressed form using uncompressed chunks -- * of the LZMA2 filter. -- * -- * When the data isn't compressible, header_size, compressed_size, and -- * uncompressed_size are set just like when the data was compressible, but -- * it is possible that header_size is too small to hold the filter chain -- * specified in block->filters, because that isn't necessarily the filter -- * chain that was actually used to encode the data. lzma_block_unpadded_size() -- * still works normally, because it doesn't read the filters array. -- * -- * \param block Block options: block->version, block->check, -- * and block->filters must have been initialized. -- * \param allocator lzma_allocator for custom allocator functions. -- * Set to NULL to use malloc() and free(). -- * \param in Beginning of the input buffer -- * \param in_size Size of the input buffer -- * \param out Beginning of the output buffer -- * \param out_pos The next byte will be written to out[*out_pos]. -- * *out_pos is updated only if encoding succeeds. -- * \param out_size Size of the out buffer; the first byte into -- * which no data is written to is out[out_size]. -- * -- * \return - LZMA_OK: Encoding was successful. -- * - LZMA_BUF_ERROR: Not enough output buffer space. -- * - LZMA_UNSUPPORTED_CHECK -- * - LZMA_OPTIONS_ERROR -- * - LZMA_MEM_ERROR -- * - LZMA_DATA_ERROR -- * - LZMA_PROG_ERROR -- function lzma_block_buffer_encode (block : access lzma_block; allocator : access Lzma.Base.lzma_allocator; c_in : access Ada.Streams.Stream_Element; in_size : Interfaces.C.size_t; c_out : access Ada.Streams.Stream_Element; out_pos : access Interfaces.C.size_t; out_size : Interfaces.C.size_t) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:492 pragma Import (C, lzma_block_buffer_encode, "lzma_block_buffer_encode"); --* -- * \brief Single-call .xz Block decoder -- * -- * This is single-call equivalent of lzma_block_decoder(), and requires that -- * the caller has already decoded Block Header and checked its memory usage. -- * -- * \param block Block options just like with lzma_block_decoder(). -- * \param allocator lzma_allocator for custom allocator functions. -- * Set to NULL to use malloc() and free(). -- * \param in Beginning of the input buffer -- * \param in_pos The next byte will be read from in[*in_pos]. -- * *in_pos is updated only if decoding succeeds. -- * \param in_size Size of the input buffer; the first byte that -- * won't be read is in[in_size]. -- * \param out Beginning of the output buffer -- * \param out_pos The next byte will be written to out[*out_pos]. -- * *out_pos is updated only if encoding succeeds. -- * \param out_size Size of the out buffer; the first byte into -- * which no data is written to is out[out_size]. -- * -- * \return - LZMA_OK: Decoding was successful. -- * - LZMA_OPTIONS_ERROR -- * - LZMA_DATA_ERROR -- * - LZMA_MEM_ERROR -- * - LZMA_BUF_ERROR: Output buffer was too small. -- * - LZMA_PROG_ERROR -- function lzma_block_buffer_decode (block : access lzma_block; allocator : access Lzma.Base.lzma_allocator; c_in : access Ada.Streams.Stream_Element; in_pos : access Interfaces.C.size_t; in_size : Interfaces.C.size_t; c_out : access Ada.Streams.Stream_Element; out_pos : access Interfaces.C.size_t; out_size : Interfaces.C.size_t) return Lzma.Base.lzma_ret; -- /usr/include/lzma/block.h:526 pragma Import (C, lzma_block_buffer_decode, "lzma_block_buffer_decode"); end Lzma.Block;
-- -- 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 m4.scb; use m4.scb; package body m4.mpu with spark_mode => on is function address_to_bits_27 (addr : system_address) return bits_27 is pragma warnings (off); function to_bits_27 is new ada.unchecked_conversion (unsigned_32, bits_27); pragma warnings (on); begin return to_bits_27 (shift_right (addr, 5)); end address_to_bits_27; procedure is_mpu_available (success : out boolean) is begin if to_unsigned_32 (MPU.TYPER) = 0 then success := false; else success := true; end if; end is_mpu_available; procedure enable is begin MPU.CTRL.ENABLE := true; end enable; procedure disable is begin MPU.CTRL.ENABLE := false; end disable; procedure init is begin -- Kernel has *no access* to default memory map m4.mpu.MPU.CTRL.PRIVDEFENA := false; -- Enable the memory fault exception m4.scb.SCB.SHCSR.MEMFAULTENA := true; end init; procedure enable_unrestricted_kernel_access is begin m4.mpu.MPU.CTRL.PRIVDEFENA := true; end enable_unrestricted_kernel_access; procedure disable_unrestricted_kernel_access is begin m4.mpu.MPU.CTRL.PRIVDEFENA := false; end disable_unrestricted_kernel_access; procedure configure_region (region : in t_region_config) is begin -- Selects which memory region is referenced MPU.RNR.REGION := region.region_number; -- Defines the base address of the MPU region MPU.RBAR := (VALID => false, REGION => 0, ADDR => address_to_bits_27 (region.addr)); -- Defines the region size and memory attributes MPU.RASR := (ENABLE => true, SIZE => region.size, SRD => 0, B => region.b, C => false, S => region.S, TEX => 0, AP => region.access_perm, XN => region.xn); end configure_region; procedure disable_region (region_number : in t_region_number) is begin MPU.RNR.REGION := region_number; MPU.RASR.ENABLE := false; end disable_region; procedure update_subregion_mask (region_number : in t_region_number; subregion_mask : in t_subregion_mask) is begin -- Selects which memory region is referenced MPU.RNR.REGION := region_number; -- Defines the region size and memory attributes MPU.RASR.SRD := to_unsigned_8 (subregion_mask); end update_subregion_mask; end m4.mpu;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . T A G S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2021, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is the HI-E version of this file. It provides full object oriented -- semantics (including dynamic dispatching and support for abstract -- interface types), assuming that tagged types are declared at the library -- level. Some functionality has been removed in order to simplify this -- run-time unit. Compared to the full version of this package, the following -- subprograms have been removed: -- Internal_Tag, Register_Tag, Descendant_Tag, Is_Descendant_At_Same_Level: -- These subprograms are used for cross-referencing the external and -- internal representation of tags. The implementation of these routines -- was considered neither simple nor esential for this restricted run-time, -- and hence these functions were removed. -- Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind, Get_Tagged_Kind, -- SSD, Set_Entry_Index, Set_Prim_Op_Kind, OSD: They are used with types -- that implement limited interfaces and are only invoked when there are -- selective waits and ATC's where the trigger is a call to an interface -- operation. These functions have been removed because selective waits -- and ATC's are not supported by the restricted run-time. -- Displace, IW_Membership, Offset_To_Top, Set_Dynamic_Offset_To_Top, -- Base_Address, Register_Interface_Offset: They are used with extended -- support for interface types that is not part of the zfp runtime -- (membership test applied to interfaces, tagged types with variable -- size components covering interfaces, explicit dereference through -- access to interfaces, and unchecked deallocation through access to -- interfaces). -- The operations in this package provide the guarantee that all -- dispatching calls on primitive operations of tagged types and -- interfaces take constant time (in terms of source lines executed), -- that is to say, the cost of these calls is independent of the number -- of primitives of the type or interface, and independent of the number -- of ancestors or interface progenitors that a tagged type may have. with System; with System.Storage_Elements; package Ada.Tags is pragma Preelaborate; -- In accordance with Ada 2005 AI-362 type Tag is private; pragma Preelaborable_Initialization (Tag); No_Tag : constant Tag; function Expanded_Name (T : Tag) return String; function External_Tag (T : Tag) return String; function Parent_Tag (T : Tag) return Tag; pragma Ada_05 (Parent_Tag); Tag_Error : exception; private -- Structure of the GNAT Primary Dispatch Table -- +--------------------+ -- | Predef_Prims ---------------------------> +------------+ -- +--------------------+ | table of | -- |Typeinfo_Ptr/TSD_Ptr --> Type Specific Data | predefined | -- Tag --> +--------------------+ +-------------------+ | primitives | -- | table of | | inheritance depth | +------------+ -- : primitive ops : +-------------------+ -- | pointers | | access level | -- +--------------------+ +-------------------+ -- | alignment | -- +-------------------+ -- | expanded name | -- +-------------------+ -- | external tag | -- +-------------------+ -- | hash table link | -- +-------------------+ -- | transportable | -- +-------------------+ -- | needs finalization| -- +-------------------+ -- | table of | -- : ancestor : -- | tags | -- +-------------------+ -- The runtime information kept for each tagged type is separated into -- three objects: the Dispatch Table of predefined primitives, the dispatch -- table of user-defined primitives and the Type_Specific_Data record. package SSE renames System.Storage_Elements; subtype Cstring is String (Positive); type Cstring_Ptr is access all Cstring; pragma No_Strict_Aliasing (Cstring_Ptr); type Tag_Table is array (Natural range <>) of Tag; type Prim_Ptr is access procedure; type Address_Array is array (Positive range <>) of Prim_Ptr; subtype Dispatch_Table is Address_Array (1 .. 1); -- Used by GDB to identify the _tags and traverse the run-time structure -- associated with tagged types. For compatibility with older versions of -- gdb, its name must not be changed. type Tag is access all Dispatch_Table; pragma No_Strict_Aliasing (Tag); type Interface_Tag is access all Dispatch_Table; No_Tag : constant Tag := null; -- The expander ensures that Tag objects reference the Prims_Ptr component -- of the wrapper. type Tag_Ptr is access all Tag; pragma No_Strict_Aliasing (Tag_Ptr); type Offset_To_Top_Ptr is access all SSE.Storage_Offset; pragma No_Strict_Aliasing (Offset_To_Top_Ptr); type Type_Specific_Data (Idepth : Natural) is record -- Inheritance Depth Level: Used to implement the membership test -- associated with single inheritance of tagged types in constant-time. -- It also indicates the size of the Tags_Table component. Access_Level : Natural; -- Accessibility level required to give support to Ada 2005 nested type -- extensions. This feature allows safe nested type extensions by -- shifting the accessibility checks to certain operations, rather than -- being enforced at the type declaration. In particular, by performing -- run-time accessibility checks on class-wide allocators, class-wide -- function return, and class-wide stream I/O, the danger of objects -- outliving their type declaration can be eliminated (Ada 2005: AI-344) Alignment : Natural; Expanded_Name : Cstring_Ptr; External_Tag : Cstring_Ptr; -- Components used to support to the Ada.Tags subprograms in ARM 3.9 -- Note: Expanded_Name is referenced by GDB to determine the actual name -- of the tagged type. Its requirements are: 1) it must have this exact -- name, and 2) its contents must point to a C-style Nul terminated -- string containing its expanded name. GDB has no requirement on a -- given position inside the record. Transportable : Boolean; -- Used to check RM E.4(18), set for types that satisfy the requirements -- for being used in remote calls as actuals for classwide formals or as -- return values for classwide functions. Needs_Finalization : Boolean; -- Used to dynamically check whether an object is controlled or not Tags_Table : Tag_Table (0 .. Idepth); -- Table of ancestor tags. Its size actually depends on the inheritance -- depth level of the tagged type. end record; type Type_Specific_Data_Ptr is access all Type_Specific_Data; pragma No_Strict_Aliasing (Type_Specific_Data_Ptr); type Dispatch_Table_Wrapper (Num_Prims : Natural) is record Predef_Prims : System.Address; -- Pointer to the dispatch table of predefined Ada primitives -- According to the C++ ABI the components Offset_To_Top and TSD are -- stored just "before" the dispatch table (that is, the Prims_Ptr -- table), and they are referenced with negative offsets referring to -- the base of the dispatch table. The _Tag (or the VTable_Ptr in C++ -- terminology) must point to the base of the virtual table, just after -- these components, to point to the Prims_Ptr table. Offset_To_Top : SSE.Storage_Offset; TSD : System.Address; Prims_Ptr : Address_Array (1 .. Num_Prims); -- The size of the Prims_Ptr array actually depends on the tagged type -- to which it applies. For each tagged type, the expander computes the -- actual array size, allocates the Dispatch_Table record accordingly. end record; -- The following type declaration is used by the compiler when the program -- is compiled with restriction No_Dispatching_Calls type No_Dispatch_Table_Wrapper is record NDT_TSD : System.Address; NDT_Prims_Ptr : Natural; end record; DT_Predef_Prims_Size : constant SSE.Storage_Count := SSE.Storage_Count (1 * (Standard'Address_Size / System.Storage_Unit)); -- Size of the Predef_Prims field of the Dispatch_Table DT_Offset_To_Top_Size : constant SSE.Storage_Count := SSE.Storage_Count (1 * (Standard'Address_Size / System.Storage_Unit)); -- Size of the Offset_To_Top field of the Dispatch Table DT_Typeinfo_Ptr_Size : constant SSE.Storage_Count := SSE.Storage_Count (1 * (Standard'Address_Size / System.Storage_Unit)); -- Size of the Typeinfo_Ptr field of the Dispatch Table use type System.Storage_Elements.Storage_Offset; DT_Offset_To_Top_Offset : constant SSE.Storage_Count := DT_Typeinfo_Ptr_Size + DT_Offset_To_Top_Size; DT_Predef_Prims_Offset : constant SSE.Storage_Count := DT_Typeinfo_Ptr_Size + DT_Offset_To_Top_Size + DT_Predef_Prims_Size; -- Offset from Prims_Ptr to Predef_Prims component function CW_Membership (Obj_Tag : Tag; Typ_Tag : Tag) return Boolean; -- Given the tag of an object and the tag associated to a type, return -- true if Obj is in Typ'Class. Max_Predef_Prims : constant Positive := 10; -- Number of reserved slots for predefined ada primitives: Size, Read, -- Write, Input, Output, "=", assignment, deep adjust, deep finalize, -- and Put_Image. -- The compiler checks that this value is correct. subtype Predef_Prims_Table is Address_Array (1 .. Max_Predef_Prims); type Predef_Prims_Table_Ptr is access Predef_Prims_Table; pragma No_Strict_Aliasing (Predef_Prims_Table_Ptr); type Addr_Ptr is access System.Address; pragma No_Strict_Aliasing (Addr_Ptr); end Ada.Tags;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . V A L _ U N 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. -- -- -- -- 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 routines for scanning modular Unsigned -- values for use in Text_IO.Modular_IO, and the Value attribute. with System.Unsigned_Types; package System.Val_Uns is pragma Preelaborate; function Scan_Raw_Unsigned (Str : String; Ptr : not null access Integer; Max : Integer) return System.Unsigned_Types.Unsigned; -- This function scans the string starting at Str (Ptr.all) for a valid -- integer according to the syntax described in (RM 3.5(43)). The substring -- scanned extends no further than Str (Max). Note: this does not scan -- leading or trailing blanks, nor leading sign. -- -- There are three cases for the return: -- -- If a valid integer is found, then Ptr.all is updated past the last -- character of the integer. -- -- If no valid integer is found, then Ptr.all points either to an initial -- non-digit character, or to Max + 1 if the field is all spaces and the -- exception Constraint_Error is raised. -- -- If a syntactically valid integer is scanned, but the value is out of -- range, or, in the based case, the base value is out of range or there -- is an out of range digit, then Ptr.all points past the integer, and -- Constraint_Error is raised. -- -- Note: these rules correspond to the requirements for leaving the pointer -- positioned in Text_IO.Get. Note that the rules as stated in the RM would -- seem to imply that for a case like: -- -- 8#12345670009# -- -- the pointer should be left at the first # having scanned out the longest -- valid integer literal (8), but in fact in this case the pointer points -- past the final # and Constraint_Error is raised. This is the behavior -- expected for Text_IO and enforced by the ACATS tests. -- -- If a based literal is malformed in that a character other than a valid -- hexadecimal digit is encountered during scanning out the digits after -- the # (this includes the case of using the wrong terminator, : instead -- of # or vice versa) there are two cases. If all the digits before the -- non-digit are in range of the base, as in -- -- 8#100x00# -- 8#100: -- -- then in this case, the "base" value before the initial # is returned as -- the result, and the pointer points to the initial # character on return. -- -- If an out of range digit has been detected before the invalid character, -- as in: -- -- 8#900x00# -- 8#900: -- -- then the pointer is also left at the initial # character, but constraint -- error is raised reflecting the encounter of an out of range digit. -- -- Finally if we have an unterminated fixed-point constant where the final -- # or : character is missing, Constraint_Error is raised and the pointer -- is left pointing past the last digit, as in: -- -- 8#22 -- -- This string results in a Constraint_Error with the pointer pointing -- past the second 2. -- -- Note: if Str is empty, i.e. if Max is less than Ptr, then this is a -- special case of an all-blank string, and Ptr is unchanged, and hence -- is greater than Max as required in this case. -- -- Note: this routine should not be called with Str'Last = Positive'Last. -- If this occurs Program_Error is raised with a message noting that this -- case is not supported. Most such cases are eliminated by the caller. function Scan_Unsigned (Str : String; Ptr : not null access Integer; Max : Integer) return System.Unsigned_Types.Unsigned; -- Same as Scan_Raw_Unsigned, except scans optional leading -- blanks, and an optional leading plus sign. -- -- Note: if a minus sign is present, Constraint_Error will be raised. -- Note: trailing blanks are not scanned. function Value_Unsigned (Str : String) return System.Unsigned_Types.Unsigned; -- Used in computing X'Value (Str) where X is a modular integer type whose -- modulus does not exceed the range of System.Unsigned_Types.Unsigned. Str -- is the string argument of the attribute. Constraint_Error is raised if -- the string is malformed, or if the value is out of range. end System.Val_Uns;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Floating_Point_Definitions is function Create (Digits_Token : not null Program.Lexical_Elements.Lexical_Element_Access; Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access) return Formal_Floating_Point_Definition is begin return Result : Formal_Floating_Point_Definition := (Digits_Token => Digits_Token, Box_Token => Box_Token, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Formal_Floating_Point_Definition is begin return Result : Implicit_Formal_Floating_Point_Definition := (Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Digits_Token (Self : Formal_Floating_Point_Definition) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Digits_Token; end Digits_Token; overriding function Box_Token (Self : Formal_Floating_Point_Definition) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Box_Token; end Box_Token; overriding function Is_Part_Of_Implicit (Self : Implicit_Formal_Floating_Point_Definition) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Formal_Floating_Point_Definition) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Formal_Floating_Point_Definition) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; procedure Initialize (Self : aliased in out Base_Formal_Floating_Point_Definition'Class) is begin null; end Initialize; overriding function Is_Formal_Floating_Point_Definition_Element (Self : Base_Formal_Floating_Point_Definition) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Formal_Floating_Point_Definition_Element; overriding function Is_Formal_Type_Definition_Element (Self : Base_Formal_Floating_Point_Definition) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Formal_Type_Definition_Element; overriding function Is_Definition_Element (Self : Base_Formal_Floating_Point_Definition) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Definition_Element; overriding procedure Visit (Self : not null access Base_Formal_Floating_Point_Definition; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Formal_Floating_Point_Definition (Self); end Visit; overriding function To_Formal_Floating_Point_Definition_Text (Self : aliased in out Formal_Floating_Point_Definition) return Program.Elements.Formal_Floating_Point_Definitions .Formal_Floating_Point_Definition_Text_Access is begin return Self'Unchecked_Access; end To_Formal_Floating_Point_Definition_Text; overriding function To_Formal_Floating_Point_Definition_Text (Self : aliased in out Implicit_Formal_Floating_Point_Definition) return Program.Elements.Formal_Floating_Point_Definitions .Formal_Floating_Point_Definition_Text_Access is pragma Unreferenced (Self); begin return null; end To_Formal_Floating_Point_Definition_Text; end Program.Nodes.Formal_Floating_Point_Definitions;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W C H _ S T W -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routine used to convert strings to wide (wide) -- strings for use by wide (wide) character attributes (value, image etc.) with System.WCh_Con; package System.WCh_StW is pragma Pure; function String_To_Wide_String (S : String; EM : System.WCh_Con.WC_Encoding_Method) return Wide_String; -- This routine simply takes its argument and converts it to wide string -- format. In the context of the Wide_Image attribute, the argument is -- the corresponding 'Image attribute. Any wide character escape sequences -- in the string are converted to the corresponding wide character value. -- No syntax checks are made, it is assumed that any such sequences are -- validly formed (this must be assured by the caller), and results from -- the fact that Wide_Image is only used on strings that have been built -- by the compiler, such as images of enumeration literals. If the method -- for encoding is a shift-in, shift-out convention, then it is assumed -- that normal (non-wide character) mode holds at the start and end of -- the argument string. EM indicates the wide character encoding method. -- Note: in the WCEM_Brackets case, the brackets escape sequence is used -- only for codes greater than 16#FF#. function String_To_Wide_Wide_String (S : String; EM : System.WCh_Con.WC_Encoding_Method) return Wide_Wide_String; -- Same function with Wide_Wide_String output end System.WCh_StW;
with lca; generic Capacite : integer ; package google_creuse is type Vecteur_float is array(1..Capacite) of float ; type Vecteur_integer is array(1..Capacite) of integer ; --- Instanciation d'un module Lca avec une clé entiere et une donnée reele . package Lca_integer_float is new LCA( T_Cle => integer , T_Donnee => float); use Lca_integer_float; -- Instanciation d'un module Lca avec une clé entiere et une donnée entiére. package Lca_integer is new LCA( T_cle => integer , T_Donnee => integer ); use Lca_integer_float; -- Définition d'un module matricep représentant la matrice des hyperliens sous forme d'un tableau d'Lca. type matricep is array(1..Capacite) of T_LCA; -- Nom : Initialiser. -- Sémantique : Initialiser un vecteur de pointeur nulls de capacite eguale au nombre de noeuds. -- Parametres : -- V : out matrice le vecteur à initialiser. procedure initialiser(V : out matricep ); -- Nom : V_hyperliens. -- Sémantique : Calcule du vecteur creux contenant le nombre des hyperliens de chaque noeuds. -- Parametres : -- V : out Vecteur_integer le vecteur contenant le nombre des hyperliens de chaque noeuds du réseaux. -- fichier : in string le fichier graphe des hyperliens. -- Pré-condition : le fichier doit contenir au moins un hyperlien -- Post-condition : retourner le vecteur des occurences de chaque noeuds dans les hyperliens procedure V_hyperliens(V : out Vecteur_integer ; fichier : in string); -- Nom : lire -- Sémantique : Construire la matrice creuse H. -- Parametres : -- fichier : in string le graphe du reseaux. -- M : out matricep la matrice creuse H. --Pre-condition : le fichier doit contenir au moins un hyperliens. --Post-condition : constuction de la matrice H. procedure lire(M : out matricep ; fichier : in string ); -- Nom : calculS. --Sémantique : Produire la matrice S à partir de la matrice en remplacant les pointeurs null par des Lca contenant -- à chaque position 1/N. -- N : nombre de noeuds -- Parametres : -- M : out matricep la matrice H à convertir. -- Post-condition : calcule de la matrice S. procedure calculS(M : in out matricep); -- Nom : Produit -- Sémantique : Calculer le produit de la matrice creuse avec un vecteur. -- Parametres : -- M : in matricep -- V : in out Vecteur_float le vecteur à faire multiplier par la matrice creuse. -- Pre-condition : rien -- Post-condition : V est le vecteur produit de la matrice et V. procedure Produit(M : in matricep ;V : in out Vecteur_float ;alpha : float) ; -- Trier un vecteur et calculer les vecteur des indices correspond. procedure Trier(V : in out Vecteur_float ;V_indice : out Vecteur_integer); -- Ecrire un vecteur reel dans un fichier. procedure Ecrire(vect : in Vecteur_float; fichier : in String; alpha : in float;Nb_iteration : in integer); -- Ecrire un vecteur entier dans un fichier. procedure Ecrire(vect : in Vecteur_integer; fichier : in String); end google_creuse;
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- with HW.Time; with HW.GFX.GMA.Registers; private package HW.GFX.GMA.Panel with Abstract_State => (Panel_State with Part_Of => GMA.State) is procedure Static_Init with Global => (Output => Panel_State, Input => Time.State); procedure Setup_PP_Sequencer (Default_Delays : Boolean := False) with Global => (Input => Time.State, In_Out => Registers.Register_State, Output => Panel_State), Depends => ((Panel_State, Registers.Register_State) => (Time.State, Registers.Register_State, Default_Delays)), Pre => True, Post => True; ---------------------------------------------------------------------------- procedure VDD_Override; procedure On (Wait : Boolean := True); procedure Wait_On; procedure Off; ---------------------------------------------------------------------------- procedure Backlight_On; procedure Backlight_Off; procedure Set_Backlight (Level : Word16); procedure Get_Max_Backlight (Level : out Word16); end HW.GFX.GMA.Panel;
pragma License (Unrestricted); -- implementation unit specialized for FreeBSD package System.Long_Long_Elementary_Functions is pragma Pure; -- Long_Float function log (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_log"; function Fast_Log (X : Long_Float) return Long_Float renames log; function exp (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_exp"; function Fast_Exp (X : Long_Float) return Long_Float renames exp; function pow (x, y : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_pow"; function Fast_Pow (Left, Right : Long_Float) return Long_Float renames pow; function sinh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_sinh"; function Fast_Sinh (X : Long_Float) return Long_Float renames sinh; function cosh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_cosh"; function Fast_Cosh (X : Long_Float) return Long_Float renames cosh; function tanh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_tanh"; function Fast_Tanh (X : Long_Float) return Long_Float renames tanh; function asinh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_asinh"; function Fast_Arcsinh (X : Long_Float) return Long_Float renames asinh; function acosh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_acosh"; function Fast_Arccosh (X : Long_Float) return Long_Float renames acosh; function atanh (x : Long_Float) return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_atanh"; function Fast_Arctanh (X : Long_Float) return Long_Float renames atanh; -- Long_Long_Float function Fast_Log (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Log); function Fast_Exp (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Exp); function Fast_Pow (Left, Right : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Pow); function sinl (x : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_sinl"; function Fast_Sin (X : Long_Long_Float) return Long_Long_Float renames sinl; function cosl (x : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_cosl"; function Fast_Cos (X : Long_Long_Float) return Long_Long_Float renames cosl; function atan2l (y, x : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_atan2l"; function Fast_Arctan (Y : Long_Long_Float; X : Long_Long_Float := 1.0) return Long_Long_Float renames atan2l; function Fast_Sinh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Sinh); function Fast_Cosh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Cosh); function Fast_Tanh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Tanh); function Fast_Arcsinh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Arcsinh); function Fast_Arccosh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Arccosh); function Fast_Arctanh (X : Long_Long_Float) return Long_Long_Float; pragma Inline (Fast_Arctanh); end System.Long_Long_Elementary_Functions;
----------------------------------------------------------------------- -- api_server -- Example of REST API server -- Copyright (C) 2016, 2018 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 Servlet.Server.Web; with Servlet.Core.Rest; with Servlet.Core.Files; with Servlet.Rest; with Util.Log.Loggers; with Monitor; with EL.Contexts.Default; procedure API_Server is CONFIG_PATH : constant String := "samples.properties"; Api : aliased Servlet.Core.Rest.Rest_Servlet; Files : aliased Servlet.Core.Files.File_Servlet; App : aliased Servlet.Core.Servlet_Registry; WS : Servlet.Server.Web.AWS_Container; Ctx : EL.Contexts.Default.Default_Context; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Api_Server"); begin Util.Log.Loggers.Initialize (CONFIG_PATH); -- App.Set_Init_Parameter (ASF.Applications.VIEW_DIR, "samples/web/monitor"); -- Register the servlets and filters App.Add_Servlet (Name => "api", Server => Api'Unchecked_Access); App.Add_Servlet (Name => "files", Server => Files'Unchecked_Access); -- Define servlet mappings App.Add_Mapping (Name => "api", Pattern => "/api/*"); App.Add_Mapping (Name => "files", Pattern => "*.html"); App.Add_Mapping (Name => "files", Pattern => "*.css"); App.Add_Mapping (Name => "files", Pattern => "*.js"); -- Monitor.Mon_API.Register (App, "api", Ctx); Servlet.Rest.Register (App, Monitor.API_Get_Values.Definition); Servlet.Rest.Register (App, Monitor.API_Put_Value.Definition); WS.Register_Application ("/monitor", App'Unchecked_Access); Log.Info ("Connect you browser to: http://localhost:8080/monitor/index.html"); WS.Start; delay 6000.0; end API_Server;
package body impact.d2.Shape is function getKind (Self : in b2Shape'Class) return shape.Kind is begin return self.m_Kind; end getKind; end impact.d2.Shape;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . D E B U G _ U T I L I T I E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1995-2005, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Debugging utilities -- This package provides some useful utility subprograms for use in writing -- routines that generate debugging output. with System; package GNAT.Debug_Utilities is pragma Pure; Address_64 : constant Boolean := Standard'Address_Size = 64; -- Set true if 64 bit addresses (assumes only 32 and 64 are possible) Address_Image_Length : constant := 13 + 10 * Boolean'Pos (Address_64); -- Length of string returned by Image function for an address subtype Image_String is String (1 .. Address_Image_Length); -- Subtype returned by Image function for an address Address_Image_C_Length : constant := 10 + 8 * Boolean'Pos (Address_64); -- Length of string returned by Image_C function subtype Image_C_String is String (1 .. Address_Image_C_Length); -- Subtype returned by Image_C function function Image (S : String) return String; -- Returns a string image of S, obtained by prepending and appending -- quote (") characters and doubling any quote characters in the string. -- The maximum length of the result is thus 2 ** S'Length + 2. function Image (A : System.Address) return Image_String; -- Returns a string of the form 16#hhhh_hhhh# for 32-bit addresses -- or 16#hhhh_hhhh_hhhh_hhhh# for 64-bit addresses. Hex characters -- are in upper case. function Image_C (A : System.Address) return Image_C_String; -- Returns a string of the form 0xhhhhhhhh for 32 bit addresses or -- 0xhhhhhhhhhhhhhhhh for 64-bit addresses. Hex characters are in -- upper case. function Value (S : String) return System.Address; -- Given a valid integer literal in any form, including the form returned -- by the Image function in this package, yields the corresponding address. -- Note that this routine will handle any Ada integer format, and will -- also handle hex constants in C format (0xhh..hhh). Constraint_Error -- may be raised for obviously incorrect data, but the routine is fairly -- permissive, and in particular, all underscores in whatever position -- are simply ignored completely. end GNAT.Debug_Utilities;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . T E X T _ I O . E N U M E R A T I O N _ A U X -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routines for Ada.Text_IO.Enumeration_IO -- that are shared among separate instantiations of this package. private package Ada.Text_IO.Enumeration_Aux is procedure Get_Enum_Lit (File : File_Type; Buf : out String; Buflen : out Natural); -- Reads an enumeration literal value from the file, folds to upper case, -- and stores the result in Buf, setting Buflen to the number of stored -- characters (Buf has a lower bound of 1). If more than Buflen characters -- are present in the literal, Data_Error is raised. procedure Scan_Enum_Lit (From : String; Start : out Natural; Stop : out Natural); -- Scans an enumeration literal at the start of From, skipping any leading -- spaces. Sets Start to the first character, Stop to the last character. -- Raises End_Error if no enumeration literal is found. procedure Put (File : File_Type; Item : String; Width : Field; Set : Type_Set); -- Outputs the enumeration literal image stored in Item to the given File, -- using the given Width and Set parameters (Item is always in upper case). procedure Puts (To : out String; Item : String; Set : Type_Set); -- Stores the enumeration literal image stored in Item to the string To, -- padding with trailing spaces if necessary to fill To. Set is used to end Ada.Text_IO.Enumeration_Aux;
with Ada.Text_IO; procedure Guess_Number_Player is procedure Guess_Number (Lower_Limit : Integer; Upper_Limit : Integer) is type Feedback is (Lower, Higher, Correct); package Feedback_IO is new Ada.Text_IO.Enumeration_IO (Feedback); My_Guess : Integer := Lower_Limit + (Upper_Limit - Lower_Limit) / 2; Your_Feedback : Feedback; begin Ada.Text_IO.Put_Line ("Think of a number!"); loop Ada.Text_IO.Put_Line ("My guess: " & Integer'Image (My_Guess)); Ada.Text_IO.Put ("Your answer (lower, higher, correct): "); Feedback_IO.Get (Your_Feedback); exit when Your_Feedback = Correct; if Your_Feedback = Lower then My_Guess := Lower_Limit + (My_Guess - Lower_Limit) / 2; else My_Guess := My_Guess + (Upper_Limit - My_Guess) / 2; end if; end loop; Ada.Text_IO.Put_Line ("I guessed well!"); end Guess_Number; package Int_IO is new Ada.Text_IO.Integer_IO (Integer); Lower_Limit : Integer; Upper_Limit : Integer; begin loop Ada.Text_IO.Put ("Lower Limit: "); Int_IO.Get (Lower_Limit); Ada.Text_IO.Put ("Upper Limit: "); Int_IO.Get (Upper_Limit); exit when Lower_Limit < Upper_Limit; Ada.Text_IO.Put_Line ("Lower limit must be lower!"); end loop; Guess_Number (Lower_Limit, Upper_Limit); end Guess_Number_Player;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- S Y S T E M . C O M P A R E _ A R R A Y _ S I G N E D _ 1 6 -- -- -- -- S p e c -- -- -- -- Copyright (C) 2002-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- 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 functions for runtime comparisons on arrays whose -- elements are 16-bit discrete type values to be treated as signed. package System.Compare_Array_Signed_16 is -- Note: although the functions in this package are in a sense Pure, the -- package cannot be declared as Pure, since the arguments are addresses, -- not the data, and the result is not pure wrt the address values. function Compare_Array_S16 (Left : System.Address; Right : System.Address; Left_Len : Natural; Right_Len : Natural) return Integer; -- Compare the array starting at address Left of length Left_Len -- with the array starting at address Right of length Right_Len. -- The comparison is in the normal Ada semantic sense of array -- comparison. The result is -1,0,+1 for Left<Right, Left=Right, -- Left>Right respectively. This function works with 4 byte words -- if the operands are aligned on 4-byte boundaries and long enough. end System.Compare_Array_Signed_16;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ D B U G -- -- -- -- B o d y -- -- -- -- 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. 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. -- -- -- ------------------------------------------------------------------------------ with Alloc; with Atree; use Atree; with Debug; use Debug; with Einfo; use Einfo; with Exp_Util; use Exp_Util; with Nlists; use Nlists; with Nmake; use Nmake; with Opt; use Opt; with Output; use Output; with Sem_Aux; use Sem_Aux; with Sem_Eval; use Sem_Eval; with Sem_Util; use Sem_Util; with Sinfo; use Sinfo; with Stand; use Stand; with Stringt; use Stringt; with Table; with Tbuild; use Tbuild; with Urealp; use Urealp; package body Exp_Dbug is -- The following table is used to queue up the entities passed as -- arguments to Qualify_Entity_Names for later processing when -- Qualify_All_Entity_Names is called. package Name_Qualify_Units is new Table.Table ( Table_Component_Type => Node_Id, Table_Index_Type => Nat, Table_Low_Bound => 1, Table_Initial => Alloc.Name_Qualify_Units_Initial, Table_Increment => Alloc.Name_Qualify_Units_Increment, Table_Name => "Name_Qualify_Units"); -------------------------------- -- Use of Qualification Flags -- -------------------------------- -- There are two flags used to keep track of qualification of entities -- Has_Fully_Qualified_Name -- Has_Qualified_Name -- The difference between these is as follows. Has_Qualified_Name is -- set to indicate that the name has been qualified as required by the -- spec of this package. As described there, this may involve the full -- qualification for the name, but for some entities, notably procedure -- local variables, this full qualification is not required. -- The flag Has_Fully_Qualified_Name is set if indeed the name has been -- fully qualified in the Ada sense. If Has_Fully_Qualified_Name is set, -- then Has_Qualified_Name is also set, but the other way round is not -- the case. -- Consider the following example: -- with ... -- procedure X is -- B : Ddd.Ttt; -- procedure Y is .. -- Here B is a procedure local variable, so it does not need fully -- qualification. The flag Has_Qualified_Name will be set on the -- first attempt to qualify B, to indicate that the job is done -- and need not be redone. -- But Y is qualified as x__y, since procedures are always fully -- qualified, so the first time that an attempt is made to qualify -- the name y, it will be replaced by x__y, and both flags are set. -- Why the two flags? Well there are cases where we derive type names -- from object names. As noted in the spec, type names are always -- fully qualified. Suppose for example that the backend has to build -- a padded type for variable B. then it will construct the PAD name -- from B, but it requires full qualification, so the fully qualified -- type name will be x__b___PAD. The two flags allow the circuit for -- building this name to realize efficiently that b needs further -- qualification. -------------------- -- Homonym_Suffix -- -------------------- -- The string defined here (and its associated length) is used to gather -- the homonym string that will be appended to Name_Buffer when the name -- is complete. Strip_Suffixes appends to this string as does -- Append_Homonym_Number, and Output_Homonym_Numbers_Suffix appends the -- string to the end of Name_Buffer. Homonym_Numbers : String (1 .. 256); Homonym_Len : Natural := 0; ---------------------- -- Local Procedures -- ---------------------- procedure Add_Uint_To_Buffer (U : Uint); -- Add image of universal integer to Name_Buffer, updating Name_Len procedure Add_Real_To_Buffer (U : Ureal); -- Add nnn_ddd to Name_Buffer, where nnn and ddd are integer values of -- the normalized numerator and denominator of the given real value. procedure Append_Homonym_Number (E : Entity_Id); -- If the entity E has homonyms in the same scope, then make an entry -- in the Homonym_Numbers array, bumping Homonym_Count accordingly. function Bounds_Match_Size (E : Entity_Id) return Boolean; -- Determine whether the bounds of E match the size of the type. This is -- used to determine whether encoding is required for a discrete type. function Is_Handled_Scale_Factor (U : Ureal) return Boolean; -- The argument U is the Small_Value of a fixed-point type. This function -- determines whether the back-end can handle this scale factor. When it -- cannot, we have to output a GNAT encoding for the corresponding type. procedure Output_Homonym_Numbers_Suffix; -- If homonym numbers are stored, then output them into Name_Buffer procedure Prepend_String_To_Buffer (S : String); -- Prepend given string to the contents of the string buffer, updating -- the value in Name_Len (i.e. string is added at start of buffer). procedure Prepend_Uint_To_Buffer (U : Uint); -- Prepend image of universal integer to Name_Buffer, updating Name_Len procedure Qualify_Entity_Name (Ent : Entity_Id); -- If not already done, replaces the Chars field of the given entity -- with the appropriate fully qualified name. procedure Reset_Buffers; -- Reset the contents of Name_Buffer and Homonym_Numbers by setting their -- respective lengths to zero. procedure Strip_Suffixes (BNPE_Suffix_Found : in out Boolean); -- Given an qualified entity name in Name_Buffer, remove any plain X or -- X{nb} qualification suffix. The contents of Name_Buffer is not changed -- but Name_Len may be adjusted on return to remove the suffix. If a -- BNPE suffix is found and stripped, then BNPE_Suffix_Found is set to -- True. If no suffix is found, then BNPE_Suffix_Found is not modified. -- This routine also searches for a homonym suffix, and if one is found -- it is also stripped, and the entries are added to the global homonym -- list (Homonym_Numbers) so that they can later be put back. ------------------------ -- Add_Real_To_Buffer -- ------------------------ procedure Add_Real_To_Buffer (U : Ureal) is begin Add_Uint_To_Buffer (Norm_Num (U)); Add_Str_To_Name_Buffer ("_"); Add_Uint_To_Buffer (Norm_Den (U)); end Add_Real_To_Buffer; ------------------------ -- Add_Uint_To_Buffer -- ------------------------ procedure Add_Uint_To_Buffer (U : Uint) is begin if U < 0 then Add_Uint_To_Buffer (-U); Add_Char_To_Name_Buffer ('m'); else UI_Image (U, Decimal); Add_Str_To_Name_Buffer (UI_Image_Buffer (1 .. UI_Image_Length)); end if; end Add_Uint_To_Buffer; --------------------------- -- Append_Homonym_Number -- --------------------------- procedure Append_Homonym_Number (E : Entity_Id) is procedure Add_Nat_To_H (Nr : Nat); -- Little procedure to append Nr to Homonym_Numbers ------------------ -- Add_Nat_To_H -- ------------------ procedure Add_Nat_To_H (Nr : Nat) is begin if Nr >= 10 then Add_Nat_To_H (Nr / 10); end if; Homonym_Len := Homonym_Len + 1; Homonym_Numbers (Homonym_Len) := Character'Val (Nr mod 10 + Character'Pos ('0')); end Add_Nat_To_H; -- Start of processing for Append_Homonym_Number begin if Has_Homonym (E) then if Homonym_Len > 0 then Homonym_Len := Homonym_Len + 1; Homonym_Numbers (Homonym_Len) := '_'; end if; Add_Nat_To_H (Homonym_Number (E)); end if; end Append_Homonym_Number; ----------------------- -- Bounds_Match_Size -- ----------------------- function Bounds_Match_Size (E : Entity_Id) return Boolean is Siz : Uint; begin if not Is_OK_Static_Subtype (E) then return False; elsif Is_Integer_Type (E) and then Subtypes_Statically_Match (E, Base_Type (E)) then return True; -- Here we check if the static bounds match the natural size, which is -- the size passed through with the debugging information. This is the -- Esize rounded up to 8, 16, 32 or 64 as appropriate. else declare Umark : constant Uintp.Save_Mark := Uintp.Mark; Result : Boolean; begin if Esize (E) <= 8 then Siz := Uint_8; elsif Esize (E) <= 16 then Siz := Uint_16; elsif Esize (E) <= 32 then Siz := Uint_32; else Siz := Uint_64; end if; if Is_Modular_Integer_Type (E) or else Is_Enumeration_Type (E) then Result := Expr_Rep_Value (Type_Low_Bound (E)) = 0 and then 2 ** Siz - Expr_Rep_Value (Type_High_Bound (E)) = 1; else Result := Expr_Rep_Value (Type_Low_Bound (E)) + 2 ** (Siz - 1) = 0 and then 2 ** (Siz - 1) - Expr_Rep_Value (Type_High_Bound (E)) = 1; end if; Release (Umark); return Result; end; end if; end Bounds_Match_Size; -------------------------------- -- Debug_Renaming_Declaration -- -------------------------------- function Debug_Renaming_Declaration (N : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (N); Ent : constant Node_Id := Defining_Entity (N); Nam : constant Node_Id := Name (N); Ren : Node_Id; Typ : Entity_Id; Obj : Entity_Id; Res : Node_Id; Enable : Boolean := Nkind (N) = N_Package_Renaming_Declaration; -- By default, we do not generate an encoding for renaming. This is -- however done (in which case this is set to True) in a few cases: -- - when a package is renamed, -- - when the renaming involves a packed array, -- - when the renaming involves a packed record. Last_Is_Indexed_Comp : Boolean := False; -- Whether the last subscript value was an indexed component access (XS) procedure Enable_If_Packed_Array (N : Node_Id); -- Enable encoding generation if N is a packed array function Output_Subscript (N : Node_Id; S : String) return Boolean; -- Outputs a single subscript value as ?nnn (subscript is compile time -- known value with value nnn) or as ?e (subscript is local constant -- with name e), where S supplies the proper string to use for ?. -- Returns False if the subscript is not of an appropriate type to -- output in one of these two forms. The result is prepended to the -- name stored in Name_Buffer. function Scope_Contains (Sc : Node_Id; Ent : Entity_Id) return Boolean; -- Return whether Ent belong to the Sc scope ---------------------------- -- Enable_If_Packed_Array -- ---------------------------- procedure Enable_If_Packed_Array (N : Node_Id) is T : constant Entity_Id := Underlying_Type (Etype (N)); begin Enable := Enable or else (Ekind (T) in Array_Kind and then Present (Packed_Array_Impl_Type (T))); end Enable_If_Packed_Array; ---------------------- -- Output_Subscript -- ---------------------- function Output_Subscript (N : Node_Id; S : String) return Boolean is begin if Compile_Time_Known_Value (N) then Prepend_Uint_To_Buffer (Expr_Value (N)); elsif Nkind (N) = N_Identifier and then Scope_Contains (Scope (Entity (N)), Ent) and then (Ekind (Entity (N)) = E_Constant or else Ekind (Entity (N)) = E_In_Parameter) then Prepend_String_To_Buffer (Get_Name_String (Chars (Entity (N)))); else return False; end if; Prepend_String_To_Buffer (S); return True; end Output_Subscript; -------------------- -- Scope_Contains -- -------------------- function Scope_Contains (Sc : Node_Id; Ent : Entity_Id) return Boolean is Cur : Node_Id := Scope (Ent); begin while Present (Cur) loop if Cur = Sc then return True; end if; Cur := Scope (Cur); end loop; return False; end Scope_Contains; -- Start of processing for Debug_Renaming_Declaration begin if not Comes_From_Source (N) and then not Needs_Debug_Info (Ent) then return Empty; end if; -- Get renamed entity and compute suffix Name_Len := 0; Ren := Nam; loop -- The expression that designates the renamed object is sometimes -- expanded into bit-wise operations. We want to work instead on -- array/record components accesses, so try to analyze the unexpanded -- forms. Ren := Original_Node (Ren); case Nkind (Ren) is when N_Expanded_Name | N_Identifier => if not Present (Renamed_Object (Entity (Ren))) then exit; end if; -- This is a renaming of a renaming: traverse until the final -- renaming to see if anything is packed along the way. Ren := Renamed_Object (Entity (Ren)); when N_Selected_Component => declare Sel_Id : constant Entity_Id := Entity (Selector_Name (Ren)); First_Bit : Uint; begin -- If the renaming involves a call to a primitive function, -- we are out of the scope of renaming encodings. We will -- very likely create a variable to hold the renamed value -- anyway, so the renaming entity will be available in -- debuggers. exit when Ekind (Sel_Id) not in E_Component | E_Discriminant; First_Bit := Normalized_First_Bit (Sel_Id); Enable := Enable or else Is_Packed (Underlying_Type (Etype (Prefix (Ren)))) or else (First_Bit /= No_Uint and then First_Bit /= Uint_0); end; Prepend_String_To_Buffer (Get_Name_String (Chars (Selector_Name (Ren)))); Prepend_String_To_Buffer ("XR"); Ren := Prefix (Ren); Last_Is_Indexed_Comp := False; when N_Indexed_Component => declare X : Node_Id; begin Enable_If_Packed_Array (Prefix (Ren)); X := Last (Expressions (Ren)); while Present (X) loop if not Output_Subscript (X, "XS") then Set_Materialize_Entity (Ent); return Empty; end if; Prev (X); Last_Is_Indexed_Comp := True; end loop; end; Ren := Prefix (Ren); when N_Slice => -- Assuming X is an array: -- X (Y1 .. Y2) (Y3) -- is equivalent to: -- X (Y3) -- GDB cannot handle packed array slices, so avoid describing -- the slice if we can avoid it. if not Last_Is_Indexed_Comp then Enable_If_Packed_Array (Prefix (Ren)); Typ := Etype (First_Index (Etype (Ren))); if not Output_Subscript (Type_High_Bound (Typ), "XS") then Set_Materialize_Entity (Ent); return Empty; end if; if not Output_Subscript (Type_Low_Bound (Typ), "XL") then Set_Materialize_Entity (Ent); return Empty; end if; Last_Is_Indexed_Comp := False; end if; Ren := Prefix (Ren); when N_Explicit_Dereference => Prepend_String_To_Buffer ("XA"); Ren := Prefix (Ren); Last_Is_Indexed_Comp := False; -- For now, anything else simply results in no translation when others => Set_Materialize_Entity (Ent); return Empty; end case; end loop; -- If we found no reason here to emit an encoding, stop now if not Enable then Set_Materialize_Entity (Ent); return Empty; end if; Prepend_String_To_Buffer ("___XE"); -- Include the designation of the form of renaming case Nkind (N) is when N_Object_Renaming_Declaration => Prepend_String_To_Buffer ("___XR"); when N_Exception_Renaming_Declaration => Prepend_String_To_Buffer ("___XRE"); when N_Package_Renaming_Declaration => Prepend_String_To_Buffer ("___XRP"); when others => return Empty; end case; -- Add the name of the renaming entity to the front Prepend_String_To_Buffer (Get_Name_String (Chars (Ent))); -- If it is a child unit create a fully qualified name, to disambiguate -- multiple child units with the same name and different parents. if Nkind (N) = N_Package_Renaming_Declaration and then Is_Child_Unit (Ent) then Prepend_String_To_Buffer ("__"); Prepend_String_To_Buffer (Get_Name_String (Chars (Scope (Ent)))); end if; -- Create the special object whose name is the debug encoding for the -- renaming declaration. -- For now, the object name contains the suffix encoding for the renamed -- object, but not the name of the leading entity. The object is linked -- the renamed entity using the Debug_Renaming_Link field. Then the -- Qualify_Entity_Name procedure uses this link to create the proper -- fully qualified name. -- The reason we do things this way is that we really need to copy the -- qualification of the renamed entity, and it is really much easier to -- do this after the renamed entity has itself been fully qualified. Obj := Make_Defining_Identifier (Loc, Chars => Name_Enter); Res := Make_Object_Declaration (Loc, Defining_Identifier => Obj, Object_Definition => New_Occurrence_Of (Standard_Debug_Renaming_Type, Loc)); Set_Debug_Renaming_Link (Obj, Entity (Ren)); Set_Debug_Info_Needed (Obj); -- The renamed entity may be a temporary, e.g. the result of an -- implicit dereference in an iterator. Indicate that the temporary -- itself requires debug information. If the renamed entity comes -- from source this is a no-op. Set_Debug_Info_Needed (Entity (Ren)); -- Mark the object as internal so that it won't be initialized when -- pragma Initialize_Scalars or Normalize_Scalars is in use. Set_Is_Internal (Obj); return Res; -- If we get an exception, just figure it is a case that we cannot -- successfully handle using our current approach, since this is -- only for debugging, no need to take the compilation with us. exception when others => return Make_Null_Statement (Loc); end Debug_Renaming_Declaration; ----------------------------- -- Is_Handled_Scale_Factor -- ----------------------------- function Is_Handled_Scale_Factor (U : Ureal) return Boolean is begin -- Keep in sync with gigi (see E_*_Fixed_Point_Type handling in -- decl.c:gnat_to_gnu_entity). if UI_Eq (Numerator (U), Uint_1) then if Rbase (U) = 2 or else Rbase (U) = 10 then return True; end if; end if; return (UI_Is_In_Int_Range (Norm_Num (U)) and then UI_Is_In_Int_Range (Norm_Den (U))); end Is_Handled_Scale_Factor; ---------------------- -- Get_Encoded_Name -- ---------------------- -- Note: see spec for details on encodings procedure Get_Encoded_Name (E : Entity_Id) is Has_Suffix : Boolean; begin -- If not generating code, there is no need to create encoded names, and -- problems when the back-end is called to annotate types without full -- code generation. See comments in Get_External_Name for additional -- details. -- However we do create encoded names if the back end is active, even -- if Operating_Mode got reset. Otherwise any serious error reported -- by the backend calling Error_Msg changes the Compilation_Mode to -- Check_Semantics, which disables the functionality of this routine, -- causing the generation of spurious additional errors. -- Couldn't we just test Original_Operating_Mode here? ??? if Operating_Mode /= Generate_Code and then not Generating_Code then return; end if; Get_Name_String (Chars (E)); -- Nothing to do if we do not have a type if not Is_Type (E) -- Or if this is an enumeration base type or else (Is_Enumeration_Type (E) and then Is_Base_Type (E)) -- Or if this is a dummy type for a renaming or else (Name_Len >= 3 and then Name_Buffer (Name_Len - 2 .. Name_Len) = "_XR") or else (Name_Len >= 4 and then (Name_Buffer (Name_Len - 3 .. Name_Len) = "_XRE" or else Name_Buffer (Name_Len - 3 .. Name_Len) = "_XRP")) -- For all these cases, just return the name unchanged then Name_Buffer (Name_Len + 1) := ASCII.NUL; return; end if; Has_Suffix := True; -- Fixed-point case: generate GNAT encodings when asked to or when we -- know the back-end will not be able to handle the scale factor. if Is_Fixed_Point_Type (E) and then (GNAT_Encodings /= DWARF_GNAT_Encodings_Minimal or else not Is_Handled_Scale_Factor (Small_Value (E))) then Get_External_Name (E, True, "XF_"); Add_Real_To_Buffer (Delta_Value (E)); if Small_Value (E) /= Delta_Value (E) then Add_Str_To_Name_Buffer ("_"); Add_Real_To_Buffer (Small_Value (E)); end if; -- Discrete case where bounds do not match size. Not necessary if we can -- emit standard DWARF. elsif GNAT_Encodings /= DWARF_GNAT_Encodings_Minimal and then Is_Discrete_Type (E) and then not Bounds_Match_Size (E) then declare Lo : constant Node_Id := Type_Low_Bound (E); Hi : constant Node_Id := Type_High_Bound (E); Lo_Con : constant Boolean := Compile_Time_Known_Value (Lo); Hi_Con : constant Boolean := Compile_Time_Known_Value (Hi); Lo_Discr : constant Boolean := Nkind (Lo) = N_Identifier and then Ekind (Entity (Lo)) = E_Discriminant; Hi_Discr : constant Boolean := Nkind (Hi) = N_Identifier and then Ekind (Entity (Hi)) = E_Discriminant; Lo_Encode : constant Boolean := Lo_Con or Lo_Discr; Hi_Encode : constant Boolean := Hi_Con or Hi_Discr; Biased : constant Boolean := Has_Biased_Representation (E); begin if Biased then Get_External_Name (E, True, "XB"); else Get_External_Name (E, True, "XD"); end if; if Lo_Encode or Hi_Encode then if Biased then Add_Str_To_Name_Buffer ("_"); else if Lo_Encode then if Hi_Encode then Add_Str_To_Name_Buffer ("LU_"); else Add_Str_To_Name_Buffer ("L_"); end if; else Add_Str_To_Name_Buffer ("U_"); end if; end if; if Lo_Con then Add_Uint_To_Buffer (Expr_Rep_Value (Lo)); elsif Lo_Discr then Get_Name_String_And_Append (Chars (Entity (Lo))); end if; if Lo_Encode and Hi_Encode then Add_Str_To_Name_Buffer ("__"); end if; if Hi_Con then Add_Uint_To_Buffer (Expr_Rep_Value (Hi)); elsif Hi_Discr then Get_Name_String_And_Append (Chars (Entity (Hi))); end if; end if; end; -- For all other cases, the encoded name is the normal type name else Has_Suffix := False; Get_External_Name (E); end if; if Debug_Flag_B and then Has_Suffix then Write_Str ("**** type "); Write_Name (Chars (E)); Write_Str (" is encoded as "); Write_Str (Name_Buffer (1 .. Name_Len)); Write_Eol; end if; Name_Buffer (Name_Len + 1) := ASCII.NUL; end Get_Encoded_Name; ----------------------- -- Get_External_Name -- ----------------------- procedure Get_External_Name (Entity : Entity_Id; Has_Suffix : Boolean := False; Suffix : String := "") is procedure Get_Qualified_Name_And_Append (Entity : Entity_Id); -- Appends fully qualified name of given entity to Name_Buffer ----------------------------------- -- Get_Qualified_Name_And_Append -- ----------------------------------- procedure Get_Qualified_Name_And_Append (Entity : Entity_Id) is begin -- If the entity is a compilation unit, its scope is Standard, -- there is no outer scope, and the no further qualification -- is required. -- If the front end has already computed a fully qualified name, -- then it is also the case that no further qualification is -- required. if Present (Scope (Scope (Entity))) and then not Has_Fully_Qualified_Name (Entity) then Get_Qualified_Name_And_Append (Scope (Entity)); Add_Str_To_Name_Buffer ("__"); Get_Name_String_And_Append (Chars (Entity)); Append_Homonym_Number (Entity); else Get_Name_String_And_Append (Chars (Entity)); end if; end Get_Qualified_Name_And_Append; -- Local variables E : Entity_Id := Entity; -- Start of processing for Get_External_Name begin -- If we are not in code generation mode, this procedure may still be -- called from Back_End (more specifically - from gigi for doing type -- representation annotation or some representation-specific checks). -- But in this mode there is no need to mess with external names. -- Furthermore, the call causes difficulties in this case because the -- string representing the homonym number is not correctly reset as a -- part of the call to Output_Homonym_Numbers_Suffix (which is not -- called in gigi). if Operating_Mode /= Generate_Code then return; end if; Reset_Buffers; -- If this is a child unit, we want the child if Nkind (E) = N_Defining_Program_Unit_Name then E := Defining_Identifier (Entity); end if; -- Case of interface name being used if Ekind (E) in E_Constant | E_Exception | E_Function | E_Procedure | E_Variable and then Present (Interface_Name (E)) and then No (Address_Clause (E)) and then not Has_Suffix then Append (Global_Name_Buffer, Strval (Interface_Name (E))); -- All other cases besides the interface name case else -- If this is a library level subprogram (i.e. a subprogram that is a -- compilation unit other than a subunit), then we prepend _ada_ to -- ensure distinctions required as described in the spec. -- Check explicitly for child units, because those are not flagged -- as Compilation_Units by lib. Should they be ??? if Is_Subprogram (E) and then (Is_Compilation_Unit (E) or Is_Child_Unit (E)) and then not Has_Suffix then Add_Str_To_Name_Buffer ("_ada_"); end if; -- If the entity is a subprogram instance that is not a compilation -- unit, generate the name of the original Ada entity, which is the -- one gdb needs. if Is_Generic_Instance (E) and then Is_Subprogram (E) and then not Is_Compilation_Unit (Scope (E)) and then Ekind (Scope (E)) in E_Package | E_Package_Body and then Present (Related_Instance (Scope (E))) then E := Related_Instance (Scope (E)); end if; Get_Qualified_Name_And_Append (E); end if; if Has_Suffix then Add_Str_To_Name_Buffer ("___"); Add_Str_To_Name_Buffer (Suffix); end if; -- Add a special prefix to distinguish Ghost entities. In Ignored Ghost -- mode, these entities should not leak in the "living" space and they -- should be removed by the compiler in a post-processing pass. Thus, -- the prefix allows anyone to check that the final executable indeed -- does not contain such entities, in such a case. Do not insert this -- prefix for compilation units, whose name is used as a basis for the -- name of the generated elaboration procedure and (when appropriate) -- the executable produced. Only insert this prefix once, for Ghost -- entities declared inside other Ghost entities. Three leading -- underscores are used so that "___ghost_" is a unique substring of -- names produced for Ghost entities, while "__ghost_" can appear in -- names of entities inside a child/local package called "Ghost". -- The compiler-generated finalizer for an enabled Ghost unit is treated -- specially, as its name must be known to the binder, which has no -- knowledge of Ghost status. In that case, the finalizer is not marked -- as Ghost so that no prefix is added. Note that the special ___ghost_ -- prefix is retained when the Ghost unit is ignored, which still allows -- inspecting the final executable for the presence of an ignored Ghost -- finalizer procedure. if Is_Ghost_Entity (E) and then not Is_Compilation_Unit (E) and then (Name_Len < 9 or else Name_Buffer (1 .. 9) /= "___ghost_") then Insert_Str_In_Name_Buffer ("___ghost_", 1); end if; Name_Buffer (Name_Len + 1) := ASCII.NUL; end Get_External_Name; -------------------------- -- Get_Variant_Encoding -- -------------------------- procedure Get_Variant_Encoding (V : Node_Id) is Choice : Node_Id; procedure Choice_Val (Typ : Character; Choice : Node_Id); -- Output encoded value for a single choice value. Typ is the key -- character ('S', 'F', or 'T') that precedes the choice value. ---------------- -- Choice_Val -- ---------------- procedure Choice_Val (Typ : Character; Choice : Node_Id) is begin if Nkind (Choice) = N_Integer_Literal then Add_Char_To_Name_Buffer (Typ); Add_Uint_To_Buffer (Intval (Choice)); -- Character literal with no entity present (this is the case -- Standard.Character or Standard.Wide_Character as root type) elsif Nkind (Choice) = N_Character_Literal and then No (Entity (Choice)) then Add_Char_To_Name_Buffer (Typ); Add_Uint_To_Buffer (Char_Literal_Value (Choice)); else declare Ent : constant Entity_Id := Entity (Choice); begin if Ekind (Ent) = E_Enumeration_Literal then Add_Char_To_Name_Buffer (Typ); Add_Uint_To_Buffer (Enumeration_Rep (Ent)); else pragma Assert (Ekind (Ent) = E_Constant); Choice_Val (Typ, Constant_Value (Ent)); end if; end; end if; end Choice_Val; -- Start of processing for Get_Variant_Encoding begin Name_Len := 0; Choice := First (Discrete_Choices (V)); while Present (Choice) loop if Nkind (Choice) = N_Others_Choice then Add_Char_To_Name_Buffer ('O'); elsif Nkind (Choice) = N_Range then Choice_Val ('R', Low_Bound (Choice)); Choice_Val ('T', High_Bound (Choice)); elsif Is_Entity_Name (Choice) and then Is_Type (Entity (Choice)) then Choice_Val ('R', Type_Low_Bound (Entity (Choice))); Choice_Val ('T', Type_High_Bound (Entity (Choice))); elsif Nkind (Choice) = N_Subtype_Indication then declare Rang : constant Node_Id := Range_Expression (Constraint (Choice)); begin Choice_Val ('R', Low_Bound (Rang)); Choice_Val ('T', High_Bound (Rang)); end; else Choice_Val ('S', Choice); end if; Next (Choice); end loop; Name_Buffer (Name_Len + 1) := ASCII.NUL; if Debug_Flag_B then declare VP : constant Node_Id := Parent (V); -- Variant_Part CL : constant Node_Id := Parent (VP); -- Component_List RD : constant Node_Id := Parent (CL); -- Record_Definition FT : constant Node_Id := Parent (RD); -- Full_Type_Declaration begin Write_Str ("**** variant for type "); Write_Name (Chars (Defining_Identifier (FT))); Write_Str (" is encoded as "); Write_Str (Name_Buffer (1 .. Name_Len)); Write_Eol; end; end if; end Get_Variant_Encoding; ----------------------------------------- -- Build_Subprogram_Instance_Renamings -- ----------------------------------------- procedure Build_Subprogram_Instance_Renamings (N : Node_Id; Wrapper : Entity_Id) is Loc : Source_Ptr; Decl : Node_Id; E : Entity_Id; begin E := First_Entity (Wrapper); while Present (E) loop if Nkind (Parent (E)) = N_Object_Declaration and then Is_Elementary_Type (Etype (E)) then Loc := Sloc (Expression (Parent (E))); Decl := Make_Object_Renaming_Declaration (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Chars (E)), Subtype_Mark => New_Occurrence_Of (Etype (E), Loc), Name => New_Occurrence_Of (E, Loc)); Append (Decl, Declarations (N)); Set_Debug_Info_Needed (Defining_Identifier (Decl)); end if; Next_Entity (E); end loop; end Build_Subprogram_Instance_Renamings; ------------------------------------ -- Get_Secondary_DT_External_Name -- ------------------------------------ procedure Get_Secondary_DT_External_Name (Typ : Entity_Id; Ancestor_Typ : Entity_Id; Suffix_Index : Int) is begin Get_External_Name (Typ); if Ancestor_Typ /= Typ then declare Len : constant Natural := Name_Len; Save_Str : constant String (1 .. Name_Len) := Name_Buffer (1 .. Name_Len); begin Get_External_Name (Ancestor_Typ); -- Append the extended name of the ancestor to the -- extended name of Typ Name_Buffer (Len + 2 .. Len + Name_Len + 1) := Name_Buffer (1 .. Name_Len); Name_Buffer (1 .. Len) := Save_Str; Name_Buffer (Len + 1) := '_'; Name_Len := Len + Name_Len + 1; end; end if; Add_Nat_To_Name_Buffer (Suffix_Index); end Get_Secondary_DT_External_Name; --------------------------------- -- Make_Packed_Array_Impl_Type_Name -- --------------------------------- function Make_Packed_Array_Impl_Type_Name (Typ : Entity_Id; Csize : Uint) return Name_Id is begin Get_Name_String (Chars (Typ)); Add_Str_To_Name_Buffer ("___XP"); Add_Uint_To_Buffer (Csize); return Name_Find; end Make_Packed_Array_Impl_Type_Name; ----------------------------------- -- Output_Homonym_Numbers_Suffix -- ----------------------------------- procedure Output_Homonym_Numbers_Suffix is J : Natural; begin if Homonym_Len > 0 then -- Check for all 1's, in which case we do not output J := 1; loop exit when Homonym_Numbers (J) /= '1'; -- If we reached end of string we do not output if J = Homonym_Len then Homonym_Len := 0; return; end if; exit when Homonym_Numbers (J + 1) /= '_'; J := J + 2; end loop; -- If we exit the loop then suffix must be output Add_Str_To_Name_Buffer ("__"); Add_Str_To_Name_Buffer (Homonym_Numbers (1 .. Homonym_Len)); Homonym_Len := 0; end if; end Output_Homonym_Numbers_Suffix; ------------------------------ -- Prepend_String_To_Buffer -- ------------------------------ procedure Prepend_String_To_Buffer (S : String) is N : constant Integer := S'Length; begin Name_Buffer (1 + N .. Name_Len + N) := Name_Buffer (1 .. Name_Len); Name_Buffer (1 .. N) := S; Name_Len := Name_Len + N; end Prepend_String_To_Buffer; ---------------------------- -- Prepend_Uint_To_Buffer -- ---------------------------- procedure Prepend_Uint_To_Buffer (U : Uint) is begin if U < 0 then Prepend_String_To_Buffer ("m"); Prepend_Uint_To_Buffer (-U); else UI_Image (U, Decimal); Prepend_String_To_Buffer (UI_Image_Buffer (1 .. UI_Image_Length)); end if; end Prepend_Uint_To_Buffer; ------------------------------ -- Qualify_All_Entity_Names -- ------------------------------ procedure Qualify_All_Entity_Names is E : Entity_Id; Ent : Entity_Id; Nod : Node_Id; begin for J in Name_Qualify_Units.First .. Name_Qualify_Units.Last loop Nod := Name_Qualify_Units.Table (J); -- When a scoping construct is ignored Ghost, it is rewritten as -- a null statement. Skip such constructs as they no longer carry -- names. if Nkind (Nod) = N_Null_Statement then goto Continue; end if; E := Defining_Entity (Nod); Reset_Buffers; Qualify_Entity_Name (E); -- Normally entities in the qualification list are scopes, but in the -- case of a library-level package renaming there is an associated -- variable that encodes the debugger name and that variable is -- entered in the list since it occurs in the Aux_Decls list of the -- compilation and doesn't have a normal scope. if Ekind (E) /= E_Variable then Ent := First_Entity (E); while Present (Ent) loop Reset_Buffers; Qualify_Entity_Name (Ent); Next_Entity (Ent); -- There are odd cases where Last_Entity (E) = E. This happens -- in the case of renaming of packages. This test avoids -- getting stuck in such cases. exit when Ent = E; end loop; end if; <<Continue>> null; end loop; end Qualify_All_Entity_Names; ------------------------- -- Qualify_Entity_Name -- ------------------------- procedure Qualify_Entity_Name (Ent : Entity_Id) is Full_Qualify_Name : String (1 .. Name_Buffer'Length); Full_Qualify_Len : Natural := 0; -- Used to accumulate fully qualified name of subprogram procedure Fully_Qualify_Name (E : Entity_Id); -- Used to qualify a subprogram or type name, where full -- qualification up to Standard is always used. Name is set -- in Full_Qualify_Name with the length in Full_Qualify_Len. -- Note that this routine does not prepend the _ada_ string -- required for library subprograms (this is done in the back end). function Is_BNPE (S : Entity_Id) return Boolean; -- Determines if S is a BNPE, i.e. Body-Nested Package Entity, which -- is defined to be a package which is immediately nested within a -- package body. function Qualify_Needed (S : Entity_Id) return Boolean; -- Given a scope, determines if the scope is to be included in the -- fully qualified name, True if so, False if not. Blocks and loops -- are excluded from a qualified name. procedure Set_BNPE_Suffix (E : Entity_Id); -- Recursive routine to append the BNPE qualification suffix. Works -- from right to left with E being the current entity in the list. -- The result does NOT have the trailing n's and trailing b stripped. -- The caller must do this required stripping. procedure Set_Entity_Name (E : Entity_Id); -- Internal recursive routine that does most of the work. This routine -- leaves the result sitting in Name_Buffer and Name_Len. BNPE_Suffix_Needed : Boolean := False; -- Set true if a body-nested package entity suffix is required Save_Chars : constant Name_Id := Chars (Ent); -- Save original name ------------------------ -- Fully_Qualify_Name -- ------------------------ procedure Fully_Qualify_Name (E : Entity_Id) is Discard : Boolean := False; begin -- Ignore empty entry (can happen in error cases) if No (E) then return; -- If this we are qualifying entities local to a generic instance, -- use the name of the original instantiation, not that of the -- anonymous subprogram in the wrapper package, so that gdb doesn't -- have to know about these. elsif Is_Generic_Instance (E) and then Is_Subprogram (E) and then not Comes_From_Source (E) and then not Is_Compilation_Unit (Scope (E)) then Fully_Qualify_Name (Related_Instance (Scope (E))); return; end if; -- If we reached fully qualified name, then just copy it if Has_Fully_Qualified_Name (E) then Get_Name_String (Chars (E)); Strip_Suffixes (Discard); Full_Qualify_Name (1 .. Name_Len) := Name_Buffer (1 .. Name_Len); Full_Qualify_Len := Name_Len; Set_Has_Fully_Qualified_Name (Ent); -- Case of non-fully qualified name else if Scope (E) = Standard_Standard then Set_Has_Fully_Qualified_Name (Ent); else Fully_Qualify_Name (Scope (E)); Full_Qualify_Name (Full_Qualify_Len + 1) := '_'; Full_Qualify_Name (Full_Qualify_Len + 2) := '_'; Full_Qualify_Len := Full_Qualify_Len + 2; end if; if Has_Qualified_Name (E) then Get_Unqualified_Name_String (Chars (E)); else Get_Name_String (Chars (E)); end if; -- Here we do one step of the qualification Full_Qualify_Name (Full_Qualify_Len + 1 .. Full_Qualify_Len + Name_Len) := Name_Buffer (1 .. Name_Len); Full_Qualify_Len := Full_Qualify_Len + Name_Len; Append_Homonym_Number (E); end if; if Is_BNPE (E) then BNPE_Suffix_Needed := True; end if; end Fully_Qualify_Name; ------------- -- Is_BNPE -- ------------- function Is_BNPE (S : Entity_Id) return Boolean is begin return Ekind (S) = E_Package and then Is_Package_Body_Entity (S); end Is_BNPE; -------------------- -- Qualify_Needed -- -------------------- function Qualify_Needed (S : Entity_Id) return Boolean is begin -- If we got all the way to Standard, then we have certainly -- fully qualified the name, so set the flag appropriately, -- and then return False, since we are most certainly done. if S = Standard_Standard then Set_Has_Fully_Qualified_Name (Ent, True); return False; -- Otherwise figure out if further qualification is required else return Is_Subprogram (Ent) or else Ekind (Ent) = E_Subprogram_Body or else (Ekind (S) /= E_Block and then Ekind (S) /= E_Loop and then not Is_Dynamic_Scope (S)); end if; end Qualify_Needed; --------------------- -- Set_BNPE_Suffix -- --------------------- procedure Set_BNPE_Suffix (E : Entity_Id) is S : constant Entity_Id := Scope (E); begin if Qualify_Needed (S) then Set_BNPE_Suffix (S); if Is_BNPE (E) then Add_Char_To_Name_Buffer ('b'); else Add_Char_To_Name_Buffer ('n'); end if; else Add_Char_To_Name_Buffer ('X'); end if; end Set_BNPE_Suffix; --------------------- -- Set_Entity_Name -- --------------------- procedure Set_Entity_Name (E : Entity_Id) is S : constant Entity_Id := Scope (E); begin -- If we reach an already qualified name, just take the encoding -- except that we strip the package body suffixes, since these -- will be separately put on later. if Has_Qualified_Name (E) then Get_Name_String_And_Append (Chars (E)); Strip_Suffixes (BNPE_Suffix_Needed); -- If the top level name we are adding is itself fully -- qualified, then that means that the name that we are -- preparing for the Fully_Qualify_Name call will also -- generate a fully qualified name. if Has_Fully_Qualified_Name (E) then Set_Has_Fully_Qualified_Name (Ent); end if; -- Case where upper level name is not encoded yet else -- Recurse if further qualification required if Qualify_Needed (S) then Set_Entity_Name (S); Add_Str_To_Name_Buffer ("__"); end if; -- Otherwise get name and note if it is a BNPE Get_Name_String_And_Append (Chars (E)); if Is_BNPE (E) then BNPE_Suffix_Needed := True; end if; Append_Homonym_Number (E); end if; end Set_Entity_Name; -- Start of processing for Qualify_Entity_Name begin if Has_Qualified_Name (Ent) then return; -- If the entity is a variable encoding the debug name for an object -- renaming, then the qualified name of the entity associated with the -- renamed object can now be incorporated in the debug name. elsif Ekind (Ent) = E_Variable and then Present (Debug_Renaming_Link (Ent)) then Name_Len := 0; Qualify_Entity_Name (Debug_Renaming_Link (Ent)); Get_Name_String (Chars (Ent)); -- Retrieve the now-qualified name of the renamed entity and insert -- it in the middle of the name, just preceding the suffix encoding -- describing the renamed object. declare Renamed_Id : constant String := Get_Name_String (Chars (Debug_Renaming_Link (Ent))); Insert_Len : constant Integer := Renamed_Id'Length + 1; Index : Natural := Name_Len - 3; begin -- Loop backwards through the name to find the start of the "___" -- sequence associated with the suffix. while Index >= Name_Buffer'First and then (Name_Buffer (Index + 1) /= '_' or else Name_Buffer (Index + 2) /= '_' or else Name_Buffer (Index + 3) /= '_') loop Index := Index - 1; end loop; pragma Assert (Name_Buffer (Index + 1 .. Index + 3) = "___"); -- Insert an underscore separator and the entity name just in -- front of the suffix. Name_Buffer (Index + 1 + Insert_Len .. Name_Len + Insert_Len) := Name_Buffer (Index + 1 .. Name_Len); Name_Buffer (Index + 1) := '_'; Name_Buffer (Index + 2 .. Index + Insert_Len) := Renamed_Id; Name_Len := Name_Len + Insert_Len; end; -- Reset the name of the variable to the new name that includes the -- name of the renamed entity. Set_Chars (Ent, Name_Enter); -- If the entity needs qualification by its scope then develop it -- here, add the variable's name, and again reset the entity name. if Qualify_Needed (Scope (Ent)) then Name_Len := 0; Set_Entity_Name (Scope (Ent)); Add_Str_To_Name_Buffer ("__"); Get_Name_String_And_Append (Chars (Ent)); Set_Chars (Ent, Name_Enter); end if; Set_Has_Qualified_Name (Ent); return; elsif Is_Subprogram (Ent) or else Ekind (Ent) = E_Subprogram_Body or else Is_Type (Ent) or else Ekind (Ent) = E_Exception then Fully_Qualify_Name (Ent); Name_Len := Full_Qualify_Len; Name_Buffer (1 .. Name_Len) := Full_Qualify_Name (1 .. Name_Len); -- Qualification needed for enumeration literals when generating C code -- (to simplify their management in the backend). elsif Modify_Tree_For_C and then Ekind (Ent) = E_Enumeration_Literal and then Scope (Ultimate_Alias (Ent)) /= Standard_Standard then Fully_Qualify_Name (Ent); Name_Len := Full_Qualify_Len; Name_Buffer (1 .. Name_Len) := Full_Qualify_Name (1 .. Name_Len); elsif Qualify_Needed (Scope (Ent)) then Name_Len := 0; Set_Entity_Name (Ent); else Set_Has_Qualified_Name (Ent); -- If a variable is hidden by a subsequent loop variable, qualify -- the name of that loop variable to prevent visibility issues when -- translating to C. Note that gdb probably never handled properly -- this accidental hiding, given that loops are not scopes at -- runtime. We also qualify a name if it hides an outer homonym, -- and both are declared in blocks. if Modify_Tree_For_C and then Ekind (Ent) = E_Variable then if Present (Hiding_Loop_Variable (Ent)) then declare Var : constant Entity_Id := Hiding_Loop_Variable (Ent); begin Set_Entity_Name (Var); Add_Str_To_Name_Buffer ("L"); Set_Chars (Var, Name_Enter); end; elsif Present (Homonym (Ent)) and then Ekind (Scope (Ent)) = E_Block and then Ekind (Scope (Homonym (Ent))) = E_Block then Set_Entity_Name (Ent); Add_Str_To_Name_Buffer ("B"); Set_Chars (Ent, Name_Enter); end if; end if; return; end if; -- Fall through with a fully qualified name in Name_Buffer/Name_Len Output_Homonym_Numbers_Suffix; -- Add body-nested package suffix if required if BNPE_Suffix_Needed and then Ekind (Ent) /= E_Enumeration_Literal then Set_BNPE_Suffix (Ent); -- Strip trailing n's and last trailing b as required. note that -- we know there is at least one b, or no suffix would be generated. while Name_Buffer (Name_Len) = 'n' loop Name_Len := Name_Len - 1; end loop; Name_Len := Name_Len - 1; end if; Set_Chars (Ent, Name_Enter); Set_Has_Qualified_Name (Ent); if Debug_Flag_BB then Write_Str ("*** "); Write_Name (Save_Chars); Write_Str (" qualified as "); Write_Name (Chars (Ent)); Write_Eol; end if; end Qualify_Entity_Name; -------------------------- -- Qualify_Entity_Names -- -------------------------- procedure Qualify_Entity_Names (N : Node_Id) is begin Name_Qualify_Units.Append (N); end Qualify_Entity_Names; ------------------- -- Reset_Buffers -- ------------------- procedure Reset_Buffers is begin Name_Len := 0; Homonym_Len := 0; end Reset_Buffers; -------------------- -- Strip_Suffixes -- -------------------- procedure Strip_Suffixes (BNPE_Suffix_Found : in out Boolean) is SL : Natural; pragma Warnings (Off, BNPE_Suffix_Found); -- Since this procedure only ever sets the flag begin -- Search for and strip BNPE suffix for J in reverse 2 .. Name_Len loop if Name_Buffer (J) = 'X' then Name_Len := J - 1; BNPE_Suffix_Found := True; exit; end if; exit when Name_Buffer (J) /= 'b' and then Name_Buffer (J) /= 'n'; end loop; -- Search for and strip homonym numbers suffix for J in reverse 2 .. Name_Len - 2 loop if Name_Buffer (J) = '_' and then Name_Buffer (J + 1) = '_' then if Name_Buffer (J + 2) in '0' .. '9' then if Homonym_Len > 0 then Homonym_Len := Homonym_Len + 1; Homonym_Numbers (Homonym_Len) := '-'; end if; SL := Name_Len - (J + 1); Homonym_Numbers (Homonym_Len + 1 .. Homonym_Len + SL) := Name_Buffer (J + 2 .. Name_Len); Name_Len := J - 1; Homonym_Len := Homonym_Len + SL; end if; exit; end if; end loop; end Strip_Suffixes; end Exp_Dbug;
with Memory.Container; use Memory.Container; with Ada.Containers.Vectors; package Memory.Arbiter is type Arbiter_Type is new Container_Type with private; type Arbiter_Pointer is access all Arbiter_Type'Class; function Create_Arbiter(next : access Memory_Type'Class) return Arbiter_Pointer; overriding function Clone(mem : Arbiter_Type) return Memory_Pointer; overriding procedure Reset(mem : in out Arbiter_Type; context : in Natural); overriding procedure Set_Port(mem : in out Arbiter_Type; port : in Natural; ready : out Boolean); overriding procedure Read(mem : in out Arbiter_Type; address : in Address_Type; size : in Positive); overriding procedure Write(mem : in out Arbiter_Type; address : in Address_Type; size : in Positive); overriding procedure Idle(mem : in out Arbiter_Type; cycles : in Time_Type); overriding function To_String(mem : Arbiter_Type) return Unbounded_String; private package Pending_Vectors is new Vectors(Natural, Time_Type); type Arbiter_Type is new Container_Type with record -- The current port. port : Natural := 0; -- Keep track of the earliest time the next even can happen for -- each port. pending : Pending_Vectors.Vector; end record; end Memory.Arbiter;
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- private package HW.GFX.GMA.PLLs with Abstract_State => (State with Part_Of => GMA.State) is -- NOTE: Order of DPLLs is twisted, as DPLL2 (WRPLL1) -- should be selected as last choice. -- XXX: Types should be private (but that triggers a bug in SPARK GPL 2016) type T is (Invalid_PLL, DPLL0, DPLL1, DPLL3, DPLL2); subtype Configurable_DPLLs is T range DPLL1 .. DPLL2; Invalid : constant T := Invalid_PLL; procedure Initialize with Global => (Output => State); procedure Alloc (Port_Cfg : in Port_Config; PLL : out T; Success : out Boolean); procedure Free (PLL : T); procedure All_Off; function Register_Value (PLL : T) return Word32; end HW.GFX.GMA.PLLs;
----------------------------------------------------------------------- -- AWA.Settings.Models -- AWA.Settings.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.Containers.Vectors; with Ada.Strings.Unbounded; with Util.Beans.Objects; with Util.Beans.Basic.Lists; with AWA.Users.Models; pragma Warnings (On); package AWA.Settings.Models is pragma Style_Checks ("-mr"); type Setting_Ref is new ADO.Objects.Object_Ref with null record; type Global_Setting_Ref is new ADO.Objects.Object_Ref with null record; type User_Setting_Ref is new ADO.Objects.Object_Ref with null record; -- -------------------- -- The setting table defines all the possible settings -- that an application manages. This table is automatically -- populated when an application starts. It is not modified. -- -------------------- -- Create an object key for Setting. function Setting_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Setting from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Setting_Key (Id : in String) return ADO.Objects.Object_Key; Null_Setting : constant Setting_Ref; function "=" (Left, Right : Setting_Ref'Class) return Boolean; -- Set the setting identifier. procedure Set_Id (Object : in out Setting_Ref; Value : in ADO.Identifier); -- Get the setting identifier. function Get_Id (Object : in Setting_Ref) return ADO.Identifier; -- Set the setting name. procedure Set_Name (Object : in out Setting_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Name (Object : in out Setting_Ref; Value : in String); -- Get the setting name. function Get_Name (Object : in Setting_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Name (Object : in Setting_Ref) return String; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Setting_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 Setting_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 Setting_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 Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Setting_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Setting_Ref); -- Copy of the object. procedure Copy (Object : in Setting_Ref; Into : in out Setting_Ref); package Setting_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Setting_Ref, "=" => "="); subtype Setting_Vector is Setting_Vectors.Vector; procedure List (Object : in out Setting_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); -- -------------------- -- The global setting holds some generic -- application configuration parameter -- which can be stored in the database. -- The global setting can be specific to a server. -- -------------------- -- Create an object key for Global_Setting. function Global_Setting_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Global_Setting from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Global_Setting_Key (Id : in String) return ADO.Objects.Object_Key; Null_Global_Setting : constant Global_Setting_Ref; function "=" (Left, Right : Global_Setting_Ref'Class) return Boolean; -- Set the global setting identifier. procedure Set_Id (Object : in out Global_Setting_Ref; Value : in ADO.Identifier); -- Get the global setting identifier. function Get_Id (Object : in Global_Setting_Ref) return ADO.Identifier; -- Set the global setting value. procedure Set_Value (Object : in out Global_Setting_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Value (Object : in out Global_Setting_Ref; Value : in String); -- Get the global setting value. function Get_Value (Object : in Global_Setting_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Value (Object : in Global_Setting_Ref) return String; -- Get the global setting optimistic lock version. function Get_Version (Object : in Global_Setting_Ref) return Integer; -- Set the server to which this global setting applies. procedure Set_Server_Id (Object : in out Global_Setting_Ref; Value : in Integer); -- Get the server to which this global setting applies. function Get_Server_Id (Object : in Global_Setting_Ref) return Integer; -- Set the setting that corresponds to this global setting. procedure Set_Setting (Object : in out Global_Setting_Ref; Value : in AWA.Settings.Models.Setting_Ref'Class); -- Get the setting that corresponds to this global setting. function Get_Setting (Object : in Global_Setting_Ref) return AWA.Settings.Models.Setting_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Global_Setting_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 Global_Setting_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 Global_Setting_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 Global_Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Global_Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Global_Setting_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition GLOBAL_SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Global_Setting_Ref); -- Copy of the object. procedure Copy (Object : in Global_Setting_Ref; Into : in out Global_Setting_Ref); package Global_Setting_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Global_Setting_Ref, "=" => "="); subtype Global_Setting_Vector is Global_Setting_Vectors.Vector; procedure List (Object : in out Global_Setting_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); -- -------------------- -- The user setting holds the setting value for a given user. -- It is created the first time a user changes the default -- setting value. It is updated when the user modifies the setting. -- -------------------- -- Create an object key for User_Setting. function User_Setting_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for User_Setting from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function User_Setting_Key (Id : in String) return ADO.Objects.Object_Key; Null_User_Setting : constant User_Setting_Ref; function "=" (Left, Right : User_Setting_Ref'Class) return Boolean; -- Set the user setting identifier. procedure Set_Id (Object : in out User_Setting_Ref; Value : in ADO.Identifier); -- Get the user setting identifier. function Get_Id (Object : in User_Setting_Ref) return ADO.Identifier; -- Set the setting value. procedure Set_Value (Object : in out User_Setting_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Value (Object : in out User_Setting_Ref; Value : in String); -- Get the setting value. function Get_Value (Object : in User_Setting_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Value (Object : in User_Setting_Ref) return String; -- Get the setting optimistic lock version. function Get_Version (Object : in User_Setting_Ref) return Integer; -- Set the setting that correspond to the value. procedure Set_Setting (Object : in out User_Setting_Ref; Value : in AWA.Settings.Models.Setting_Ref'Class); -- Get the setting that correspond to the value. function Get_Setting (Object : in User_Setting_Ref) return AWA.Settings.Models.Setting_Ref'Class; -- Set the user to which the setting value is associated. procedure Set_User (Object : in out User_Setting_Ref; Value : in AWA.Users.Models.User_Ref'Class); -- Get the user to which the setting value is associated. function Get_User (Object : in User_Setting_Ref) return AWA.Users.Models.User_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out User_Setting_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 User_Setting_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 User_Setting_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 User_Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out User_Setting_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in User_Setting_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition USER_SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out User_Setting_Ref); -- Copy of the object. procedure Copy (Object : in User_Setting_Ref; Into : in out User_Setting_Ref); private SETTING_NAME : aliased constant String := "awa_setting"; COL_0_1_NAME : aliased constant String := "id"; COL_1_1_NAME : aliased constant String := "name"; SETTING_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 2, Table => SETTING_NAME'Access, Members => ( 1 => COL_0_1_NAME'Access, 2 => COL_1_1_NAME'Access ) ); SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access := SETTING_DEF'Access; Null_Setting : constant Setting_Ref := Setting_Ref'(ADO.Objects.Object_Ref with null record); type Setting_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => SETTING_DEF'Access) with record Name : Ada.Strings.Unbounded.Unbounded_String; end record; type Setting_Access is access all Setting_Impl; overriding procedure Destroy (Object : access Setting_Impl); overriding procedure Find (Object : in out Setting_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Setting_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Setting_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Setting_Ref'Class; Impl : out Setting_Access); GLOBAL_SETTING_NAME : aliased constant String := "awa_global_setting"; COL_0_2_NAME : aliased constant String := "id"; COL_1_2_NAME : aliased constant String := "value"; COL_2_2_NAME : aliased constant String := "version"; COL_3_2_NAME : aliased constant String := "server_id"; COL_4_2_NAME : aliased constant String := "setting_id"; GLOBAL_SETTING_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 5, Table => GLOBAL_SETTING_NAME'Access, Members => ( 1 => COL_0_2_NAME'Access, 2 => COL_1_2_NAME'Access, 3 => COL_2_2_NAME'Access, 4 => COL_3_2_NAME'Access, 5 => COL_4_2_NAME'Access ) ); GLOBAL_SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access := GLOBAL_SETTING_DEF'Access; Null_Global_Setting : constant Global_Setting_Ref := Global_Setting_Ref'(ADO.Objects.Object_Ref with null record); type Global_Setting_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => GLOBAL_SETTING_DEF'Access) with record Value : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Server_Id : Integer; Setting : AWA.Settings.Models.Setting_Ref; end record; type Global_Setting_Access is access all Global_Setting_Impl; overriding procedure Destroy (Object : access Global_Setting_Impl); overriding procedure Find (Object : in out Global_Setting_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Global_Setting_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Global_Setting_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Global_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Global_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Global_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Global_Setting_Ref'Class; Impl : out Global_Setting_Access); USER_SETTING_NAME : aliased constant String := "awa_user_setting"; COL_0_3_NAME : aliased constant String := "id"; COL_1_3_NAME : aliased constant String := "value"; COL_2_3_NAME : aliased constant String := "version"; COL_3_3_NAME : aliased constant String := "setting_id"; COL_4_3_NAME : aliased constant String := "user_id"; USER_SETTING_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 5, Table => USER_SETTING_NAME'Access, Members => ( 1 => COL_0_3_NAME'Access, 2 => COL_1_3_NAME'Access, 3 => COL_2_3_NAME'Access, 4 => COL_3_3_NAME'Access, 5 => COL_4_3_NAME'Access ) ); USER_SETTING_TABLE : constant ADO.Schemas.Class_Mapping_Access := USER_SETTING_DEF'Access; Null_User_Setting : constant User_Setting_Ref := User_Setting_Ref'(ADO.Objects.Object_Ref with null record); type User_Setting_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => USER_SETTING_DEF'Access) with record Value : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Setting : AWA.Settings.Models.Setting_Ref; User : AWA.Users.Models.User_Ref; end record; type User_Setting_Access is access all User_Setting_Impl; overriding procedure Destroy (Object : access User_Setting_Impl); overriding procedure Find (Object : in out User_Setting_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out User_Setting_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out User_Setting_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out User_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out User_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out User_Setting_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out User_Setting_Ref'Class; Impl : out User_Setting_Access); end AWA.Settings.Models;
-- { dg-do compile } package Renaming1 is package Inner is procedure PI (X : Integer); end Inner; procedure P (X : Integer) renames Inner.PI; procedure P (X : Float); pragma Convention (C, P); -- { dg-error "non-local entity" } procedure Q (X : Float); procedure Q (X : Integer) renames Inner.PI; pragma Convention (C, Q); -- { dg-error "non-local entity" } end Renaming1;
PACKAGE Salas IS TYPE Sala IS PRIVATE; --Constructor para crear la sala e inicializarla FUNCTION Crear_Sala ( Nombre_Sala : String; Numero_Filas : Positive; Numero_Localidades_Fila : Positive) RETURN Sala; --Devuelve el nombre de la sala FUNCTION Nombre_Sala ( S : Sala) RETURN String; --Devuelve el aforo maximo de la sala FUNCTION Aforo_Sala ( S : Sala) RETURN Positive; --Devuelve el numero de plazas libres en la sala FUNCTION Plazas_Libres ( S : Sala) RETURN Natural; --Imprime por pantalla el identificador de la pelicula FUNCTION La_Pelicula ( S : IN Sala) RETURN String; --Modificar el identificador de la sala pasada por parametro PROCEDURE Modificar_Pelicula ( S : IN OUT Sala; Nombre : String); --Procedimiento que vende localidades contiguas PROCEDURE Vender_Localidades_Contiguas ( S : IN OUT Sala; Numero_Entradas : Positive); --Funcion auxiliar para normalizar strings FUNCTION Normalizar_String ( S : Sala; Rango_Maximo : Positive) RETURN String; --Procedimiento para mostrar el mapa de la sala PROCEDURE Mostrar_Sala ( S : Sala); --Sobrecarga del operador ":=" para copiar objetos PROCEDURE Copiar_Sala ( S : IN OUT Sala; S_A_Copiar : IN Sala); PRIVATE RANGO_MATRIZ : CONSTANT := 25; RANGO_LOCALIDADES : CONSTANT := 25; TYPE Matriz IS ARRAY (1 .. RANGO_MATRIZ, 1 .. RANGO_MATRIZ) OF Boolean; TYPE Sala IS RECORD Nombre_Sala : String (1 .. 7); Identificador_Peli : String (1 .. 10); Localidades_Libres : Natural; Numero_Filas, Numero_Localidades_Fila : Positive RANGE 1 .. RANGO_LOCALIDADES; Array_Localidades : Matriz; END RECORD; END Salas;
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_stdinc_h; with Interfaces.C.Strings; with System; limited with SDL_video_h; limited with SDL_surface_h; with SDL_blendmode_h; limited with SDL_rect_h; package SDL_render_h is -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- 3. This notice may not be removed or altered from any source distribution. -- --* -- * \file SDL_render.h -- * -- * Header file for SDL 2D rendering functions. -- * -- * This API supports the following features: -- * * single pixel points -- * * single pixel lines -- * * filled rectangles -- * * texture images -- * -- * The primitives may be drawn in opaque, blended, or additive modes. -- * -- * The texture images may be drawn in opaque, blended, or additive modes. -- * They can have an additional color tint or alpha modulation applied to -- * them, and may also be stretched with linear interpolation. -- * -- * This API is designed to accelerate simple 2D operations. You may -- * want more functionality such as polygons and particle effects and -- * in that case you should use SDL's OpenGL/Direct3D support or one -- * of the many good 3D engines. -- * -- * These functions must be called from the main thread. -- * See this bug for details: http://bugzilla.libsdl.org/show_bug.cgi?id=1995 -- -- Set up for C function definitions, even when using C++ --* -- * \brief Flags used when creating a rendering context -- --*< The renderer is a software fallback --*< The renderer uses hardware -- acceleration --*< Present is synchronized -- with the refresh rate --*< The renderer supports -- rendering to texture subtype SDL_RendererFlags is unsigned; SDL_RENDERER_SOFTWARE : constant unsigned := 1; SDL_RENDERER_ACCELERATED : constant unsigned := 2; SDL_RENDERER_PRESENTVSYNC : constant unsigned := 4; SDL_RENDERER_TARGETTEXTURE : constant unsigned := 8; -- ..\SDL2_tmp\SDL_render.h:73 --* -- * \brief Information on the capabilities of a render driver or context. -- --*< The name of the renderer type SDL_RendererInfo_texture_formats_array is array (0 .. 15) of aliased SDL_stdinc_h.Uint32; type SDL_RendererInfo is record name : Interfaces.C.Strings.chars_ptr; -- ..\SDL2_tmp\SDL_render.h:80 flags : aliased SDL_stdinc_h.Uint32; -- ..\SDL2_tmp\SDL_render.h:81 num_texture_formats : aliased SDL_stdinc_h.Uint32; -- ..\SDL2_tmp\SDL_render.h:82 texture_formats : aliased SDL_RendererInfo_texture_formats_array; -- ..\SDL2_tmp\SDL_render.h:83 max_texture_width : aliased int; -- ..\SDL2_tmp\SDL_render.h:84 max_texture_height : aliased int; -- ..\SDL2_tmp\SDL_render.h:85 end record; pragma Convention (C_Pass_By_Copy, SDL_RendererInfo); -- ..\SDL2_tmp\SDL_render.h:78 --*< Supported ::SDL_RendererFlags --*< The number of available texture formats --*< The available texture formats --*< The maximum texture width --*< The maximum texture height --* -- * \brief The access pattern allowed for a texture. -- --*< Changes rarely, not lockable --*< Changes frequently, lockable --*< Texture can be used as a render target type SDL_TextureAccess is (SDL_TEXTUREACCESS_STATIC, SDL_TEXTUREACCESS_STREAMING, SDL_TEXTUREACCESS_TARGET); pragma Convention (C, SDL_TextureAccess); -- ..\SDL2_tmp\SDL_render.h:96 --* -- * \brief The texture channel modulation used in SDL_RenderCopy(). -- --*< No modulation --*< srcC = srcC * color --*< srcA = srcA * alpha type SDL_TextureModulate is (SDL_TEXTUREMODULATE_NONE, SDL_TEXTUREMODULATE_COLOR, SDL_TEXTUREMODULATE_ALPHA); pragma Convention (C, SDL_TextureModulate); -- ..\SDL2_tmp\SDL_render.h:106 --* -- * \brief Flip constants for SDL_RenderCopyEx -- --*< Do not flip --*< flip horizontally --*< flip vertically type SDL_RendererFlip is (SDL_FLIP_NONE, SDL_FLIP_HORIZONTAL, SDL_FLIP_VERTICAL); pragma Convention (C, SDL_RendererFlip); -- ..\SDL2_tmp\SDL_render.h:116 --* -- * \brief A structure representing rendering state -- type SDL_Renderer is null record; -- incomplete struct --* -- * \brief An efficient driver-specific representation of pixel data -- type SDL_Texture is null record; -- incomplete struct -- Function prototypes --* -- * \brief Get the number of 2D rendering drivers available for the current -- * display. -- * -- * A render driver is a set of code that handles rendering and texture -- * management on a particular display. Normally there is only one, but -- * some drivers may have several available with different capabilities. -- * -- * \sa SDL_GetRenderDriverInfo() -- * \sa SDL_CreateRenderer() -- function SDL_GetNumRenderDrivers return int; -- ..\SDL2_tmp\SDL_render.h:144 pragma Import (C, SDL_GetNumRenderDrivers, "SDL_GetNumRenderDrivers"); --* -- * \brief Get information about a specific 2D rendering driver for the current -- * display. -- * -- * \param index The index of the driver to query information about. -- * \param info A pointer to an SDL_RendererInfo struct to be filled with -- * information on the rendering driver. -- * -- * \return 0 on success, -1 if the index was out of range. -- * -- * \sa SDL_CreateRenderer() -- function SDL_GetRenderDriverInfo (index : int; info : access SDL_RendererInfo) return int; -- ..\SDL2_tmp\SDL_render.h:158 pragma Import (C, SDL_GetRenderDriverInfo, "SDL_GetRenderDriverInfo"); --* -- * \brief Create a window and default renderer -- * -- * \param width The width of the window -- * \param height The height of the window -- * \param window_flags The flags used to create the window -- * \param window A pointer filled with the window, or NULL on error -- * \param renderer A pointer filled with the renderer, or NULL on error -- * -- * \return 0 on success, or -1 on error -- function SDL_CreateWindowAndRenderer (width : int; height : int; window_flags : SDL_stdinc_h.Uint32; window : System.Address; renderer : System.Address) return int; -- ..\SDL2_tmp\SDL_render.h:172 pragma Import (C, SDL_CreateWindowAndRenderer, "SDL_CreateWindowAndRenderer"); --* -- * \brief Create a 2D rendering context for a window. -- * -- * \param window The window where rendering is displayed. -- * \param index The index of the rendering driver to initialize, or -1 to -- * initialize the first one supporting the requested flags. -- * \param flags ::SDL_RendererFlags. -- * -- * \return A valid rendering context or NULL if there was an error. -- * -- * \sa SDL_CreateSoftwareRenderer() -- * \sa SDL_GetRendererInfo() -- * \sa SDL_DestroyRenderer() -- function SDL_CreateRenderer (window : access SDL_video_h.Class_SDL_Window.SDL_Window; index : int; flags : SDL_stdinc_h.Uint32) return access SDL_Renderer; -- ..\SDL2_tmp\SDL_render.h:191 pragma Import (C, SDL_CreateRenderer, "SDL_CreateRenderer"); --* -- * \brief Create a 2D software rendering context for a surface. -- * -- * \param surface The surface where rendering is done. -- * -- * \return A valid rendering context or NULL if there was an error. -- * -- * \sa SDL_CreateRenderer() -- * \sa SDL_DestroyRenderer() -- function SDL_CreateSoftwareRenderer (surface : access SDL_surface_h.SDL_Surface) return access SDL_Renderer; -- ..\SDL2_tmp\SDL_render.h:204 pragma Import (C, SDL_CreateSoftwareRenderer, "SDL_CreateSoftwareRenderer"); --* -- * \brief Get the renderer associated with a window. -- function SDL_GetRenderer (window : access SDL_video_h.Class_SDL_Window.SDL_Window) return access SDL_Renderer; -- ..\SDL2_tmp\SDL_render.h:209 pragma Import (C, SDL_GetRenderer, "SDL_GetRenderer"); --* -- * \brief Get information about a rendering context. -- function SDL_GetRendererInfo (renderer : access SDL_Renderer; info : access SDL_RendererInfo) return int; -- ..\SDL2_tmp\SDL_render.h:214 pragma Import (C, SDL_GetRendererInfo, "SDL_GetRendererInfo"); --* -- * \brief Get the output size in pixels of a rendering context. -- function SDL_GetRendererOutputSize (renderer : access SDL_Renderer; w : access int; h : access int) return int; -- ..\SDL2_tmp\SDL_render.h:220 pragma Import (C, SDL_GetRendererOutputSize, "SDL_GetRendererOutputSize"); --* -- * \brief Create a texture for a rendering context. -- * -- * \param renderer The renderer. -- * \param format The format of the texture. -- * \param access One of the enumerated values in ::SDL_TextureAccess. -- * \param w The width of the texture in pixels. -- * \param h The height of the texture in pixels. -- * -- * \return The created texture is returned, or NULL if no rendering context was -- * active, the format was unsupported, or the width or height were out -- * of range. -- * -- * \note The contents of the texture are not defined at creation. -- * -- * \sa SDL_QueryTexture() -- * \sa SDL_UpdateTexture() -- * \sa SDL_DestroyTexture() -- function SDL_CreateTexture (renderer : access SDL_Renderer; format : SDL_stdinc_h.Uint32; c_access : int; w : int; h : int) return access SDL_Texture; -- ..\SDL2_tmp\SDL_render.h:242 pragma Import (C, SDL_CreateTexture, "SDL_CreateTexture"); --* -- * \brief Create a texture from an existing surface. -- * -- * \param renderer The renderer. -- * \param surface The surface containing pixel data used to fill the texture. -- * -- * \return The created texture is returned, or NULL on error. -- * -- * \note The surface is not modified or freed by this function. -- * -- * \sa SDL_QueryTexture() -- * \sa SDL_DestroyTexture() -- function SDL_CreateTextureFromSurface (renderer : access SDL_Renderer; surface : access SDL_surface_h.SDL_Surface) return access SDL_Texture; -- ..\SDL2_tmp\SDL_render.h:260 pragma Import (C, SDL_CreateTextureFromSurface, "SDL_CreateTextureFromSurface"); --* -- * \brief Query the attributes of a texture -- * -- * \param texture A texture to be queried. -- * \param format A pointer filled in with the raw format of the texture. The -- * actual format may differ, but pixel transfers will use this -- * format. -- * \param access A pointer filled in with the actual access to the texture. -- * \param w A pointer filled in with the width of the texture in pixels. -- * \param h A pointer filled in with the height of the texture in pixels. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- function SDL_QueryTexture (texture : access SDL_Texture; format : access SDL_stdinc_h.Uint32; c_access : access int; w : access int; h : access int) return int; -- ..\SDL2_tmp\SDL_render.h:275 pragma Import (C, SDL_QueryTexture, "SDL_QueryTexture"); --* -- * \brief Set an additional color value used in render copy operations. -- * -- * \param texture The texture to update. -- * \param r The red color value multiplied into copy operations. -- * \param g The green color value multiplied into copy operations. -- * \param b The blue color value multiplied into copy operations. -- * -- * \return 0 on success, or -1 if the texture is not valid or color modulation -- * is not supported. -- * -- * \sa SDL_GetTextureColorMod() -- function SDL_SetTextureColorMod (texture : access SDL_Texture; r : SDL_stdinc_h.Uint8; g : SDL_stdinc_h.Uint8; b : SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:292 pragma Import (C, SDL_SetTextureColorMod, "SDL_SetTextureColorMod"); --* -- * \brief Get the additional color value used in render copy operations. -- * -- * \param texture The texture to query. -- * \param r A pointer filled in with the current red color value. -- * \param g A pointer filled in with the current green color value. -- * \param b A pointer filled in with the current blue color value. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- * -- * \sa SDL_SetTextureColorMod() -- function SDL_GetTextureColorMod (texture : access SDL_Texture; r : access SDL_stdinc_h.Uint8; g : access SDL_stdinc_h.Uint8; b : access SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:308 pragma Import (C, SDL_GetTextureColorMod, "SDL_GetTextureColorMod"); --* -- * \brief Set an additional alpha value used in render copy operations. -- * -- * \param texture The texture to update. -- * \param alpha The alpha value multiplied into copy operations. -- * -- * \return 0 on success, or -1 if the texture is not valid or alpha modulation -- * is not supported. -- * -- * \sa SDL_GetTextureAlphaMod() -- function SDL_SetTextureAlphaMod (texture : access SDL_Texture; alpha : SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:323 pragma Import (C, SDL_SetTextureAlphaMod, "SDL_SetTextureAlphaMod"); --* -- * \brief Get the additional alpha value used in render copy operations. -- * -- * \param texture The texture to query. -- * \param alpha A pointer filled in with the current alpha value. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- * -- * \sa SDL_SetTextureAlphaMod() -- function SDL_GetTextureAlphaMod (texture : access SDL_Texture; alpha : access SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:336 pragma Import (C, SDL_GetTextureAlphaMod, "SDL_GetTextureAlphaMod"); --* -- * \brief Set the blend mode used for texture copy operations. -- * -- * \param texture The texture to update. -- * \param blendMode ::SDL_BlendMode to use for texture blending. -- * -- * \return 0 on success, or -1 if the texture is not valid or the blend mode is -- * not supported. -- * -- * \note If the blend mode is not supported, the closest supported mode is -- * chosen. -- * -- * \sa SDL_GetTextureBlendMode() -- function SDL_SetTextureBlendMode (texture : access SDL_Texture; blendMode : SDL_blendmode_h.SDL_BlendMode) return int; -- ..\SDL2_tmp\SDL_render.h:353 pragma Import (C, SDL_SetTextureBlendMode, "SDL_SetTextureBlendMode"); --* -- * \brief Get the blend mode used for texture copy operations. -- * -- * \param texture The texture to query. -- * \param blendMode A pointer filled in with the current blend mode. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- * -- * \sa SDL_SetTextureBlendMode() -- function SDL_GetTextureBlendMode (texture : access SDL_Texture; blendMode : access SDL_blendmode_h.SDL_BlendMode) return int; -- ..\SDL2_tmp\SDL_render.h:366 pragma Import (C, SDL_GetTextureBlendMode, "SDL_GetTextureBlendMode"); --* -- * \brief Update the given texture rectangle with new pixel data. -- * -- * \param texture The texture to update -- * \param rect A pointer to the rectangle of pixels to update, or NULL to -- * update the entire texture. -- * \param pixels The raw pixel data in the format of the texture. -- * \param pitch The number of bytes in a row of pixel data, including padding between lines. -- * -- * The pixel data must be in the format of the texture. The pixel format can be -- * queried with SDL_QueryTexture. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- * -- * \note This is a fairly slow function. -- function SDL_UpdateTexture (texture : access SDL_Texture; rect : access constant SDL_rect_h.SDL_Rect; pixels : System.Address; pitch : int) return int; -- ..\SDL2_tmp\SDL_render.h:385 pragma Import (C, SDL_UpdateTexture, "SDL_UpdateTexture"); --* -- * \brief Update a rectangle within a planar YV12 or IYUV texture with new pixel data. -- * -- * \param texture The texture to update -- * \param rect A pointer to the rectangle of pixels to update, or NULL to -- * update the entire texture. -- * \param Yplane The raw pixel data for the Y plane. -- * \param Ypitch The number of bytes between rows of pixel data for the Y plane. -- * \param Uplane The raw pixel data for the U plane. -- * \param Upitch The number of bytes between rows of pixel data for the U plane. -- * \param Vplane The raw pixel data for the V plane. -- * \param Vpitch The number of bytes between rows of pixel data for the V plane. -- * -- * \return 0 on success, or -1 if the texture is not valid. -- * -- * \note You can use SDL_UpdateTexture() as long as your pixel data is -- * a contiguous block of Y and U/V planes in the proper order, but -- * this function is available if your pixel data is not contiguous. -- function SDL_UpdateYUVTexture (texture : access SDL_Texture; rect : access constant SDL_rect_h.SDL_Rect; Yplane : access SDL_stdinc_h.Uint8; Ypitch : int; Uplane : access SDL_stdinc_h.Uint8; Upitch : int; Vplane : access SDL_stdinc_h.Uint8; Vpitch : int) return int; -- ..\SDL2_tmp\SDL_render.h:408 pragma Import (C, SDL_UpdateYUVTexture, "SDL_UpdateYUVTexture"); --* -- * \brief Lock a portion of the texture for write-only pixel access. -- * -- * \param texture The texture to lock for access, which was created with -- * ::SDL_TEXTUREACCESS_STREAMING. -- * \param rect A pointer to the rectangle to lock for access. If the rect -- * is NULL, the entire texture will be locked. -- * \param pixels This is filled in with a pointer to the locked pixels, -- * appropriately offset by the locked area. -- * \param pitch This is filled in with the pitch of the locked pixels. -- * -- * \return 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING. -- * -- * \sa SDL_UnlockTexture() -- function SDL_LockTexture (texture : access SDL_Texture; rect : access constant SDL_rect_h.SDL_Rect; pixels : System.Address; pitch : access int) return int; -- ..\SDL2_tmp\SDL_render.h:429 pragma Import (C, SDL_LockTexture, "SDL_LockTexture"); --* -- * \brief Unlock a texture, uploading the changes to video memory, if needed. -- * -- * \sa SDL_LockTexture() -- procedure SDL_UnlockTexture (texture : access SDL_Texture); -- ..\SDL2_tmp\SDL_render.h:438 pragma Import (C, SDL_UnlockTexture, "SDL_UnlockTexture"); --* -- * \brief Determines whether a window supports the use of render targets -- * -- * \param renderer The renderer that will be checked -- * -- * \return SDL_TRUE if supported, SDL_FALSE if not. -- function SDL_RenderTargetSupported (renderer : access SDL_Renderer) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_render.h:447 pragma Import (C, SDL_RenderTargetSupported, "SDL_RenderTargetSupported"); --* -- * \brief Set a texture as the current rendering target. -- * -- * \param renderer The renderer. -- * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target -- * -- * \return 0 on success, or -1 on error -- * -- * \sa SDL_GetRenderTarget() -- function SDL_SetRenderTarget (renderer : access SDL_Renderer; texture : access SDL_Texture) return int; -- ..\SDL2_tmp\SDL_render.h:459 pragma Import (C, SDL_SetRenderTarget, "SDL_SetRenderTarget"); --* -- * \brief Get the current render target or NULL for the default render target. -- * -- * \return The current render target -- * -- * \sa SDL_SetRenderTarget() -- function SDL_GetRenderTarget (renderer : access SDL_Renderer) return access SDL_Texture; -- ..\SDL2_tmp\SDL_render.h:469 pragma Import (C, SDL_GetRenderTarget, "SDL_GetRenderTarget"); --* -- * \brief Set device independent resolution for rendering -- * -- * \param renderer The renderer for which resolution should be set. -- * \param w The width of the logical resolution -- * \param h The height of the logical resolution -- * -- * This function uses the viewport and scaling functionality to allow a fixed logical -- * resolution for rendering, regardless of the actual output resolution. If the actual -- * output resolution doesn't have the same aspect ratio the output rendering will be -- * centered within the output display. -- * -- * If the output display is a window, mouse events in the window will be filtered -- * and scaled so they seem to arrive within the logical resolution. -- * -- * \note If this function results in scaling or subpixel drawing by the -- * rendering backend, it will be handled using the appropriate -- * quality hints. -- * -- * \sa SDL_RenderGetLogicalSize() -- * \sa SDL_RenderSetScale() -- * \sa SDL_RenderSetViewport() -- function SDL_RenderSetLogicalSize (renderer : access SDL_Renderer; w : int; h : int) return int; -- ..\SDL2_tmp\SDL_render.h:494 pragma Import (C, SDL_RenderSetLogicalSize, "SDL_RenderSetLogicalSize"); --* -- * \brief Get device independent resolution for rendering -- * -- * \param renderer The renderer from which resolution should be queried. -- * \param w A pointer filled with the width of the logical resolution -- * \param h A pointer filled with the height of the logical resolution -- * -- * \sa SDL_RenderSetLogicalSize() -- procedure SDL_RenderGetLogicalSize (renderer : access SDL_Renderer; w : access int; h : access int); -- ..\SDL2_tmp\SDL_render.h:505 pragma Import (C, SDL_RenderGetLogicalSize, "SDL_RenderGetLogicalSize"); --* -- * \brief Set whether to force integer scales for resolution-independent rendering -- * -- * \param renderer The renderer for which integer scaling should be set. -- * \param enable Enable or disable integer scaling -- * -- * This function restricts the logical viewport to integer values - that is, when -- * a resolution is between two multiples of a logical size, the viewport size is -- * rounded down to the lower multiple. -- * -- * \sa SDL_RenderSetLogicalSize() -- function SDL_RenderSetIntegerScale (renderer : access SDL_Renderer; enable : SDL_stdinc_h.SDL_bool) return int; -- ..\SDL2_tmp\SDL_render.h:519 pragma Import (C, SDL_RenderSetIntegerScale, "SDL_RenderSetIntegerScale"); --* -- * \brief Get whether integer scales are forced for resolution-independent rendering -- * -- * \param renderer The renderer from which integer scaling should be queried. -- * -- * \sa SDL_RenderSetIntegerScale() -- function SDL_RenderGetIntegerScale (renderer : access SDL_Renderer) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_render.h:529 pragma Import (C, SDL_RenderGetIntegerScale, "SDL_RenderGetIntegerScale"); --* -- * \brief Set the drawing area for rendering on the current target. -- * -- * \param renderer The renderer for which the drawing area should be set. -- * \param rect The rectangle representing the drawing area, or NULL to set the viewport to the entire target. -- * -- * The x,y of the viewport rect represents the origin for rendering. -- * -- * \return 0 on success, or -1 on error -- * -- * \note If the window associated with the renderer is resized, the viewport is automatically reset. -- * -- * \sa SDL_RenderGetViewport() -- * \sa SDL_RenderSetLogicalSize() -- function SDL_RenderSetViewport (renderer : access SDL_Renderer; rect : access constant SDL_rect_h.SDL_Rect) return int; -- ..\SDL2_tmp\SDL_render.h:546 pragma Import (C, SDL_RenderSetViewport, "SDL_RenderSetViewport"); --* -- * \brief Get the drawing area for the current target. -- * -- * \sa SDL_RenderSetViewport() -- procedure SDL_RenderGetViewport (renderer : access SDL_Renderer; rect : access SDL_rect_h.SDL_Rect); -- ..\SDL2_tmp\SDL_render.h:554 pragma Import (C, SDL_RenderGetViewport, "SDL_RenderGetViewport"); --* -- * \brief Set the clip rectangle for the current target. -- * -- * \param renderer The renderer for which clip rectangle should be set. -- * \param rect A pointer to the rectangle to set as the clip rectangle, or -- * NULL to disable clipping. -- * -- * \return 0 on success, or -1 on error -- * -- * \sa SDL_RenderGetClipRect() -- function SDL_RenderSetClipRect (renderer : access SDL_Renderer; rect : access constant SDL_rect_h.SDL_Rect) return int; -- ..\SDL2_tmp\SDL_render.h:568 pragma Import (C, SDL_RenderSetClipRect, "SDL_RenderSetClipRect"); --* -- * \brief Get the clip rectangle for the current target. -- * -- * \param renderer The renderer from which clip rectangle should be queried. -- * \param rect A pointer filled in with the current clip rectangle, or -- * an empty rectangle if clipping is disabled. -- * -- * \sa SDL_RenderSetClipRect() -- procedure SDL_RenderGetClipRect (renderer : access SDL_Renderer; rect : access SDL_rect_h.SDL_Rect); -- ..\SDL2_tmp\SDL_render.h:580 pragma Import (C, SDL_RenderGetClipRect, "SDL_RenderGetClipRect"); --* -- * \brief Get whether clipping is enabled on the given renderer. -- * -- * \param renderer The renderer from which clip state should be queried. -- * -- * \sa SDL_RenderGetClipRect() -- function SDL_RenderIsClipEnabled (renderer : access SDL_Renderer) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_render.h:590 pragma Import (C, SDL_RenderIsClipEnabled, "SDL_RenderIsClipEnabled"); --* -- * \brief Set the drawing scale for rendering on the current target. -- * -- * \param renderer The renderer for which the drawing scale should be set. -- * \param scaleX The horizontal scaling factor -- * \param scaleY The vertical scaling factor -- * -- * The drawing coordinates are scaled by the x/y scaling factors -- * before they are used by the renderer. This allows resolution -- * independent drawing with a single coordinate system. -- * -- * \note If this results in scaling or subpixel drawing by the -- * rendering backend, it will be handled using the appropriate -- * quality hints. For best results use integer scaling factors. -- * -- * \sa SDL_RenderGetScale() -- * \sa SDL_RenderSetLogicalSize() -- function SDL_RenderSetScale (renderer : access SDL_Renderer; scaleX : float; scaleY : float) return int; -- ..\SDL2_tmp\SDL_render.h:611 pragma Import (C, SDL_RenderSetScale, "SDL_RenderSetScale"); --* -- * \brief Get the drawing scale for the current target. -- * -- * \param renderer The renderer from which drawing scale should be queried. -- * \param scaleX A pointer filled in with the horizontal scaling factor -- * \param scaleY A pointer filled in with the vertical scaling factor -- * -- * \sa SDL_RenderSetScale() -- procedure SDL_RenderGetScale (renderer : access SDL_Renderer; scaleX : access float; scaleY : access float); -- ..\SDL2_tmp\SDL_render.h:623 pragma Import (C, SDL_RenderGetScale, "SDL_RenderGetScale"); --* -- * \brief Set the color used for drawing operations (Rect, Line and Clear). -- * -- * \param renderer The renderer for which drawing color should be set. -- * \param r The red value used to draw on the rendering target. -- * \param g The green value used to draw on the rendering target. -- * \param b The blue value used to draw on the rendering target. -- * \param a The alpha value used to draw on the rendering target, usually -- * ::SDL_ALPHA_OPAQUE (255). -- * -- * \return 0 on success, or -1 on error -- function SDL_SetRenderDrawColor (renderer : access SDL_Renderer; r : SDL_stdinc_h.Uint8; g : SDL_stdinc_h.Uint8; b : SDL_stdinc_h.Uint8; a : SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:638 pragma Import (C, SDL_SetRenderDrawColor, "SDL_SetRenderDrawColor"); --* -- * \brief Get the color used for drawing operations (Rect, Line and Clear). -- * -- * \param renderer The renderer from which drawing color should be queried. -- * \param r A pointer to the red value used to draw on the rendering target. -- * \param g A pointer to the green value used to draw on the rendering target. -- * \param b A pointer to the blue value used to draw on the rendering target. -- * \param a A pointer to the alpha value used to draw on the rendering target, -- * usually ::SDL_ALPHA_OPAQUE (255). -- * -- * \return 0 on success, or -1 on error -- function SDL_GetRenderDrawColor (renderer : access SDL_Renderer; r : access SDL_stdinc_h.Uint8; g : access SDL_stdinc_h.Uint8; b : access SDL_stdinc_h.Uint8; a : access SDL_stdinc_h.Uint8) return int; -- ..\SDL2_tmp\SDL_render.h:654 pragma Import (C, SDL_GetRenderDrawColor, "SDL_GetRenderDrawColor"); --* -- * \brief Set the blend mode used for drawing operations (Fill and Line). -- * -- * \param renderer The renderer for which blend mode should be set. -- * \param blendMode ::SDL_BlendMode to use for blending. -- * -- * \return 0 on success, or -1 on error -- * -- * \note If the blend mode is not supported, the closest supported mode is -- * chosen. -- * -- * \sa SDL_GetRenderDrawBlendMode() -- function SDL_SetRenderDrawBlendMode (renderer : access SDL_Renderer; blendMode : SDL_blendmode_h.SDL_BlendMode) return int; -- ..\SDL2_tmp\SDL_render.h:671 pragma Import (C, SDL_SetRenderDrawBlendMode, "SDL_SetRenderDrawBlendMode"); --* -- * \brief Get the blend mode used for drawing operations. -- * -- * \param renderer The renderer from which blend mode should be queried. -- * \param blendMode A pointer filled in with the current blend mode. -- * -- * \return 0 on success, or -1 on error -- * -- * \sa SDL_SetRenderDrawBlendMode() -- function SDL_GetRenderDrawBlendMode (renderer : access SDL_Renderer; blendMode : access SDL_blendmode_h.SDL_BlendMode) return int; -- ..\SDL2_tmp\SDL_render.h:684 pragma Import (C, SDL_GetRenderDrawBlendMode, "SDL_GetRenderDrawBlendMode"); --* -- * \brief Clear the current rendering target with the drawing color -- * -- * This function clears the entire rendering target, ignoring the viewport and -- * the clip rectangle. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderClear (renderer : access SDL_Renderer) return int; -- ..\SDL2_tmp\SDL_render.h:695 pragma Import (C, SDL_RenderClear, "SDL_RenderClear"); --* -- * \brief Draw a point on the current rendering target. -- * -- * \param renderer The renderer which should draw a point. -- * \param x The x coordinate of the point. -- * \param y The y coordinate of the point. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawPoint (renderer : access SDL_Renderer; x : int; y : int) return int; -- ..\SDL2_tmp\SDL_render.h:706 pragma Import (C, SDL_RenderDrawPoint, "SDL_RenderDrawPoint"); --* -- * \brief Draw multiple points on the current rendering target. -- * -- * \param renderer The renderer which should draw multiple points. -- * \param points The points to draw -- * \param count The number of points to draw -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawPoints (renderer : access SDL_Renderer; points : access constant SDL_rect_h.SDL_Point; count : int) return int; -- ..\SDL2_tmp\SDL_render.h:718 pragma Import (C, SDL_RenderDrawPoints, "SDL_RenderDrawPoints"); --* -- * \brief Draw a line on the current rendering target. -- * -- * \param renderer The renderer which should draw a line. -- * \param x1 The x coordinate of the start point. -- * \param y1 The y coordinate of the start point. -- * \param x2 The x coordinate of the end point. -- * \param y2 The y coordinate of the end point. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawLine (renderer : access SDL_Renderer; x1 : int; y1 : int; x2 : int; y2 : int) return int; -- ..\SDL2_tmp\SDL_render.h:733 pragma Import (C, SDL_RenderDrawLine, "SDL_RenderDrawLine"); --* -- * \brief Draw a series of connected lines on the current rendering target. -- * -- * \param renderer The renderer which should draw multiple lines. -- * \param points The points along the lines -- * \param count The number of points, drawing count-1 lines -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawLines (renderer : access SDL_Renderer; points : access constant SDL_rect_h.SDL_Point; count : int) return int; -- ..\SDL2_tmp\SDL_render.h:745 pragma Import (C, SDL_RenderDrawLines, "SDL_RenderDrawLines"); --* -- * \brief Draw a rectangle on the current rendering target. -- * -- * \param renderer The renderer which should draw a rectangle. -- * \param rect A pointer to the destination rectangle, or NULL to outline the entire rendering target. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawRect (renderer : access SDL_Renderer; rect : access constant SDL_rect_h.SDL_Rect) return int; -- ..\SDL2_tmp\SDL_render.h:757 pragma Import (C, SDL_RenderDrawRect, "SDL_RenderDrawRect"); --* -- * \brief Draw some number of rectangles on the current rendering target. -- * -- * \param renderer The renderer which should draw multiple rectangles. -- * \param rects A pointer to an array of destination rectangles. -- * \param count The number of rectangles. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderDrawRects (renderer : access SDL_Renderer; rects : access constant SDL_rect_h.SDL_Rect; count : int) return int; -- ..\SDL2_tmp\SDL_render.h:769 pragma Import (C, SDL_RenderDrawRects, "SDL_RenderDrawRects"); --* -- * \brief Fill a rectangle on the current rendering target with the drawing color. -- * -- * \param renderer The renderer which should fill a rectangle. -- * \param rect A pointer to the destination rectangle, or NULL for the entire -- * rendering target. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderFillRect (renderer : access SDL_Renderer; rect : access constant SDL_rect_h.SDL_Rect) return int; -- ..\SDL2_tmp\SDL_render.h:782 pragma Import (C, SDL_RenderFillRect, "SDL_RenderFillRect"); --* -- * \brief Fill some number of rectangles on the current rendering target with the drawing color. -- * -- * \param renderer The renderer which should fill multiple rectangles. -- * \param rects A pointer to an array of destination rectangles. -- * \param count The number of rectangles. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderFillRects (renderer : access SDL_Renderer; rects : access constant SDL_rect_h.SDL_Rect; count : int) return int; -- ..\SDL2_tmp\SDL_render.h:794 pragma Import (C, SDL_RenderFillRects, "SDL_RenderFillRects"); --* -- * \brief Copy a portion of the texture to the current rendering target. -- * -- * \param renderer The renderer which should copy parts of a texture. -- * \param texture The source texture. -- * \param srcrect A pointer to the source rectangle, or NULL for the entire -- * texture. -- * \param dstrect A pointer to the destination rectangle, or NULL for the -- * entire rendering target. -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderCopy (renderer : access SDL_Renderer; texture : access SDL_Texture; srcrect : access constant SDL_rect_h.SDL_Rect; dstrect : access constant SDL_rect_h.SDL_Rect) return int; -- ..\SDL2_tmp\SDL_render.h:810 pragma Import (C, SDL_RenderCopy, "SDL_RenderCopy"); --* -- * \brief Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center -- * -- * \param renderer The renderer which should copy parts of a texture. -- * \param texture The source texture. -- * \param srcrect A pointer to the source rectangle, or NULL for the entire -- * texture. -- * \param dstrect A pointer to the destination rectangle, or NULL for the -- * entire rendering target. -- * \param angle An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction -- * \param center A pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done around dstrect.w/2, dstrect.h/2). -- * \param flip An SDL_RendererFlip value stating which flipping actions should be performed on the texture -- * -- * \return 0 on success, or -1 on error -- function SDL_RenderCopyEx (renderer : access SDL_Renderer; texture : access SDL_Texture; srcrect : access constant SDL_rect_h.SDL_Rect; dstrect : access constant SDL_rect_h.SDL_Rect; angle : double; center : access constant SDL_rect_h.SDL_Point; flip : SDL_RendererFlip) return int; -- ..\SDL2_tmp\SDL_render.h:830 pragma Import (C, SDL_RenderCopyEx, "SDL_RenderCopyEx"); --* -- * \brief Read pixels from the current rendering target. -- * -- * \param renderer The renderer from which pixels should be read. -- * \param rect A pointer to the rectangle to read, or NULL for the entire -- * render target. -- * \param format The desired format of the pixel data, or 0 to use the format -- * of the rendering target -- * \param pixels A pointer to be filled in with the pixel data -- * \param pitch The pitch of the pixels parameter. -- * -- * \return 0 on success, or -1 if pixel reading is not supported. -- * -- * \warning This is a very slow operation, and should not be used frequently. -- function SDL_RenderReadPixels (renderer : access SDL_Renderer; rect : access constant SDL_rect_h.SDL_Rect; format : SDL_stdinc_h.Uint32; pixels : System.Address; pitch : int) return int; -- ..\SDL2_tmp\SDL_render.h:853 pragma Import (C, SDL_RenderReadPixels, "SDL_RenderReadPixels"); --* -- * \brief Update the screen with rendering performed. -- procedure SDL_RenderPresent (renderer : access SDL_Renderer); -- ..\SDL2_tmp\SDL_render.h:861 pragma Import (C, SDL_RenderPresent, "SDL_RenderPresent"); --* -- * \brief Destroy the specified texture. -- * -- * \sa SDL_CreateTexture() -- * \sa SDL_CreateTextureFromSurface() -- procedure SDL_DestroyTexture (texture : access SDL_Texture); -- ..\SDL2_tmp\SDL_render.h:869 pragma Import (C, SDL_DestroyTexture, "SDL_DestroyTexture"); --* -- * \brief Destroy the rendering context for a window and free associated -- * textures. -- * -- * \sa SDL_CreateRenderer() -- procedure SDL_DestroyRenderer (renderer : access SDL_Renderer); -- ..\SDL2_tmp\SDL_render.h:877 pragma Import (C, SDL_DestroyRenderer, "SDL_DestroyRenderer"); --* -- * \brief Bind the texture to the current OpenGL/ES/ES2 context for use with -- * OpenGL instructions. -- * -- * \param texture The SDL texture to bind -- * \param texw A pointer to a float that will be filled with the texture width -- * \param texh A pointer to a float that will be filled with the texture height -- * -- * \return 0 on success, or -1 if the operation is not supported -- function SDL_GL_BindTexture (texture : access SDL_Texture; texw : access float; texh : access float) return int; -- ..\SDL2_tmp\SDL_render.h:890 pragma Import (C, SDL_GL_BindTexture, "SDL_GL_BindTexture"); --* -- * \brief Unbind a texture from the current OpenGL/ES/ES2 context. -- * -- * \param texture The SDL texture to unbind -- * -- * \return 0 on success, or -1 if the operation is not supported -- function SDL_GL_UnbindTexture (texture : access SDL_Texture) return int; -- ..\SDL2_tmp\SDL_render.h:899 pragma Import (C, SDL_GL_UnbindTexture, "SDL_GL_UnbindTexture"); --* -- * \brief Get the CAMetalLayer associated with the given Metal renderer -- * -- * \param renderer The renderer to query -- * -- * \return CAMetalLayer* on success, or NULL if the renderer isn't a Metal renderer -- * -- * \sa SDL_RenderGetMetalCommandEncoder() -- function SDL_RenderGetMetalLayer (renderer : access SDL_Renderer) return System.Address; -- ..\SDL2_tmp\SDL_render.h:910 pragma Import (C, SDL_RenderGetMetalLayer, "SDL_RenderGetMetalLayer"); --* -- * \brief Get the Metal command encoder for the current frame -- * -- * \param renderer The renderer to query -- * -- * \return id<MTLRenderCommandEncoder> on success, or NULL if the renderer isn't a Metal renderer -- * -- * \sa SDL_RenderGetMetalLayer() -- function SDL_RenderGetMetalCommandEncoder (renderer : access SDL_Renderer) return System.Address; -- ..\SDL2_tmp\SDL_render.h:921 pragma Import (C, SDL_RenderGetMetalCommandEncoder, "SDL_RenderGetMetalCommandEncoder"); -- Ends C function definitions when using C++ -- vi: set ts=4 sw=4 expandtab: end SDL_render_h;
-- CE2102T.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT USE_ERROR IS RAISED WHEN OPENING A FILE OF MODE -- IN_FILE, WHEN IN_FILE MODE IS NOT SUPPORTED FOR OPEN BY THE -- IMPLEMENTATION FOR DIRECT FILES. -- APPLICABILITY CRITERIA: -- THIS TEST IS ONLY APPLICABLE TO IMPLEMENTATIONS WHICH DO NOT -- SUPPORT OPEN WITH IN_FILE MODE FOR DIRECT FILES. -- HISTORY: -- TBN 07/23/87 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH DIRECT_IO; PROCEDURE CE2102T IS BEGIN TEST ("CE2102T", "CHECK THAT USE_ERROR IS RAISED WHEN MODE " & "IN_FILE IS NOT SUPPORTED FOR THE OPERATION " & "OF OPEN FOR DIRECT FILES"); DECLARE PACKAGE DIR IS NEW DIRECT_IO (BOOLEAN); USE DIR; FILE1 : FILE_TYPE; INCOMPLETE : EXCEPTION; VAR1 : BOOLEAN := FALSE; BEGIN BEGIN CREATE (FILE1, INOUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE FOR " & "INOUT_FILE MODE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED ON CREATE FOR " & "INOUT_FILE MODE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON CREATE"); RAISE INCOMPLETE; END; WRITE (FILE1, VAR1); CLOSE (FILE1); BEGIN OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); NOT_APPLICABLE ("OPEN FOR IN_FILE MODE ALLOWED"); EXCEPTION WHEN USE_ERROR => NULL; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON OPEN"); END; IF IS_OPEN (FILE1) THEN BEGIN DELETE (FILE1); EXCEPTION WHEN USE_ERROR => NULL; END; END IF; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE2102T;
with Interfaces.C, System; use type System.Address; package body FLTK.Widgets.Buttons.Light.Round.Radio is procedure radio_round_button_set_draw_hook (W, D : in System.Address); pragma Import (C, radio_round_button_set_draw_hook, "radio_round_button_set_draw_hook"); pragma Inline (radio_round_button_set_draw_hook); procedure radio_round_button_set_handle_hook (W, H : in System.Address); pragma Import (C, radio_round_button_set_handle_hook, "radio_round_button_set_handle_hook"); pragma Inline (radio_round_button_set_handle_hook); function new_fl_radio_round_button (X, Y, W, H : in Interfaces.C.int; Text : in Interfaces.C.char_array) return System.Address; pragma Import (C, new_fl_radio_round_button, "new_fl_radio_round_button"); pragma Inline (new_fl_radio_round_button); procedure free_fl_radio_round_button (B : in System.Address); pragma Import (C, free_fl_radio_round_button, "free_fl_radio_round_button"); pragma Inline (free_fl_radio_round_button); procedure fl_radio_round_button_draw (W : in System.Address); pragma Import (C, fl_radio_round_button_draw, "fl_radio_round_button_draw"); pragma Inline (fl_radio_round_button_draw); function fl_radio_round_button_handle (W : in System.Address; E : in Interfaces.C.int) return Interfaces.C.int; pragma Import (C, fl_radio_round_button_handle, "fl_radio_round_button_handle"); pragma Inline (fl_radio_round_button_handle); procedure Finalize (This : in out Radio_Round_Button) is begin if This.Void_Ptr /= System.Null_Address and then This in Radio_Round_Button'Class then free_fl_radio_round_button (This.Void_Ptr); This.Void_Ptr := System.Null_Address; end if; Finalize (Round_Button (This)); end Finalize; package body Forge is function Create (X, Y, W, H : in Integer; Text : in String) return Radio_Round_Button is begin return This : Radio_Round_Button do This.Void_Ptr := new_fl_radio_round_button (Interfaces.C.int (X), Interfaces.C.int (Y), Interfaces.C.int (W), Interfaces.C.int (H), Interfaces.C.To_C (Text)); fl_widget_set_user_data (This.Void_Ptr, Widget_Convert.To_Address (This'Unchecked_Access)); radio_round_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); radio_round_button_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); end return; end Create; end Forge; procedure Draw (This : in out Radio_Round_Button) is begin fl_radio_round_button_draw (This.Void_Ptr); end Draw; function Handle (This : in out Radio_Round_Button; Event : in Event_Kind) return Event_Outcome is begin return Event_Outcome'Val (fl_radio_round_button_handle (This.Void_Ptr, Event_Kind'Pos (Event))); end Handle; end FLTK.Widgets.Buttons.Light.Round.Radio;
-- CE2407B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT WRITE RAISES MODE_ERROR WHEN THE CURRENT MODE -- IS IN_FILE. -- 2) CHECK TEMPORARY FILES. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- CREATE WITH OUT_FILE MODE AND RESET FROM OUT_FILE MODE TO -- IN_FILE MODE. -- HISTORY: -- GMT 08/06/86 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH DIRECT_IO; PROCEDURE CE2407B IS PACKAGE DIR IS NEW DIRECT_IO (INTEGER); USE DIR; INCOMPLETE : EXCEPTION; FILE2 : FILE_TYPE; INT : INTEGER := IDENT_INT (18); BEGIN TEST ("CE2407B", "CHECK THAT WRITE RAISES MODE_ERROR WHEN THE " & "CURRENT MODE IS IN_FILE AND THE FILE IS " & "A TEMPORARY FILE"); BEGIN CREATE (FILE2, OUT_FILE); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE - 1"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON CREATE - 2"); RAISE INCOMPLETE; END; WRITE (FILE2, INT); BEGIN RESET (FILE2, IN_FILE); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE("USE_ERROR RAISED ON RESET - 3"); RAISE INCOMPLETE; END; BEGIN WRITE (FILE2, INT); FAILED ("MODE_ERROR NOT RAISED ON WRITE - 4"); EXCEPTION WHEN MODE_ERROR => NULL; WHEN OTHERS => FAILED ("OTHER EXCEPTION RAISED ON WRITE - 5"); END; CLOSE (FILE2); RESULT; EXCEPTION WHEN INCOMPLETE => RESULT; END CE2407B;
-- This spec has been automatically generated from STM32L4x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.TSC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_MCV_Field is HAL.UInt3; subtype CR_PGPSC_Field is HAL.UInt3; subtype CR_SSD_Field is HAL.UInt7; subtype CR_CTPL_Field is HAL.UInt4; subtype CR_CTPH_Field is HAL.UInt4; -- control register type CR_Register is record -- Touch sensing controller enable TSCE : Boolean := False; -- Start a new acquisition START : Boolean := False; -- Acquisition mode AM : Boolean := False; -- Synchronization pin polarity SYNCPOL : Boolean := False; -- I/O Default mode IODEF : Boolean := False; -- Max count value MCV : CR_MCV_Field := 16#0#; -- unspecified Reserved_8_11 : HAL.UInt4 := 16#0#; -- pulse generator prescaler PGPSC : CR_PGPSC_Field := 16#0#; -- Spread spectrum prescaler SSPSC : Boolean := False; -- Spread spectrum enable SSE : Boolean := False; -- Spread spectrum deviation SSD : CR_SSD_Field := 16#0#; -- Charge transfer pulse low CTPL : CR_CTPL_Field := 16#0#; -- Charge transfer pulse high CTPH : CR_CTPH_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record TSCE at 0 range 0 .. 0; START at 0 range 1 .. 1; AM at 0 range 2 .. 2; SYNCPOL at 0 range 3 .. 3; IODEF at 0 range 4 .. 4; MCV at 0 range 5 .. 7; Reserved_8_11 at 0 range 8 .. 11; PGPSC at 0 range 12 .. 14; SSPSC at 0 range 15 .. 15; SSE at 0 range 16 .. 16; SSD at 0 range 17 .. 23; CTPL at 0 range 24 .. 27; CTPH at 0 range 28 .. 31; end record; -- interrupt enable register type IER_Register is record -- End of acquisition interrupt enable EOAIE : Boolean := False; -- Max count error interrupt enable MCEIE : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IER_Register use record EOAIE at 0 range 0 .. 0; MCEIE at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; -- interrupt clear register type ICR_Register is record -- End of acquisition interrupt clear EOAIC : Boolean := False; -- Max count error interrupt clear MCEIC : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ICR_Register use record EOAIC at 0 range 0 .. 0; MCEIC at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; -- interrupt status register type ISR_Register is record -- End of acquisition flag EOAF : Boolean := False; -- Max count error flag MCEF : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record EOAF at 0 range 0 .. 0; MCEF at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; -- IOHCR_G1_IO array type IOHCR_G1_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G1_IO type IOHCR_G1_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G1_IO as a value Val : HAL.UInt4; when True => -- G1_IO as an array Arr : IOHCR_G1_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G1_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G2_IO array type IOHCR_G2_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G2_IO type IOHCR_G2_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G2_IO as a value Val : HAL.UInt4; when True => -- G2_IO as an array Arr : IOHCR_G2_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G2_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G3_IO array type IOHCR_G3_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G3_IO type IOHCR_G3_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G3_IO as a value Val : HAL.UInt4; when True => -- G3_IO as an array Arr : IOHCR_G3_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G3_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G4_IO array type IOHCR_G4_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G4_IO type IOHCR_G4_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G4_IO as a value Val : HAL.UInt4; when True => -- G4_IO as an array Arr : IOHCR_G4_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G4_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G5_IO array type IOHCR_G5_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G5_IO type IOHCR_G5_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G5_IO as a value Val : HAL.UInt4; when True => -- G5_IO as an array Arr : IOHCR_G5_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G5_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G6_IO array type IOHCR_G6_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G6_IO type IOHCR_G6_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G6_IO as a value Val : HAL.UInt4; when True => -- G6_IO as an array Arr : IOHCR_G6_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G6_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G7_IO array type IOHCR_G7_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G7_IO type IOHCR_G7_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G7_IO as a value Val : HAL.UInt4; when True => -- G7_IO as an array Arr : IOHCR_G7_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G7_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOHCR_G8_IO array type IOHCR_G8_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOHCR_G8_IO type IOHCR_G8_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G8_IO as a value Val : HAL.UInt4; when True => -- G8_IO as an array Arr : IOHCR_G8_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOHCR_G8_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- I/O hysteresis control register type IOHCR_Register is record -- G1_IO1 G1_IO : IOHCR_G1_IO_Field := (As_Array => False, Val => 16#1#); -- G2_IO1 G2_IO : IOHCR_G2_IO_Field := (As_Array => False, Val => 16#1#); -- G3_IO1 G3_IO : IOHCR_G3_IO_Field := (As_Array => False, Val => 16#1#); -- G4_IO1 G4_IO : IOHCR_G4_IO_Field := (As_Array => False, Val => 16#1#); -- G5_IO1 G5_IO : IOHCR_G5_IO_Field := (As_Array => False, Val => 16#1#); -- G6_IO1 G6_IO : IOHCR_G6_IO_Field := (As_Array => False, Val => 16#1#); -- G7_IO1 G7_IO : IOHCR_G7_IO_Field := (As_Array => False, Val => 16#1#); -- G8_IO1 G8_IO : IOHCR_G8_IO_Field := (As_Array => False, Val => 16#1#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOHCR_Register use record G1_IO at 0 range 0 .. 3; G2_IO at 0 range 4 .. 7; G3_IO at 0 range 8 .. 11; G4_IO at 0 range 12 .. 15; G5_IO at 0 range 16 .. 19; G6_IO at 0 range 20 .. 23; G7_IO at 0 range 24 .. 27; G8_IO at 0 range 28 .. 31; end record; -- IOASCR_G1_IO array type IOASCR_G1_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G1_IO type IOASCR_G1_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G1_IO as a value Val : HAL.UInt4; when True => -- G1_IO as an array Arr : IOASCR_G1_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G1_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G2_IO array type IOASCR_G2_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G2_IO type IOASCR_G2_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G2_IO as a value Val : HAL.UInt4; when True => -- G2_IO as an array Arr : IOASCR_G2_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G2_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G3_IO array type IOASCR_G3_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G3_IO type IOASCR_G3_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G3_IO as a value Val : HAL.UInt4; when True => -- G3_IO as an array Arr : IOASCR_G3_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G3_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G4_IO array type IOASCR_G4_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G4_IO type IOASCR_G4_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G4_IO as a value Val : HAL.UInt4; when True => -- G4_IO as an array Arr : IOASCR_G4_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G4_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G5_IO array type IOASCR_G5_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G5_IO type IOASCR_G5_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G5_IO as a value Val : HAL.UInt4; when True => -- G5_IO as an array Arr : IOASCR_G5_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G5_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G6_IO array type IOASCR_G6_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G6_IO type IOASCR_G6_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G6_IO as a value Val : HAL.UInt4; when True => -- G6_IO as an array Arr : IOASCR_G6_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G6_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G7_IO array type IOASCR_G7_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G7_IO type IOASCR_G7_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G7_IO as a value Val : HAL.UInt4; when True => -- G7_IO as an array Arr : IOASCR_G7_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G7_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOASCR_G8_IO array type IOASCR_G8_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOASCR_G8_IO type IOASCR_G8_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G8_IO as a value Val : HAL.UInt4; when True => -- G8_IO as an array Arr : IOASCR_G8_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOASCR_G8_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- I/O analog switch control register type IOASCR_Register is record -- G1_IO1 G1_IO : IOASCR_G1_IO_Field := (As_Array => False, Val => 16#0#); -- G2_IO1 G2_IO : IOASCR_G2_IO_Field := (As_Array => False, Val => 16#0#); -- G3_IO1 G3_IO : IOASCR_G3_IO_Field := (As_Array => False, Val => 16#0#); -- G4_IO1 G4_IO : IOASCR_G4_IO_Field := (As_Array => False, Val => 16#0#); -- G5_IO1 G5_IO : IOASCR_G5_IO_Field := (As_Array => False, Val => 16#0#); -- G6_IO1 G6_IO : IOASCR_G6_IO_Field := (As_Array => False, Val => 16#0#); -- G7_IO1 G7_IO : IOASCR_G7_IO_Field := (As_Array => False, Val => 16#0#); -- G8_IO1 G8_IO : IOASCR_G8_IO_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOASCR_Register use record G1_IO at 0 range 0 .. 3; G2_IO at 0 range 4 .. 7; G3_IO at 0 range 8 .. 11; G4_IO at 0 range 12 .. 15; G5_IO at 0 range 16 .. 19; G6_IO at 0 range 20 .. 23; G7_IO at 0 range 24 .. 27; G8_IO at 0 range 28 .. 31; end record; -- IOSCR_G1_IO array type IOSCR_G1_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G1_IO type IOSCR_G1_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G1_IO as a value Val : HAL.UInt4; when True => -- G1_IO as an array Arr : IOSCR_G1_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G1_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G2_IO array type IOSCR_G2_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G2_IO type IOSCR_G2_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G2_IO as a value Val : HAL.UInt4; when True => -- G2_IO as an array Arr : IOSCR_G2_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G2_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G3_IO array type IOSCR_G3_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G3_IO type IOSCR_G3_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G3_IO as a value Val : HAL.UInt4; when True => -- G3_IO as an array Arr : IOSCR_G3_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G3_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G4_IO array type IOSCR_G4_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G4_IO type IOSCR_G4_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G4_IO as a value Val : HAL.UInt4; when True => -- G4_IO as an array Arr : IOSCR_G4_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G4_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G5_IO array type IOSCR_G5_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G5_IO type IOSCR_G5_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G5_IO as a value Val : HAL.UInt4; when True => -- G5_IO as an array Arr : IOSCR_G5_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G5_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G6_IO array type IOSCR_G6_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G6_IO type IOSCR_G6_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G6_IO as a value Val : HAL.UInt4; when True => -- G6_IO as an array Arr : IOSCR_G6_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G6_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G7_IO array type IOSCR_G7_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G7_IO type IOSCR_G7_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G7_IO as a value Val : HAL.UInt4; when True => -- G7_IO as an array Arr : IOSCR_G7_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G7_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOSCR_G8_IO array type IOSCR_G8_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOSCR_G8_IO type IOSCR_G8_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G8_IO as a value Val : HAL.UInt4; when True => -- G8_IO as an array Arr : IOSCR_G8_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOSCR_G8_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- I/O sampling control register type IOSCR_Register is record -- G1_IO1 G1_IO : IOSCR_G1_IO_Field := (As_Array => False, Val => 16#0#); -- G2_IO1 G2_IO : IOSCR_G2_IO_Field := (As_Array => False, Val => 16#0#); -- G3_IO1 G3_IO : IOSCR_G3_IO_Field := (As_Array => False, Val => 16#0#); -- G4_IO1 G4_IO : IOSCR_G4_IO_Field := (As_Array => False, Val => 16#0#); -- G5_IO1 G5_IO : IOSCR_G5_IO_Field := (As_Array => False, Val => 16#0#); -- G6_IO1 G6_IO : IOSCR_G6_IO_Field := (As_Array => False, Val => 16#0#); -- G7_IO1 G7_IO : IOSCR_G7_IO_Field := (As_Array => False, Val => 16#0#); -- G8_IO1 G8_IO : IOSCR_G8_IO_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOSCR_Register use record G1_IO at 0 range 0 .. 3; G2_IO at 0 range 4 .. 7; G3_IO at 0 range 8 .. 11; G4_IO at 0 range 12 .. 15; G5_IO at 0 range 16 .. 19; G6_IO at 0 range 20 .. 23; G7_IO at 0 range 24 .. 27; G8_IO at 0 range 28 .. 31; end record; -- IOCCR_G1_IO array type IOCCR_G1_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G1_IO type IOCCR_G1_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G1_IO as a value Val : HAL.UInt4; when True => -- G1_IO as an array Arr : IOCCR_G1_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G1_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G2_IO array type IOCCR_G2_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G2_IO type IOCCR_G2_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G2_IO as a value Val : HAL.UInt4; when True => -- G2_IO as an array Arr : IOCCR_G2_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G2_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G3_IO array type IOCCR_G3_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G3_IO type IOCCR_G3_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G3_IO as a value Val : HAL.UInt4; when True => -- G3_IO as an array Arr : IOCCR_G3_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G3_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G4_IO array type IOCCR_G4_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G4_IO type IOCCR_G4_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G4_IO as a value Val : HAL.UInt4; when True => -- G4_IO as an array Arr : IOCCR_G4_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G4_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G5_IO array type IOCCR_G5_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G5_IO type IOCCR_G5_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G5_IO as a value Val : HAL.UInt4; when True => -- G5_IO as an array Arr : IOCCR_G5_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G5_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G6_IO array type IOCCR_G6_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G6_IO type IOCCR_G6_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G6_IO as a value Val : HAL.UInt4; when True => -- G6_IO as an array Arr : IOCCR_G6_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G6_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G7_IO array type IOCCR_G7_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G7_IO type IOCCR_G7_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G7_IO as a value Val : HAL.UInt4; when True => -- G7_IO as an array Arr : IOCCR_G7_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G7_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- IOCCR_G8_IO array type IOCCR_G8_IO_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for IOCCR_G8_IO type IOCCR_G8_IO_Field (As_Array : Boolean := False) is record case As_Array is when False => -- G8_IO as a value Val : HAL.UInt4; when True => -- G8_IO as an array Arr : IOCCR_G8_IO_Field_Array; end case; end record with Unchecked_Union, Size => 4; for IOCCR_G8_IO_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- I/O channel control register type IOCCR_Register is record -- G1_IO1 G1_IO : IOCCR_G1_IO_Field := (As_Array => False, Val => 16#0#); -- G2_IO1 G2_IO : IOCCR_G2_IO_Field := (As_Array => False, Val => 16#0#); -- G3_IO1 G3_IO : IOCCR_G3_IO_Field := (As_Array => False, Val => 16#0#); -- G4_IO1 G4_IO : IOCCR_G4_IO_Field := (As_Array => False, Val => 16#0#); -- G5_IO1 G5_IO : IOCCR_G5_IO_Field := (As_Array => False, Val => 16#0#); -- G6_IO1 G6_IO : IOCCR_G6_IO_Field := (As_Array => False, Val => 16#0#); -- G7_IO1 G7_IO : IOCCR_G7_IO_Field := (As_Array => False, Val => 16#0#); -- G8_IO1 G8_IO : IOCCR_G8_IO_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOCCR_Register use record G1_IO at 0 range 0 .. 3; G2_IO at 0 range 4 .. 7; G3_IO at 0 range 8 .. 11; G4_IO at 0 range 12 .. 15; G5_IO at 0 range 16 .. 19; G6_IO at 0 range 20 .. 23; G7_IO at 0 range 24 .. 27; G8_IO at 0 range 28 .. 31; end record; -- I/O group control status register type IOGCSR_Register is record -- Analog I/O group x enable G1E : Boolean := False; -- Analog I/O group x enable G2E : Boolean := False; -- Analog I/O group x enable G3E : Boolean := False; -- Analog I/O group x enable G4E : Boolean := False; -- Analog I/O group x enable G5E : Boolean := False; -- Analog I/O group x enable G6E : Boolean := False; -- Analog I/O group x enable G7E : Boolean := False; -- Analog I/O group x enable G8E : Boolean := False; -- unspecified Reserved_8_15 : HAL.UInt8 := 16#0#; -- Read-only. Analog I/O group x status G1S : Boolean := False; -- Read-only. Analog I/O group x status G2S : Boolean := False; -- Read-only. Analog I/O group x status G3S : Boolean := False; -- Read-only. Analog I/O group x status G4S : Boolean := False; -- Read-only. Analog I/O group x status G5S : Boolean := False; -- Read-only. Analog I/O group x status G6S : Boolean := False; -- Read-only. Analog I/O group x status G7S : Boolean := False; -- Read-only. Analog I/O group x status G8S : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOGCSR_Register use record G1E at 0 range 0 .. 0; G2E at 0 range 1 .. 1; G3E at 0 range 2 .. 2; G4E at 0 range 3 .. 3; G5E at 0 range 4 .. 4; G6E at 0 range 5 .. 5; G7E at 0 range 6 .. 6; G8E at 0 range 7 .. 7; Reserved_8_15 at 0 range 8 .. 15; G1S at 0 range 16 .. 16; G2S at 0 range 17 .. 17; G3S at 0 range 18 .. 18; G4S at 0 range 19 .. 19; G5S at 0 range 20 .. 20; G6S at 0 range 21 .. 21; G7S at 0 range 22 .. 22; G8S at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype IOG1CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG1CR_Register is record -- Read-only. Counter value CNT : IOG1CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG1CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG2CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG2CR_Register is record -- Read-only. Counter value CNT : IOG2CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG2CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG3CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG3CR_Register is record -- Read-only. Counter value CNT : IOG3CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG3CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG4CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG4CR_Register is record -- Read-only. Counter value CNT : IOG4CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG4CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG5CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG5CR_Register is record -- Read-only. Counter value CNT : IOG5CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG5CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG6CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG6CR_Register is record -- Read-only. Counter value CNT : IOG6CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG6CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG7CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG7CR_Register is record -- Read-only. Counter value CNT : IOG7CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG7CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype IOG8CR_CNT_Field is HAL.UInt14; -- I/O group x counter register type IOG8CR_Register is record -- Read-only. Counter value CNT : IOG8CR_CNT_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IOG8CR_Register use record CNT at 0 range 0 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Touch sensing controller type TSC_Peripheral is record -- control register CR : aliased CR_Register; -- interrupt enable register IER : aliased IER_Register; -- interrupt clear register ICR : aliased ICR_Register; -- interrupt status register ISR : aliased ISR_Register; -- I/O hysteresis control register IOHCR : aliased IOHCR_Register; -- I/O analog switch control register IOASCR : aliased IOASCR_Register; -- I/O sampling control register IOSCR : aliased IOSCR_Register; -- I/O channel control register IOCCR : aliased IOCCR_Register; -- I/O group control status register IOGCSR : aliased IOGCSR_Register; -- I/O group x counter register IOG1CR : aliased IOG1CR_Register; -- I/O group x counter register IOG2CR : aliased IOG2CR_Register; -- I/O group x counter register IOG3CR : aliased IOG3CR_Register; -- I/O group x counter register IOG4CR : aliased IOG4CR_Register; -- I/O group x counter register IOG5CR : aliased IOG5CR_Register; -- I/O group x counter register IOG6CR : aliased IOG6CR_Register; -- I/O group x counter register IOG7CR : aliased IOG7CR_Register; -- I/O group x counter register IOG8CR : aliased IOG8CR_Register; end record with Volatile; for TSC_Peripheral use record CR at 16#0# range 0 .. 31; IER at 16#4# range 0 .. 31; ICR at 16#8# range 0 .. 31; ISR at 16#C# range 0 .. 31; IOHCR at 16#10# range 0 .. 31; IOASCR at 16#18# range 0 .. 31; IOSCR at 16#20# range 0 .. 31; IOCCR at 16#28# range 0 .. 31; IOGCSR at 16#30# range 0 .. 31; IOG1CR at 16#34# range 0 .. 31; IOG2CR at 16#38# range 0 .. 31; IOG3CR at 16#3C# range 0 .. 31; IOG4CR at 16#40# range 0 .. 31; IOG5CR at 16#44# range 0 .. 31; IOG6CR at 16#48# range 0 .. 31; IOG7CR at 16#4C# range 0 .. 31; IOG8CR at 16#50# range 0 .. 31; end record; -- Touch sensing controller TSC_Periph : aliased TSC_Peripheral with Import, Address => TSC_Base; end STM32_SVD.TSC;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 3 4 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Storage_Elements; with System.Unsigned_Types; package body System.Pack_34 is subtype Bit_Order is System.Bit_Order; Reverse_Bit_Order : constant Bit_Order := Bit_Order'Val (1 - Bit_Order'Pos (System.Default_Bit_Order)); subtype Ofs is System.Storage_Elements.Storage_Offset; subtype Uns is System.Unsigned_Types.Unsigned; subtype N07 is System.Unsigned_Types.Unsigned range 0 .. 7; use type System.Storage_Elements.Storage_Offset; use type System.Unsigned_Types.Unsigned; type Cluster is record E0, E1, E2, E3, E4, E5, E6, E7 : Bits_34; end record; for Cluster use record E0 at 0 range 0 * Bits .. 0 * Bits + Bits - 1; E1 at 0 range 1 * Bits .. 1 * Bits + Bits - 1; E2 at 0 range 2 * Bits .. 2 * Bits + Bits - 1; E3 at 0 range 3 * Bits .. 3 * Bits + Bits - 1; E4 at 0 range 4 * Bits .. 4 * Bits + Bits - 1; E5 at 0 range 5 * Bits .. 5 * Bits + Bits - 1; E6 at 0 range 6 * Bits .. 6 * Bits + Bits - 1; E7 at 0 range 7 * Bits .. 7 * Bits + Bits - 1; end record; for Cluster'Size use Bits * 8; for Cluster'Alignment use Integer'Min (Standard'Maximum_Alignment, 1 + 1 * Boolean'Pos (Bits mod 2 = 0) + 2 * Boolean'Pos (Bits mod 4 = 0)); -- Use maximum possible alignment, given the bit field size, since this -- will result in the most efficient code possible for the field. type Cluster_Ref is access Cluster; type Rev_Cluster is new Cluster with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_Cluster_Ref is access Rev_Cluster; -- The following declarations are for the case where the address -- passed to GetU_34 or SetU_34 is not guaranteed to be aligned. -- These routines are used when the packed array is itself a -- component of a packed record, and therefore may not be aligned. type ClusterU is new Cluster; for ClusterU'Alignment use 1; type ClusterU_Ref is access ClusterU; type Rev_ClusterU is new ClusterU with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_ClusterU_Ref is access Rev_ClusterU; ------------ -- Get_34 -- ------------ function Get_34 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_34 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else case N07 (Uns (N) mod 8) is when 0 => return C.E0; when 1 => return C.E1; when 2 => return C.E2; when 3 => return C.E3; when 4 => return C.E4; when 5 => return C.E5; when 6 => return C.E6; when 7 => return C.E7; end case; end if; end Get_34; ------------- -- GetU_34 -- ------------- function GetU_34 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_34 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else case N07 (Uns (N) mod 8) is when 0 => return C.E0; when 1 => return C.E1; when 2 => return C.E2; when 3 => return C.E3; when 4 => return C.E4; when 5 => return C.E5; when 6 => return C.E6; when 7 => return C.E7; end case; end if; end GetU_34; ------------ -- Set_34 -- ------------ procedure Set_34 (Arr : System.Address; N : Natural; E : Bits_34; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else case N07 (Uns (N) mod 8) is when 0 => C.E0 := E; when 1 => C.E1 := E; when 2 => C.E2 := E; when 3 => C.E3 := E; when 4 => C.E4 := E; when 5 => C.E5 := E; when 6 => C.E6 := E; when 7 => C.E7 := E; end case; end if; end Set_34; ------------- -- SetU_34 -- ------------- procedure SetU_34 (Arr : System.Address; N : Natural; E : Bits_34; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else case N07 (Uns (N) mod 8) is when 0 => C.E0 := E; when 1 => C.E1 := E; when 2 => C.E2 := E; when 3 => C.E3 := E; when 4 => C.E4 := E; when 5 => C.E5 := E; when 6 => C.E6 := E; when 7 => C.E7 := E; end case; end if; end SetU_34; end System.Pack_34;
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. -------------------------------------------------------------------------------- with Vulkan.Math.GenFType; with Vulkan.Math.GenDType; with Vulkan.Math.GenBType; with Vulkan.Math.GenIType; with Vulkan.Math.GenUType; use Vulkan.Math.GenFType; use Vulkan.Math.GenDType; use Vulkan.Math.GenIType; use Vulkan.Math.GenUType; use Vulkan.Math.GenBType; -------------------------------------------------------------------------------- --< @group Vulkan Math Functions -------------------------------------------------------------------------------- --< @summary --< This package provides GLSL Relational Built-in functions. --< --< @description --< All relational functions operate component-wise on vectors. -------------------------------------------------------------------------------- package Vulkan.Math.Relational is pragma Preelaborate; pragma Pure; ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x < y. --< --< @description --< Vkm_GenFType component-wise compare of x < y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than is new Apply_Func_IVF_IVF_RVB("<"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x < y. --< --< @description --< Vkm_GenDType component-wise compare of x < y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than is new Apply_Func_IVD_IVD_RVB("<"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x < y. --< --< @description --< Vkm_GenIType component-wise compare of x < y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than is new Apply_Func_IVI_IVI_RVB("<"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x < y. --< --< @description --< Vkm_GenUType component-wise compare of x < y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than is new Apply_Func_IVU_IVU_RVB("<"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x <= y. --< --< @description --< Vkm_GenFType component-wise compare of x <= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than_Equal is new Apply_Func_IVF_IVF_RVB("<="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x <= y. --< --< @description --< Vkm_GenDType component-wise compare of x <= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than_Equal is new Apply_Func_IVD_IVD_RVB("<="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x <= y. --< --< @description --< Vkm_GenIType component-wise compare of x <= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than_Equal is new Apply_Func_IVI_IVI_RVB("<="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x <= y. --< --< @description --< Vkm_GenUType component-wise compare of x <= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Less_Than_Equal is new Apply_Func_IVU_IVU_RVB("<="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x > y. --< --< @description --< Vkm_GenFType component-wise compare of x > y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than is new Apply_Func_IVF_IVF_RVB(">"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x > y. --< --< @description --< Vkm_GenDType component-wise compare of x > y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than is new Apply_Func_IVD_IVD_RVB(">"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x > y. --< --< @description --< Vkm_GenIType component-wise compare of x > y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than is new Apply_Func_IVI_IVI_RVB(">"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x > y. --< --< @description --< Vkm_GenUType component-wise compare of x > y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than is new Apply_Func_IVU_IVU_RVB(">"); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x >= y. --< --< @description --< Vkm_GenFType component-wise compare of x >= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than_Equal is new Apply_Func_IVF_IVF_RVB(">="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x >= y. --< --< @description --< Vkm_GenDType component-wise compare of x >= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than_Equal is new Apply_Func_IVD_IVD_RVB(">="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x >= y. --< --< @description --< Vkm_GenIType component-wise compare of x >= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than_Equal is new Apply_Func_IVI_IVI_RVB(">="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x >= y. --< --< @description --< Vkm_GenUType component-wise compare of x >= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Greater_Than_Equal is new Apply_Func_IVU_IVU_RVB(">="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x = y. --< --< @description --< Vkm_GenFType component-wise compare of x = y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Equal is new Apply_Func_IVF_IVF_RVB ("="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x = y. --< --< @description --< Vkm_GenDType component-wise compare of x = y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Equal is new Apply_Func_IVD_IVD_RVB ("="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x = y. --< --< @description --< Vkm_GenIType component-wise compare of x = y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Equal is new Apply_Func_IVI_IVI_RVB ("="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x = y. --< --< @description --< Vkm_GenUType component-wise compare of x = y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Equal is new Apply_Func_IVU_IVU_RVB ("="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenBType component-wise compare of x = y. --< --< @description --< Vkm_GenBType component-wise compare of x = y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Equal is new GBT.Apply_Func_IV_IV_RV("="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenFType component-wise compare of x /= y. --< --< @description --< Vkm_GenFType component-wise compare of x /= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Not_Equal is new Apply_Func_IVF_IVF_RVB ("/="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenDType component-wise compare of x /= y. --< --< @description --< Vkm_GenDType component-wise compare of x /= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Not_Equal is new Apply_Func_IVD_IVD_RVB ("/="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenIType component-wise compare of x /= y. --< --< @description --< Vkm_GenIType component-wise compare of x /= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Not_Equal is new Apply_Func_IVI_IVI_RVB ("/="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenUType component-wise compare of x /= y. --< --< @description --< Vkm_GenUType component-wise compare of x /= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Not_Equal is new Apply_Func_IVU_IVU_RVB ("/="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenBType component-wise compare of x /= y. --< --< @description --< Vkm_GenBType component-wise compare of x /= y. Result is a Vkm_GenBType --< vector. ---------------------------------------------------------------------------- function Not_Equal is new GBT.Apply_Func_IV_IV_RV("/="); ---------------------------------------------------------------------------- --< @summary --< Vkm_GenBType any components true. --< --< @Description --< Returns true if any component of x is true. --< --< @param x The parameter 'x'. --< --< @return --< True if any component of x is true. Otherwise false. ---------------------------------------------------------------------------- function Is_Any (x : in Vkm_GenBType) return Vkm_Bool; ---------------------------------------------------------------------------- --< @summary --< Vkm_GenBType all components true. --< --< @description --< Returns true if all of the components of x are true. --< --< @param x --< The parameter 'x'. --< --< @return --< True if all components of 'x' are true. Otherwise false. ---------------------------------------------------------------------------- function Is_All (x : in Vkm_GenBType) return Vkm_Bool; ---------------------------------------------------------------------------- --< @summary --< Vkm_GenBType component-wise complement. --< --< @description --< Returns the component-wise complement of vector x. ---------------------------------------------------------------------------- function Complement is new GBT.Apply_Func_IV_RV("not"); end Vulkan.Math.Relational;
with gel.Window.sdl, gel.Applet.gui_world, gel.Forge, gel.Sprite, openGL.Palette, openGL.Model.text.lit_colored, Physics; pragma unreferenced (gel.Window.sdl); procedure launch_text_sprite_Demo -- -- Shows a few text sprites. -- is use gel.Math, openGL.Palette; the_Applet : constant gel.Applet.gui_World.view := gel.forge.new_gui_Applet ("text sprite Demo", space_Kind => physics.Bullet); the_Text_1 : constant gel.Sprite.view := gel.forge.new_text_Sprite (the_Applet.gui_World, Origin_3D, "Howdy", the_Applet.Font, Green); the_Text_2 : constant gel.Sprite.view := gel.forge.new_text_Sprite (the_Applet.gui_World, Origin_3D, "Doody", the_Applet.Font, Green); text_1_Model : constant openGL.Model.text.lit_colored.view := openGL.Model.text.lit_colored.view (the_Text_1.graphics_Model); begin the_Applet.gui_Camera.Site_is ((0.0, 0.0, 50.0)); -- Position the camera. the_Applet.enable_simple_Dolly (1); -- Enable user camera control via keyboards. the_Applet.gui_World.add (the_Text_1); the_Applet.gui_World.add (the_Text_2); the_Text_2.Site_is ((0.0, 10.0, 0.0)); while the_Applet.is_open loop if text_1_Model.Text = "Yay" then text_1_Model.Text_is ("Howdy"); else text_1_Model.Text_is ("Yay"); end if; the_Applet.gui_World.evolve; the_Applet.freshen; -- Handle any new events and update the screen. delay 0.5; end loop; the_Applet.destroy; end launch_text_sprite_Demo;
<?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>Loop_Xpose_Col_Outer</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></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></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>_ln0</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> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.73</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>5</id> <name>indvar_flatten</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>92</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/usr/local/labs/SDS/current/ge46bod/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>92</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>87</item> <item>88</item> <item>89</item> <item>90</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </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>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>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> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>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> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>8</id> <name>icmp_ln92</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>92</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>99</item> <item>101</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.71</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>9</id> <name>add_ln92</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>92</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>7</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>102</item> <item>104</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.85</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>10</id> <name>_ln92</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>92</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>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> <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="_10"> <Value> <Obj> <type>0</type> <id>12</id> <name>j</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>92</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>j</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>42</item> <item>44</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.80</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>15</id> <name>icmp_ln94</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>94</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>45</item> <item>47</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.72</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>16</id> <name>select_ln95</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>48</item> <item>50</item> <item>51</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.18</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>17</id> <name>select_ln95_1</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>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> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.18</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>18</id> <name>zext_ln95</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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> <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="_15"> <Value> <Obj> <type>0</type> <id>19</id> <name>tmp</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>57</item> <item>58</item> <item>60</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>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>20</id> <name>zext_ln95_1</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>61</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>24</id> <name>zext_ln95_2</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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> <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="_18"> <Value> <Obj> <type>0</type> <id>25</id> <name>tmp_3</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>63</item> <item>64</item> <item>65</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>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>26</id> <name>zext_ln95_3</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>66</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>27</id> <name>add_ln95</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>67</item> <item>68</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.85</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>28</id> <name>zext_ln95_4</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>69</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>29</id> <name>col_outbuf_i_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>70</item> <item>72</item> <item>73</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>30</id> <name>add_ln95_1</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>74</item> <item>75</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.85</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>31</id> <name>zext_ln95_5</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>76</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>32</id> <name>buf_2d_out_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>77</item> <item>78</item> <item>79</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>33</id> <name>col_outbuf_i_load</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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>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>1.29</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>34</id> <name>buf_2d_out_addr_write_ln95</name> <fileName>dct.cpp</fileName> <fileDirectory>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>95</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.29</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </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>/usr/local/labs/SDS/current/ge46bod/Design_Analysis/lab1</fileDirectory> <lineNumber>94</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/usr/local/labs/SDS/current/ge46bod/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> <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>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>37</id> <name>_ln0</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> <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="_30"> <Value> <Obj> <type>0</type> <id>39</id> <name>_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <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> </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>1</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>8</content> </item> <item class_id_reference="16" object_id="_33"> <Value> <Obj> <type>2</type> <id>49</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_34"> <Value> <Obj> <type>2</type> <id>59</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>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>71</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>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>Xpose_Col_Inner_Loop</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>12</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>20</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> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_44"> <id>42</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_45"> <id>44</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_46"> <id>45</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_48"> <id>48</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="_49"> <id>50</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_50"> <id>51</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_51"> <id>52</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="_52"> <id>53</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>17</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>6</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_54"> <id>55</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="_55"> <id>58</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>19</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>59</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_57"> <id>61</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="_58"> <id>62</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>24</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>16</source_obj> <sink_obj>25</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>59</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>66</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="_62"> <id>67</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_63"> <id>68</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="_64"> <id>69</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="_65"> <id>70</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_66"> <id>72</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_67"> <id>73</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_68"> <id>74</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>30</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_69"> <id>75</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="_70"> <id>76</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="_71"> <id>77</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_72"> <id>78</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_73"> <id>79</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="_74"> <id>80</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_75"> <id>81</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="_76"> <id>82</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_77"> <id>83</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_78"> <id>84</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </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> <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>86</source_obj> <sink_obj>5</sink_obj> <is_back_edge>0</is_back_edge> </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> <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>9</source_obj> <sink_obj>5</sink_obj> <is_back_edge>1</is_back_edge> </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> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_84"> <id>91</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>6</sink_obj> <is_back_edge>0</is_back_edge> </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> <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>17</source_obj> <sink_obj>6</sink_obj> <is_back_edge>1</is_back_edge> </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> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_88"> <id>95</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>7</sink_obj> <is_back_edge>0</is_back_edge> </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> <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>36</source_obj> <sink_obj>7</sink_obj> <is_back_edge>1</is_back_edge> </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> <is_back_edge>1</is_back_edge> </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> <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>100</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </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> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_99"> <id>139</id> <edge_type>2</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="_100"> <id>140</id> <edge_type>2</edge_type> <source_obj>11</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_101"> <id>141</id> <edge_type>2</edge_type> <source_obj>11</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_102"> <id>142</id> <edge_type>2</edge_type> <source_obj>38</source_obj> <sink_obj>11</sink_obj> <is_back_edge>1</is_back_edge> </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>Loop_Xpose_Col_Outer</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>66</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>0</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>64</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>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>28</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>3</first> <second class_id="28" 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>12</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>18</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>2</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>0</second> </second> </item> <item> <first>29</first> <second> <first>1</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>1</first> <second>1</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>3</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>4</first> <second class_id="31" 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="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="1" version="0" object_id="_107"> <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="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
package Problem_21 is procedure Solve; end Problem_21;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- SYSTEM.MULTIPROCESSORS.DISPATCHING_DOMAINS -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011-2014, 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. -- -- -- ------------------------------------------------------------------------------ -- Body used on unimplemented targets, where the operating system does not -- support setting task affinities. package body System.Multiprocessors.Dispatching_Domains is ----------------------- -- Local subprograms -- ----------------------- procedure Freeze_Dispatching_Domains; pragma Export (Ada, Freeze_Dispatching_Domains, "__gnat_freeze_dispatching_domains"); -- Signal the time when no new dispatching domains can be created. It -- should be called before the environment task calls the main procedure -- (and after the elaboration code), so the binder-generated file needs to -- import and call this procedure. ----------------- -- Assign_Task -- ----------------- procedure Assign_Task (Domain : in out Dispatching_Domain; CPU : CPU_Range := Not_A_Specific_CPU; T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) is pragma Unreferenced (Domain, CPU, T); begin raise Dispatching_Domain_Error with "dispatching domains not supported"; end Assign_Task; ------------ -- Create -- ------------ function Create (First : CPU; Last : CPU_Range) return Dispatching_Domain is pragma Unreferenced (First, Last); begin return raise Dispatching_Domain_Error with "dispatching domains not supported"; end Create; function Create (Set : CPU_Set) return Dispatching_Domain is pragma Unreferenced (Set); begin return raise Dispatching_Domain_Error with "dispatching domains not supported"; end Create; ----------------------------- -- Delay_Until_And_Set_CPU -- ----------------------------- procedure Delay_Until_And_Set_CPU (Delay_Until_Time : Ada.Real_Time.Time; CPU : CPU_Range) is pragma Unreferenced (Delay_Until_Time, CPU); begin raise Dispatching_Domain_Error with "dispatching domains not supported"; end Delay_Until_And_Set_CPU; -------------------------------- -- Freeze_Dispatching_Domains -- -------------------------------- procedure Freeze_Dispatching_Domains is begin null; end Freeze_Dispatching_Domains; ------------- -- Get_CPU -- ------------- function Get_CPU (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) return CPU_Range is pragma Unreferenced (T); begin return Not_A_Specific_CPU; end Get_CPU; ----------------- -- Get_CPU_Set -- ----------------- function Get_CPU_Set (Domain : Dispatching_Domain) return CPU_Set is pragma Unreferenced (Domain); begin return raise Dispatching_Domain_Error with "dispatching domains not supported"; end Get_CPU_Set; ---------------------------- -- Get_Dispatching_Domain -- ---------------------------- function Get_Dispatching_Domain (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) return Dispatching_Domain is pragma Unreferenced (T); begin return System_Dispatching_Domain; end Get_Dispatching_Domain; ------------------- -- Get_First_CPU -- ------------------- function Get_First_CPU (Domain : Dispatching_Domain) return CPU is pragma Unreferenced (Domain); begin return CPU'First; end Get_First_CPU; ------------------ -- Get_Last_CPU -- ------------------ function Get_Last_CPU (Domain : Dispatching_Domain) return CPU_Range is pragma Unreferenced (Domain); begin return Number_Of_CPUs; end Get_Last_CPU; ------------- -- Set_CPU -- ------------- procedure Set_CPU (CPU : CPU_Range; T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) is pragma Unreferenced (CPU, T); begin raise Dispatching_Domain_Error with "dispatching domains not supported"; end Set_CPU; end System.Multiprocessors.Dispatching_Domains;
------------------------------------------------------------------------------ -- -- -- 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.Elements.Generic_Hash; function AMF.Standard_Profile_L2.Focuses.Hash is new AMF.Elements.Generic_Hash (Standard_Profile_L2_Focus, Standard_Profile_L2_Focus_Access);
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 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$ ------------------------------------------------------------------------------ -- Handling of diagnoses reporting. ------------------------------------------------------------------------------ with League.Strings; package WSDL.Diagnoses is type Line_Number is new Natural; type Column_Number is new Natural; procedure Report (File : League.Strings.Universal_String; Line : Line_Number; Column : Column_Number; Message : League.Strings.Universal_String); -- Outputs diagnoses message to standard error stream. end WSDL.Diagnoses;
generic N: Integer; package data is type Vector is private; type Matrix is private; function Func1(A,B,C: in Vector; MA,ME: in Matrix) return Vector; function Func2(MF,MG,MH: in Matrix) return Matrix; function Func3(O,P: in Vector; MP,MS: in Matrix) return Vector; function Matrix_Multiplication(A,B: in Matrix) return Matrix; function Sum_Vector(A,B: in Vector) return Vector; function Vector_Matrix_Multiplication(A: in Vector; B: in Matrix) return Vector; procedure Matrix_Sort(A: in out Matrix); function Matrix_Add(A,B: in Matrix) return Matrix; procedure Vector_Sort(A: in out Vector); procedure Vector_Fill_Ones(A: out Vector); procedure Matrix_Fill_Ones(A: out Matrix); procedure Vector_Input (A: out Vector); -- fills values of procedure Vector_Output (A: in Vector); -- shows values of procedure Matrix_Input (A: out Matrix); procedure Matrix_Output (A: in Matrix); private type Vector is array(1..N) of Integer; type Matrix is array(1..N) of Vector; end data;
with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32_SVD.AFIO; use STM32_SVD.AFIO; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32GD.GPIO.Port; package body STM32GD.GPIO.Pin is type Port_Periph_Access is access all GPIO_Peripheral; function Index return Natural is begin return GPIO_Pin'Pos (Pin); end Index; function Pin_Mask return UInt16 is begin return GPIO_Pin'Enum_Rep (Pin); end Pin_Mask; function Port_Periph return Port_Periph_Access is begin return (if Port = Port_A then STM32_SVD.GPIO.GPIOA_Periph'Access elsif Port = Port_B then STM32_SVD.GPIO.GPIOB_Periph'Access elsif Port = Port_C then STM32_SVD.GPIO.GPIOC_Periph'Access elsif Port = Port_D then STM32_SVD.GPIO.GPIOD_Periph'Access else STM32_SVD.GPIO.GPIOF_Periph'Access); end Port_Periph; procedure Enable is begin case Port is when Port_A => RCC_Periph.APB2ENR.IOPAEN := 1; when Port_B => RCC_Periph.APB2ENR.IOPBEN := 1; when Port_C => RCC_Periph.APB2ENR.IOPCEN := 1; when Port_D => RCC_Periph.APB2ENR.IOPDEN := 1; when Port_F => RCC_Periph.APB2ENR.IOPFEN := 1; end case; end Enable; procedure Disable is begin case Port is when Port_A => RCC_Periph.APB2ENR.IOPAEN := 0; when Port_B => RCC_Periph.APB2ENR.IOPBEN := 0; when Port_C => RCC_Periph.APB2ENR.IOPCEN := 0; when Port_D => RCC_Periph.APB2ENR.IOPDEN := 0; when Port_F => RCC_Periph.APB2ENR.IOPFEN := 0; end case; end Disable; procedure Init is begin if Mode /= Input then Set_Mode (Mode); Set_Out_Conf (Out_Conf); else if In_Conf /= In_Analog then Set_In_Conf (In_Conf); end if; end if; end Init; procedure Set_Mode (Mode : Pin_IO_Modes) is begin case Index is when 0 => Port_Periph.CRL.MODE0 := Pin_IO_Modes'Enum_Rep (Mode); when 1 => Port_Periph.CRL.MODE1 := Pin_IO_Modes'Enum_Rep (Mode); when 2 => Port_Periph.CRL.MODE2 := Pin_IO_Modes'Enum_Rep (Mode); when 3 => Port_Periph.CRL.MODE3 := Pin_IO_Modes'Enum_Rep (Mode); when 4 => Port_Periph.CRL.MODE4 := Pin_IO_Modes'Enum_Rep (Mode); when 5 => Port_Periph.CRL.MODE5 := Pin_IO_Modes'Enum_Rep (Mode); when 6 => Port_Periph.CRL.MODE6 := Pin_IO_Modes'Enum_Rep (Mode); when 7 => Port_Periph.CRL.MODE7 := Pin_IO_Modes'Enum_Rep (Mode); when 8 => Port_Periph.CRH.MODE8 := Pin_IO_Modes'Enum_Rep (Mode); when 9 => Port_Periph.CRH.MODE9 := Pin_IO_Modes'Enum_Rep (Mode); when 10 => Port_Periph.CRH.MODE10 := Pin_IO_Modes'Enum_Rep (Mode); when 11 => Port_Periph.CRH.MODE11 := Pin_IO_Modes'Enum_Rep (Mode); when 12 => Port_Periph.CRH.MODE12 := Pin_IO_Modes'Enum_Rep (Mode); when 13 => Port_Periph.CRH.MODE13 := Pin_IO_Modes'Enum_Rep (Mode); when 14 => Port_Periph.CRH.MODE14 := Pin_IO_Modes'Enum_Rep (Mode); when 15 => Port_Periph.CRH.MODE15 := Pin_IO_Modes'Enum_Rep (Mode); when others => null; end case; end Set_Mode; procedure Set_In_Conf (Conf : Pin_In_Conf) is begin case Index is when 0 => Port_Periph.CRL.CNF0 := Pin_In_Conf'Enum_Rep (Conf); when 1 => Port_Periph.CRL.CNF1 := Pin_In_Conf'Enum_Rep (Conf); when 2 => Port_Periph.CRL.CNF2 := Pin_In_Conf'Enum_Rep (Conf); when 3 => Port_Periph.CRL.CNF3 := Pin_In_Conf'Enum_Rep (Conf); when 4 => Port_Periph.CRL.CNF4 := Pin_In_Conf'Enum_Rep (Conf); when 5 => Port_Periph.CRL.CNF5 := Pin_In_Conf'Enum_Rep (Conf); when 6 => Port_Periph.CRL.CNF6 := Pin_In_Conf'Enum_Rep (Conf); when 7 => Port_Periph.CRL.CNF7 := Pin_In_Conf'Enum_Rep (Conf); when 8 => Port_Periph.CRH.CNF8 := Pin_In_Conf'Enum_Rep (Conf); when 9 => Port_Periph.CRH.CNF9 := Pin_In_Conf'Enum_Rep (Conf); when 10 => Port_Periph.CRH.CNF10 := Pin_In_Conf'Enum_Rep (Conf); when 11 => Port_Periph.CRH.CNF11 := Pin_In_Conf'Enum_Rep (Conf); when 12 => Port_Periph.CRH.CNF12 := Pin_In_Conf'Enum_Rep (Conf); when 13 => Port_Periph.CRH.CNF13 := Pin_In_Conf'Enum_Rep (Conf); when 14 => Port_Periph.CRH.CNF14 := Pin_In_Conf'Enum_Rep (Conf); when 15 => Port_Periph.CRH.CNF15 := Pin_In_Conf'Enum_Rep (Conf); when others => null; end case; end Set_In_Conf; procedure Set_Out_Conf (Conf : Pin_Out_Conf) is begin case Index is when 0 => Port_Periph.CRL.CNF0 := Pin_Out_Conf'Enum_Rep (Conf); when 1 => Port_Periph.CRL.CNF1 := Pin_Out_Conf'Enum_Rep (Conf); when 2 => Port_Periph.CRL.CNF2 := Pin_Out_Conf'Enum_Rep (Conf); when 3 => Port_Periph.CRL.CNF3 := Pin_Out_Conf'Enum_Rep (Conf); when 4 => Port_Periph.CRL.CNF4 := Pin_Out_Conf'Enum_Rep (Conf); when 5 => Port_Periph.CRL.CNF5 := Pin_Out_Conf'Enum_Rep (Conf); when 6 => Port_Periph.CRL.CNF6 := Pin_Out_Conf'Enum_Rep (Conf); when 7 => Port_Periph.CRL.CNF7 := Pin_Out_Conf'Enum_Rep (Conf); when 8 => Port_Periph.CRH.CNF8 := Pin_Out_Conf'Enum_Rep (Conf); when 9 => Port_Periph.CRH.CNF9 := Pin_Out_Conf'Enum_Rep (Conf); when 10 => Port_Periph.CRH.CNF10 := Pin_Out_Conf'Enum_Rep (Conf); when 11 => Port_Periph.CRH.CNF11 := Pin_Out_Conf'Enum_Rep (Conf); when 12 => Port_Periph.CRH.CNF12 := Pin_Out_Conf'Enum_Rep (Conf); when 13 => Port_Periph.CRH.CNF13 := Pin_Out_Conf'Enum_Rep (Conf); when 14 => Port_Periph.CRH.CNF14 := Pin_Out_Conf'Enum_Rep (Conf); when 15 => Port_Periph.CRH.CNF15 := Pin_Out_Conf'Enum_Rep (Conf); when others => null; end case; end Set_Out_Conf; function Is_Set return Boolean is begin return Port_Periph.IDR.IDR.Arr (Index) = 1; end Is_Set; procedure Set is begin Port_Periph.BSRR.BS.Val := GPIO_Pin'Enum_Rep (Pin); end Set; procedure Clear is begin Port_Periph.BRR.BR.Val := GPIO_Pin'Enum_Rep (Pin); end Clear; procedure Toggle is begin Port_Periph.ODR.ODR.Val := Port_Periph.ODR.ODR.Val xor GPIO_Pin'Enum_Rep (Pin); end Toggle; end STM32GD.GPIO.Pin;
with Ada.Finalization; with Lexer.Source; package Lexer.Base is pragma Preelaborate; Default_Initial_Buffer_Size : constant := 8192; type Buffer_Type is access all String; type Private_Values is limited private; type Instance is limited new Ada.Finalization.Limited_Controlled with record Cur_Line : Positive := 1; -- index of the line at the current position Line_Start : Positive := 1; -- the buffer index where the current line started Prev_Lines_Chars : Natural := 0; -- number of characters in all previous lines, -- used for calculating index. Pos : Positive := 1; -- position of the next character to be read from the buffer Buffer : Buffer_Type; -- input buffer. filled from the source. Internal : Private_Values; end record; procedure Init (Object : in out Instance; Input : Source.Pointer; Initial_Buffer_Size : Positive := Default_Initial_Buffer_Size); procedure Init (Object : in out Instance; Input : String); subtype Rune is Wide_Wide_Character; function Next (Object : in out Instance) return Character with Inline; procedure Handle_CR (L : in out Instance); procedure Handle_LF (L : in out Instance); End_Of_Input : constant Character := Character'Val (4); Line_Feed : constant Character := Character'Val (10); Carriage_Return : constant Character := Character'Val (13); private type Private_Values is limited record Input : Source.Pointer; -- input provider Sentinel : Positive; -- the position at which, when reached, the buffer must be refilled end record; overriding procedure Finalize (Object : in out Instance); procedure Refill_Buffer (L : in out Instance); end Lexer.Base;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.Strings.Unbounded; private with GL.Low_Level; package GL.Context is pragma Preelaborate; procedure Flush; type String_List is array (Positive range <>) of Ada.Strings.Unbounded.Unbounded_String; type Reset_Status is (No_Error, Guilty, Innocent, Unknown); function Status return Reset_Status; -- Return the reset status of the context -- -- If the context has been created with the Robust context flag -- enabled, then any OpenGL function may raise a Context_Lost_Error -- when a reset has occurred. -- -- If a context has been lost, it must be recreated, including any -- OpenGL objects. This function will return a status not equal to -- No_Error while the context is still resetting and No_Error when -- the reset has been completed. type Context_Flags is record Forward_Compatible : Boolean := False; Debug : Boolean := False; Robust_Access : Boolean := False; No_Error : Boolean := False; end record; function Flags return Context_Flags; type Context_Reset_Notification is (Lose_Context_On_Reset, No_Reset_Notification); function Reset_Notification return Context_Reset_Notification; type Context_Release_Behavior is (None, Flush); function Release_Behavior return Context_Release_Behavior; function Major_Version return Natural; function Minor_Version return Natural; -- These two require OpenGL 3 function Version_String return String; -- Legacy (deprecated in OpenGL 3) function Vendor return String; function Renderer return String; function Extensions return String_List; function Has_Extension (Extensions : String_List; Name : String) return Boolean; -- Uses OpenGL 3 interface function Primary_Shading_Language_Version return String; function Supported_Shading_Language_Versions return String_List; function Supports_Shading_Language_Version (Versions : String_List; Name : String) return Boolean; -- Available since OpenGL 4.3 private for Reset_Status use (No_Error => 0, Guilty => 16#8253#, Innocent => 16#8254#, Unknown => 16#8255#); for Reset_Status'Size use Low_Level.Enum'Size; for Context_Flags use record Forward_Compatible at 0 range 0 .. 0; Debug at 0 range 1 .. 1; Robust_Access at 0 range 2 .. 2; No_Error at 0 range 3 .. 3; end record; for Context_Flags'Size use Low_Level.Bitfield'Size; for Context_Reset_Notification use (Lose_Context_On_Reset => 16#8252#, No_Reset_Notification => 16#8261#); for Context_Reset_Notification'Size use Low_Level.Enum'Size; for Context_Release_Behavior use (None => 0, Flush => 16#82FC#); for Context_Release_Behavior'Size use Low_Level.Enum'Size; end GL.Context;
-- ________ ___ ______ ______ ___ -- /___ .. ._/ |.| |.___.\ /. __ .\ __|.| ____ -- / .. / |.| |.____/ |.|__|.| / .. ..| __\ .. \ -- _/ .. /___ |.| |.| === | .. __ .. ||. = .| | = .. | -- /_______/ |_| /__| /__| |_| \__\_| \__\_| -- UnZip.Streams ---------------- -- Extracts, as a stream, a file which is has been compressed into a Zip archive. -- The Zip archive itself (the input) can be a file or a more general stream. -- This package is resembling Ada.Streams.Stream_IO, to facilitate transition. with Zip, Zip_Streams; with Ada.Streams.Stream_IO, Ada.IO_Exceptions; package UnZip.Streams is subtype Stream_Access is Ada.Streams.Stream_IO.Stream_Access; type Zipped_File_Type is private; -- Opens an input stream for the compressed file named Name stored -- in the archive file named Archive_Name. The function Stream ( .. ) -- then gives access to the opened stream. -- Version : Zip as a file procedure Open (File : in out Zipped_File_Type; -- File - in - archive handle Archive_Name : String; -- Name of archive file Name : String; -- Name of zipped entry Password : String := ""; -- Decryption password Case_sensitive : Boolean := False ); -- Version : Zip as a stream procedure Open (File : in out Zipped_File_Type; -- File - in - archive handle Archive_Stream : Zip_Streams.Zipstream_Class; -- Archive's stream Name : String; -- Name of zipped entry Password : String := ""; -- Decryption password Case_sensitive : Boolean := False ); -- Same as above, but uses a the pre - loaded contents of the archive's -- Central Directory; hence Archive_Info is passed instead of -- Archive_Name or Archive_Stream. -- You need to call Zip.Load (Archive_Info .. .) prior to opening the -- compressed file. procedure Open (File : in out Zipped_File_Type; -- File - in - archive handle Archive_Info : Zip.Zip_info; -- Archive's Zip_info Name : String; -- Name of zipped entry Password : String := ""; -- Decryption password Case_sensitive : Boolean := False ); procedure Close (File : in out Zipped_File_Type); function Is_Open (File : Zipped_File_Type) return Boolean; function End_Of_File (File : Zipped_File_Type) return Boolean; function Stream (File : Zipped_File_Type) return Stream_Access; Use_Error : exception renames Ada.IO_Exceptions.Use_Error; End_Error : exception renames Ada.IO_Exceptions.End_Error; private type UZS_state is ( uninitialized, data_uncompressed, -- In that model, all data is unzipped in one -- time, into memory. If you have a smarter -- idea (small buffer with tasking, write me!) end_of_zip -- We have reached the end, not yet closed ); type p_String is access String; type UnZip_Stream_Type is new Ada.Streams.Root_Stream_Type with record state : UZS_state := uninitialized; archive_info : Zip.Zip_info; -- archive info (.zip file, directory) delete_info_on_closing : Boolean; file_name : p_String; -- name of zipped file to unzip from archive Uncompressed : p_Stream_Element_Array; -- whole uncompressed data index : Ada.Streams.Stream_Element_Offset; end record; overriding procedure Read (UnZip_Stream : in out UnZip_Stream_Type; Item : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset); overriding procedure Write (UnZip_Stream : in out UnZip_Stream_Type; Item : Ada.Streams.Stream_Element_Array); type Zipped_File_Type is access UnZip_Stream_Type; end UnZip.Streams;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2015, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_002A is pragma Preelaborate; Group_002A : aliased constant Core_Second_Stage := (16#0C# => -- 2A0C (Math_Symbol, Neutral, Other, Other, Other, Alphabetic, (Pattern_Syntax | Grapheme_Base | Math | Changes_When_NFKC_Casefolded => True, others => False)), 16#74# .. 16#76# => -- 2A74 .. 2A76 (Math_Symbol, Neutral, Other, Other, Other, Alphabetic, (Pattern_Syntax | Grapheme_Base | Math | Changes_When_NFKC_Casefolded => True, others => False)), 16#DC# => -- 2ADC (Math_Symbol, Neutral, Other, Other, Other, Alphabetic, (Pattern_Syntax | Grapheme_Base | Math | Changes_When_NFKC_Casefolded => True, others => False)), others => (Math_Symbol, Neutral, Other, Other, Other, Alphabetic, (Pattern_Syntax | Grapheme_Base | Math => True, others => False))); end Matreshka.Internals.Unicode.Ucd.Core_002A;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . T R A C E B A C K . S Y M B O L I C -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-2015, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is the default implementation for platforms where the full capability -- is not supported. It returns tracebacks as lists of hexadecimal addresses -- of the form "0x...". pragma Polling (Off); -- We must turn polling off for this unit, because otherwise we can get -- elaboration circularities when polling is turned on. with Ada.Exceptions.Traceback; use Ada.Exceptions.Traceback; with System.Address_Image; package body System.Traceback.Symbolic is ------------------------ -- Symbolic_Traceback -- ------------------------ function Symbolic_Traceback (Traceback : System.Traceback_Entries.Tracebacks_Array) return String is begin if Traceback'Length = 0 then return ""; else declare Img : String := System.Address_Image (Traceback (Traceback'First)); Result : String (1 .. (Img'Length + 3) * Traceback'Length); Last : Natural := 0; begin for J in Traceback'Range loop Img := System.Address_Image (Traceback (J)); Result (Last + 1 .. Last + 2) := "0x"; Last := Last + 2; Result (Last + 1 .. Last + Img'Length) := Img; Last := Last + Img'Length + 1; Result (Last) := ' '; end loop; Result (Last) := ASCII.LF; return Result (1 .. Last); end; end if; end Symbolic_Traceback; function Symbolic_Traceback (E : Ada.Exceptions.Exception_Occurrence) return String is begin return Symbolic_Traceback (Ada.Exceptions.Traceback.Tracebacks (E)); end Symbolic_Traceback; end System.Traceback.Symbolic;
------------------------------------------------------------------------------ -- 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. -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Natools.Time_IO.RFC_3339 provides subprograms to serialize and -- -- deserialize times to and from String representations according to -- -- RFC 3339, which is also a valid subset of ISO 8601. -- ------------------------------------------------------------------------------ with Ada.Calendar.Time_Zones; package Natools.Time_IO.RFC_3339 is Date_Separator : constant Character := '-'; Date_Time_Separator : constant Character := 'T'; Time_Separator : constant Character := ':'; Subsecond_Separator : constant Character := '.'; function Is_Valid (Image : String) return Boolean; -- Check whether Image is a valid RFC-3339 date function Image (Date : Ada.Calendar.Time; Subsecond_Digits : Natural := 0; Force_Leap_Second : Boolean := False) return String with Post => Is_Valid (Image'Result); -- Return the RFC-3339 representation of Date in current time zone function Image (Date : Ada.Calendar.Time; Time_Zone : Ada.Calendar.Time_Zones.Time_Offset; Subsecond_Digits : Natural := 0; Force_Leap_Second : Boolean := False) return String with Post => Is_Valid (Image'Result); -- Return the RFC-3339 representation of Date in Time_Zone function Value (Image : String) return Ada.Calendar.Time with Pre => Is_Valid (Image) or else raise Constraint_Error; -- Return the time associated with the given RFC-3339 representation procedure Value (Image : in String; Date : out Ada.Calendar.Time; Time_Zone : out Ada.Calendar.Time_Zones.Time_Offset) with Pre => Is_Valid (Image) or else raise Constraint_Error; -- Return the time associated with the given RFC-3339 representation procedure Value (Image : in String; Date : out Ada.Calendar.Time; Time_Zone : out Ada.Calendar.Time_Zones.Time_Offset; Leap_Second : out Boolean) with Pre => Is_Valid (Image) or else raise Constraint_Error; -- Return the time associated with the given RFC-3339 representation end Natools.Time_IO.RFC_3339;
pragma License (Unrestricted); with Ada.Strings.Maps; package Ada.Strings.Wide_Wide_Maps is pragma Preelaborate; -- Representation for a set of Wide_Wide_Character values: -- modified -- type Wide_Wide_Character_Set is private; subtype Wide_Wide_Character_Set is Maps.Character_Set; -- modified -- Null_Set : constant Wide_Wide_Character_Set; function Null_Set return Wide_Wide_Character_Set renames Maps.Null_Set; -- type Wide_Wide_Character_Range is record -- Low : Wide_Wide_Character; -- High : Wide_Wide_Character; -- end record; subtype Wide_Wide_Character_Range is Maps.Wide_Wide_Character_Range; -- Represents Wide_Wide_Character range Low..High -- type Wide_Wide_Character_Ranges is -- array (Positive range <>) of Wide_Wide_Character_Range; subtype Wide_Wide_Character_Ranges is Maps.Wide_Wide_Character_Ranges; function To_Set (Ranges : Wide_Wide_Character_Ranges) return Wide_Wide_Character_Set renames Maps.Overloaded_To_Set; function To_Set (Span : Wide_Wide_Character_Range) return Wide_Wide_Character_Set renames Maps.Overloaded_To_Set; function To_Ranges (Set : Wide_Wide_Character_Set) return Wide_Wide_Character_Ranges renames Maps.Overloaded_To_Ranges; function "=" (Left, Right : Wide_Wide_Character_Set) return Boolean renames Maps."="; function "not" (Right : Wide_Wide_Character_Set) return Wide_Wide_Character_Set renames Maps."not"; function "and" (Left, Right : Wide_Wide_Character_Set) return Wide_Wide_Character_Set renames Maps."and"; function "or" (Left, Right : Wide_Wide_Character_Set) return Wide_Wide_Character_Set renames Maps."or"; function "xor" (Left, Right : Wide_Wide_Character_Set) return Wide_Wide_Character_Set renames Maps."xor"; function "-" (Left, Right : Wide_Wide_Character_Set) return Wide_Wide_Character_Set renames Maps."-"; function Is_In ( Element : Wide_Wide_Character; Set : Wide_Wide_Character_Set) return Boolean renames Maps.Overloaded_Is_In; function Is_Subset ( Elements : Wide_Wide_Character_Set; Set : Wide_Wide_Character_Set) return Boolean renames Maps.Is_Subset; function "<=" ( Left : Wide_Wide_Character_Set; Right : Wide_Wide_Character_Set) return Boolean renames Maps.Is_Subset; -- Alternative representation for a set of Wide_Wide_Character values: subtype Wide_Wide_Character_Sequence is Wide_Wide_String; function To_Set (Sequence : Wide_Wide_Character_Sequence) return Wide_Wide_Character_Set renames Maps.Overloaded_To_Set; function To_Set (Singleton : Wide_Wide_Character) return Wide_Wide_Character_Set renames Maps.Overloaded_To_Set; function To_Sequence (Set : Wide_Wide_Character_Set) return Wide_Wide_Character_Sequence renames Maps.Overloaded_To_Sequence; -- Representation for a Wide_Wide_Character to -- Wide_Wide_Character mapping: -- modified -- type Wide_Wide_Character_Mapping is private; subtype Wide_Wide_Character_Mapping is Maps.Character_Mapping; function Value ( Map : Wide_Wide_Character_Mapping; Element : Wide_Wide_Character) return Wide_Wide_Character renames Maps.Overloaded_Value; -- modified -- Identity : constant Wide_Wide_Character_Mapping; function Identity return Wide_Wide_Character_Mapping renames Maps.Identity; function To_Mapping (From, To : Wide_Wide_Character_Sequence) return Wide_Wide_Character_Mapping renames Maps.Overloaded_To_Mapping; function To_Domain (Map : Wide_Wide_Character_Mapping) return Wide_Wide_Character_Sequence renames Maps.Overloaded_To_Domain; function To_Range (Map : Wide_Wide_Character_Mapping) return Wide_Wide_Character_Sequence renames Maps.Overloaded_To_Range; type Wide_Wide_Character_Mapping_Function is access function (From : Wide_Wide_Character) return Wide_Wide_Character; end Ada.Strings.Wide_Wide_Maps;
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_get_pixel_mapfv_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; context_tag : aliased xcb.xcb_glx_context_tag_t; map : aliased Interfaces.Unsigned_32; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_get_pixel_mapfv_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_pixel_mapfv_request_t.Item, Element_Array => xcb.xcb_glx_get_pixel_mapfv_request_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_get_pixel_mapfv_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_pixel_mapfv_request_t.Pointer, Element_Array => xcb.xcb_glx_get_pixel_mapfv_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_get_pixel_mapfv_request_t;